From yangmin_hust at 126.com Mon Feb 1 02:51:28 2016 From: yangmin_hust at 126.com (minyang) Date: Mon, 1 Feb 2016 00:51:28 -0700 (MST) Subject: [vtkusers] Problem with two polydata clip In-Reply-To: <1446026433303-5734644.post@n5.nabble.com> References: <1446026433303-5734644.post@n5.nabble.com> Message-ID: <1454313088179-5736278.post@n5.nabble.com> This issue resolved. Other original way, project the mesh pts and polygon to camera's view plane and check whether pts inside/outside the polygon, get the inside pts and remove them from mesh. -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-two-polydata-clip-tp5734644p5736278.html Sent from the VTK - Users mailing list archive at Nabble.com. From yangmin_hust at 126.com Mon Feb 1 04:12:07 2016 From: yangmin_hust at 126.com (minyang) Date: Mon, 1 Feb 2016 02:12:07 -0700 (MST) Subject: [vtkusers] How to control zooming limits? In-Reply-To: References: Message-ID: <1454317927154-5736279.post@n5.nabble.com> I just defined a variable, and a const for threshold. when MouseWheelForwardEvent/MouseWheelBackwardEvent, check the variable and "++"/"--" the variable. It can implement zoom limitation. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-control-zooming-limits-tp5736207p5736279.html Sent from the VTK - Users mailing list archive at Nabble.com. From yangmin_hust at 126.com Mon Feb 1 04:16:06 2016 From: yangmin_hust at 126.com (minyang) Date: Mon, 1 Feb 2016 02:16:06 -0700 (MST) Subject: [vtkusers] vtkRenderWindow off-screen rendering In-Reply-To: <1453712329670-5736134.post@n5.nabble.com> References: <1453712329670-5736134.post@n5.nabble.com> Message-ID: <1454318166577-5736280.post@n5.nabble.com> Please try to use "RenderWindow()->SetOffScreenRendering(1)". It would implement off screen rendering. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkRenderWindow-off-screen-rendering-tp5736134p5736280.html Sent from the VTK - Users mailing list archive at Nabble.com. From rakesh.p at tataelxsi.co.in Mon Feb 1 04:22:58 2016 From: rakesh.p at tataelxsi.co.in (Rakesh Patil) Date: Mon, 1 Feb 2016 09:22:58 +0000 Subject: [vtkusers] How to control zooming limits? In-Reply-To: <1454317927154-5736279.post@n5.nabble.com> References: , <1454317927154-5736279.post@n5.nabble.com> Message-ID: Hey Minyang, Do you have any link or reference to any example as in how to do that? Thanks Warm Regards Rakesh Patil ________________________________________ From: vtkusers on behalf of minyang Sent: Monday, February 1, 2016 2:42 PM To: vtkusers at vtk.org Subject: Re: [vtkusers] How to control zooming limits? I just defined a variable, and a const for threshold. when MouseWheelForwardEvent/MouseWheelBackwardEvent, check the variable and "++"/"--" the variable. It can implement zoom limitation. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-control-zooming-limits-tp5736207p5736279.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 f.nellmeldin at open-engineering.com Mon Feb 1 04:59:45 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Mon, 1 Feb 2016 10:59:45 +0100 Subject: [vtkusers] Hide non visible labels on a 3d model In-Reply-To: References: Message-ID: Hello and thank you for your response. Indeed I have tried with different Tolerance values. The screenshots were made with tolerance of 0.001. Right now (after your message), I'm using 0.0001. It improved the behavior but still I have some annoying flickering (labels appear and disappear) when I move the camera. Thank you. 2016-01-28 19:32 GMT+01:00 Yumin Yuan : > Hi Fernando, > > You got a quite complicated pipeline here :). Just a thought without > knowing all the details, you may try to decrease the Tolerance value in > vtkSelectVisiblePoints. The default value might not work well with your > data. > > Yumin > > On Thu, Jan 28, 2016 at 11:23 AM, Fernando Nellmeldin < > f.nellmeldin at open-engineering.com> wrote: > >> Hello. >> Does anyone has any tips? >> Thank you. >> >> 2016-01-25 10:39 GMT+01:00 Fernando Nellmeldin < >> f.nellmeldin at open-engineering.com>: >> >>> Hello. >>> I'm trying to show the values of a contour as labels. Each label is >>> fixed to a point in the contour. I do not want to show the labels that are >>> anchored to points that are not visible. >>> >>> To achieve this, I followed these two examples: >>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabelContours >>> >>> http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Annotation/Python/labeledMesh.py >>> >>> Unfortunately, the removal of hidden points (and thus, of labels) is not >>> working as expected. I attach three pictures of the behavior when I move >>> the camera. Look at the values on the top (365 and 399). >>> >>> The Pipeline I am using is the following: >>> vtkUnstructuredGrid -> vtkGeometryFilter -> vtkContourFilter -> >>> vtkStripper -> (create a vtkPolyData with one point of each contour) -> >>> vtkSelectVisiblePoints -> vtkLabeledDataMapper -> vtkActor2D. >>> >>> I am using VTK 5.10 but I tried with VTK 6.3 and the problem is worse >>> (nothing is hidden). This is under Windows 8.1. >>> >>> Any ideas? >>> >>> Thank you. >>> >>> >> >> >> -- >> *Fernando NELLMELDIN* >> Software Engineer >> *_______________________________________________________________* >> >> *Open Engineering s.a.* >> >> Rue Bois Saint-Jean 15/1 >> B-4102 Seraing (Belgium) >> Tel: +32.4.353.30.34 >> >> http://www.open-engineering.com >> >> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >> >> >> >> *_________________________________________________________________________* >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -- *Fernando NELLMELDIN* Software Engineer *_______________________________________________________________* *Open Engineering s.a.* Rue Bois Saint-Jean 15/1 B-4102 Seraing (Belgium) Tel: +32.4.353.30.34 http://www.open-engineering.com https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym *_________________________________________________________________________* -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.genet at polytechnique.edu Mon Feb 1 05:22:15 2016 From: martin.genet at polytechnique.edu (Martin Genet) Date: Mon, 1 Feb 2016 11:22:15 +0100 Subject: [vtkusers] Question about unstructured grids In-Reply-To: References: Message-ID: <56AF31D7.4030808@polytechnique.edu> Hi Eric, Paraview only displays cells, not points. There are at least two solutions: - When you write the ugrid file, you can add vertices, which are cells containing a single point, using something like: > cell = vtk.vtkVertex() > cell_array = vtk.vtkCellArray() > for k_point in xrange(ugrid.GetPoints().GetNumberOfPoints()): > cell.GetPointIds().SetId(0, k_point) > cell_array.InsertNextCell(cell) > ugrid.SetCells(vtk.VTK_VERTEX, cell_array) > for k_array in xrange(ugrid.GetPointData().GetNumberOfArrays()): > ugrid.GetCellData().AddArray(ugrid.GetPointData().GetArray(k_array)) - Otherwise, if you have only points in your ugrid, you can glyph them in paraview, using for instance a sphere with fixed small diameter. Martin On 01/02/2016 05:07, Eric Robertson wrote: > Hi all, > > I have a raw data set of X,Y,Z coordinates as well as a set of scalars > (lets call them A, B, C) which are stored at the aforementioned > coordinates. I use vtkUnstructuredGrid to create the domain, but when > I go to open the .vtu file in Paraview I see that there aren't any > cells to visualize. > > My question is- how do I go about providing 'cells' which use these > points as cell-centers? > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Feb 1 05:30:47 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 1 Feb 2016 03:30:47 -0700 (MST) Subject: [vtkusers] Plane Widget and OpenGL ES In-Reply-To: References: <1454083365183-5736252.post@n5.nabble.com> <1454083806727-5736254.post@n5.nabble.com> Message-ID: <1454322647417-5736284.post@n5.nabble.com> Sorry for the late reply, here is my code: /foo->plane = vtkSmartPointer::New(); foo->clipper = vtkSmartPointer::New(); foo->clipper->SetClipFunction(foo->plane); foo->clipper->InsideOutOn(); foo->reader = vtkSmartPointer::New() ; foo->reader->SetFileName(filename.c_str()) ; foo->clipper->SetInputConnection(foo->reader->GetOutputPort()) ; // Create a mapper and actor vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputConnection(foo->clipper->GetOutputPort()); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); vtkSmartPointer backFaces = vtkSmartPointer::New(); backFaces->SetDiffuseColor(.8, .8, .4); foo->mainActor->SetBackfaceProperty(backFaces); // The callback will do the work of updating the view vtkSmartPointer myCallback = vtkSmartPointer::New(); myCallback->Plane = foo->plane; myCallback->Actor = foo->mainActor; foo->planerep = vtkSmartPointer::New(); foo->planerep->SetPlaceFactor(1.25); // This must be set prior to placing the widget foo->planerep->PlaceWidget(foo->mainActor->GetBounds()); foo->planerep->SetNormal(foo->plane->GetNormal()); //planerep->SetNormal(0,1,0); foo->planerep->SetOrigin(0,0,50); //this doesn't seem to work? foo->planeWidget = vtkSmartPointer::New(); foo->planeWidget->SetInteractor(foo->Interactor); foo->planeWidget->SetRepresentation(foo->planerep); foo->planeWidget->AddObserver(vtkCommand::InteractionEvent,myCallback); foo->Renderer->AddActor(actor); foo->planeWidget->On();/ As for the callback (probably not needed) but here it is: class vtkIPWCallback : public vtkCommand { public: static vtkIPWCallback *New() { return new vtkIPWCallback; } virtual void Execute(vtkObject *caller, unsigned long, void*) { vtkImplicitPlaneWidget2 *planeWidget = reinterpret_cast(caller); vtkImplicitPlaneRepresentation *rep = reinterpret_cast(planeWidget->GetRepresentation()); rep->GetPlane(this->Plane); } vtkIPWCallback():Plane(0),Actor(0) {} vtkPlane *Plane; vtkActor *Actor; }; I guess it should work because I have seen some running program with the cutting plane. Unfortunately can't get my hands on the code to check what may be wrong with mine. Thanks again for the help -- View this message in context: http://vtk.1045678.n5.nabble.com/Plane-Widget-and-OpenGL-ES-tp5736252p5736284.html Sent from the VTK - Users mailing list archive at Nabble.com. From gallovic at 3cky.sk Mon Feb 1 06:20:14 2016 From: gallovic at 3cky.sk (michalgallovic) Date: Mon, 1 Feb 2016 04:20:14 -0700 (MST) Subject: [vtkusers] vtkRenderWindow off-screen rendering In-Reply-To: <1454318166577-5736280.post@n5.nabble.com> References: <1453712329670-5736134.post@n5.nabble.com> <1454318166577-5736280.post@n5.nabble.com> Message-ID: <1454325614561-5736285.post@n5.nabble.com> When I use SetOffScreenRendering(1), the RenderWindow is outputed into the frame buffer object, so I can get data from it i.e. using opengl ? -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkRenderWindow-off-screen-rendering-tp5736134p5736285.html Sent from the VTK - Users mailing list archive at Nabble.com. From LCHEN41 at mgh.harvard.edu Mon Feb 1 11:09:14 2016 From: LCHEN41 at mgh.harvard.edu (Chen, Lifan) Date: Mon, 1 Feb 2016 16:09:14 +0000 Subject: [vtkusers] How to create a polyhedron(vtkPolyData) from a series of points(Vertex) Message-ID: Hey all, I am new in vtk and here is a simple issue. How could I create a polyhedron from a series of points which are the vertexs of the polyhedron. Of course, these points do not intersect. Does any one know any method in vtk to accomplish this? Thanks, Fantasy 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 MEEHANBT at nv.doe.gov Mon Feb 1 13:22:37 2016 From: MEEHANBT at nv.doe.gov (Meehan, Bernard) Date: Mon, 1 Feb 2016 18:22:37 +0000 Subject: [vtkusers] How to create a polyhedron(vtkPolyData) from a series of points(Vertex) Message-ID: I think that this might help: http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polyhedron From: vtkusers > on behalf of "Chen, Lifan" > Date: Monday, February 1, 2016 at 8:09 AM To: "vtkusers at vtk.org" > Subject: [vtkusers] How to create a polyhedron(vtkPolyData) from a series of points(Vertex) Hey all, I am new in vtk and here is a simple issue. How could I create a polyhedron from a series of points which are the vertexs of the polyhedron. Of course, these points do not intersect. Does any one know any method in vtk to accomplish this? Thanks, Fantasy 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 LCHEN41 at mgh.harvard.edu Mon Feb 1 14:27:46 2016 From: LCHEN41 at mgh.harvard.edu (Chen, Lifan) Date: Mon, 1 Feb 2016 19:27:46 +0000 Subject: [vtkusers] =?gb2312?b?tPC4tDogIEhvdyB0byBjcmVhdGUgYSBwb2x5aGVk?= =?gb2312?b?cm9uKHZ0a1BvbHlEYXRhKSBmcm9tIGEgc2VyaWVzIG9mIHBvaW50cyhWZXJ0?= =?gb2312?b?ZXgp?= In-Reply-To: <20160201182242.2AE99E4BDF@public.kitware.com> References: <20160201182242.2AE99E4BDF@public.kitware.com> Message-ID: I've read the code. In this example, it requires user to define the faces of the polyhedron, however, what I want is to automatically create the polyhedron with the given points based on some kind of rules, for example, the closest points rule. I know there is a method in vtkSelectPolyData to finish the similar work, but the method in vtkSelectPolyData does not create a polydata itself. Fantasy ________________________________ ???: vtkusers [vtkusers-bounces at vtk.org] ?? Meehan, Bernard [MEEHANBT at nv.doe.gov] ????: 2016?2?1? 13:22 ???: vtkusers at vtk.org ??: Re: [vtkusers] How to create a polyhedron(vtkPolyData) from a series of points(Vertex) I think that this might help: http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polyhedron From: vtkusers > on behalf of "Chen, Lifan" > Date: Monday, February 1, 2016 at 8:09 AM To: "vtkusers at vtk.org" > Subject: [vtkusers] How to create a polyhedron(vtkPolyData) from a series of points(Vertex) Hey all, I am new in vtk and here is a simple issue. How could I create a polyhedron from a series of points which are the vertexs of the polyhedron. Of course, these points do not intersect. Does any one know any method in vtk to accomplish this? Thanks, Fantasy 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 david.gobbi at gmail.com Mon Feb 1 14:59:00 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 1 Feb 2016 12:59:00 -0700 Subject: [vtkusers] =?utf-8?b?562U5aSNOiBIb3cgdG8gY3JlYXRlIGEgcG9seWhlZHJv?= =?utf-8?q?n=28vtkPolyData=29_from_a_series_of_points=28Vertex=29?= In-Reply-To: References: <20160201182242.2AE99E4BDF@public.kitware.com> Message-ID: Hi Fantasy, If the points are a convex hull, then you can use vtkDelaunay3D to fill the hull with tetrahedrons, followed by vtkDataSetSurfaceFilter to get just the outer surface. - David On Mon, Feb 1, 2016 at 12:27 PM, Chen, Lifan wrote: > I've read the code. In this example, it requires user to define the faces > of the polyhedron, however, what I want is to automatically create the > polyhedron with the given points based on some kind of rules, for example, > the closest points rule. I know there is a method in vtkSelectPolyData to > finish the similar work, but the method in vtkSelectPolyData does not > create a polydata itself. > > Fantasy > ------------------------------ > *???:* vtkusers [vtkusers-bounces at vtk.org] ?? Meehan, Bernard [ > MEEHANBT at nv.doe.gov] > *????:* 2016?2?1? 13:22 > *???:* vtkusers at vtk.org > *??:* Re: [vtkusers] How to create a polyhedron(vtkPolyData) from a > series of points(Vertex) > > I think that this might help: > http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polyhedron > > > From: vtkusers on behalf of "Chen, Lifan" < > LCHEN41 at mgh.harvard.edu> > Date: Monday, February 1, 2016 at 8:09 AM > To: "vtkusers at vtk.org" > Subject: [vtkusers] How to create a polyhedron(vtkPolyData) from a series > of points(Vertex) > > Hey all, > > I am new in vtk and here is a simple issue. How could I create a > polyhedron from a series of points which are the vertexs of the polyhedron. > Of course, these points do not intersect. Does any one know any method in > vtk to accomplish this? > > Thanks, > Fantasy > > 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 fluidandsolidearth at gmx.de Mon Feb 1 15:37:26 2016 From: fluidandsolidearth at gmx.de (Sean Con) Date: Mon, 1 Feb 2016 21:37:26 +0100 Subject: [vtkusers] =?utf-8?b?562U5aSNOiBIb3cgdG8gY3JlYXRlIGEgcG9seWhlZHJv?= =?utf-8?q?n=28vtkPolyData=29_from_a_series_of_points=28Vertex=29?= Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Mr. Sean Con.vcf Type: text/x-vcard Size: 455 bytes Desc: not available URL: From andrew.slaughter at inl.gov Mon Feb 1 16:49:42 2016 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Mon, 1 Feb 2016 14:49:42 -0700 Subject: [vtkusers] How to reload file in vtkExodusIIReader Message-ID: I am using VTK6.3 and Python2.7 on OSX. I am creating a vtkExodusIIReader object for a file, but during run-time the file is updated. How do I update reader to re-read a file? Attached is a simple example that shows what I am doing. There must be some sort of reset flag that I am missing. (Note, vtkExodusIIReader::Reset() did not help). Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: update.py Type: text/x-python-script Size: 1182 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diffusion_1.e Type: application/octet-stream Size: 29504 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diffusion_2.e Type: application/octet-stream Size: 30480 bytes Desc: not available URL: From andrew.slaughter at inl.gov Mon Feb 1 17:07:48 2016 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Mon, 1 Feb 2016 15:07:48 -0700 Subject: [vtkusers] How to reload file in vtkExodusIIReader In-Reply-To: References: Message-ID: Found my own answer, vtkExodusIIReader::Modified() did the trick. Thanks to anyone who took a look. -Andrew On Mon, Feb 1, 2016 at 2:49 PM, Slaughter, Andrew E < andrew.slaughter at inl.gov> wrote: > I am using VTK6.3 and Python2.7 on OSX. I am creating a vtkExodusIIReader > object for a file, but during run-time the file is updated. How do I update > reader to re-read a file? > > Attached is a simple example that shows what I am doing. There must be > some sort of reset flag that I am missing. (Note, > vtkExodusIIReader::Reset() did not help). > > Thanks, > Andrew > -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.genet at polytechnique.edu Mon Feb 1 17:23:26 2016 From: martin.genet at polytechnique.edu (Martin Genet) Date: Mon, 1 Feb 2016 23:23:26 +0100 Subject: [vtkusers] Question about unstructured grids In-Reply-To: References: <56AF31D7.4030808@polytechnique.edu> Message-ID: <56AFDADE.70307@polytechnique.edu> Glad that helped, Eric. Well, if you have the connectivity you can just write the surface cells (triangles, quadrangles) like you did with the vertexes. If you don't have the connectivity then I do not know, but I'm sure someone on the ML will be able to help. Martin On 01/02/2016 16:32, Eric Robertson wrote: > Thanks Martin. That works pretty well. > > I might add that I am scripting in C++ but I was quickly able to > translate. > > I see the output shows up in Paraview as a ton of points. How may I > proceed to make it a 'surface' which connects these points? (the data > set is a wing). > > On Mon, Feb 1, 2016 at 4:22 AM, Martin Genet > > wrote: > > Hi Eric, > > Paraview only displays cells, not points. > > There are at least two solutions: > - When you write the ugrid file, you can add vertices, which are > cells containing a single point, using something like: >> cell = vtk.vtkVertex() >> cell_array = vtk.vtkCellArray() >> for k_point in xrange(ugrid.GetPoints().GetNumberOfPoints()): >> cell.GetPointIds().SetId(0, k_point) >> cell_array.InsertNextCell(cell) >> ugrid.SetCells(vtk.VTK_VERTEX, cell_array) >> for k_array in xrange(ugrid.GetPointData().GetNumberOfArrays()): >> ugrid.GetCellData().AddArray(ugrid.GetPointData().GetArray(k_array)) > - Otherwise, if you have only points in your ugrid, you can glyph > them in paraview, using for instance a sphere with fixed small > diameter. > > Martin > > > On 01/02/2016 05:07, Eric Robertson wrote: >> Hi all, >> >> I have a raw data set of X,Y,Z coordinates as well as a set of >> scalars (lets call them A, B, C) which are stored at the >> aforementioned coordinates. I use vtkUnstructuredGrid to create >> the domain, but when I go to open the .vtu file in Paraview I see >> that there aren't any cells to visualize. >> >> My question is- how do I go about providing 'cells' which use >> these points as cell-centers? >> >> >> _______________________________________________ >> 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 grothausmann.roman at mh-hannover.de Tue Feb 2 03:37:43 2016 From: grothausmann.roman at mh-hannover.de (Grothausmann, Roman Dr.) Date: Tue, 02 Feb 2016 09:37:43 +0100 Subject: [vtkusers] saving vtkGraph to graphviz dot-files In-Reply-To: References: Message-ID: <56B06AD7.2000301@mh-hannover.de> Just for those who stumble upon this. I got this working in both directions: https://github.com/romangrothausmann/VTK-CLIs/blob/master/vtp2dot.cxx https://github.com/romangrothausmann/VTK-CLIs/blob/master/dot2vtp.cxx On 07/02/13 13:29, Jeff Baumes wrote: > The problem is that vtkGraph (the superclass) is abstract and does not specify > directionality. You should determine whether vtkPolyDataToGraph outputs a > vtkDirectedGraph or vtkUndirectedGraph and store the output in a variable of > that type before sending it to write_graph. > > Jeff > > > On Thu, Feb 7, 2013 at 5:01 AM, Dr. Roman Grothausmann > <__grothausmann.roman at mh-hannover.de__> wrote: > Dear mailing list members, > > > It seems there is no vtk-Filter to save a vtkGraph as a graphviz dot-file. > Therefore, I tried to create a simple program for that but it fails during > compilation with: > > > /usr/include/boost/graph/graphviz.hpp:297:5: required from ?void > boost::write_graphviz(std::ostream&, const Graph&, typename > boost::enable_if_c typename boost::graph_traits::traversal_category>::value, > boost::graph::detail::no_parameter>::type) [with Graph = vtkGraph*; std::ostream > = std::basic_ostream; typename > boost::enable_if_c typename boost::graph_traits::traversal_category>::value, > boost::graph::detail::no_parameter>::type = boost::graph::detail::no_parameter]? > /home/grothama/vtk/graphviz-vtk/vtp2dot_01.cxx:47:38: required from here > /usr/include/boost/graph/graphviz.hpp:255:61: error: no type named > ?directed_category? in ?struct boost::graph_traits? > /usr/include/boost/graph/graphviz.hpp:256:42: error: no type named > ?directed_category? in ?struct boost::graph_traits? > make[2]: *** [CMakeFiles/vtp2dot_01.dir/vtp2dot_01.cxx.o] Error 1 > > > Am I missing something in my code (see attached zip)? > > Any help or hints are very much appreciated > Roman > _____ > > > ////convert a graph stored in a vtp-file to a dot-file (graphviz) > > > #include > #include //for vtp-files > #include > > #include "vtkBoostGraphAdapter.h" > #include // For writing graphs to a file > > > int main(int argc, char* argv[]){ > if( argc != 3 ) > { > std::cerr << "Usage: " << argv[0]; > std::cerr << " inputMesh"; > std::cerr << " outputFile"; > std::cerr << std::endl; > return EXIT_FAILURE; > } > > if(!(strcasestr(argv[1],".vtp"))) { > std::cout << "The input should end with .vtp" << std::endl; > return -1; > } > > if(!(strcasestr(argv[2],".dot"))) { > std::cout << "The input should end with .dot" << std::endl; > return -1; > } > > > vtkSmartPointer reader = > vtkSmartPointer::New(); > > //reader->SetFileName(inputFileName); > reader->SetFileName(argv[1]); > reader->Update(); > > vtkSmartPointer polyDataToGraphFilter= > vtkSmartPointer::New(); > polyDataToGraphFilter->SetInputConnection(reader->GetOutputPort()); > polyDataToGraphFilter->Update(); > > vtkGraph* graph= polyDataToGraphFilter->GetOutput(); > > std::ofstream fout(argv[2]); > boost::write_graphviz(fout, graph); > > > return EXIT_SUCCESS; > } > > > -- > Dr. Roman Grothausmann > > Tomographie und Digitale Bildverarbeitung > Tomography and Digital Image Analysis > > Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 > Medizinische Hochschule Hannover > Carl-Neuberg-Str. 1 > D-30625 Hannover > > Tel. __+49 511 532-9574__ > > _______________________________________________ > Powered by __www.kitware.com__ > > Visit other Kitware open-source projects at > __http://www.kitware.com/opensource/opensource.html__ > > Please keep messages on-topic and check the VTK FAQ at: > __http://www.vtk.org/Wiki/VTK_FAQ__ > > Follow this link to subscribe/unsubscribe: > __http://www.vtk.org/mailman/listinfo/vtkusers__ > > > -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-2900 From liuyanbc157 at gmail.com Tue Feb 2 06:10:18 2016 From: liuyanbc157 at gmail.com (Yan) Date: Tue, 2 Feb 2016 11:10:18 +0000 (UTC) Subject: [vtkusers] Failure of vtkRenderingFreetypeModule Message-ID: Hello, everyone, I'm working on migration my software from VTK 5.4 to 6.2. Now I'm confronting a problem. I have added the following codes in my c++ codes, which are overriding version like vtkTemporalInterpolator etc. #include VTK_MODULE_INIT(vtkInteractionStyle); VTK_MODULE_INIT(vtkRenderingFreeType); VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL); VTK_MODULE_INIT(vtkRenderingOpenGL); #define vtkRenderingCore_AUTOINIT 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRen deringOpenGL) #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) But compiling was success, but when I tried to operate my software, it gave me an error like this: import imoose.trinityNG.libvtkLocalNGPython as vtklocal ImportError: /storage/users/kruettgen/Liu5/pymoose/rc/install/lib/python2.7/site- packages/imoose/trinityNG/libvtkLocalNG.so: undefined symbol: _Z39vtkRenderingFreeType_AutoInit_Constructv Could someone please help me out of it. Thanks a lot. From nicolas.kozlovsky at fr.thalesgroup.com Tue Feb 2 06:38:45 2016 From: nicolas.kozlovsky at fr.thalesgroup.com (KOZLOVSKY Nicolas) Date: Tue, 2 Feb 2016 12:38:45 +0100 Subject: [vtkusers] Failure of vtkRenderingFreetypeModule In-Reply-To: References: Message-ID: Hi Yan First I think you don't have to use the #define anymore (replaced by VTK_MODULE_INIT). Secondly, you can remove the renderer that causes the problem and try to run your code has now many things have change. So try to remove this statement : VTK_MODULE_INIT(vtkRenderingFreeType); -----Message d'origine----- De?: vtkusers [mailto:vtkusers-bounces at vtk.org] De la part de Yan Envoy??: mardi 2 f?vrier 2016 12:10 ??: vtkusers at public.kitware.com Objet?: [vtkusers] Failure of vtkRenderingFreetypeModule Hello, everyone, I'm working on migration my software from VTK 5.4 to 6.2. Now I'm confronting a problem. I have added the following codes in my c++ codes, which are overriding version like vtkTemporalInterpolator etc. #include VTK_MODULE_INIT(vtkInteractionStyle); VTK_MODULE_INIT(vtkRenderingFreeType); VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL); VTK_MODULE_INIT(vtkRenderingOpenGL); #define vtkRenderingCore_AUTOINIT 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRen deringOpenGL) #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) But compiling was success, but when I tried to operate my software, it gave me an error like this: import imoose.trinityNG.libvtkLocalNGPython as vtklocal ImportError: /storage/users/kruettgen/Liu5/pymoose/rc/install/lib/python2.7/site- packages/imoose/trinityNG/libvtkLocalNG.so: undefined symbol: _Z39vtkRenderingFreeType_AutoInit_Constructv Could someone please help me out of it. Thanks a lot. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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 gallovic at 3cky.sk Tue Feb 2 07:00:46 2016 From: gallovic at 3cky.sk (michalgallovic) Date: Tue, 2 Feb 2016 05:00:46 -0700 (MST) Subject: [vtkusers] vtkActor rotate -> update underlying data Message-ID: <1454414446407-5736298.post@n5.nabble.com> Hellou guys. If I use i.e. actor->RotateX(90) on the vtkActor object, it rotates the object on the screen, but does not change the 3d coordinates of the underlying data. How can I tell the data ( btw is it vtkPolyData or vtkPolyDataMapper? ) to update its coordinates ? Or should I do it differently - rotate/translate the underlying data, and every time update mapper and actor ? thank you -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkActor-rotate-update-underlying-data-tp5736298.html Sent from the VTK - Users mailing list archive at Nabble.com. From giorgosragos at gmail.com Tue Feb 2 09:32:45 2016 From: giorgosragos at gmail.com (Giorgos Ragkousis) Date: Tue, 2 Feb 2016 14:32:45 +0000 Subject: [vtkusers] ActiViz.NET-5.8.0- Cannot write/read multiblock MetaData in/from .vtm files Message-ID: Dear vtk users, I am trying to write MetaData in vtm serial files with the following code: // lenght of object array with multiple unstructuredgrids int noBlocks = UGs.Length; vtkMultiBlockDataSet mbset = vtkMultiBlockDataSet.New(); mbset.SetNumberOfBlocks(noBlocks); for (uint i = 0; i < noBlocks; i++) { domainName = "MultiBlock_0" + i.ToString(); mbset.SetBlock(i, (vtkUnstructuredGrid)UGrids[i]); mbset.GetMetaData(i).Set(vtkCompositeDataSet.NAME(), domainName); // the following, prints the desired names of the blocks string nameOfBlock = mbset.GetMetaData(i).Get(vtkCompositeDataSet.NAME()); Debug.Print(nameOfBlock); } string fileDir = @"C:\\gitRepositories\\vtkActiViz\\"; string filename = "multiblock_increment01.vtm"; // write a vtm file with the multi-block vtkXMLMultiBlockDataWriter writerMultiBlock = vtkXMLMultiBlockDataWriter.New(); writerMultiBlock.SetFileName(fileDir + filename); writerMultiBlock.SetInput(mbset); writerMultiBlock.Update(); writerMultiBlock.UpdateInformation(); writerMultiBlock.Write(); However, when opening the .vtm file, the names are not written and the .vtu files are written as multiblock_increment01_0.vtu instead of multiblock_increment01_Multiblock_00.vtu. I wrote the above script in vtk python, as well and, the names are written successfully. However, when I try to read the generated file (written in python) with: string domainName; vtkInformation info = null; // read multi-block vtkXMLMultiBlockDataReader readerMB = vtkXMLMultiBlockDataReader.New(); readerMB.SetFileName(filename); readerMB.Update(); readerMB.UpdateInformation(); //multiBlock = vtkMultiBlockDataSet.New(); vtkMultiBlockDataSet multiBlock = vtkMultiBlockDataSet.SafeDownCast(readerMB.GetOutput()); //multiBlock = (vtkMultiBlockDataSet)readerMB.GetOutput(); multiBlock.Update(); multiBlock.UpdateData(); multiBlock.UpdateInformation(); // get the number of blocks noBlocks = multiBlock.GetNumberOfBlocks(); Debug.Print("The number of blocks is: " + noBlocks); info = vtkInformation.New(); info = multiBlock.GetMetaData(0); int hasMD = multiBlock.HasMetaData(0); Debug.Print("The vtkInformation is: " + info.ToString()); // the following, prints 1 Debug.Print("Does this block have metadata ? " + hasMD.ToString()); domainName = info.Get(vtkCompositeDataSet.NAME()); Debug.Print("The name of the muliblock is :" + domainName); The keys NAMES are not accessible. Do I have to upgrade to a new ActiViz version? What am I doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Tue Feb 2 09:52:21 2016 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Tue, 2 Feb 2016 09:52:21 -0500 Subject: [vtkusers] vtkpython on mac os? In-Reply-To: References: <20160126205036.8AFBFE4936@public.kitware.com> Message-ID: <20160202145221.GA3429@megas.kitware.com> On Fri, Jan 29, 2016 at 08:37:50 +0100, Michka Popoff wrote: > I made the ?-undefined dynamic_lookup? change in ITK some time ago. > This is even now required by the homebrew package managers on OS X. > > Citing myself from http://review.source.kitware.com/#/c/20072/1, > (were you also can find the changes I made in cmake to make it work): Does this hide linker warnings about other undefined symbols? We have other platforms which don't do this, so I guess we can just leave those to test missing symbol cases if so. --Ben From david.gobbi at gmail.com Tue Feb 2 10:05:05 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 2 Feb 2016 08:05:05 -0700 Subject: [vtkusers] vtkActor rotate -> update underlying data In-Reply-To: <1454414446407-5736298.post@n5.nabble.com> References: <1454414446407-5736298.post@n5.nabble.com> Message-ID: Hi Michal, The actors and mappers never modify the data, but the data can be rotated with vtkTransformPolyDataFilter via its SetTransform method. - David On Tue, Feb 2, 2016 at 5:00 AM, michalgallovic wrote: > Hellou guys. > > If I use i.e. actor->RotateX(90) on the vtkActor object, it rotates the > object on the screen, but does not change the 3d coordinates of the > underlying data. How can I tell the data ( btw is it vtkPolyData or > vtkPolyDataMapper? ) to update its coordinates ? > > Or should I do it differently - rotate/translate the underlying data, and > every time update mapper and actor ? > > thank you > -------------- next part -------------- An HTML attachment was scrubbed... URL: From liuyanbc157 at gmail.com Tue Feb 2 12:13:20 2016 From: liuyanbc157 at gmail.com (Yan) Date: Tue, 2 Feb 2016 17:13:20 +0000 (UTC) Subject: [vtkusers] Failure of vtkRenderingFreetypeModule References: Message-ID: KOZLOVSKY Nicolas fr.thalesgroup.com> writes: > > > Hi Yan > First I think you don't have to use the #define anymore (replaced by VTK_MODULE_INIT). > Secondly, you can remove the renderer that causes the problem and try to run your code has now many things > have change. > > So try to remove this statement : VTK_MODULE_INIT(vtkRenderingFreeType); > > -----Message d'origine----- > De?: vtkusers [mailto:vtkusers-bounces vtk.org] De la part de Yan > Envoy??: mardi 2 f?vrier 2016 12:10 > ??: vtkusers public.kitware.com > Objet?: [vtkusers] Failure of vtkRenderingFreetypeModule > > Hello, everyone, > > I'm working on migration my software from VTK 5.4 to 6.2. Now I'm confronting a problem. > > I have added the following codes in my c++ codes, which are overriding version like > vtkTemporalInterpolator etc. > > #include > VTK_MODULE_INIT(vtkInteractionStyle); > VTK_MODULE_INIT(vtkRenderingFreeType); > VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL); > VTK_MODULE_INIT(vtkRenderingOpenGL); > > #define vtkRenderingCore_AUTOINIT > 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRen > deringOpenGL) > #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) > > But compiling was success, but when I tried to operate my software, it gave me an error like this: > > import imoose.trinityNG.libvtkLocalNGPython as vtklocal > ImportError: > /storage/users/kruettgen/Liu5/pymoose/rc/install/lib/python2.7/site- > packages/imoose/trinityNG/libvtkLocalNG.so: undefined symbol: > _Z39vtkRenderingFreeType_AutoInit_Constructv > > Could someone please help me out of it. > > Thanks a lot. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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 > > Hi, Niclolas, first thank you for your replying. But the situation is that, it has first the error of undefined symbol: _Z39vtkRenderingFreeType_AutoInit_Constructv. Then I tried to add those codes in it. I have tried your way, but it doesn't work. Perhaps I should something to CMakeLists or somewhat? Someone said also that it is perhaps due to the circumstance of the system. What I used is LINUX. Thank you again. From lonni.besancon at gmail.com Tue Feb 2 12:33:12 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 2 Feb 2016 10:33:12 -0700 (MST) Subject: [vtkusers] setOrigin() of plane is slowing the rendering Message-ID: <1454434392380-5736303.post@n5.nabble.com> Hello everyone, I have a question that is related to time performance. I am currently using the method SetOrigin() to modify the origin of a plane in vtk. When I move other actors using a transform or changing directly the UserMatrix I basically encounter no issue at all related to time performance. However, when it comes to changing the origin of the plane, all my program slows down. Would you know if that's normal? If that is, what would be an other way to proceed? I still think that it should not take that long, and that there's something wrong. Indeed all I get is 3 doubles from an other part of the program (not related to the rendering, GUI side), and fetch these 3 doubles to the SetOrigin() method. This SetOrigin() call is repeated a given number of iterations. I have checked that when I comment this part of the code the rendering is just fine and my program runs normally. I'm using vtk6 and windows (though I don't think this is an OS-related issue). Thanks in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/setOrigin-of-plane-is-slowing-the-rendering-tp5736303.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Tue Feb 2 12:42:28 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 2 Feb 2016 12:42:28 -0500 Subject: [vtkusers] setOrigin() of plane is slowing the rendering In-Reply-To: <1454434392380-5736303.post@n5.nabble.com> References: <1454434392380-5736303.post@n5.nabble.com> Message-ID: Changing the origin will cause the plane to rebuild on the next render. Depending on the resolution/dimensions of the plane that could be costly. A 10x10 plane should be super fast. A 10000x10000 plane I would expect to be really slow. Not sure if that is the issue, just an idea. Thanks Ken On Tue, Feb 2, 2016 at 12:33 PM, Lonni Besan?on wrote: > Hello everyone, > > I have a question that is related to time performance. > I am currently using the method SetOrigin() to modify the origin of a plane > in vtk. When I move other actors using a transform or changing directly the > UserMatrix I basically encounter no issue at all related to time > performance. > However, when it comes to changing the origin of the plane, all my program > slows down. Would you know if that's normal? > If that is, what would be an other way to proceed? > > I still think that it should not take that long, and that there's something > wrong. > Indeed all I get is 3 doubles from an other part of the program (not > related > to the rendering, GUI side), and fetch these 3 doubles to the SetOrigin() > method. This SetOrigin() call is repeated a given number of iterations. > I have checked that when I comment this part of the code the rendering is > just fine and my program runs normally. > > I'm using vtk6 and windows (though I don't think this is an OS-related > issue). > > Thanks in advance. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/setOrigin-of-plane-is-slowing-the-rendering-tp5736303.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michkapopoff at gmail.com Tue Feb 2 13:02:46 2016 From: michkapopoff at gmail.com (Michka Popoff) Date: Tue, 2 Feb 2016 19:02:46 +0100 Subject: [vtkusers] vtkpython on mac os? In-Reply-To: <20160202145221.GA3429@megas.kitware.com> References: <20160126205036.8AFBFE4936@public.kitware.com> <20160202145221.GA3429@megas.kitware.com> Message-ID: Hi yes probably. Not sure about all the details, but you may want to have a continuous build were missing symbols are not replaced. In another SimpleITK discussion this time (http://review.source.kitware.com/#/c/20442/), it seems that this also woks with gcc42 which is good for people building packages on older OS X systems. This blog post describing everything more in-depth was also found: http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/ "On Linux, building with -shared tells the linker to ignore undefined symbols, assuming that the dynamic linker will be able to resolve them at runtime.? Using "-undefined dynamic_lookup? on OS X restores this behaviour. Hope that helps. Michka > On 02 Feb 2016, at 15:52, Ben Boeckel wrote: > > On Fri, Jan 29, 2016 at 08:37:50 +0100, Michka Popoff wrote: >> I made the ?-undefined dynamic_lookup? change in ITK some time ago. >> This is even now required by the homebrew package managers on OS X. >> >> Citing myself from http://review.source.kitware.com/#/c/20072/1, >> (were you also can find the changes I made in cmake to make it work): > > Does this hide linker warnings about other undefined symbols? We have > other platforms which don't do this, so I guess we can just leave those > to test missing symbol cases if so. > > --Ben From andrew.slaughter at inl.gov Tue Feb 2 13:04:03 2016 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Tue, 2 Feb 2016 11:04:03 -0700 Subject: [vtkusers] Updating Exodus data for new results Message-ID: I am having difficulties updating an Exodus file with new temporal results using vtkExodusIIReader on OSX (VTK 6.3 python bindings). The attached script and input file demonstrate the problem. Using the vtkExodusIIReader::Modified() method allows for the reader to update the number available timesteps. However, if you enable NODAL data this no longer works. I would appreciate any help getting this resolved. Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: update.py Type: text/x-python-script Size: 862 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diffusion_1.e Type: application/octet-stream Size: 29504 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diffusion_2.e Type: application/octet-stream Size: 30480 bytes Desc: not available URL: From lonni.besancon at gmail.com Tue Feb 2 13:05:36 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 2 Feb 2016 11:05:36 -0700 (MST) Subject: [vtkusers] setOrigin() of plane is slowing the rendering In-Reply-To: References: <1454434392380-5736303.post@n5.nabble.com> Message-ID: <1454436336240-5736307.post@n5.nabble.com> Hi Ken, Thanks for the quick answer. So is there anyway to move the cutting plane without using this function? >From the documentation, I could not get any other method to move a cutting plane except for the push, but that?s in the direction of the normal. Similarly, to rotate it, I guess that setting the normal would have the effect on performance am I right? -- View this message in context: http://vtk.1045678.n5.nabble.com/setOrigin-of-plane-is-slowing-the-rendering-tp5736303p5736307.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien.jourdain at kitware.com Tue Feb 2 13:14:46 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 2 Feb 2016 11:14:46 -0700 Subject: [vtkusers] setOrigin() of plane is slowing the rendering In-Reply-To: <1454436336240-5736307.post@n5.nabble.com> References: <1454434392380-5736303.post@n5.nabble.com> <1454436336240-5736307.post@n5.nabble.com> Message-ID: If you are building your code in Debug mode in Windows, that could have a huge performance impact. On Tue, Feb 2, 2016 at 11:05 AM, Lonni Besan?on wrote: > Hi Ken, > > Thanks for the quick answer. > So is there anyway to move the cutting plane without using this function? > From the documentation, I could not get any other method to move a cutting > plane except for the push, but that?s in the direction of the normal. > Similarly, to rotate it, I guess that setting the normal would have the > effect on performance am I right? > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/setOrigin-of-plane-is-slowing-the-rendering-tp5736303p5736307.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 newcfd at yahoo.com Tue Feb 2 14:04:34 2016 From: newcfd at yahoo.com (newcfd) Date: Tue, 2 Feb 2016 12:04:34 -0700 (MST) Subject: [vtkusers] Failure of vtkRenderingFreetypeModule In-Reply-To: References: Message-ID: <1454439874007-5736309.post@n5.nabble.com> #include VTK_MODULE_INIT(vtkInteractionStyle); VTK_MODULE_INIT(vtkRenderingFreeType); VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL); VTK_MODULE_INIT(vtkRenderingOpenGL); the initialization of these modules are not needed on Linux(Ubuntu and CentOS). They are indeed needed on Windows from my experience. -- View this message in context: http://vtk.1045678.n5.nabble.com/Failure-of-vtkRenderingFreetypeModule-tp5736296p5736309.html Sent from the VTK - Users mailing list archive at Nabble.com. From dave.demarle at kitware.com Tue Feb 2 16:09:02 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 2 Feb 2016 16:09:02 -0500 Subject: [vtkusers] VTK 7.0.0 Message-ID: Howdy, VTK 7.0.0 is released! For details see: https://blog.kitware.com/vtk-7-0-0/ A big round of applause to everyone who helped make it happen. enjoy! 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 laysrodriguessilva at gmail.com Tue Feb 2 20:01:15 2016 From: laysrodriguessilva at gmail.com (Lays Rodrigues) Date: Tue, 2 Feb 2016 23:01:15 -0200 Subject: [vtkusers] VTK and QML Message-ID: Hi guys, There's a way to bind VTK and QML? I really would like to use VTK on an app that I'm working for, but don't find any information about this kind of bind. Any tips about it? Att -- -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sslbb at yahoo.com Wed Feb 3 00:49:58 2016 From: sslbb at yahoo.com (Bjoern Bussewitz) Date: Wed, 3 Feb 2016 05:49:58 +0000 (UTC) Subject: [vtkusers] [ActiViz.NET 6.3] vtkLODActor not switching between levels of detail References: <1922486584.935439.1454478598472.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <1922486584.935439.1454478598472.JavaMail.yahoo@mail.yahoo.com> Hi, I'm using ActiViz.NET and recently upgraded from version 5.8 to 6.3. After migrating the existing code according to the "VTK 6?Migration Guide"[*],?the vtkLODActor doesn't seem to be working properly anymore. No matter what update rate I set on the vtkRenderWindowInteractor, the level of detail never changes. Moreover, the overall?rendering performance seems to be worse compared to the previous version I was using. Even without using any vtkLODActor at all. So, any guess on what I might be missing here? As this is my first post to the list, I say "hello everyone" and apologize for any mistakes I made. :) Cheers,Bjorn [*] This was solely achieved by replacing SetInputConnection() with SetInputData(). No changes were made to the any vtkActor whatsoever. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.kozlovsky at fr.thalesgroup.com Wed Feb 3 02:17:45 2016 From: nicolas.kozlovsky at fr.thalesgroup.com (KOZLOVSKY Nicolas) Date: Wed, 3 Feb 2016 08:17:45 +0100 Subject: [vtkusers] Failure of vtkRenderingFreetypeModule In-Reply-To: References: Message-ID: Hi Yan All what I know is that with 6.3, some renderer have disappeared and I had the same error with FreeType Renderer. I only keep OpenGL Renderer. #include VTK_MODULE_INIT(vtkInteractionStyle); VTK_MODULE_INIT(vtkRenderingOpenGL); And with cmake my code works perfectly well. -----Message d'origine----- De?: vtkusers [mailto:vtkusers-bounces at vtk.org] De la part de Yan Envoy??: mardi 2 f?vrier 2016 18:13 ??: vtkusers at public.kitware.com Objet?: Re: [vtkusers] Failure of vtkRenderingFreetypeModule KOZLOVSKY Nicolas fr.thalesgroup.com> writes: > > > Hi Yan > First I think you don't have to use the #define anymore (replaced by VTK_MODULE_INIT). > Secondly, you can remove the renderer that causes the problem and try > to run your code has now many things > have change. > > So try to remove this statement : > VTK_MODULE_INIT(vtkRenderingFreeType); > > -----Message d'origine----- > De?: vtkusers [mailto:vtkusers-bounces vtk.org] De la part de Yan > Envoy??: mardi 2 f?vrier 2016 12:10 ??: vtkusers > public.kitware.com Objet?: [vtkusers] Failure of > vtkRenderingFreetypeModule > > Hello, everyone, > > I'm working on migration my software from VTK 5.4 to 6.2. Now I'm confronting a problem. > > I have added the following codes in my c++ codes, which are overriding version like > vtkTemporalInterpolator etc. > > #include > VTK_MODULE_INIT(vtkInteractionStyle); > VTK_MODULE_INIT(vtkRenderingFreeType); > VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL); > VTK_MODULE_INIT(vtkRenderingOpenGL); > > #define vtkRenderingCore_AUTOINIT > 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRen > deringOpenGL) > #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) > > But compiling was success, but when I tried to operate my software, it gave me an error like this: > > import imoose.trinityNG.libvtkLocalNGPython as vtklocal > ImportError: > /storage/users/kruettgen/Liu5/pymoose/rc/install/lib/python2.7/site- > packages/imoose/trinityNG/libvtkLocalNG.so: undefined symbol: > _Z39vtkRenderingFreeType_AutoInit_Constructv > > Could someone please help me out of it. > > Thanks a lot. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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 > > Hi, Niclolas, first thank you for your replying. But the situation is that, it has first the error of undefined symbol: _Z39vtkRenderingFreeType_AutoInit_Constructv. Then I tried to add those codes in it. I have tried your way, but it doesn't work. Perhaps I should something to CMakeLists or somewhat? Someone said also that it is perhaps due to the circumstance of the system. What I used is LINUX. Thank you again. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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: M Nicolas KOZLOVSKY.vcf Type: text/x-vcard Size: 1589 bytes Desc: M Nicolas KOZLOVSKY.vcf URL: From elvis.stansvik at orexplore.com Wed Feb 3 02:18:44 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 3 Feb 2016 08:18:44 +0100 Subject: [vtkusers] Python 3 status and Debian/Ubuntu packages? Message-ID: Hi all, I'm new to VTK and I read the great news on this list that Python 3 support was finally being worked on last year. Anyone know what the status of the Python 3 support is? Anyone using VTK + Python 3 in a production application? Last question: Is anyone building Debian / *buntu packages of recent releases of VTK (against Python 3)? Cheers, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From maxheinrich1988 at gmail.com Wed Feb 3 02:38:18 2016 From: maxheinrich1988 at gmail.com (Max-Heinrich Laves) Date: Wed, 3 Feb 2016 08:38:18 +0100 Subject: [vtkusers] VTK and QML In-Reply-To: References: Message-ID: Hi Att, I was and am still looking for the same, especially VTK+QML on Android. The only thing I found was https://gist.github.com/the-max0r/35fb43ac43c6e18666c5 Unfortunately, when compiled with v7.0.0 (release) and OpenGL2 as render backend, the code segfaults at glBlendFuncSeparate in vtkOpenGLRenderWindow.cxx at line 373. With VTK 6.3.0 or 7.0 with OpenGL as render backend, the code runs as expected. But OpenGL2 is needed when compiled for Android. Max 2016-02-03 2:01 GMT+01:00 Lays Rodrigues : > Hi guys, > There's a way to bind VTK and QML? > I really would like to use VTK on an app that I'm working for, but don't > find any information about this kind of bind. > Any tips about it? > > Att > > -- > -- > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 ocomas at apelem.com Wed Feb 3 03:34:33 2016 From: ocomas at apelem.com (Olivier COMAS) Date: Wed, 3 Feb 2016 09:34:33 +0100 Subject: [vtkusers] VTK and QML In-Reply-To: References: Message-ID: <56B1BB99.5090801@apelem.com> Hi guys, Look at this page instead: https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6. The one Max gave was forked from it. Not sure what are the differences but look at the comments below the link I just provided. There is some discussion about the OpenGL2 render backend. I managed to make it work and I put in the comments how I did it (comaso). Hope this helps. Olivier Le 03/02/2016 08:38, Max-Heinrich Laves a ?crit : > Hi Att, > I was and am still looking for the same, especially VTK+QML on > Android. The only thing I found was > https://gist.github.com/the-max0r/35fb43ac43c6e18666c5 > Unfortunately, when compiled with v7.0.0 (release) and OpenGL2 as > render backend, the code segfaults at glBlendFuncSeparate in > vtkOpenGLRenderWindow.cxx at line 373. With VTK 6.3.0 or 7.0 with > OpenGL as render backend, the code runs as expected. But OpenGL2 is > needed when compiled for Android. > > Max > > 2016-02-03 2:01 GMT+01:00 Lays Rodrigues >: > > Hi guys, > There's a way to bind VTK and QML? > I really would like to use VTK on an app that I'm working for, but > don't find any information about this kind of bind. > Any tips about it? > > Att > > -- > -- > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 maxheinrich1988 at gmail.com Wed Feb 3 03:39:17 2016 From: maxheinrich1988 at gmail.com (Max-Heinrich Laves) Date: Wed, 3 Feb 2016 09:39:17 +0100 Subject: [vtkusers] VTK and QML In-Reply-To: <56B1BB99.5090801@apelem.com> References: <56B1BB99.5090801@apelem.com> Message-ID: Hi Oliver, sorry, that was my own fork on Github. I'll have a look at the comments by comaso. He/she seems to have it running with OpenGL2 render backend. Thanks! Max 2016-02-03 9:34 GMT+01:00 Olivier COMAS : > Hi guys, > > Look at this page instead: > https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6. The one Max gave > was forked from it. Not sure what are the differences but look at the > comments below the link I just provided. There is some discussion about the > OpenGL2 render backend. I managed to make it work and I put in the comments > how I did it (comaso). > > Hope this helps. > > Olivier > > > Le 03/02/2016 08:38, Max-Heinrich Laves a ?crit : > > Hi Att, > I was and am still looking for the same, especially VTK+QML on Android. > The only thing I found was > > https://gist.github.com/the-max0r/35fb43ac43c6e18666c5 > Unfortunately, when compiled with v7.0.0 (release) and OpenGL2 as render > backend, the code segfaults at glBlendFuncSeparate in vtkOpenGLRenderWindow.cxx > at line 373. With VTK 6.3.0 or 7.0 with OpenGL as render backend, the code > runs as expected. But OpenGL2 is needed when compiled for Android. > > Max > > 2016-02-03 2:01 GMT+01:00 Lays Rodrigues : > >> Hi guys, >> There's a way to bind VTK and QML? >> I really would like to use VTK on an app that I'm working for, but don't >> find any information about this kind of bind. >> Any tips about it? >> >> Att >> >> -- >> -- >> >> >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe:http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocomas at apelem.com Wed Feb 3 04:07:36 2016 From: ocomas at apelem.com (Olivier COMAS) Date: Wed, 3 Feb 2016 10:07:36 +0100 Subject: [vtkusers] VTK and QML In-Reply-To: References: <56B1BB99.5090801@apelem.com> Message-ID: <56B1C358.2010801@apelem.com> Hi Max, I'm comaso on GitHub ;-) There's probably nothing wrong with your own fork, I just meant that the original repository had comments discussing the OpenGL2 render backend. Let me know if you had troubles understanding how I made it work. I was reporting my progress while I was working on it so you have to put the pieces together by reading all comments. Cheers, Olivier Le 03/02/2016 09:39, Max-Heinrich Laves a ?crit : > Hi Oliver, > > sorry, that was my own fork on Github. I'll have a look at the > comments by comaso. He/she seems to have it running with OpenGL2 > render backend. > > Thanks! > Max > > 2016-02-03 9:34 GMT+01:00 Olivier COMAS >: > > Hi guys, > > Look at this page instead: > https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6. The one > Max gave was forked from it. Not sure what are the differences but > look at the comments below the link I just provided. There is some > discussion about the OpenGL2 render backend. I managed to make it > work and I put in the comments how I did it (comaso). > > Hope this helps. > > Olivier > > > Le 03/02/2016 08:38, Max-Heinrich Laves a ?crit : >> Hi Att, >> I was and am still looking for the same, especially VTK+QML on >> Android. The only thing I found was >> https://gist.github.com/the-max0r/35fb43ac43c6e18666c5 >> Unfortunately, when compiled with v7.0.0 (release) and OpenGL2 as >> render backend, the code segfaults at glBlendFuncSeparate in >> vtkOpenGLRenderWindow.cxx at line 373. With VTK 6.3.0 or 7.0 with >> OpenGL as render backend, the code runs as expected. But OpenGL2 >> is needed when compiled for Android. >> >> Max >> >> 2016-02-03 2:01 GMT+01:00 Lays Rodrigues >> >: >> >> Hi guys, >> There's a way to bind VTK and QML? >> I really would like to use VTK on an app that I'm working >> for, but don't find any information about this kind of bind. >> Any tips about it? >> >> Att >> >> -- >> -- >> >> >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 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 > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 maxheinrich1988 at gmail.com Wed Feb 3 04:22:04 2016 From: maxheinrich1988 at gmail.com (Max-Heinrich Laves) Date: Wed, 3 Feb 2016 10:22:04 +0100 Subject: [vtkusers] VTK and QML In-Reply-To: <56B1C358.2010801@apelem.com> References: <56B1BB99.5090801@apelem.com> <56B1C358.2010801@apelem.com> Message-ID: Hi Oliver, just after pressing 'send', I realised you are comaso on GitHub ;-) When building VTK for x86, you can enable the external rendering module with 'Module_vtkRenderingExternal=ON' which gives access to vtkExternalOpenGLRenderWindow class. Unfortunately, this option is not available when building for Android, so subclassing vtkGenericOpenGLRenderWindow seems to be necessary. Or am I wrong? Thanks, Max 2016-02-03 10:07 GMT+01:00 Olivier COMAS : > Hi Max, > > I'm comaso on GitHub ;-) > > There's probably nothing wrong with your own fork, I just meant that the > original repository had comments discussing the OpenGL2 render backend. Let > me know if you had troubles understanding how I made it work. I was > reporting my progress while I was working on it so you have to put the > pieces together by reading all comments. > > Cheers, > > Olivier > > > Le 03/02/2016 09:39, Max-Heinrich Laves a ?crit : > > Hi Oliver, > > sorry, that was my own fork on Github. I'll have a look at the comments by > comaso. He/she seems to have it running with OpenGL2 render backend. > > Thanks! > Max > > 2016-02-03 9:34 GMT+01:00 Olivier COMAS : > >> Hi guys, >> >> Look at this page instead: >> https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6. The one Max gave >> was forked from it. Not sure what are the differences but look at the >> comments below the link I just provided. There is some discussion about the >> OpenGL2 render backend. I managed to make it work and I put in the comments >> how I did it (comaso). >> >> Hope this helps. >> >> Olivier >> >> >> Le 03/02/2016 08:38, Max-Heinrich Laves a ?crit : >> >> Hi Att, >> I was and am still looking for the same, especially VTK+QML on Android. >> The only thing I found was >> https://gist.github.com/the-max0r/35fb43ac43c6e18666c5 >> Unfortunately, when compiled with v7.0.0 (release) and OpenGL2 as render >> backend, the code segfaults at glBlendFuncSeparate in vtkOpenGLRenderWindow.cxx >> at line 373. With VTK 6.3.0 or 7.0 with OpenGL as render backend, the code >> runs as expected. But OpenGL2 is needed when compiled for Android. >> >> Max >> >> 2016-02-03 2:01 GMT+01:00 Lays Rodrigues < >> laysrodriguessilva at gmail.com>: >> >>> Hi guys, >>> There's a way to bind VTK and QML? >>> I really would like to use VTK on an app that I'm working for, but don't >>> find any information about this kind of bind. >>> Any tips about it? >>> >>> Att >>> >>> -- >>> -- >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: >>> http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe:http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe:http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 3 04:27:02 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 3 Feb 2016 10:27:02 +0100 Subject: [vtkusers] On-demand loading of volume data Message-ID: Hi all, I'm working on tool for visualizing and working with tomography and spectrometry data coming from the analysis of drill cores. One of the views in the program is supposed to be a vertical view of the entire bore hole, with a scale showing the depth down the hole, with some charts showing analysis results (mostly element concentrations) along the the hole. Now to my VTK-related question: At low zoom levels, the view should just show a schematic view of the drill core (essentially just a rectangle), but at higher zoom levels, where less than ~3 meters of core is in view, slices through the volumes obtained from our tomography should be used to visualize the core. The attached rough UI sketch explains the setup much better than I can with just words. The idea is to use VTK for the visualization of the core at higher zoom levels. Since the volumetric data for the entire (~1000 m) core is huge, it obviously can't be loaded into a VTK pipeline all at once. Some kind of on demand loading is required. So my questions are: 1) What (if any) mechanisms does VTK provide for loading volume data on demand, based on what region of space is currently shown in the view presented to the user? 2) How would you go about tackling this visualization problem using VTK? Any pointers and advise is highly welcome, as I'm completely new to VTK. An overall requirement is that the UI should be reasonably responsive while scrolling the view at high zoom levels. Obviously there will be some time required for VTK to render the new volume data when the scrolling stops, but the scrolling itself should not be jerky. The program is to be run on a reasonably fast laptop. Best regards, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hole-view-sketch.pdf Type: application/pdf Size: 130309 bytes Desc: not available URL: From ocomas at apelem.com Wed Feb 3 04:30:41 2016 From: ocomas at apelem.com (Olivier COMAS) Date: Wed, 3 Feb 2016 10:30:41 +0100 Subject: [vtkusers] VTK and QML In-Reply-To: References: <56B1BB99.5090801@apelem.com> <56B1C358.2010801@apelem.com> Message-ID: <56B1C8C1.7070603@apelem.com> Hi Max, I don't know about Android. I was replying about the OpenGL2 render backend and QML as asked by Att. If the option Module_vtkRenderingExternal is not available for Android maybe someone at Kitware can explain why and suggest workarounds. In the header of vtkExternalOpenGLRenderWindow we have the following: "This class extends vtkGenericOpenGLRenderWindow to allow sharing the same OpenGL context by various visualization applications. Basically, this class prevents VTK from creating a new OpenGL context. Thus, it requires that an OpenGL context be initialized before Render is called." It clearly states that it prevents VTK from creating a new OpenGL context. Which is probably not the case with the other classes and it makes things more complicated with Qt. There is probably a way to make things work but I don't know how. Good luck. O. Le 03/02/2016 10:22, Max-Heinrich Laves a ?crit : > Hi Oliver, > > just after pressing 'send', I realised you are comaso on GitHub ;-) > > When building VTK for x86, you can enable the external rendering > module with 'Module_vtkRenderingExternal=ON' which gives access to > vtkExternalOpenGLRenderWindow class. Unfortunately, this option is not > available when building for Android, so subclassing > vtkGenericOpenGLRenderWindow seems to be necessary. Or am I wrong? > > Thanks, > Max > > 2016-02-03 10:07 GMT+01:00 Olivier COMAS >: > > Hi Max, > > I'm comaso on GitHub ;-) > > There's probably nothing wrong with your own fork, I just meant > that the original repository had comments discussing the OpenGL2 > render backend. Let me know if you had troubles understanding how > I made it work. I was reporting my progress while I was working on > it so you have to put the pieces together by reading all comments. > > Cheers, > > Olivier > > > Le 03/02/2016 09:39, Max-Heinrich Laves a ?crit : >> Hi Oliver, >> >> sorry, that was my own fork on Github. I'll have a look at the >> comments by comaso. He/she seems to have it running with OpenGL2 >> render backend. >> >> Thanks! >> Max >> >> 2016-02-03 9:34 GMT+01:00 Olivier COMAS > >: >> >> Hi guys, >> >> Look at this page instead: >> https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6. The >> one Max gave was forked from it. Not sure what are the >> differences but look at the comments below the link I just >> provided. There is some discussion about the OpenGL2 render >> backend. I managed to make it work and I put in the comments >> how I did it (comaso). >> >> Hope this helps. >> >> Olivier >> >> >> Le 03/02/2016 08:38, Max-Heinrich Laves a ?crit : >>> Hi Att, >>> I was and am still looking for the same, especially VTK+QML >>> on Android. The only thing I found was >>> https://gist.github.com/the-max0r/35fb43ac43c6e18666c5 >>> Unfortunately, when compiled with v7.0.0 (release) and >>> OpenGL2 as render backend, the code segfaults at >>> glBlendFuncSeparate in vtkOpenGLRenderWindow.cxx at line >>> 373. With VTK 6.3.0 or 7.0 with OpenGL as render backend, >>> the code runs as expected. But OpenGL2 is needed when >>> compiled for Android. >>> >>> Max >>> >>> 2016-02-03 2:01 GMT+01:00 Lays Rodrigues >>> >> >: >>> >>> Hi guys, >>> There's a way to bind VTK and QML? >>> I really would like to use VTK on an app that I'm >>> working for, but don't find any information about this >>> kind of bind. >>> Any tips about it? >>> >>> Att >>> >>> -- >>> -- >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> 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 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 >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 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 > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 vincentrivola at hotmail.com Wed Feb 3 07:44:06 2016 From: vincentrivola at hotmail.com (vincentrivola) Date: Wed, 3 Feb 2016 05:44:06 -0700 (MST) Subject: [vtkusers] UseShadowsOn makes VTK 7.0.0 crash Message-ID: <1454503446008-5736324.post@n5.nabble.com> Dear all, First of all, I wanted to thank VTK developpers because they did an incredible job with this new release. I just made the switch between 6.3.0 and 7.0.0 on one of my application and it became so much faster that it was hard to believe it ! Then I wanted to test one of the new features /mod of 7.0.0 which is the shadow handling. I use the JAVA wrapper for VTK and included the following line in my code: panel3d.GetRenderer().SetUseShadows(1); or panel3d.GetRenderer().UseShadowsOn(); This line makes my code crash with the following error message: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffc1a81bc29, pid=14128, tid=12324 # # JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.65-b01 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [vtkRenderingOpenGL2.dll+0x8bc29] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Users\Vincent\workspace\SEIS_LMT_v2\hs_err_pid14128.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Apparently the crash is comming from outside the java wrapper. Should I do something special when compiling VTK in order to be able to use this feature? Thanks in advance for any help you can provide. Vincent -- View this message in context: http://vtk.1045678.n5.nabble.com/UseShadowsOn-makes-VTK-7-0-0-crash-tp5736324.html Sent from the VTK - Users mailing list archive at Nabble.com. From dkxls23 at gmail.com Wed Feb 3 07:51:06 2016 From: dkxls23 at gmail.com (Armin Wehrfritz) Date: Wed, 3 Feb 2016 14:51:06 +0200 Subject: [vtkusers] Python 3 status and Debian/Ubuntu packages? In-Reply-To: References: Message-ID: <56B1F7BA.2050109@gmail.com> VTK 7.0 has support for Python 3, for more details see: https://blog.kitware.com/vtk-7-0-0/ -Armin On 02/03/2016 09:18 AM, Elvis Stansvik wrote: > Hi all, > > I'm new to VTK and I read the great news on this list that Python 3 > support was finally being worked on last year. Anyone know what the > status of the Python 3 support is? Anyone using VTK + Python 3 in a > production application? > > Last question: Is anyone building Debian / *buntu packages of recent > releases of VTK (against Python 3)? > > Cheers, > Elvis > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From elvis.stansvik at orexplore.com Wed Feb 3 07:56:32 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 3 Feb 2016 13:56:32 +0100 Subject: [vtkusers] Python 3 status and Debian/Ubuntu packages? In-Reply-To: <56B1F7BA.2050109@gmail.com> References: <56B1F7BA.2050109@gmail.com> Message-ID: 2016-02-03 13:51 GMT+01:00 Armin Wehrfritz : > VTK 7.0 has support for Python 3, for more details see: > https://blog.kitware.com/vtk-7-0-0/ > > Ah yes, thanks Armin. Do you know if all of VTK should work, or if there are still parts which only work under Python 2? Anyone using Python 3 who has hit any roadbumps? That only leaves the question about Debian/*buntu packages, but I guess there are none, seeing as 7.0 is still a release candidate? Elvis > -Armin > > > > On 02/03/2016 09:18 AM, Elvis Stansvik wrote: > >> Hi all, >> >> I'm new to VTK and I read the great news on this list that Python 3 >> support was finally being worked on last year. Anyone know what the >> status of the Python 3 support is? Anyone using VTK + Python 3 in a >> production application? >> >> Last question: Is anyone building Debian / *buntu packages of recent >> releases of VTK (against Python 3)? >> >> Cheers, >> Elvis >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 3 07:58:01 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 3 Feb 2016 13:58:01 +0100 Subject: [vtkusers] Python 3 status and Debian/Ubuntu packages? In-Reply-To: References: <56B1F7BA.2050109@gmail.com> Message-ID: 2016-02-03 13:56 GMT+01:00 Elvis Stansvik : > 2016-02-03 13:51 GMT+01:00 Armin Wehrfritz : > >> VTK 7.0 has support for Python 3, for more details see: >> https://blog.kitware.com/vtk-7-0-0/ >> >> > Ah yes, thanks Armin. Do you know if all of VTK should work, or if there > are still parts which only work under Python 2? > > Anyone using Python 3 who has hit any roadbumps? > > That only leaves the question about Debian/*buntu packages, but I guess > there are none, seeing as 7.0 is still a release candidate? > Sorry, my bad, 7.0 final is actually released :) Elvis > > Elvis > > >> -Armin >> >> >> >> On 02/03/2016 09:18 AM, Elvis Stansvik wrote: >> >>> Hi all, >>> >>> I'm new to VTK and I read the great news on this list that Python 3 >>> support was finally being worked on last year. Anyone know what the >>> status of the Python 3 support is? Anyone using VTK + Python 3 in a >>> production application? >>> >>> Last question: Is anyone building Debian / *buntu packages of recent >>> releases of VTK (against Python 3)? >>> >>> Cheers, >>> Elvis >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Wed Feb 3 08:10:05 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 3 Feb 2016 06:10:05 -0700 (MST) Subject: [vtkusers] setOrigin() of plane is slowing the rendering In-Reply-To: References: <1454434392380-5736303.post@n5.nabble.com> <1454436336240-5736307.post@n5.nabble.com> Message-ID: <1454505005463-5736328.post@n5.nabble.com> Hi Sebastien, Thanks for the reminder. I'm actually aware of that, but still the problem remains that the plane's translations (and rotations I guess, I haven't tried so far) are terrible slow compared to any other translation or rotation I perform. I'm guessing that the way I do it (setting the normal and origin) is probably not the best one and that there are quicker and better alternatives. Am I right? -- View this message in context: http://vtk.1045678.n5.nabble.com/setOrigin-of-plane-is-slowing-the-rendering-tp5736303p5736328.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Wed Feb 3 08:59:40 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 3 Feb 2016 06:59:40 -0700 Subject: [vtkusers] Python 3 status and Debian/Ubuntu packages? In-Reply-To: References: <56B1F7BA.2050109@gmail.com> Message-ID: Hi Elvis, In the VTK 7 source, support for Python 3 is on par with Python 2. There are no missing features that I am aware of, and all the testing and support code was updated to use Python 3. However, I'm not aware of anyone providing binary packages for Python 3 and VTK yet. I don't know of anywhere to get ubuntu packages for VTK other than the official packages from debian (and I'm not sure what version they provide). - David On Wed, Feb 3, 2016 at 5:58 AM, Elvis Stansvik wrote: > 2016-02-03 13:56 GMT+01:00 Elvis Stansvik : > >> 2016-02-03 13:51 GMT+01:00 Armin Wehrfritz : >> >>> VTK 7.0 has support for Python 3, for more details see: >>> https://blog.kitware.com/vtk-7-0-0/ >>> >>> >> Ah yes, thanks Armin. Do you know if all of VTK should work, or if there >> are still parts which only work under Python 2? >> >> Anyone using Python 3 who has hit any roadbumps? >> >> That only leaves the question about Debian/*buntu packages, but I guess >> there are none, seeing as 7.0 is still a release candidate? >> > > Sorry, my bad, 7.0 final is actually released :) > > Elvis > > >> >> Elvis >> >> >>> -Armin >>> >>> >>> >>> On 02/03/2016 09:18 AM, Elvis Stansvik wrote: >>> >>>> Hi all, >>>> >>>> I'm new to VTK and I read the great news on this list that Python 3 >>>> support was finally being worked on last year. Anyone know what the >>>> status of the Python 3 support is? Anyone using VTK + Python 3 in a >>>> production application? >>>> >>>> Last question: Is anyone building Debian / *buntu packages of recent >>>> releases of VTK (against Python 3)? >>>> >>>> Cheers, >>>> Elvis >>>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.ecamargo at gmail.com Wed Feb 3 09:03:52 2016 From: eduardo.ecamargo at gmail.com (Eduardo - Gmail) Date: Wed, 3 Feb 2016 12:03:52 -0200 Subject: [vtkusers] OFF TOPIC Message-ID: Hi , my friends!! First of all, sorry for this off topic message but I have to ask for help. Well, I will move from Brazil to Canada (Vancouver) in next March and I was wondering if there is someone, or some company, that is using VTK. I have a lot of experience in software development using VTK/ITK and I want to work with it in Vancouver, if someone could help me I will apreciate. This is my LinkedIn profile https://ca.linkedin.com/in/camargoeduardo Atenciosamente, Eduardo Camargo, M.Sc. Analista de Sistemas Instituto Nacional de Ci?ncia e Tecnologia em Medicina Assistida por Computa??o Cient?fica INCT-MACC http://macc.lncc.br Laborat?rio Nacional de Computa??o Cient?fica LNCC - http://www.lncc.br Skype: camargo_rh "Work hard toward your goals, no matter what obstacles get in your way. Even if you think you can?t do it, just be disciplined, put your mind to it, and then do your best." - Jean Chiar - SETI Institute -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 3 09:10:52 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 3 Feb 2016 15:10:52 +0100 Subject: [vtkusers] Python 3 status and Debian/Ubuntu packages? In-Reply-To: References: <56B1F7BA.2050109@gmail.com> Message-ID: Hi David, 2016-02-03 14:59 GMT+01:00 David Gobbi : > Hi Elvis, > > In the VTK 7 source, support for Python 3 is on par with Python 2. There > are no missing features that I am aware of, and all the testing and support > code was updated to use Python 3. > Excellent. > > However, I'm not aware of anyone providing binary packages for Python 3 > and VTK yet. I don't know of anywhere to get ubuntu packages for VTK other > than the official packages from debian (and I'm not sure what version they > provide). > I think it's unfortunately a little old. I think it's 6.2 in the 15.10 repositories. I'm actually contemplating trying to build my own packages and provide them on a PPA (Personal Package Archive) on Launchpad. I'm a bit new to Debian packaging though (only packaged simple things before), but I think I can take inspiration from the existing 6.2 packages. I'll report back if I get anywhere with that. Thanks for the info and the Python 3 porting work! Elvis > - David > > > On Wed, Feb 3, 2016 at 5:58 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> 2016-02-03 13:56 GMT+01:00 Elvis Stansvik : >> >>> 2016-02-03 13:51 GMT+01:00 Armin Wehrfritz : >>> >>>> VTK 7.0 has support for Python 3, for more details see: >>>> https://blog.kitware.com/vtk-7-0-0/ >>>> >>>> >>> Ah yes, thanks Armin. Do you know if all of VTK should work, or if there >>> are still parts which only work under Python 2? >>> >>> Anyone using Python 3 who has hit any roadbumps? >>> >>> That only leaves the question about Debian/*buntu packages, but I guess >>> there are none, seeing as 7.0 is still a release candidate? >>> >> >> Sorry, my bad, 7.0 final is actually released :) >> >> Elvis >> >> >>> >>> Elvis >>> >>> >>>> -Armin >>>> >>>> >>>> >>>> On 02/03/2016 09:18 AM, Elvis Stansvik wrote: >>>> >>>>> Hi all, >>>>> >>>>> I'm new to VTK and I read the great news on this list that Python 3 >>>>> support was finally being worked on last year. Anyone know what the >>>>> status of the Python 3 support is? Anyone using VTK + Python 3 in a >>>>> production application? >>>>> >>>>> Last question: Is anyone building Debian / *buntu packages of recent >>>>> releases of VTK (against Python 3)? >>>>> >>>>> Cheers, >>>>> Elvis >>>>> >>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Feb 3 10:26:13 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 3 Feb 2016 10:26:13 -0500 Subject: [vtkusers] UseShadowsOn makes VTK 7.0.0 crash In-Reply-To: <1454503446008-5736324.post@n5.nabble.com> References: <1454503446008-5736324.post@n5.nabble.com> Message-ID: Hmm, we have a C++ test Rendering/OpenGL2/Testing/Cxx/TestShadowMapPass.cxx that I tried adjusting a bit to see if I could get it to fail but I could not. I do not have a Java build to test. If there is some other error output or stack trace maybe we could narrow it down. Thanks Ken On Wed, Feb 3, 2016 at 7:44 AM, vincentrivola wrote: > Dear all, > > First of all, I wanted to thank VTK developpers because they did an > incredible job with this new release. I just made the switch between 6.3.0 > and 7.0.0 on one of my application and it became so much faster that it was > hard to believe it ! > > Then I wanted to test one of the new features /mod of 7.0.0 which is the > shadow handling. I use the JAVA wrapper for VTK and included the following > line in my code: > panel3d.GetRenderer().SetUseShadows(1); > or panel3d.GetRenderer().UseShadowsOn(); > > This line makes my code crash with the following error message: > # > # A fatal error has been detected by the Java Runtime Environment: > # > # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffc1a81bc29, > pid=14128, tid=12324 > # > # JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build > 1.8.0_65-b17) > # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.65-b01 mixed mode > windows-amd64 compressed oops) > # Problematic frame: > # C [vtkRenderingOpenGL2.dll+0x8bc29] > # > # Failed to write core dump. Minidumps are not enabled by default on client > versions of Windows > # > # An error report file with more information is saved as: > # C:\Users\Vincent\workspace\SEIS_LMT_v2\hs_err_pid14128.log > # > # If you would like to submit a bug report, please visit: > # http://bugreport.java.com/bugreport/crash.jsp > # The crash happened outside the Java Virtual Machine in native code. > # See problematic frame for where to report the bug. > # > > Apparently the crash is comming from outside the java wrapper. Should I do > something special when compiling VTK in order to be able to use this > feature? > > Thanks in advance for any help you can provide. > > Vincent > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/UseShadowsOn-makes-VTK-7-0-0-crash-tp5736324.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Wed Feb 3 10:26:24 2016 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 3 Feb 2016 10:26:24 -0500 Subject: [vtkusers] [vtk-developers] VTK 7.0.0 In-Reply-To: References: Message-ID: Congratulations on the release! The Python 3 support is particularly exciting. ITK 4.9.0 was also released today, and it is worth noting that the ITKVtkGlue modules that bridges ITK-VTK pipelines now also supports Python 3 wrapping! On Tue, Feb 2, 2016 at 4:09 PM, David E DeMarle wrote: > Howdy, > > VTK 7.0.0 is released! For details see: > > https://blog.kitware.com/vtk-7-0-0/ > > A big round of applause to everyone who helped make it happen. > > enjoy! > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > From elvis.stansvik at orexplore.com Wed Feb 3 10:34:48 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 3 Feb 2016 16:34:48 +0100 Subject: [vtkusers] Python 3 status and Debian/Ubuntu packages? In-Reply-To: References: <56B1F7BA.2050109@gmail.com> Message-ID: 2016-02-03 15:10 GMT+01:00 Elvis Stansvik : > Hi David, > > 2016-02-03 14:59 GMT+01:00 David Gobbi : > >> Hi Elvis, >> >> In the VTK 7 source, support for Python 3 is on par with Python 2. There >> are no missing features that I am aware of, and all the testing and support >> code was updated to use Python 3. >> > > Excellent. > > >> >> However, I'm not aware of anyone providing binary packages for Python 3 >> and VTK yet. I don't know of anywhere to get ubuntu packages for VTK other >> than the official packages from debian (and I'm not sure what version they >> provide). >> > > I think it's unfortunately a little old. I think it's 6.2 in the 15.10 > repositories. > > I'm actually contemplating trying to build my own packages and provide > them on a PPA (Personal Package Archive) on Launchpad. I'm a bit new to > Debian packaging though (only packaged simple things before), but I think I > can take inspiration from the existing 6.2 packages. > > I'll report back if I get anywhere with that. > I see now that vtk7 is listed as "being packaged": https://www.debian.org/devel/wnpp/being_packaged So it's probably better I just wait and let the fine experienced Debian packagers do their thing :) Elvis > Thanks for the info and the Python 3 porting work! > > Elvis > > >> - David >> >> >> On Wed, Feb 3, 2016 at 5:58 AM, Elvis Stansvik < >> elvis.stansvik at orexplore.com> wrote: >> >>> 2016-02-03 13:56 GMT+01:00 Elvis Stansvik >>> : >>> >>>> 2016-02-03 13:51 GMT+01:00 Armin Wehrfritz : >>>> >>>>> VTK 7.0 has support for Python 3, for more details see: >>>>> https://blog.kitware.com/vtk-7-0-0/ >>>>> >>>>> >>>> Ah yes, thanks Armin. Do you know if all of VTK should work, or if >>>> there are still parts which only work under Python 2? >>>> >>>> Anyone using Python 3 who has hit any roadbumps? >>>> >>>> That only leaves the question about Debian/*buntu packages, but I guess >>>> there are none, seeing as 7.0 is still a release candidate? >>>> >>> >>> Sorry, my bad, 7.0 final is actually released :) >>> >>> Elvis >>> >>> >>>> >>>> Elvis >>>> >>>> >>>>> -Armin >>>>> >>>>> >>>>> >>>>> On 02/03/2016 09:18 AM, Elvis Stansvik wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> I'm new to VTK and I read the great news on this list that Python 3 >>>>>> support was finally being worked on last year. Anyone know what the >>>>>> status of the Python 3 support is? Anyone using VTK + Python 3 in a >>>>>> production application? >>>>>> >>>>>> Last question: Is anyone building Debian / *buntu packages of recent >>>>>> releases of VTK (against Python 3)? >>>>>> >>>>>> Cheers, >>>>>> Elvis >>>>>> >>>>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincentrivola at hotmail.com Wed Feb 3 10:37:52 2016 From: vincentrivola at hotmail.com (vincentrivola) Date: Wed, 3 Feb 2016 08:37:52 -0700 (MST) Subject: [vtkusers] UseShadowsOn makes VTK 7.0.0 crash In-Reply-To: References: <1454503446008-5736324.post@n5.nabble.com> Message-ID: <1454513872737-5736338.post@n5.nabble.com> Hi Ken, Thanks for your reply. In my case I only added the line indicated in my previous post. Its was just a test since as you indicate in the release note, the default head light won't have a specific effect on the scene shadows. However I was not expecting it to crash. So I would like to resolve this issue first before spending more time on adding specific lights and place them correctly. Unless this is the reason for the crash. I add you the log written which might help you figure out what went wrong? hs_err_pid2960.log -- View this message in context: http://vtk.1045678.n5.nabble.com/UseShadowsOn-makes-VTK-7-0-0-crash-tp5736324p5736338.html Sent from the VTK - Users mailing list archive at Nabble.com. From andy.bauer at kitware.com Wed Feb 3 11:09:30 2016 From: andy.bauer at kitware.com (Andy Bauer) Date: Wed, 3 Feb 2016 11:09:30 -0500 Subject: [vtkusers] Tuple ordering of 2nd order tensors and changes to vtkCellDerivatives Message-ID: Hi, I wanted to inform everyone that there is some inconsistencies in the way 2nd order tensors are represented in VTK data arrays. The vtkGradientFilter outputs in C/row-major ordering while the vtkCellDerivatives filter outputs in Fortran/column-major ordering. There are other inconsistencies to this as well. Officially, VTK uses C/row-major ordering for tuples. An example of this is the vtkCell::Derivatives() method ( http://www.vtk.org/doc/nightly/html/classvtkCell.html#aff3d8332e9d7d556a9d2e9f91173d068). Martin Genet has brought this inconsistency to light with his work on vtkCellDerivatives in changing this to row-major ordering output. 40e05b6a is his commit that fixed this issue for the filter, its documentation and how vector_gradient and strain are computed in the VTK numpy interface. He additionally removed the vtkTensor which was only used by vtkCellDerivatives to transpose the 2nd order tensor's output. There may be other 2nd order tensor ordering inconsistencies in VTK that should be cleaned up as well and we hope to address those ASAP. The most difficult of these will likely be in the readers that bring in 2nd order tensors. I would encourage those that are familiar with specific readers to spend a couple of minutes verifying the correct ordering from them. I'll be adding in notes about this fix to Documentation/Doxygen/ChangesVTK-7-1.md shortly. Best regards, Andy ps. A big thanks to Martin for his fixes and his patience on getting this through! This is his second and third commit to VTK. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Wed Feb 3 11:19:39 2016 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 3 Feb 2016 11:19:39 -0500 Subject: [vtkusers] Python 3 status and Debian/Ubuntu packages? In-Reply-To: References: <56B1F7BA.2050109@gmail.com> Message-ID: <20160203161939.GC1800@megas.kitware.com> On Wed, Feb 03, 2016 at 13:56:32 +0100, Elvis Stansvik wrote: > Ah yes, thanks Armin. Do you know if all of VTK should work, or if there > are still parts which only work under Python 2? VTK should work (we test 3.2, 3.3, and 3.4 right now, but I don't see a reason 3.5 shouldn't work either). I also don't know of any code which is conditional based on the Python version. One thing to note is that ParaView has *not* been updated to be Python3 compatible itself yet. --Ben From henry.lehmann at informatik.tu-freiberg.de Wed Feb 3 13:47:17 2016 From: henry.lehmann at informatik.tu-freiberg.de (Henry Lehmann) Date: Wed, 3 Feb 2016 19:47:17 +0100 Subject: [vtkusers] SegFault on DeepCopy of vtk(Non)OverlappingAMR In-Reply-To: References: <50B20366-5B54-4718-81D7-3558B436951A@kitware.com> Message-ID: <56B24B35.6090102@informatik.tu-freiberg.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello, i am using ParaView 5.0.0 binary release from the website which comes with VTK 7.0. Running the Python script import vtk; a = vtk.vtkOverlappingAMR(); b = vtk.vtkOverlappingAMR(); a.DeepCopy(b); produces a segmentation fault. Can anybody reproduce this behavior with "vtkpython" or "pvpython"? Best regards, Henry -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWsksyAAoJEM0zIsxevdB28lIH+QF2dV44blNLTIBD9rnG+7Ax VgFmpa/hLd5HzMgEuxR1vzJmlhROeoS2vfIKKfYQluaZFKSlDN3Au2fjOD5Wk5Iv CGfYxTWT4UlRhpvNzyftdrpvfzU93J3cYR8RJuDM6XVAy89IyQqsTkUw68R73dRm uEJuBeHEgGBEiOclOaeaW83ZNhy4QrgP9r9isi1Dgce5Yuk/Uc6qZw0IJyoiWLCG e7nWilblKoUQwxDRkdAXqcqc8r5XoTvlI4Cf5qNslQKELoxcCK/JFRsRBmyI7iWj mgiHXJeRs9Z3f9hcODJQA0/whBj3gyo2FeQJGLEYcAfKHBUvzt6dhI/Oht+Ypzg= =NzzE -----END PGP SIGNATURE----- From angela.noecker at case.edu Wed Feb 3 14:42:41 2016 From: angela.noecker at case.edu (Angela Noecker) Date: Wed, 3 Feb 2016 14:42:41 -0500 Subject: [vtkusers] remove internal surfaces from polydata Message-ID: I have scoured the archives and I find that other people have had the same problem but I still can't find the solution. For the sake of ease, pretend you build two vtkCubeSources adjacent to one another and you want to combine them into one polydata with no "wall" in between. I can get the right external shape using vtkAppendPolyData and I can remove duplicate vertices using vtkCleanPolyData but how do I remove unneeded surfaces? I would've thought vtkDataSetSurfaceFilter would do the trick but it doesn't do anything to the data at all. Thanks in advance, Angela -- Angela Noecker Research Associate Neuromodulation Center Case Western Reserve University Wolstein Research Building 6221 2103 Cornell Rd Cleveland, Ohio, 44106 http://mcintyrelab.case.edu/ Tel: (216) 368 2797 Fax: (216) 368 1700 -------------- next part -------------- An HTML attachment was scrubbed... URL: From noeckera at gmail.com Wed Feb 3 16:56:58 2016 From: noeckera at gmail.com (Angela Noecker) Date: Wed, 3 Feb 2016 16:56:58 -0500 Subject: [vtkusers] remove internal surfaces from polydata Message-ID: I have scoured the archives and I find that other people have had the same problem but I still can't find the solution. For the sake of ease, pretend you build two vtkCubeSources adjacent to one another and you want to combine them into one polydata with no "wall" in between. I can get the right external shape using vtkAppendPolyData and I can remove duplicate vertices using vtkCleanPolyData but how do I remove unneeded surfaces? I would've thought vtkDataSetSurfaceFilter would do the trick but it doesn't do anything to the data at all. Thanks in advance, Angela -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Thu Feb 4 00:13:49 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 4 Feb 2016 00:13:49 -0500 Subject: [vtkusers] On-demand loading of volume data In-Reply-To: References: Message-ID: Hi Elvis, On Wed, Feb 3, 2016 at 4:27 AM, Elvis Stansvik wrote: > Hi all, > > I'm working on tool for visualizing and working with tomography and > spectrometry data coming from the analysis of drill cores. > > One of the views in the program is supposed to be a vertical view of the > entire bore hole, with a scale showing the depth down the hole, with some > charts showing analysis results (mostly element concentrations) along the > the hole. > > Now to my VTK-related question: At low zoom levels, the view should just > show a schematic view of the drill core (essentially just a rectangle), but > at higher zoom levels, where less than ~3 meters of core is in view, slices > through the volumes obtained from our tomography should be used to > visualize the core. The attached rough UI sketch explains the setup much > better than I can with just words. > > The idea is to use VTK for the visualization of the core at higher zoom > levels. Since the volumetric data for the entire (~1000 m) core is huge, it > obviously can't be loaded into a VTK pipeline all at once. Some kind of on > demand loading is required. So my questions are: > > 1) What (if any) mechanisms does VTK provide for loading volume data on > demand, based on what region of space is currently shown in the view > presented to the user? > Let me try to answer this question but someone who has looked into the pipeline more recently can provide a better answer. You can look into the vtk pipeline mechanism in detail specifically streaming demand drive pipeline ( http://www.vtk.org/doc/nightly/html/classvtkStreamingDemandDrivenPipeline.html#details). You can write new filters that will fetch only the relevant dataset using this pipeline. Also, it sounds to me that you may need to write you application in two threads. > > 2) How would you go about tackling this visualization problem using VTK? > Any pointers and advise is highly welcome, as I'm completely new to VTK. > Are you asking about What mappers to use? > > An overall requirement is that the UI should be reasonably responsive > while scrolling the view at high zoom levels. Obviously there will be some > time required for VTK to render the new volume data when the scrolling > stops, but the scrolling itself should not be jerky. The program is to be > run on a reasonably fast laptop. > > Thanks, > Best regards, > Elvis > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Feb 4 02:45:54 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 4 Feb 2016 08:45:54 +0100 Subject: [vtkusers] On-demand loading of volume data In-Reply-To: References: Message-ID: Den 4 feb 2016 6:13 fm skrev "Aashish Chaudhary" < aashish.chaudhary at kitware.com>: > > Hi Elvis, > > On Wed, Feb 3, 2016 at 4:27 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: >> >> Hi all, >> >> I'm working on tool for visualizing and working with tomography and spectrometry data coming from the analysis of drill cores. >> >> One of the views in the program is supposed to be a vertical view of the entire bore hole, with a scale showing the depth down the hole, with some charts showing analysis results (mostly element concentrations) along the the hole. >> >> Now to my VTK-related question: At low zoom levels, the view should just show a schematic view of the drill core (essentially just a rectangle), but at higher zoom levels, where less than ~3 meters of core is in view, slices through the volumes obtained from our tomography should be used to visualize the core. The attached rough UI sketch explains the setup much better than I can with just words. >> >> The idea is to use VTK for the visualization of the core at higher zoom levels. Since the volumetric data for the entire (~1000 m) core is huge, it obviously can't be loaded into a VTK pipeline all at once. Some kind of on demand loading is required. So my questions are: >> >> 1) What (if any) mechanisms does VTK provide for loading volume data on demand, based on what region of space is currently shown in the view presented to the user? > > > Let me try to answer this question but someone who has looked into the pipeline more recently can provide a better answer. You can look into the vtk pipeline mechanism in detail specifically streaming demand drive pipeline ( http://www.vtk.org/doc/nightly/html/classvtkStreamingDemandDrivenPipeline.html#details). You can write new filters that will fetch only the relevant dataset using this pipeline. Also, it sounds to me that you may need to write you application in two threads. Thanks a lot for the pointer Aashish, I'll look into that. Do you think writing custom filters is inevitable for this use case? Can custom filters be written in Python? (forgot to say I'm working from Python). Regarding threads, you mean to avoid blocking the UI thread? I'm a bit worried then, since I read threading can be a bit problematic with VTK. But maybe that was old news and the situation has improved since? I'm restricted to the version of VTK packaged in Ubuntu, which I think is currently 6.2. >> >> >> 2) How would you go about tackling this visualization problem using VTK? Any pointers and advise is highly welcome, as I'm completely new to VTK. > > > Are you asking about What mappers to use? Sorry, I should have been clearer. This was mostly meant as a general "how would you it?" question. Any advice from more experienced VTK users is golden to me. I think we'll be using the ray cast mapper for another view (where the user can rotate and look at a small piece of the core in 3D). For this full core view I'm not sure yet. What I do know is that we most likely want to show just slices through the volumes, and let the user adjust the angle around the z-axis. Elvis >> >> >> An overall requirement is that the UI should be reasonably responsive while scrolling the view at high zoom levels. Obviously there will be some time required for VTK to render the new volume data when the scrolling stops, but the scrolling itself should not be jerky. The program is to be run on a reasonably fast laptop. >> > > Thanks, > > >> >> Best regards, >> Elvis >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > | Aashish Chaudhary > | Technical Leader > | Kitware Inc. > | http://www.kitware.com/company/team/chaudhary.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Feb 4 03:53:50 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 4 Feb 2016 09:53:50 +0100 Subject: [vtkusers] On-demand loading of volume data In-Reply-To: References: Message-ID: 2016-02-04 6:13 GMT+01:00 Aashish Chaudhary : > Hi Elvis, > > On Wed, Feb 3, 2016 at 4:27 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> Hi all, >> >> I'm working on tool for visualizing and working with tomography and >> spectrometry data coming from the analysis of drill cores. >> >> One of the views in the program is supposed to be a vertical view of the >> entire bore hole, with a scale showing the depth down the hole, with some >> charts showing analysis results (mostly element concentrations) along the >> the hole. >> >> Now to my VTK-related question: At low zoom levels, the view should just >> show a schematic view of the drill core (essentially just a rectangle), but >> at higher zoom levels, where less than ~3 meters of core is in view, slices >> through the volumes obtained from our tomography should be used to >> visualize the core. The attached rough UI sketch explains the setup much >> better than I can with just words. >> >> The idea is to use VTK for the visualization of the core at higher zoom >> levels. Since the volumetric data for the entire (~1000 m) core is huge, it >> obviously can't be loaded into a VTK pipeline all at once. Some kind of on >> demand loading is required. So my questions are: >> >> 1) What (if any) mechanisms does VTK provide for loading volume data on >> demand, based on what region of space is currently shown in the view >> presented to the user? >> > > Let me try to answer this question but someone who has looked into the > pipeline more recently can provide a better answer. You can look into the > vtk pipeline mechanism in detail specifically streaming demand drive > pipeline ( > http://www.vtk.org/doc/nightly/html/classvtkStreamingDemandDrivenPipeline.html#details). > You can write new filters that will fetch only the relevant dataset using > this pipeline. Also, it sounds to me that you may need to write you > application in two threads. > I've had a look at the class docs now, but they are quite terse, and does not really explain how the class is meant to be used. The Examples link shows three examples which include the vtkStreamingDemandDrivenPipeline.h header: Examples/ImageProcessing/Cxx/ImageSlicing.cxx Examples/Infovis/Cxx/ParallelBFS.cxx Examples/ParallelProcessing/Generic/Cxx/ParallelIso.cxx But only ImageSlicing.cxx makes use of the class (and I'm not even sure it's using any of its features, since it just calls Get() with WHOLE_EXTENT() as key?). I found some good information in the wiki though: http://www.vtk.org/Wiki/VTK/Tutorials/New_Pipeline#vtkStreamingDemandDrivenPipeline http://www.vtk.org/Wiki/VTK/Streaming But the information is quite brief here as well. Anyone know of a fuller example, or even code in the wild, which makes use of the streaming demand driven pipeline to stream volume data from many volumes based on what is currently in view? I also noticed that the class docs says "This is the style of pipeline update that is provided by the old-style VTK 4.x pipeline.". Does this mean that there's a risk this will be deprecated in future version? Is there some other (newer) mechanism I should be using? Elvis > >> 2) How would you go about tackling this visualization problem using VTK? >> Any pointers and advise is highly welcome, as I'm completely new to VTK. >> > > Are you asking about What mappers to use? > >> >> An overall requirement is that the UI should be reasonably responsive >> while scrolling the view at high zoom levels. Obviously there will be some >> time required for VTK to render the new volume data when the scrolling >> stops, but the scrolling itself should not be jerky. The program is to be >> run on a reasonably fast laptop. >> >> > Thanks, > > > >> Best regards, >> Elvis >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vianamp at gmail.com Thu Feb 4 06:27:56 2016 From: vianamp at gmail.com (matheus_viana) Date: Thu, 4 Feb 2016 04:27:56 -0700 (MST) Subject: [vtkusers] typedef redefinition during VTK compilation Message-ID: <1454585276455-5736352.post@n5.nabble.com> Hi guys, I am trying to compile VTK 6.3 with non-shared libraries on OSX 10.10 but I got the error messages below. Does anyone know how to go around that? ... [ 68%] Built target vtkGeovisCore Scanning dependencies of target H5detect [ 68%] Building C object ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o In file included from /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:57: In file included from /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5private.h:37: /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5public.h:259:18: error: typedef redefinition with different types ('long' vs 'long long') typedef long int64_t; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_types/_int64_t.h:30:20: note: previous definition is here typedef long long int64_t; ^ In file included from /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:57: In file included from /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5private.h:37: /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5public.h:279:27: error: typedef redefinition with different types ('unsigned long' vs 'unsigned long long') typedef unsigned long uint64_t; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/_types/_uint64_t.h:31:28: note: previous definition is here typedef unsigned long long uint64_t; ^ 2 errors generated. make[2]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o] Error 1 make[1]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/all] Error 2 make: *** [all] Error 2 -- View this message in context: http://vtk.1045678.n5.nabble.com/typedef-redefinition-during-VTK-compilation-tp5736352.html Sent from the VTK - Users mailing list archive at Nabble.com. From wangq1979 at outlook.com Thu Feb 4 06:40:08 2016 From: wangq1979 at outlook.com (WangQ) Date: Thu, 4 Feb 2016 19:40:08 +0800 Subject: [vtkusers] how to quantify executing time Message-ID: Hello vtkusers, I wonder if there is any way to measure the executing time from very beginning till rendering finish in VTK? Seems conventional tic toc inapplicable to VTK. It would be great if can separate computation time, e.g. time for processing data, and rendering time. Cheers, Chiang -------------- next part -------------- An HTML attachment was scrubbed... URL: From liuyanbc157 at gmail.com Thu Feb 4 07:26:07 2016 From: liuyanbc157 at gmail.com (Yan) Date: Thu, 4 Feb 2016 12:26:07 +0000 (UTC) Subject: [vtkusers] Failure of vtkRenderingFreetypeModule References: <1454439874007-5736309.post@n5.nabble.com> Message-ID: newcfd via vtkusers vtk.org> writes: > > #include > VTK_MODULE_INIT(vtkInteractionStyle); > VTK_MODULE_INIT(vtkRenderingFreeType); > VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL); > VTK_MODULE_INIT(vtkRenderingOpenGL); > > the initialization of these modules are not needed on Linux(Ubuntu and > CentOS). They are indeed needed on Windows from > my experience. > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Failure-of- vtkRenderingFreetypeModule-tp5736296p5736309.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 > > Hi, Thank you for your replying. I have fixed it after searching some solutions in Internet. Someone said that there are some collision in VTK 6.2 . In Target Library it must be separated to get VTKRenderingFreeType etc. involved. But thanks again for your information. Mit vielen freundlichen Gr??en Yan From liuyanbc157 at gmail.com Thu Feb 4 08:10:19 2016 From: liuyanbc157 at gmail.com (Yan) Date: Thu, 4 Feb 2016 13:10:19 +0000 (UTC) Subject: [vtkusers] =?utf-8?q?Failure_of_VTK=5FMAKE=5FINSTANTIATOR3?= Message-ID: Hallo, everyone, I'm doing immigration from VTK 5.4 to VTK 6.2. I have solved compiling problem of VTK_MAKE_INSTANTIATOR3 (Unknown CMake command "VTK_MAKE_INSTANTIATOR3".) by adding innclude(${VTK_CMAKE_DIR}/vtkMakeInstantiator.cmake) to my CMakeLists.txt. It works. And it is for total software compiling. I have another part programm to my software based on VTK. The name of it is solvingwrapper. In it there are CMakeCache.txt CMakeLists.txt. It shows me that I need also use ccmake ./ to change VTK_DIR from VTK 5.4 to VTK 6.2. I have done it. But when i tried to configure (c) it. It shows me this failure: ABEMS will not be compiled due to missing BLAS and LAPACK CMake Error at source/Python/imoose/trinityNG/widget/filter/vtkLocal/CMakeLists.txt:85 (VTK_MAKE_INSTANTIATOR3): Unknown CMake command "VTK_MAKE_INSTANTIATOR3". But actually like I said, I have already added include(${VTK_CMAKE_DIR}/vtkMakeInstantiator.cmake) to source/Python/imoose/trinityNG/widget/filter/vtkLocal/CMakeLists.txt, so that by compiling the whole system there is no more failure. Just by operating the software, it shows me that I must change VTK_DIR in solvingwrapper. When I have changed, then there is the failure. So I'm confused with this. I really don't know where comes this problem, and how to solve it. Thanks. Yan Liu From vincentrivola at hotmail.com Thu Feb 4 09:41:44 2016 From: vincentrivola at hotmail.com (vincentrivola) Date: Thu, 4 Feb 2016 07:41:44 -0700 (MST) Subject: [vtkusers] UseShadowsOn makes VTK 7.0.0 crash In-Reply-To: <1454513872737-5736338.post@n5.nabble.com> References: <1454503446008-5736324.post@n5.nabble.com> <1454513872737-5736338.post@n5.nabble.com> Message-ID: <1454596904928-5736358.post@n5.nabble.com> I forgot to add that my panel3d is a vtkCanvas which extends vtkPanel in which the class variable ren is a vtkRenderer. Should it be a vtkOpenGLRenderer instead of general type vtkRenderer in order to make it work or it does not make any difference? -- View this message in context: http://vtk.1045678.n5.nabble.com/UseShadowsOn-makes-VTK-7-0-0-crash-tp5736324p5736358.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Thu Feb 4 10:16:38 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 4 Feb 2016 16:16:38 +0100 Subject: [vtkusers] VTK 6.2 and PyQt5? Message-ID: Hi all, I have the same question as Alex on this list had in April last year: http://markmail.org/message/i3e4dxwxqravlaf3 Is it possible to use PyQt5 with VTK 6.2? I'm on a *buntu system, and the python-vtk6 package installs the following Qt related files: estan at newton:~$ dpkg -L python-vtk6 | grep -i qt /usr/lib/python2.7/dist-packages/vtk/qt4 /usr/lib/python2.7/dist-packages/vtk/qt4/QVTKRenderWindowInteractor.py /usr/lib/python2.7/dist-packages/vtk/qt4/__init__.py /usr/lib/python2.7/dist-packages/vtk/ vtkRenderingQtPython.x86_64-linux-gnu.so /usr/lib/python2.7/dist-packages/vtk/vtkRenderingQt.py ldd on the .so shows it is linking against Qt 5, but is that enough. Or must I have a QVTKRenderWindowInteractor that works with PyQt5 as well? It seems a port of that class to PyQt5 was done only 5 months ago: https://gitlab.kitware.com/vtk/vtk/merge_requests/101 So would not be in 6.2 :/ Are there really no software out there which uses PyQt5 + VTK and only make use of packaged versions? Cheers, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu Feb 4 10:50:10 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 4 Feb 2016 10:50:10 -0500 Subject: [vtkusers] how to quantify executing time In-Reply-To: References: Message-ID: Hi Chiang, There is no built-in timing mechanism as you describe in VTK, other than virtual double vtkRenderer::GetLastRenderTimeInSeconds(). - Cory On Thu, Feb 4, 2016 at 6:40 AM, WangQ wrote: > Hello vtkusers, > > I wonder if there is any way to measure the executing time from very > beginning till rendering finish in VTK? Seems conventional tic toc > inapplicable to VTK. > > It would be great if can separate computation time, e.g. time for processing > data, and rendering time. > > Cheers, > > Chiang > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 dave.demarle at kitware.com Thu Feb 4 10:51:57 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 4 Feb 2016 10:51:57 -0500 Subject: [vtkusers] how to quantify executing time In-Reply-To: References: Message-ID: Hi Chiang, Take a look at vtkTimerLog.h. Basically call StartLog, do something with VTK, and DumpLog. That will record the times taken within vtk to do various things like rendering and data processing. One key point to be aware of is containment, which is represented in the log by indentations. If you have some function A which calls B, A's time will include the time taken by B. The logs will look something like this: A 5 seconds B 4 seconds which means that A spent only 1 second beyond what B did. A call to render will include calls to update filters whenever they are out of date, so Render will contain Filter. cheers David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Feb 4, 2016 at 6:40 AM, WangQ wrote: > Hello vtkusers, > > I wonder if there is any way to measure the executing time from very > beginning till rendering finish in VTK? Seems conventional tic toc > inapplicable to VTK. > > It would be great if can separate computation time, e.g. time for > processing data, and rendering time. > > Cheers, > > Chiang > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 Thu Feb 4 11:03:48 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 4 Feb 2016 11:03:48 -0500 Subject: [vtkusers] how to quantify executing time In-Reply-To: References: Message-ID: Oops... I learn something new every day. On Thu, Feb 4, 2016 at 10:51 AM, David E DeMarle wrote: > Hi Chiang, > > Take a look at vtkTimerLog.h. Basically call StartLog, do something with > VTK, and DumpLog. That will record the times taken within vtk to do various > things like rendering and data processing. > > One key point to be aware of is containment, which is represented in the log > by indentations. If you have some function A which calls B, A's time will > include the time taken by B. The logs will look something like this: > A 5 seconds > B 4 seconds > which means that A spent only 1 second beyond what B did. > > A call to render will include calls to update filters whenever they are out > of date, so Render will contain Filter. > > cheers > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Thu, Feb 4, 2016 at 6:40 AM, WangQ wrote: >> >> Hello vtkusers, >> >> I wonder if there is any way to measure the executing time from very >> beginning till rendering finish in VTK? Seems conventional tic toc >> inapplicable to VTK. >> >> It would be great if can separate computation time, e.g. time for >> processing data, and rendering time. >> >> Cheers, >> >> Chiang >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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. From wangq1979 at outlook.com Thu Feb 4 11:32:31 2016 From: wangq1979 at outlook.com (WangQ) Date: Fri, 5 Feb 2016 00:32:31 +0800 Subject: [vtkusers] how to quantify executing time In-Reply-To: References: , , Message-ID: Hi David, A strange thing is that I did not receive your response directly, but from Cory's reply... Anyway, thanks for the tips, and i will try it soon. Cheers, Chiang > Date: Thu, 4 Feb 2016 11:03:48 -0500 > Subject: Re: [vtkusers] how to quantify executing time > From: cory.quammen at kitware.com > To: dave.demarle at kitware.com > CC: wangq1979 at outlook.com; vtkusers at vtk.org > > Oops... I learn something new every day. > > On Thu, Feb 4, 2016 at 10:51 AM, David E DeMarle > wrote: > > Hi Chiang, > > > > Take a look at vtkTimerLog.h. Basically call StartLog, do something with > > VTK, and DumpLog. That will record the times taken within vtk to do various > > things like rendering and data processing. > > > > One key point to be aware of is containment, which is represented in the log > > by indentations. If you have some function A which calls B, A's time will > > include the time taken by B. The logs will look something like this: > > A 5 seconds > > B 4 seconds > > which means that A spent only 1 second beyond what B did. > > > > A call to render will include calls to update filters whenever they are out > > of date, so Render will contain Filter. > > > > cheers > > > > David E DeMarle > > Kitware, Inc. > > R&D Engineer > > 21 Corporate Drive > > Clifton Park, NY 12065-8662 > > Phone: 518-881-4909 > > > > On Thu, Feb 4, 2016 at 6:40 AM, WangQ wrote: > >> > >> Hello vtkusers, > >> > >> I wonder if there is any way to measure the executing time from very > >> beginning till rendering finish in VTK? Seems conventional tic toc > >> inapplicable to VTK. > >> > >> It would be great if can separate computation time, e.g. time for > >> processing data, and rendering time. > >> > >> Cheers, > >> > >> Chiang > >> > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://www.kitware.com/opensource/opensource.html > >> > >> Please keep messages on-topic and check the VTK FAQ at: > >> http://www.vtk.org/Wiki/VTK_FAQ > >> > >> 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 dave.demarle at kitware.com Thu Feb 4 12:01:58 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 4 Feb 2016 12:01:58 -0500 Subject: [vtkusers] vtkEventQtSlotConnect not wrapped in python 2.7 + VTK6.3 In-Reply-To: <1454082066016-5736250.post@n5.nabble.com> References: <1454082066016-5736250.post@n5.nabble.com> Message-ID: Looks like modularization in 6.0 turned off wrapping of this code. I don't know if there was a particular reason for that. To turn it back on, try removing the EXCLUDE_FROM_WRAPPING line in GUISUpport/Qt/module.cmake and rebuild. Please let the list know if that works or not. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Jan 29, 2016 at 10:41 AM, hchen wrote: > Hi, > > I am trying to write a software using Python+Qt+VTK, and need to pass VTK > events to Qt, but vtkEventQtSlotConnect is not wrapped in Python. > > I built VTK from source: VTK 6.3.0, python 2.7, cmake 3.3 (also tried cmake > 2.8). > > But, when I tried to build an early version, VTK 5.10.1, using cmake 2.8, I > can get vtkEventQtSlotConnect wrapped in python. > > I am guessing it might have something to do with the settings in CMakeLists > for VTK6.3.0, but I am not familiar with cmake enough to figure it out, can > anyone help? Thanks! > > Chen > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkEventQtSlotConnect-not-wrapped-in-python-2-7-VTK6-3-tp5736250.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 lonni.besancon at gmail.com Thu Feb 4 12:14:55 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 4 Feb 2016 10:14:55 -0700 (MST) Subject: [vtkusers] Plane Widget and OpenGL ES In-Reply-To: <1454322647417-5736284.post@n5.nabble.com> References: <1454083365183-5736252.post@n5.nabble.com> <1454083806727-5736254.post@n5.nabble.com> <1454322647417-5736284.post@n5.nabble.com> Message-ID: <1454606095754-5736365.post@n5.nabble.com> Forgot to post the trace. The only thing I get is that: I/DEBUG ( 161): backtrace: I/DEBUG ( 161): #00 pc 00021f78 /system/lib/libc.so (tgkill+12) I/DEBUG ( 161): #01 pc 0001300d /system/lib/libc.so (pthread_kill+48) I/DEBUG ( 161): #02 pc 00013221 /system/lib/libc.so (raise+10) I/DEBUG ( 161): #03 pc 00011f57 /system/lib/libc.so I/DEBUG ( 161): #04 pc 0002182c /system/lib/libc.so (abort+4) I/DEBUG ( 161): #05 pc 00012a3d /system/lib/libc.so I/DEBUG ( 161): #06 pc 00011fb5 /system/lib/libc.so (__assert2+20) I/DEBUG ( 161): #07 pc 00a31a50 /data/app-lib/com.kitware.VolumeRender-2/libVolumeRender.so (vtkTextureObject::Bind()+136) -- View this message in context: http://vtk.1045678.n5.nabble.com/Plane-Widget-and-OpenGL-ES-tp5736252p5736365.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Thu Feb 4 12:17:43 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 4 Feb 2016 12:17:43 -0500 Subject: [vtkusers] Plane Widget and OpenGL ES In-Reply-To: <1454606095754-5736365.post@n5.nabble.com> References: <1454083365183-5736252.post@n5.nabble.com> <1454083806727-5736254.post@n5.nabble.com> <1454322647417-5736284.post@n5.nabble.com> <1454606095754-5736365.post@n5.nabble.com> Message-ID: Thanks Lonni, I will have a look at it in next day or two unless someone else beats me to it or knows what's going on here. - Aashish On Thu, Feb 4, 2016 at 12:14 PM, Lonni Besan?on wrote: > Forgot to post the trace. > The only thing I get is that: > I/DEBUG ( 161): backtrace: > I/DEBUG ( 161): #00 pc 00021f78 /system/lib/libc.so (tgkill+12) > I/DEBUG ( 161): #01 pc 0001300d /system/lib/libc.so > (pthread_kill+48) > I/DEBUG ( 161): #02 pc 00013221 /system/lib/libc.so (raise+10) > I/DEBUG ( 161): #03 pc 00011f57 /system/lib/libc.so > I/DEBUG ( 161): #04 pc 0002182c /system/lib/libc.so (abort+4) > I/DEBUG ( 161): #05 pc 00012a3d /system/lib/libc.so > I/DEBUG ( 161): #06 pc 00011fb5 /system/lib/libc.so (__assert2+20) > I/DEBUG ( 161): #07 pc 00a31a50 > /data/app-lib/com.kitware.VolumeRender-2/libVolumeRender.so > (vtkTextureObject::Bind()+136) > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Plane-Widget-and-OpenGL-ES-tp5736252p5736365.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 lonni.besancon at gmail.com Thu Feb 4 12:18:23 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 4 Feb 2016 10:18:23 -0700 (MST) Subject: [vtkusers] Plane Widget and OpenGL ES In-Reply-To: References: <1454083365183-5736252.post@n5.nabble.com> <1454083806727-5736254.post@n5.nabble.com> <1454322647417-5736284.post@n5.nabble.com> <1454606095754-5736365.post@n5.nabble.com> Message-ID: <1454606303987-5736367.post@n5.nabble.com> Ok thanks. Did I give you enough information? -- View this message in context: http://vtk.1045678.n5.nabble.com/Plane-Widget-and-OpenGL-ES-tp5736252p5736367.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Thu Feb 4 12:22:24 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 4 Feb 2016 12:22:24 -0500 Subject: [vtkusers] Plane Widget and OpenGL ES In-Reply-To: <1454606303987-5736367.post@n5.nabble.com> References: <1454083365183-5736252.post@n5.nabble.com> <1454083806727-5736254.post@n5.nabble.com> <1454322647417-5736284.post@n5.nabble.com> <1454606095754-5736365.post@n5.nabble.com> <1454606303987-5736367.post@n5.nabble.com> Message-ID: Yes, you did for now -:) Thanks, On Thu, Feb 4, 2016 at 12:18 PM, Lonni Besan?on wrote: > Ok thanks. > Did I give you enough information? > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Plane-Widget-and-OpenGL-ES-tp5736252p5736367.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 david.gobbi at gmail.com Thu Feb 4 13:01:09 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 4 Feb 2016 11:01:09 -0700 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: Hi Elvis, You should be able to copy the QVTKRenderWindowInteractor.py from the VTK master branch into your project (even rename it if you like) and then use it with any version of VTK. Just replace the two try/except blocks at the top of the file with this: PyQtImpl = "PyQt5" # or "PyQt4" or "PySide" QVTKRWIBase = "QWidget" # or "QGLWidget" You can think of this script as an example that that you can grab and and modify to suit your own purposes. - David On Thu, Feb 4, 2016 at 8:16 AM, Elvis Stansvik wrote: > Hi all, > > I have the same question as Alex on this list had in April last year: > > http://markmail.org/message/i3e4dxwxqravlaf3 > > Is it possible to use PyQt5 with VTK 6.2? > > I'm on a *buntu system, and the python-vtk6 package installs the following > Qt related files: > > estan at newton:~$ dpkg -L python-vtk6 | grep -i qt > /usr/lib/python2.7/dist-packages/vtk/qt4 > /usr/lib/python2.7/dist-packages/vtk/qt4/QVTKRenderWindowInteractor.py > /usr/lib/python2.7/dist-packages/vtk/qt4/__init__.py > /usr/lib/python2.7/dist-packages/vtk/ > vtkRenderingQtPython.x86_64-linux-gnu.so > /usr/lib/python2.7/dist-packages/vtk/vtkRenderingQt.py > > ldd on the .so shows it is linking against Qt 5, but is that enough. Or > must I have a QVTKRenderWindowInteractor that works with PyQt5 as well? It > seems a port of that class to PyQt5 was done only 5 months ago: > > https://gitlab.kitware.com/vtk/vtk/merge_requests/101 > > So would not be in 6.2 :/ > > Are there really no software out there which uses PyQt5 + VTK and only > make use of packaged versions? > > Cheers, > Elvis > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Feb 4 14:05:45 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 4 Feb 2016 20:05:45 +0100 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: 2016-02-04 19:01 GMT+01:00 David Gobbi : > Hi Elvis, > > You should be able to copy the QVTKRenderWindowInteractor.py from > the VTK master branch into your project (even rename it if you like) and > then use it with any version of VTK. > > Just replace the two try/except blocks at the top of the file with this: > > PyQtImpl = "PyQt5" # or "PyQt4" or "PySide" > QVTKRWIBase = "QWidget" # or "QGLWidget" > > You can think of this script as an example that that you can grab and > and modify to suit your own purposes. > Excellent. I was starting to suspect it was that simple. Thanks for confirming. Elvis > > - David > > > > On Thu, Feb 4, 2016 at 8:16 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> Hi all, >> >> I have the same question as Alex on this list had in April last year: >> >> http://markmail.org/message/i3e4dxwxqravlaf3 >> >> Is it possible to use PyQt5 with VTK 6.2? >> >> I'm on a *buntu system, and the python-vtk6 package installs the >> following Qt related files: >> >> estan at newton:~$ dpkg -L python-vtk6 | grep -i qt >> /usr/lib/python2.7/dist-packages/vtk/qt4 >> /usr/lib/python2.7/dist-packages/vtk/qt4/QVTKRenderWindowInteractor.py >> /usr/lib/python2.7/dist-packages/vtk/qt4/__init__.py >> /usr/lib/python2.7/dist-packages/vtk/ >> vtkRenderingQtPython.x86_64-linux-gnu.so >> /usr/lib/python2.7/dist-packages/vtk/vtkRenderingQt.py >> >> ldd on the .so shows it is linking against Qt 5, but is that enough. Or >> must I have a QVTKRenderWindowInteractor that works with PyQt5 as well? It >> seems a port of that class to PyQt5 was done only 5 months ago: >> >> https://gitlab.kitware.com/vtk/vtk/merge_requests/101 >> >> So would not be in 6.2 :/ >> >> Are there really no software out there which uses PyQt5 + VTK and only >> make use of packaged versions? >> >> Cheers, >> Elvis >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Feb 4 17:58:03 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 4 Feb 2016 15:58:03 -0700 Subject: [vtkusers] typedef redefinition during VTK compilation In-Reply-To: <1454585276455-5736352.post@n5.nabble.com> References: <1454585276455-5736352.post@n5.nabble.com> Message-ID: Hi Matheus, Seems like a strange error, I don't recall anything like this ever showing up on the testing dashboards. If you add this line to your CMakeCache.txt, it might fix the problem: H5_SIZEOF_INT64_T:INTERNAL=8 - David On Thu, Feb 4, 2016 at 4:27 AM, matheus_viana wrote: > Hi guys, I am trying to compile VTK 6.3 with non-shared libraries on OSX > 10.10 but I got the error messages below. Does anyone know how to go around > that? > > ... > [ 68%] Built target vtkGeovisCore > Scanning dependencies of target H5detect > [ 68%] Building C object > ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o > In file included from > /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:57: > In file included from > /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5private.h:37: > /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5public.h:259:18: > error: > typedef redefinition with different types ('long' vs 'long long') > typedef long int64_t; > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_types/_int64_t.h:30:20: > note: > previous definition is here > typedef long long int64_t; > ^ > In file included from > /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:57: > In file included from > /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5private.h:37: > /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5public.h:279:27: > error: > typedef redefinition with different types ('unsigned long' vs > 'unsigned long long') > typedef unsigned long uint64_t; > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/_types/_uint64_t.h:31:28: > note: > previous definition is here > typedef unsigned long long uint64_t; > ^ > 2 errors generated. > make[2]: *** > [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o] Error 1 > make[1]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/all] > Error > 2 > make: *** [all] Error 2 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.slaughter at inl.gov Thu Feb 4 18:11:48 2016 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Thu, 4 Feb 2016 16:11:48 -0700 Subject: [vtkusers] vtkTesting Message-ID: Is there a trick to using vtkTesting class in python? Is it possible? I am using VTK6.3 from miniconda on OSX, but it is failing to find the vtkTesting class. #!/usr/bin/env python import vtk from vtk.test import Testing tester = vtk.vtkTesting() # this fails -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Feb 4 18:23:35 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 4 Feb 2016 16:23:35 -0700 Subject: [vtkusers] vtkTesting In-Reply-To: References: Message-ID: Hi Andrew, It works fine in a copy of VTK 6.3 that I built myself. It might be a problem with the python path on your machine. Have you checked that python is importing the 'vtk' module from the correct location? import vtk print vtk.__file__ You can also use spotlight or "find" to locate the testing module on your system: find ~ -name vtkTestingRenderingPython.so - David On Thu, Feb 4, 2016 at 4:11 PM, Slaughter, Andrew E < andrew.slaughter at inl.gov> wrote: > Is there a trick to using vtkTesting class in python? Is it possible? I am > using VTK6.3 from miniconda on OSX, but it is failing to find the > vtkTesting class. > > > #!/usr/bin/env python > import vtk > from vtk.test import Testing > tester = vtk.vtkTesting() # this fails > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.slaughter at inl.gov Thu Feb 4 18:33:23 2016 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Thu, 4 Feb 2016 16:33:23 -0700 Subject: [vtkusers] vtkTesting In-Reply-To: References: Message-ID: It appears that miniconda disables testing of some sort, I guess I will have to build my own (-DBUILD_TESTING=OFF). https://github.com/conda/conda-recipes/blob/master/vtk/build.sh On Thu, Feb 4, 2016 at 4:23 PM, David Gobbi wrote: > Hi Andrew, > > It works fine in a copy of VTK 6.3 that I built myself. > > It might be a problem with the python path on your machine. Have you > checked that python is importing the 'vtk' module from the correct location? > > import vtk > print vtk.__file__ > > You can also use spotlight or "find" to locate the testing module on your > system: > > find ~ -name vtkTestingRenderingPython.so > > - David > > > On Thu, Feb 4, 2016 at 4:11 PM, Slaughter, Andrew E < > andrew.slaughter at inl.gov> wrote: > >> Is there a trick to using vtkTesting class in python? Is it possible? I >> am using VTK6.3 from miniconda on OSX, but it is failing to find the >> vtkTesting class. >> >> >> #!/usr/bin/env python >> import vtk >> from vtk.test import Testing >> tester = vtk.vtkTesting() # this fails >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Fri Feb 5 05:23:44 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Fri, 5 Feb 2016 03:23:44 -0700 (MST) Subject: [vtkusers] setOrigin() of plane is slowing the rendering In-Reply-To: <1454505005463-5736328.post@n5.nabble.com> References: <1454434392380-5736303.post@n5.nabble.com> <1454436336240-5736307.post@n5.nabble.com> <1454505005463-5736328.post@n5.nabble.com> Message-ID: <1454667824889-5736377.post@n5.nabble.com> So I checked the documentation again and tested with vtkImplicitPlaneWidget class to set the origin of the plane, and I don't get the delay anymore. However, the SetOrigin() and GetOrigin() methods are not present in the vtkImplicitPlaneWidget2 class. Is that normal? I was also wondering what is different when calling the SetOrigin() method of vtkImplicitPlaneWidget. Indeed I did check the cxx file and it would seem that this SetOrigin() method relies on the SetOrigin() of the plane itself, which is what I was doing in the first place and was really slow. But when I call the SetOrigin() of vtkImplicitPlaneWIdget, the rendering is back to a normal speed. Would really love to get some explanations on that matter. Thanks in advance -- View this message in context: http://vtk.1045678.n5.nabble.com/setOrigin-of-plane-is-slowing-the-rendering-tp5736303p5736377.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Fri Feb 5 09:45:25 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 5 Feb 2016 15:45:25 +0100 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: 2016-02-04 19:01 GMT+01:00 David Gobbi : > Hi Elvis, > > You should be able to copy the QVTKRenderWindowInteractor.py from > the VTK master branch into your project (even rename it if you like) and > then use it with any version of VTK. > > Just replace the two try/except blocks at the top of the file with this: > > PyQtImpl = "PyQt5" # or "PyQt4" or "PySide" > QVTKRWIBase = "QWidget" # or "QGLWidget" > > You can think of this script as an example that that you can grab and > and modify to suit your own purposes. > That worked great, except for a small issue with a missing QWheelEvent::delta() in PyQt5 (see my merge request 1185). However, with QWidget as base class, I'm getting some strange rendering. With QGLWidget it looks fine. See the attached screenshot. It shows the cone example from QVTKRenderWindowInteractor.py with QWidget (left) and QGLWidget (right). With QWidget, the cone faces seem partly transparent from some angles. Any idea what might be going on? This is VTK 6.2.0, Kubuntu 15.10, on Intel graphics (Thinkpad T440s). Elvis > > - David > > > > On Thu, Feb 4, 2016 at 8:16 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> Hi all, >> >> I have the same question as Alex on this list had in April last year: >> >> http://markmail.org/message/i3e4dxwxqravlaf3 >> >> Is it possible to use PyQt5 with VTK 6.2? >> >> I'm on a *buntu system, and the python-vtk6 package installs the >> following Qt related files: >> >> estan at newton:~$ dpkg -L python-vtk6 | grep -i qt >> /usr/lib/python2.7/dist-packages/vtk/qt4 >> /usr/lib/python2.7/dist-packages/vtk/qt4/QVTKRenderWindowInteractor.py >> /usr/lib/python2.7/dist-packages/vtk/qt4/__init__.py >> /usr/lib/python2.7/dist-packages/vtk/ >> vtkRenderingQtPython.x86_64-linux-gnu.so >> /usr/lib/python2.7/dist-packages/vtk/vtkRenderingQt.py >> >> ldd on the .so shows it is linking against Qt 5, but is that enough. Or >> must I have a QVTKRenderWindowInteractor that works with PyQt5 as well? It >> seems a port of that class to PyQt5 was done only 5 months ago: >> >> https://gitlab.kitware.com/vtk/vtk/merge_requests/101 >> >> So would not be in 6.2 :/ >> >> Are there really no software out there which uses PyQt5 + VTK and only >> make use of packaged versions? >> >> Cheers, >> Elvis >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Feb 5 09:59:01 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 5 Feb 2016 15:59:01 +0100 Subject: [vtkusers] QVTKGraphicsItem from Python? Message-ID: Hi all, Is there no Python wrapper for QVTKGraphicsItem? I was hoping to be able to use a VTK visualization as part of a QGraphicsScene from Python. What about the rest of the stuff under GUISupport/Qt* ? Regards, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Feb 5 10:57:51 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 5 Feb 2016 08:57:51 -0700 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: On Fri, Feb 5, 2016 at 7:45 AM, Elvis Stansvik wrote: > > > That worked great, except for a small issue with a missing > QWheelEvent::delta() in PyQt5 (see my merge request 1185). > > However, with QWidget as base class, I'm getting some strange rendering. > With QGLWidget it looks fine. > > See the attached screenshot. It shows the cone example from > QVTKRenderWindowInteractor.py with QWidget (left) and QGLWidget (right). > With QWidget, the cone faces seem partly transparent from some angles. > > Any idea what might be going on? This is VTK 6.2.0, Kubuntu 15.10, on > Intel graphics (Thinkpad T440s). > I think you forgot to attach the screenshot. But I probably cannot answer your question, I don't use QVTKRenderWindowInteractor.py very often (I maintain it because I was one of the initial authors, 15 years ago!), and on my own system the QWidget base works fine. >From what people have reported, the need for QGLWidget varies from system to system and driver to driver. Whatever you discover, please share with the list. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Feb 5 11:15:52 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 5 Feb 2016 17:15:52 +0100 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: 2016-02-05 16:57 GMT+01:00 David Gobbi : > On Fri, Feb 5, 2016 at 7:45 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: >> >> >> That worked great, except for a small issue with a missing >> QWheelEvent::delta() in PyQt5 (see my merge request 1185). >> >> However, with QWidget as base class, I'm getting some strange rendering. >> With QGLWidget it looks fine. >> >> See the attached screenshot. It shows the cone example from >> QVTKRenderWindowInteractor.py with QWidget (left) and QGLWidget (right). >> With QWidget, the cone faces seem partly transparent from some angles. >> >> Any idea what might be going on? This is VTK 6.2.0, Kubuntu 15.10, on >> Intel graphics (Thinkpad T440s). >> > > I think you forgot to attach the screenshot. But I probably cannot > answer your question, I don't use QVTKRenderWindowInteractor.py very often > (I maintain it because I was one of the initial authors, 15 years ago!), > and on my own system the QWidget base works fine. > Bah, of course I did. Attaching it here. I see. Anyone else know what could cause the behavior shown in the screenshot? > From what people have reported, the need for QGLWidget varies from system > to system and driver to driver. Whatever you discover, please share with > the list. > Alright, so you've heard about it before? Should there ever be a need for QGLWidget, or should it be reported as a bug? My system: Thinkpad T440s Intel HD Graphics 4400 Qt 5.5.1 / PyQt5 5.4.2 / VTK 6.2.0 All installed from Kubuntu repos (with backports repositories enabled). I have no reason not to use QGLWidget instead of QWidget, so it's not a big problem. I was mostly curious if others have seen this problem. Elvis > - David > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: qwidget_vs_qglwidget.png Type: image/png Size: 153717 bytes Desc: not available URL: From elvis.stansvik at orexplore.com Fri Feb 5 11:18:25 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 5 Feb 2016 17:18:25 +0100 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: 2016-02-05 17:15 GMT+01:00 Elvis Stansvik : > 2016-02-05 16:57 GMT+01:00 David Gobbi : > >> On Fri, Feb 5, 2016 at 7:45 AM, Elvis Stansvik < >> elvis.stansvik at orexplore.com> wrote: >>> >>> >>> That worked great, except for a small issue with a missing >>> QWheelEvent::delta() in PyQt5 (see my merge request 1185). >>> >>> However, with QWidget as base class, I'm getting some strange rendering. >>> With QGLWidget it looks fine. >>> >>> See the attached screenshot. It shows the cone example from >>> QVTKRenderWindowInteractor.py with QWidget (left) and QGLWidget (right). >>> With QWidget, the cone faces seem partly transparent from some angles. >>> >>> Any idea what might be going on? This is VTK 6.2.0, Kubuntu 15.10, on >>> Intel graphics (Thinkpad T440s). >>> >> >> I think you forgot to attach the screenshot. But I probably cannot >> answer your question, I don't use QVTKRenderWindowInteractor.py very often >> (I maintain it because I was one of the initial authors, 15 years ago!), >> and on my own system the QWidget base works fine. >> > > Bah, of course I did. Attaching it here. > > I see. Anyone else know what could cause the behavior shown in the > screenshot? > > >> From what people have reported, the need for QGLWidget varies from system >> to system and driver to driver. Whatever you discover, please share with >> the list. >> > > Alright, so you've heard about it before? Should there ever be a need for > QGLWidget, or should it be reported as a bug? > > My system: > > Thinkpad T440s > Intel HD Graphics 4400 > Qt 5.5.1 / PyQt5 5.4.2 / VTK 6.2.0 > Forgot to say, the Intel graphics driver is version 2.99.917+git20150808-0ubuntu4. Elvis > All installed from Kubuntu repos (with backports repositories enabled). > > I have no reason not to use QGLWidget instead of QWidget, so it's not a > big problem. I was mostly curious if others have seen this problem. > > Elvis > > >> - David >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion at cora.nwra.com Fri Feb 5 11:27:32 2016 From: orion at cora.nwra.com (Orion Poplawski) Date: Fri, 5 Feb 2016 09:27:32 -0700 Subject: [vtkusers] VTK 7 and vtkRenderingOpenGL2 migration Message-ID: <56B4CD74.7090406@cora.nwra.com> I'm looking at updating the Fedora VTK package to 7.0 and rebuilding dependent packages here: https://copr.fedorainfracloud.org/coprs/orion/vtk7/builds/ One problem is packages (e.g. engrid) that do: VTK_MODULE_INIT(vtkRenderingOpenGL); It appears that with VTK 7.0 it would need to do: VTK_MODULE_INIT(vtkRenderingOpenGL2); What's the best way for projects to handle this automatically, as the vtk they are building against may have been built with either backend. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion at nwra.com Boulder, CO 80301 http://www.nwra.com From david.gobbi at gmail.com Fri Feb 5 12:26:28 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 5 Feb 2016 10:26:28 -0700 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: On Fri, Feb 5, 2016 at 9:15 AM, Elvis Stansvik wrote: > > Alright, so you've heard about it before? Should there ever be a need for > QGLWidget, or should it be reported as a bug? > > My system: > > Thinkpad T440s > Intel HD Graphics 4400 > Qt 5.5.1 / PyQt5 5.4.2 / VTK 6.2.0 > > All installed from Kubuntu repos (with backports repositories enabled). > > I have no reason not to use QGLWidget instead of QWidget, so it's not a > big problem. I was mostly curious if others have seen this problem. > Yes, the depth buffer for the context seems to be missing. The person who submitted the QGLWidget patch had exactly the same issue: https://gitlab.kitware.com/vtk/vtk/merge_requests/1097 That was for linux on a virtual machine, so I thought it was the fault of the virtual machine. But maybe it wasn't after all! I use linux as well, with NVidia graphics, for me it works without QGLWidget. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Feb 5 13:15:01 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 5 Feb 2016 19:15:01 +0100 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: <1465039467.42232438.1454694369412.JavaMail.zimbra@elemtech.com> References: <1465039467.42232438.1454694369412.JavaMail.zimbra@elemtech.com> Message-ID: 2016-02-05 18:46 GMT+01:00 : > > > ----- On Feb 5, 2016, at 10:26 AM, David Gobbi > wrote: > > On Fri, Feb 5, 2016 at 9:15 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> >> Alright, so you've heard about it before? Should there ever be a need for >> QGLWidget, or should it be reported as a bug? >> >> My system: >> >> Thinkpad T440s >> Intel HD Graphics 4400 >> Qt 5.5.1 / PyQt5 5.4.2 / VTK 6.2.0 >> >> All installed from Kubuntu repos (with backports repositories enabled). >> >> I have no reason not to use QGLWidget instead of QWidget, so it's not a >> big problem. I was mostly curious if others have seen this problem. >> > > Yes, the depth buffer for the context seems to be missing. The person who > submitted the QGLWidget patch had exactly the same issue: > https://gitlab.kitware.com/vtk/vtk/merge_requests/1097 > > That was for linux on a virtual machine, so I thought it was the fault of > the virtual machine. But maybe it wasn't after all! > > I use linux as well, with NVidia graphics, for me it works without > QGLWidget. > > - David > > > Perhaps the following explanation will clear some things up, and help > people understand when and why the problems shows up. > > The C++ QVTKWidget class addresses this issue by controlling the X11 > visual when creating the window. See QVTKWidget::x11_setup_window(). > I don't think this issue is related to what OpenGL driver is used, but > rather what X11 visual is the default or chosen by Qt. > > On Linux, you can run > $ xdpyinfo | default > to get the default visual for the X11 server. > In my case, its > default visual id: 0x21 > > Then you run glxinfo to look up the capabilities of the default visual. > > In my case, visual 0x21 has the following capabilities. > visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav > id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat > > ---------------------------------------------------------------------------- > 0x021 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None > > My default visual 0x21 supports a depth buffer, but not alpha. To get > alpha working with VTK, a different visual would be needed. > > When mixing OpenGL and X11, the application code is responsible for > choosing the X11 visual that supports the capabilities one wants to get > from OpenGL. > By using QWidget, you get the default visual, unless overridden. By using > QGLWidget, you possibly get another one, depending on the logic in > QGLWidget based on QGLFormat. The default QGLFormat may or may not give > you what you are expecting to get with VTK. Also, when using QGLWidget, > you now have a window with 2 opengl contexts created for it. One by VTK, > and another by Qt - and I find that confusing. > > In Qt 4.8, the QApplication constructor had support for specifying > visuals, but that appears to have gone away with Qt 5. > Thanks for the detailed info Clint, I'm still digesting it. On my system I get: [estan at pyret ~]$ xdpyinfo | grep default default screen number: 0 default colormap: 0x22 default number of colormap cells: 256 default visual id: 0x20 [estan at pyret ~]$ glxinfo | grep 0x020 0x020 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None I'm not sure what these means. But in any case, is there really no Qt 5 API which VTK could use to request an X11 visual that has the required capabilities? Thanks for shedding light on this, I'll go with QGLWidget when working on my laptop for now. But yes, I also find the double GL contexts strange. Elvis > Clint > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Feb 5 13:19:10 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 5 Feb 2016 19:19:10 +0100 Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: <1465039467.42232438.1454694369412.JavaMail.zimbra@elemtech.com> Message-ID: 2016-02-05 19:15 GMT+01:00 Elvis Stansvik : > 2016-02-05 18:46 GMT+01:00 : > >> >> >> ----- On Feb 5, 2016, at 10:26 AM, David Gobbi >> wrote: >> >> On Fri, Feb 5, 2016 at 9:15 AM, Elvis Stansvik < >> elvis.stansvik at orexplore.com> wrote: >> >>> >>> Alright, so you've heard about it before? Should there ever be a need >>> for QGLWidget, or should it be reported as a bug? >>> >>> My system: >>> >>> Thinkpad T440s >>> Intel HD Graphics 4400 >>> Qt 5.5.1 / PyQt5 5.4.2 / VTK 6.2.0 >>> >>> All installed from Kubuntu repos (with backports repositories enabled). >>> >>> I have no reason not to use QGLWidget instead of QWidget, so it's not a >>> big problem. I was mostly curious if others have seen this problem. >>> >> >> Yes, the depth buffer for the context seems to be missing. The person >> who submitted the QGLWidget patch had exactly the same issue: >> https://gitlab.kitware.com/vtk/vtk/merge_requests/1097 >> >> That was for linux on a virtual machine, so I thought it was the fault of >> the virtual machine. But maybe it wasn't after all! >> >> I use linux as well, with NVidia graphics, for me it works without >> QGLWidget. >> >> - David >> >> >> Perhaps the following explanation will clear some things up, and help >> people understand when and why the problems shows up. >> >> The C++ QVTKWidget class addresses this issue by controlling the X11 >> visual when creating the window. See QVTKWidget::x11_setup_window(). >> I don't think this issue is related to what OpenGL driver is used, but >> rather what X11 visual is the default or chosen by Qt. >> >> On Linux, you can run >> $ xdpyinfo | default >> to get the default visual for the X11 server. >> In my case, its >> default visual id: 0x21 >> >> Then you run glxinfo to look up the capabilities of the default visual. >> >> In my case, visual 0x21 has the following capabilities. >> visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav >> id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat >> >> ---------------------------------------------------------------------------- >> 0x021 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None >> >> My default visual 0x21 supports a depth buffer, but not alpha. To get >> alpha working with VTK, a different visual would be needed. >> >> When mixing OpenGL and X11, the application code is responsible for >> choosing the X11 visual that supports the capabilities one wants to get >> from OpenGL. >> By using QWidget, you get the default visual, unless overridden. By >> using QGLWidget, you possibly get another one, depending on the logic in >> QGLWidget based on QGLFormat. The default QGLFormat may or may not give >> you what you are expecting to get with VTK. Also, when using QGLWidget, >> you now have a window with 2 opengl contexts created for it. One by VTK, >> and another by Qt - and I find that confusing. >> >> In Qt 4.8, the QApplication constructor had support for specifying >> visuals, but that appears to have gone away with Qt 5. >> > > Thanks for the detailed info Clint, I'm still digesting it. > > On my system I get: > > [estan at pyret ~]$ xdpyinfo | grep default > default screen number: 0 > default colormap: 0x22 > default number of colormap cells: 256 > default visual id: 0x20 > [estan at pyret ~]$ glxinfo | grep 0x020 > 0x020 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 > None > With glxinfo -v I can get a little bit more readable output: Visual ID: 20 depth=24 class=TrueColor, type=window,pixmap,pbuffer bufferSize=32 level=0 renderType=rgba doubleBuffer=1 stereo=0 rgba: redSize=8 greenSize=8 blueSize=8 alphaSize=8 float=N sRGB=N auxBuffers=0 depthSize=24 stencilSize=8 accum: redSize=0 greenSize=0 blueSize=0 alphaSize=0 multiSample=0 multiSampleBuffers=0 visualCaveat=None Opaque. Still not sure which of these I should be looking at to determine if this is what spoils it for me. Is the problem lack of alpha in the X11 visual? In the output above I have one alphaSize=8 and one alphaSize=0. I'm not sure what the difference between the two is. Elvis > I'm not sure what these means. > > But in any case, is there really no Qt 5 API which VTK could use to > request an X11 visual that has the required capabilities? > > Thanks for shedding light on this, I'll go with QGLWidget when working on > my laptop for now. But yes, I also find the double GL contexts strange. > > Elvis > > >> Clint >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clinton at elemtech.com Fri Feb 5 13:58:29 2016 From: clinton at elemtech.com (clinton at elemtech.com) Date: Fri, 5 Feb 2016 11:58:29 -0700 (MST) Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: <1465039467.42232438.1454694369412.JavaMail.zimbra@elemtech.com> Message-ID: <382113836.42415202.1454698709766.JavaMail.zimbra@elemtech.com> ----- On Feb 5, 2016, at 11:15 AM, Elvis Stansvik wrote: > 2016-02-05 18:46 GMT+01:00 < clinton at elemtech.com > : >> ----- On Feb 5, 2016, at 10:26 AM, David Gobbi < david.gobbi at gmail.com > wrote: >>> On Fri, Feb 5, 2016 at 9:15 AM, Elvis Stansvik < elvis.stansvik at orexplore.com > >>> wrote: >>>> Alright, so you've heard about it before? Should there ever be a need for >>>> QGLWidget, or should it be reported as a bug? >>>> My system: >>>> Thinkpad T440s >>>> Intel HD Graphics 4400 >>>> Qt 5.5.1 / PyQt5 5.4.2 / VTK 6.2.0 >>>> All installed from Kubuntu repos (with backports repositories enabled). >>>> I have no reason not to use QGLWidget instead of QWidget, so it's not a big >>>> problem. I was mostly curious if others have seen this problem. >>> Yes, the depth buffer for the context seems to be missing. The person who >>> submitted the QGLWidget patch had exactly the same issue: >>> https://gitlab.kitware.com/vtk/vtk/merge_requests/1097 >>> That was for linux on a virtual machine, so I thought it was the fault of the >>> virtual machine. But maybe it wasn't after all! >>> I use linux as well, with NVidia graphics, for me it works without QGLWidget. >>> - David >> Perhaps the following explanation will clear some things up, and help people >> understand when and why the problems shows up. >> The C++ QVTKWidget class addresses this issue by controlling the X11 visual when >> creating the window. See QVTKWidget::x11_setup_window(). >> I don't think this issue is related to what OpenGL driver is used, but rather >> what X11 visual is the default or chosen by Qt. >> On Linux, you can run >> $ xdpyinfo | default >> to get the default visual for the X11 server. >> In my case, its >> default visual id: 0x21 >> Then you run glxinfo to look up the capabilities of the default visual. >> In my case, visual 0x21 has the following capabilities. >> visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav >> id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat >> ---------------------------------------------------------------------------- >> 0x021 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None >> My default visual 0x21 supports a depth buffer, but not alpha. To get alpha >> working with VTK, a different visual would be needed. >> When mixing OpenGL and X11, the application code is responsible for choosing the >> X11 visual that supports the capabilities one wants to get from OpenGL. >> By using QWidget, you get the default visual, unless overridden. By using >> QGLWidget, you possibly get another one, depending on the logic in QGLWidget >> based on QGLFormat. The default QGLFormat may or may not give you what you are >> expecting to get with VTK. Also, when using QGLWidget, you now have a window >> with 2 opengl contexts created for it. One by VTK, and another by Qt - and I >> find that confusing. >> In Qt 4.8, the QApplication constructor had support for specifying visuals, but >> that appears to have gone away with Qt 5. > Thanks for the detailed info Clint, I'm still digesting it. > On my system I get: > [estan at pyret ~]$ xdpyinfo | grep default > default screen number: 0 > default colormap: 0x22 > default number of colormap cells: 256 > default visual id: 0x20 > [estan at pyret ~]$ glxinfo | grep 0x020 > 0x020 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None > I'm not sure what these means. > But in any case, is there really no Qt 5 API which VTK could use to request an > X11 visual that has the required capabilities? > Thanks for shedding light on this, I'll go with QGLWidget when working on my > laptop for now. But yes, I also find the double GL contexts strange. You can try passing into QApplication the visual you want to use. QApplication(['QVTKRenderWindowInteractor', '-visual', '25']) Perhaps trying different visuals listed by glxinfo will help in understanding the issue. Clint -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonid_dulman at yahoo.co.uk Fri Feb 5 14:01:52 2016 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Fri, 5 Feb 2016 19:01:52 +0000 (UTC) Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: <756908689.3756350.1454698912272.JavaMail.yahoo@mail.yahoo.com> I use PyQt5 (WITH qT 5.6.0) AND vtk 7.0.0 IN WIN32 All works fine ? From: Elvis Stansvik To: VTK Users Sent: Thursday, February 4, 2016 5:16 PM Subject: [vtkusers] VTK 6.2 and PyQt5? Hi all, I have the same question as Alex on this list had in April last year: ?? http://markmail.org/message/i3e4dxwxqravlaf3 Is it possible to use PyQt5 with VTK 6.2? I'm on a *buntu system, and the python-vtk6 package installs the following Qt related files: estan at newton:~$ dpkg -L python-vtk6 | grep -i qt /usr/lib/python2.7/dist-packages/vtk/qt4 /usr/lib/python2.7/dist-packages/vtk/qt4/QVTKRenderWindowInteractor.py /usr/lib/python2.7/dist-packages/vtk/qt4/__init__.py /usr/lib/python2.7/dist-packages/vtk/vtkRenderingQtPython.x86_64-linux-gnu.so /usr/lib/python2.7/dist-packages/vtk/vtkRenderingQt.py ldd on the .so shows it is linking against Qt 5, but is that enough. Or must I have a QVTKRenderWindowInteractor that works with PyQt5 as well? It seems a port of that class to PyQt5 was done only 5 months ago: ?? https://gitlab.kitware.com/vtk/vtk/merge_requests/101 So would not be in 6.2 :/ Are there really no software out there which uses PyQt5 + VTK and only make use of packaged versions? Cheers, Elvis _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From clinton at elemtech.com Fri Feb 5 12:46:09 2016 From: clinton at elemtech.com (clinton at elemtech.com) Date: Fri, 5 Feb 2016 10:46:09 -0700 (MST) Subject: [vtkusers] VTK 6.2 and PyQt5? In-Reply-To: References: Message-ID: <1465039467.42232438.1454694369412.JavaMail.zimbra@elemtech.com> ----- On Feb 5, 2016, at 10:26 AM, David Gobbi wrote: > On Fri, Feb 5, 2016 at 9:15 AM, Elvis Stansvik < elvis.stansvik at orexplore.com > > wrote: >> Alright, so you've heard about it before? Should there ever be a need for >> QGLWidget, or should it be reported as a bug? >> My system: >> Thinkpad T440s >> Intel HD Graphics 4400 >> Qt 5.5.1 / PyQt5 5.4.2 / VTK 6.2.0 >> All installed from Kubuntu repos (with backports repositories enabled). >> I have no reason not to use QGLWidget instead of QWidget, so it's not a big >> problem. I was mostly curious if others have seen this problem. > Yes, the depth buffer for the context seems to be missing. The person who > submitted the QGLWidget patch had exactly the same issue: > https://gitlab.kitware.com/vtk/vtk/merge_requests/1097 > That was for linux on a virtual machine, so I thought it was the fault of the > virtual machine. But maybe it wasn't after all! > I use linux as well, with NVidia graphics, for me it works without QGLWidget. > - David Perhaps the following explanation will clear some things up, and help people understand when and why the problems shows up. The C++ QVTKWidget class addresses this issue by controlling the X11 visual when creating the window. See QVTKWidget::x11_setup_window(). I don't think this issue is related to what OpenGL driver is used, but rather what X11 visual is the default or chosen by Qt. On Linux, you can run $ xdpyinfo | default to get the default visual for the X11 server. In my case, its default visual id: 0x21 Then you run glxinfo to look up the capabilities of the default visual. In my case, visual 0x21 has the following capabilities. visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat ---------------------------------------------------------------------------- 0x021 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None My default visual 0x21 supports a depth buffer, but not alpha. To get alpha working with VTK, a different visual would be needed. When mixing OpenGL and X11, the application code is responsible for choosing the X11 visual that supports the capabilities one wants to get from OpenGL. By using QWidget, you get the default visual, unless overridden. By using QGLWidget, you possibly get another one, depending on the logic in QGLWidget based on QGLFormat. The default QGLFormat may or may not give you what you are expecting to get with VTK. Also, when using QGLWidget, you now have a window with 2 opengl contexts created for it. One by VTK, and another by Qt - and I find that confusing. In Qt 4.8, the QApplication constructor had support for specifying visuals, but that appears to have gone away with Qt 5. Clint -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.m.peter at gmail.com Sat Feb 6 10:30:18 2016 From: mark.m.peter at gmail.com (markovich) Date: Sat, 6 Feb 2016 08:30:18 -0700 (MST) Subject: [vtkusers] Ubuntu VTK Compiling problems Message-ID: <1454772618064-5736406.post@n5.nabble.com> Hello! i am using Ubuntu 15.10 64 Bit and want to run vtk on a newer version than 6.2. first question: there is an "Python Interface Standalone Installer" provided on the Download Page of vtk.org. What is it for and do i need it ? I don't find a way to run this.. second question: my steps to compile vtk #CONFIGURE CMAKE #TOGGLE ON FOLLOWING OPTIONS BUILD_EXAMPLES BUILD_SHARED_LIBS VTK_Group_Qt VTK_Group_Rendering VTK_Group_StandAlone pythonvtk vtk_wrap_python the compiling works fine and after that i run "sudo make install" with no errors. after that i am abled to type "python" in the terminal but it calls "no module named vtk" found if i want to import vtk. If i type "vtkpython" i can access another python-shell which also does not find vtk... What am i missing in the installation ? :-( -- View this message in context: http://vtk.1045678.n5.nabble.com/Ubuntu-VTK-Compiling-problems-tp5736406.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sat Feb 6 11:24:12 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 6 Feb 2016 09:24:12 -0700 Subject: [vtkusers] Ubuntu VTK Compiling problems In-Reply-To: <1454772618064-5736406.post@n5.nabble.com> References: <1454772618064-5736406.post@n5.nabble.com> Message-ID: Hi Mark, If you built VTK from source, there is no need to download the binary python package. Check the VTK_INSTALL_PYTHON_MODULE_DIR in your CMakeCache.txt, to make sure that it will install the modules somewhere in your python path. - David On Sat, Feb 6, 2016 at 8:30 AM, markovich wrote: > Hello! > > i am using Ubuntu 15.10 64 Bit and want to run vtk on a newer version than > 6.2. > > first question: > > there is an "Python Interface Standalone Installer" provided on the > Download > Page of vtk.org. What is it for and do i need it ? I don't find a way to > run > this.. > > second question: > > my steps to compile vtk > > #CONFIGURE CMAKE > #TOGGLE ON FOLLOWING OPTIONS > > BUILD_EXAMPLES > BUILD_SHARED_LIBS > VTK_Group_Qt > VTK_Group_Rendering > VTK_Group_StandAlone > pythonvtk > vtk_wrap_python > > > the compiling works fine and after that i run "sudo make install" with no > errors. > > after that i am abled to type "python" in the terminal but it calls "no > module named vtk" found if i want to import vtk. > If i type "vtkpython" i can access another python-shell which also does not > find vtk... > > What am i missing in the installation ? :-( > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.m.peter at gmail.com Sat Feb 6 11:29:15 2016 From: mark.m.peter at gmail.com (markovich) Date: Sat, 6 Feb 2016 09:29:15 -0700 (MST) Subject: [vtkusers] Ubuntu VTK Compiling problems In-Reply-To: References: <1454772618064-5736406.post@n5.nabble.com> Message-ID: <1454776155165-5736408.post@n5.nabble.com> so you mean the "Python Interface Standalone Installer" ? What do I have to do with the containing folders and files ? thanks in advance for your help! -- View this message in context: http://vtk.1045678.n5.nabble.com/Ubuntu-VTK-Compiling-problems-tp5736406p5736408.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sat Feb 6 12:09:00 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 6 Feb 2016 10:09:00 -0700 Subject: [vtkusers] Ubuntu VTK Compiling problems In-Reply-To: <1454776155165-5736408.post@n5.nabble.com> References: <1454772618064-5736406.post@n5.nabble.com> <1454776155165-5736408.post@n5.nabble.com> Message-ID: When I wrote "there is no need to download the binary python package", I meant that you do not need the "Standalone Python Interface (Installer)" if you have already built VTK from source. That's my final answer. - David On Sat, Feb 6, 2016 at 9:29 AM, markovich wrote: > so you mean the "Python Interface Standalone Installer" ? What do I have to > do with the containing folders and files ? > > thanks in advance for your help! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.m.peter at gmail.com Sat Feb 6 12:27:42 2016 From: mark.m.peter at gmail.com (markovich) Date: Sat, 6 Feb 2016 10:27:42 -0700 (MST) Subject: [vtkusers] Ubuntu VTK Compiling problems In-Reply-To: References: <1454772618064-5736406.post@n5.nabble.com> <1454776155165-5736408.post@n5.nabble.com> Message-ID: <1454779662234-5736410.post@n5.nabble.com> sorry i have overlooked the "don't need" .... then i don't see any fault in my installation process. vtk seems to be installed after "make install" on the system because i am allowed to type "vtk" in terminal and get a vtk window... but i don't get the python import working. "no module named vtk found" When I wrote "there is no need to download the binary python package", I meant that you do not need the "Standalone Python Interface (Installer)" if you have already built VTK from source. That's my final answer. -- View this message in context: http://vtk.1045678.n5.nabble.com/Ubuntu-VTK-Compiling-problems-tp5736406p5736410.html Sent from the VTK - Users mailing list archive at Nabble.com. From dave.demarle at kitware.com Sat Feb 6 13:36:56 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Sat, 6 Feb 2016 13:36:56 -0500 Subject: [vtkusers] Ubuntu VTK Compiling problems In-Reply-To: <1454779662234-5736410.post@n5.nabble.com> References: <1454772618064-5736406.post@n5.nabble.com> <1454776155165-5736408.post@n5.nabble.com> <1454779662234-5736410.post@n5.nabble.com> Message-ID: On Sat, Feb 6, 2016 at 12:27 PM, markovich wrote: > sorry i have overlooked the "don't need" .... > > then i don't see any fault in my installation process. > > vtk seems to be installed after "make install" on the system because i am > allowed to type "vtk" in terminal and get a vtk window... > Sounds like it is installed, but the python files that are part of the installation are not installed in a place where your python looks for them. In your build directory look at CMakeCache.txt. It has a line with VTK_INSTALL_PYTHON_MODULE_DIR. That says where "make install" puts them. Compare that to the output of: >python -c "import sys; print sys.path" Fix by either changing VTK_INSTALL_PYTHON_MODULE_DIR, recompiling and reinstalling, or in python add the directory to sys.path. hth -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.m.peter at gmail.com Sat Feb 6 17:24:52 2016 From: mark.m.peter at gmail.com (markovich) Date: Sat, 6 Feb 2016 15:24:52 -0700 (MST) Subject: [vtkusers] Ubuntu VTK Compiling problems In-Reply-To: References: <1454772618064-5736406.post@n5.nabble.com> <1454776155165-5736408.post@n5.nabble.com> <1454779662234-5736410.post@n5.nabble.com> Message-ID: <1454797492907-5736413.post@n5.nabble.com> thank you David E DeMarle ! After recompiling with with fixed VTK_INSTALL_PREFIX as well as VTK_INSTALL_PYTHON_MODULE_DIR i could get a working binary of vtkpython in my /usr/local/bin folder working. that means i am allowed to run my programs over "vtkpython script.py" if i navigate to /usr/local/bin (on other paths its not working) So far ... not so bad :-) can I see "vtkpython" as module which only must be linked to "default" python? Maybe someone has an idea what i am missing on using "default" python with "import vtk" by using this working "vtkpython" binary from /usr/local/bin. thanks !!! -- View this message in context: http://vtk.1045678.n5.nabble.com/Ubuntu-VTK-Compiling-problems-tp5736406p5736413.html Sent from the VTK - Users mailing list archive at Nabble.com. From wangq1979 at outlook.com Sat Feb 6 19:53:32 2016 From: wangq1979 at outlook.com (WangQ) Date: Sun, 7 Feb 2016 08:53:32 +0800 Subject: [vtkusers] slice a volume Message-ID: Hello vtkusers,I have a volume, in which there are lots of spheres by vtkSphereSource at arbitrary position, and possible a few isosurfaces. I want to slice the volume at any position along one axis, and save the slices. I tried several ways to achieve it, but since every object has its own mapper and actor. I do not know how to do it.Really appreciate for any help!Cheers,Chiang -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Sun Feb 7 05:23:00 2016 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Sun, 7 Feb 2016 03:23:00 -0700 (MST) Subject: [vtkusers] ShallowCopy in vtk 7.0 works correct? Message-ID: <1454840580511-5736416.post@n5.nabble.com> Hi there, since version 7.0 I have the impression that /actorCopy.ShallowCopy(actor);/ does not work as desired. It's always displayed only one object. With version 6.3 I received two separate vtkActor's. Has anyone same experience collected? Does anybody advice? -- View this message in context: http://vtk.1045678.n5.nabble.com/ShallowCopy-in-vtk-7-0-works-correct-tp5736416.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Sun Feb 7 05:41:22 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Sun, 7 Feb 2016 11:41:22 +0100 Subject: [vtkusers] Streaming pipeline with parts of big volume in multiple views Message-ID: Hi all, As I tried to explain in a previous mail http://markmail.org/message/mfp2npib5nqeeuux I have a large amount of volume data, and I need to render only a small part of it. I've been trying to find information on the streaming visualization pipeline that VTK supports, but it's been a bit hard to find examples similar what I want to do. My questions right now are: 1) Is there some file format for volume data which is supported by VTK with a reader that is "intelligent" enough to only read the parts of the file that is requested by downstream consumers into main memory? That is, is there something I could use so that my use case would work "out of the box". If there is, I'm prepared to make sure the output from our analysis is in this format, as it would save me from writing a custom reader. 2) If there isn't, does anyone know of an example reader somewhere that has this intelligence? I'm prepared to write my own reader, but would really like a good example of how such a reader can be written. 3) I assume that all parts of the pipeline I set up must be capable of working with partial data (extents in my case) for this to work? That is, I obviously can't have something in the pipeline which is a "bad citizen" and spoils it, causing the pipeline to request all the data. Is there a list of which classes that supports this? Or are all filters et.c. in VTK well-written in the sense that they will only request the minimal amount of data they need, based on downstream requirements? 4) If I set the volume of interest for a volume using a vtkExtractVOI, will the information about which piece of the volume is required reach the source (reader) at the start of the pipeline? 5) I was planning on having a pipeline that looks roughly like Reader ----> Extract VOI ----> Do stuff ---> View1 \ +------> Extract VOI ----> Do other stuff ---> View2 where each of the two views show a different part of the full volume. One of the views is scrollable, and the idea is that when the user scrolls that view, the VOI is updated and that branch of the pipeline is re-executed. Only the required data should be loaded from disk into main memory when this happens. Is this kind of setup possible? Or will I have to use two completely separate pipelines? 6) If it turns out there are no built-in file formats where the reader supports loading parts of the data from the file on disk based on downstream requirements, I'm leaning towards making our own HDF5-based format + reader (I believe the full volume will be around 50-100 GB of data), since I think (but I'm not sure) that it's possible to only read parts of a 3D array from a HDF5 file using h5py. Does anyone else have a good suggestion for a file format, or have you been in a similar situation? Very grateful for any advice. Best regards, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Sun Feb 7 06:14:11 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Sun, 7 Feb 2016 12:14:11 +0100 Subject: [vtkusers] Streaming pipeline with parts of big volume in multiple views In-Reply-To: References: Message-ID: The attached sketch gives a better idea of the views I'm after. Elvis 2016-02-07 11:41 GMT+01:00 Elvis Stansvik : > Hi all, > > As I tried to explain in a previous mail > > http://markmail.org/message/mfp2npib5nqeeuux > > I have a large amount of volume data, and I need to render only a small > part of it. > > I've been trying to find information on the streaming visualization > pipeline that VTK supports, but it's been a bit hard to find examples > similar what I want to do. > > My questions right now are: > > 1) Is there some file format for volume data which is supported by VTK > with a reader that is "intelligent" enough to only read the parts of the > file that is requested by downstream consumers into main memory? That is, > is there something I could use so that my use case would work "out of the > box". If there is, I'm prepared to make sure the output from our analysis > is in this format, as it would save me from writing a custom reader. > > 2) If there isn't, does anyone know of an example reader somewhere that > has this intelligence? I'm prepared to write my own reader, but would > really like a good example of how such a reader can be written. > > 3) I assume that all parts of the pipeline I set up must be capable of > working with partial data (extents in my case) for this to work? That is, I > obviously can't have something in the pipeline which is a "bad citizen" and > spoils it, causing the pipeline to request all the data. Is there a list of > which classes that supports this? Or are all filters et.c. in VTK > well-written in the sense that they will only request the minimal amount of > data they need, based on downstream requirements? > > 4) If I set the volume of interest for a volume using a vtkExtractVOI, > will the information about which piece of the volume is required reach the > source (reader) at the start of the pipeline? > > 5) I was planning on having a pipeline that looks roughly like > > Reader ----> Extract VOI ----> Do stuff ---> View1 > \ > +------> Extract VOI ----> Do other stuff ---> View2 > > where each of the two views show a different part of the full volume. One > of the views is scrollable, and the idea is that when the user scrolls that > view, the VOI is updated and that branch of the pipeline is re-executed. > Only the required data should be loaded from disk into main memory when > this happens. Is this kind of setup possible? Or will I have to use two > completely separate pipelines? > > 6) If it turns out there are no built-in file formats where the reader > supports loading parts of the data from the file on disk based on > downstream requirements, I'm leaning towards making our own HDF5-based > format + reader (I believe the full volume will be around 50-100 GB of > data), since I think (but I'm not sure) that it's possible to only read > parts of a 3D array from a HDF5 file using h5py. Does anyone else have a > good suggestion for a file format, or have you been in a similar situation? > > Very grateful for any advice. > > Best regards, > Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: core_views.png Type: image/png Size: 205373 bytes Desc: not available URL: From setegn.2 at buckeyemail.osu.edu Sun Feb 7 09:14:22 2016 From: setegn.2 at buckeyemail.osu.edu (Setegn, Manny) Date: Sun, 7 Feb 2016 14:14:22 +0000 Subject: [vtkusers] VTK 6.2 Java Standalone Application Message-ID: I have a Java VTK project which I have been working on, and I have been attempting to get it to run outside of the Eclipse environment. To my understanding, all that needed to be done is include the path with all of the dlls to the System Environment Path (Windows 8.1) and the JVM's java.library.path would find it. That seems to be the case in the Eclipse environment, but something is missing when I am compiling it from the command line. I am getting a ton of Unsatisfied Linking errors, and would like to know what I am doing wrong. When creating the jar, I've packaged all of the jars which I've referenced to. The only thing I think it could be is that it is not finding the vtk jar file I packaged into the runnable jar. I was hoping for more insight, so please any help would be great! -------------- next part -------------- An HTML attachment was scrubbed... URL: From prakeshofficial at gmail.com Sun Feb 7 09:47:43 2016 From: prakeshofficial at gmail.com (rakesh patil) Date: Sun, 7 Feb 2016 20:17:43 +0530 Subject: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS Message-ID: Hello, I am facing a very strange issue with Dock/Undocking when one of the docked widget is QVTKWidget. I have a centralWidget which contains four tabs. Each tab is an inherited from QWidget. Among these, one widget is QVTKWidget. The issue what I am facing is when I click on the bar and try to undock, the mouse events are lost. I release the mouse button and move the mouse, QVTKWidget keeps moving along with the mouse. I need to click once again on the tab and then it gets undocked fully. Some times while undocking or docking, I observed flickering effect on the renderwindow. It gives feeling like QDockWidget is passing some information/signal to its widgets, which QVTKWidget is not able to process, and other QWidgets are able to process. Has anyone come across this type of scenario? Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Sun Feb 7 19:54:52 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Sun, 7 Feb 2016 17:54:52 -0700 Subject: [vtkusers] VTK 6.2 Java Standalone Application In-Reply-To: References: Message-ID: You may be missing a Visual Studio runtime dll otherwise for the vtk.jar, you can not embed it inside another jar without unpacking it. Moreover the VTK dll can not be packed within a jar. They need to be available in a directory. Seb On Sun, Feb 7, 2016 at 7:14 AM, Setegn, Manny wrote: > I have a Java VTK project which I have been working on, and I have been > attempting to get it to run outside of the Eclipse environment. To my > understanding, all that needed to be done is include the path with all of > the dlls to the System Environment Path (Windows 8.1) and the JVM's > java.library.path would find it. That seems to be the case in the Eclipse > environment, but something is missing when I am compiling it from the > command line. I am getting a ton of Unsatisfied Linking errors, and would > like to know what I am doing wrong. > > > When creating the jar, I've packaged all of the jars which I've referenced > to. The only thing I think it could be is that it is not finding the vtk > jar file I packaged into the runnable jar. I was hoping for more insight, > so please any help would be great! > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 Sun Feb 7 21:43:13 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 7 Feb 2016 21:43:13 -0500 Subject: [vtkusers] ShallowCopy in vtk 7.0 works correct? In-Reply-To: <1454840580511-5736416.post@n5.nabble.com> References: <1454840580511-5736416.post@n5.nabble.com> Message-ID: Hi Daneil, Could you supply a code snippet that demonstrates the problem? Thanks, Cory On Sun, Feb 7, 2016 at 5:23 AM, -Daniel- wrote: > Hi there, > > since version 7.0 I have the impression that > /actorCopy.ShallowCopy(actor);/ > does not work as desired. It's always displayed only one object. With > version 6.3 I received two separate vtkActor's. > Has anyone same experience collected? Does anybody advice? > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/ShallowCopy-in-vtk-7-0-works-correct-tp5736416.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincentrivola at hotmail.com Mon Feb 8 00:57:51 2016 From: vincentrivola at hotmail.com (vincentrivola) Date: Sun, 7 Feb 2016 22:57:51 -0700 (MST) Subject: [vtkusers] VTK 6.2 Java Standalone Application In-Reply-To: References: Message-ID: <1454911071102-5736423.post@n5.nabble.com> If you are trying to use the jar you created on a different machine, indeed, you should make sure that all the Visual Studio redistruables has been installed on this machine. If it's not working on your own machine (where you made the VTK compilation), it is often a problem of finding the java dll, like jawt.dll for instance. In any case you can use dependency walker in order to find out which exact dll is missing. good luck -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-2-Java-Standalone-Application-tp5736419p5736423.html Sent from the VTK - Users mailing list archive at Nabble.com. From Michael.Bachmann at synopsys.com Mon Feb 8 04:52:46 2016 From: Michael.Bachmann at synopsys.com (Michael Bachmann) Date: Mon, 8 Feb 2016 09:52:46 +0000 Subject: [vtkusers] Combined on-screen and off-screen possible with VTK-7.0.0 on linux/X? Message-ID: Hello list! Hello Sophonet! First of all: => Thank you Sophonet for investigating this issue and for describing the patch to "VTKROOT/CMake/vtkOpenGL.cmake". I applied your patch and it also re-enables offscreen rendering on a headless machine (were no X DISPLAY is available). Actually I really wonder why there are only a few posts about this issue. For the application I'm working on the ability of VTK7 to perform On-Screen and Off-Screen rendering with a single build of VTK is an absolute must-have! (Just like it was in VTK5 and VTK6) Please take the suggestion of Sophonet into account and re-enable it at least for the OpenGL rendering backend. Making this available for the OpenGL2 backend should also be considered. Building the software twice, e.g. like it is done for paraview (non-headless) and the paraview server (headless) is not an option for everyone. Actually is quite a big burden which has been silently put on the shoulders of VTK users. So please: Provide the facilities to perform On-Screen and Off-Screen rendering with a single build of VTK using OSMesa and X on Linux again! Best regards, Michael Date: Thu, 21 Jan 2016 14:54:46 +0100 From: Sophonet To: vtkusers at vtk.org Subject: Re: [vtkusers] Combined on-screen and off-screen possible with VTK-7.0.0 on linux/X? Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed As one further follow-up of my two earlier e-mails, I have partly answered the question myself... remember, my question is related to the OpenGL (not OpenGL2) rendering backend. Two observations: 1. It seems that the current CMake flag VTK_OPENGL_HAS_OSMESA is useless, since it does not set anything relevant (see my e-mail below) 2. It seems that combined on-screen / off-screen rendering is possible (on Mesa 9.2.3 using the OpenGL rendering backend): As a quick hack, I have changed VTKROOT/CMake/vtkOpenGL.cmake such that * VTK_USE_OSMESA = True (triggers find_package OSMesa) * VTK_USE_X = True (triggers find_package OpenGL) ...and (at the bottom) vtk_module_link_libraries links to *both*, ${OSMESA_LIBRARY} and ${OPENGL_LIBRARIES}. After this hack, I can successfully launch interactive (glx-)renderwindows as well as set (occasionally) set SetOffscreenRenderingOn(). Therefore, my suggestion would be to - remove VTK_OPENGL_HAS_OSMESA - change the vtkOpenGL.cmake such that VTK_USE_OSMESA is exposed as an advanced option and is not exclusive w.r.t. VTK_USE_X, but may be set at the same time. Any comments? Thanks, Sophonet Am 2016-01-19 11:06, schrieb Sophonet: > As a follow-up, I have done some more investigations myself and am > still lost: > > According to http://www.vtk.org/Wiki/VTK/OSMesa_Support, it seems that > the legacy OSMesa library on linux systems is not needed anymore, but > that software renderers (such as gallium llvm) can provide off-screen > rendering themselves. Correct? > > When looking at VTKROOT/CMake/vtkOpenGL.cmake, it appears (not > perfectly sure though) that in this case VTK_OPENGL_HAS_OSMESA needs > to be turned on, since this flag sets VTK_CAN_DO_OFFSCREEN to 1. > However, it seems to me that VTK_CAN_DO_OFFSCREEN is not used anywhere > else (did a thorough "grep" on that keyword in the source tree). > > It seems that Marcus (Hanwell) was responsible for many of these > changes in CMake - Marcus, can you help? > > What I would like to do is (see my first e-mail below) to > simultaneously use interactive rendering and (occasionally) off-screen > rendering (for generating static images), which was possible on Linux > in earlier versions of VTK (e.g. 5.10), but is not possible anymore. > > Thanks, > > Sophonet > > > Am 2016-01-15 12:44, schrieb Sophonet: >> Dear list, >> >> in my application, I would like to display a vtkRenderWindow for user >> interaction, but I also would like to use off-screen functionality >> simultaneously to render pre-defined views / snapshots that are shown >> as static images, like "thumbnails" for different datasets. >> >> This was possible in VTK 5.10 on linux (by creating a dedicated >> vtkRenderWindow per thumbnail, setting OffScreenRenderingOn, >> rendering and capturing the resulting image with a vtkWindowToImageFilter). >> >> In VTK-7.0.0.rc1, using the OpenGL rendering backend on Mesa 9.2.3, I >> now get a segfault with the following backtrace: >> >> (gdb) bt >> #0 0x00007fffd045db90 in xcb_glx_get_string_string_length () >> from /usr/lib64/libxcb-glx.so.0 >> #1 0x00007fffd0cce605 in ?? () from /usr/lib64/libGL.so.1 >> #2 0x00007fffd0ccc2b6 in ?? () from /usr/lib64/libGL.so.1 >> #3 0x00007fffd14cd086 in >> vtkOpenGLExtensionManager::ReadOpenGLExtensions() () >> from >> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> /libvtkRenderingOpenGL-7.0.so.1 >> #4 0x00007fffd14cbd50 in vtkOpenGLExtensionManager::Update() () >> from >> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> /libvtkRenderingOpenGL-7.0.so.1 >> #5 0x00007fffd14cafd7 in >> vtkOpenGLExtensionManager::ExtensionSupported(char const*) () >> from >> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> /libvtkRenderingOpenGL-7.0.so.1 >> #6 0x00007fffd14ec8ea in vtkOpenGLRenderWindow::OpenGLInitContext() >> () >> from >> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> /libvtkRenderingOpenGL-7.0.so.1 >> #7 0x00007fffd14eae6d in vtkOpenGLRenderWindow::OpenGLInit() () >> from >> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> /libvtkRenderingOpenGL-7.0.so.1 >> #8 0x00007fffd1576932 in >> vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int) () >> >> Besides a remark that probably there could be better error handling >> than just letting the app crash without an exception being thrown, I >> would like to know if joint on-screen rendering and off-screen >> rendering is still possible somehow with VTK-7.0.0. >> >> I have made two approaches when configuring via CMake: (i) Setting >> VTK_OPENGL_HAS_OSMESA=True (no effect, I think I remember that in >> earlier versions, this allowed OSMESA_INCLUDE_DIR etc. to be set; >> this is not the case anymore, so does this flag still do something? >> Note that for VTK 5.10 as mentioned above I did not have to set this >> explicitly), (ii) Setting USE_OFFSXCREEN_EGL=True - resulting in an >> error that this could not be combined with VTK_USE_X. >> >> On Windows, combining on-screen and off-screen rendering as described >> in the second paragraph is possible. >> >> Any suggestions would be welcome, the Wiki page I have found on this >> topic is not fully understandable to me >> (http://www.vtk.org/Wiki/VTK/OSMesa_Support; does this mean that I >> have to switch on VTK_OPENGL_HAS_OSMESA or not?...) >> >> Thanks, >> >> sophonet >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From A.Buykx at tnodiana.com Mon Feb 8 10:51:36 2016 From: A.Buykx at tnodiana.com (Andreas Buykx) Date: Mon, 8 Feb 2016 15:51:36 +0000 Subject: [vtkusers] can vtkCell::EvaluatePosition be called from python? Message-ID: <65D987BE62E58141AA480A59A8B5BBEA71C03AD9@srv-mail.diana.local> I tried to compare the EvaluatePosition results of vtkQuad and vtkQuadraticQuad, by calling them from a python script, but the result is unexpected. Is it possible to call the function from python? thanks! Andreas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: evaluateposition.py Type: application/octet-stream Size: 1314 bytes Desc: evaluateposition.py URL: From david.gobbi at gmail.com Mon Feb 8 11:41:54 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 8 Feb 2016 09:41:54 -0700 Subject: [vtkusers] can vtkCell::EvaluatePosition be called from python? In-Reply-To: <65D987BE62E58141AA480A59A8B5BBEA71C03AD9@srv-mail.diana.local> References: <65D987BE62E58141AA480A59A8B5BBEA71C03AD9@srv-mail.diana.local> Message-ID: Hi Andreas, The way you have used vtk.mutable(), the mutable object is thrown away as soon as the function call is complete: cell.EvaluatePosition(...,vtk.mutable(subId),...,vtk.mutable(dist2),...) Do this instead: subId=vtk.mutable(-1) dist2=vtk.mutable(-1.0) cell.EvaluatePosition(...,subId,...,dist2,...) Cheers, - David On Mon, Feb 8, 2016 at 8:51 AM, Andreas Buykx wrote: > I tried to compare the EvaluatePosition results of vtkQuad and > vtkQuadraticQuad, by calling them from a python script, but the result is > unexpected. Is it possible to call the function from python? > > > > thanks! > > Andreas > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Feb 8 11:59:56 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 8 Feb 2016 11:59:56 -0500 Subject: [vtkusers] VTK 7 and vtkRenderingOpenGL2 migration In-Reply-To: <56B4CD74.7090406@cora.nwra.com> References: <56B4CD74.7090406@cora.nwra.com> Message-ID: I believe you can do #include "vtkRenderingOpenGLConfigure.h" #ifdef VTK_OPENGL2 blah #endif #ifdef VTK_OPENGL1 blah #endif On Fri, Feb 5, 2016 at 11:27 AM, Orion Poplawski wrote: > I'm looking at updating the Fedora VTK package to 7.0 and rebuilding > dependent > packages here: https://copr.fedorainfracloud.org/coprs/orion/vtk7/builds/ > > One problem is packages (e.g. engrid) that do: > > VTK_MODULE_INIT(vtkRenderingOpenGL); > > It appears that with VTK 7.0 it would need to do: > > VTK_MODULE_INIT(vtkRenderingOpenGL2); > > What's the best way for projects to handle this automatically, as the vtk > they > are building against may have been built with either backend. > > > -- > Orion Poplawski > Technical Manager 303-415-9701 x222 > NWRA, Boulder/CoRA Office FAX: 303-415-9702 > 3380 Mitchell Lane orion at nwra.com > Boulder, CO 80301 http://www.nwra.com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion at cora.nwra.com Mon Feb 8 12:25:12 2016 From: orion at cora.nwra.com (Orion Poplawski) Date: Mon, 8 Feb 2016 10:25:12 -0700 Subject: [vtkusers] VTK 7 and vtkRenderingOpenGL2 migration In-Reply-To: References: <56B4CD74.7090406@cora.nwra.com> Message-ID: <56B8CF78.2030305@cora.nwra.com> Thanks for the response, but I can't find any evidence of these macros in the installed headers or anything else of use in that header file, except perhaps the new definition of VTK_USE_GLSL_SHADERS. On 02/08/2016 09:59 AM, Ken Martin wrote: > I believe you can do > > #include "vtkRenderingOpenGLConfigure.h" > > #ifdef VTK_OPENGL2 > blah > #endif > > #ifdef VTK_OPENGL1 > blah > #endif > > > > On Fri, Feb 5, 2016 at 11:27 AM, Orion Poplawski > wrote: > > I'm looking at updating the Fedora VTK package to 7.0 and rebuilding dependent > packages here: https://copr.fedorainfracloud.org/coprs/orion/vtk7/builds/ > > One problem is packages (e.g. engrid) that do: > > VTK_MODULE_INIT(vtkRenderingOpenGL); > > It appears that with VTK 7.0 it would need to do: > > VTK_MODULE_INIT(vtkRenderingOpenGL2); > > What's the best way for projects to handle this automatically, as the vtk they > are building against may have been built with either backend. > > > -- > Orion Poplawski > Technical Manager 303-415-9701 x222 > > NWRA, Boulder/CoRA Office FAX: 303-415-9702 > 3380 Mitchell Lane orion at nwra.com > > Boulder, CO 80301 http://www.nwra.com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and destroy > the original message. Thank you. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion at nwra.com Boulder, CO 80301 http://www.nwra.com From rexissimus at yahoo.se Mon Feb 8 13:31:07 2016 From: rexissimus at yahoo.se (Tommy Ellqvist) Date: Mon, 8 Feb 2016 11:31:07 -0700 (MST) Subject: [vtkusers] Sorting bug when running QVTKRenderWidgetConeExample in VTK 7.0.0 Message-ID: <1454956267303-5736431.post@n5.nabble.com> The VTK example "QVTKRenderWidgetConeExample" does not render correctly in VTK7. It looks like the triangles are rendered in the wrong order. The cone is rendered correctly in python when not using QT. It looks like a bug with the Qt code in VTK? Or could there be something else messing up the rendering? I am running VTK 7.0.0 compiled with OpenGL2, Python 3, PyQt5.2.1, Qt5.2 Thanks, Tommy -- View this message in context: http://vtk.1045678.n5.nabble.com/Sorting-bug-when-running-QVTKRenderWidgetConeExample-in-VTK-7-0-0-tp5736431.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Mon Feb 8 13:46:31 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 8 Feb 2016 11:46:31 -0700 Subject: [vtkusers] Sorting bug when running QVTKRenderWidgetConeExample in VTK 7.0.0 In-Reply-To: <1454956267303-5736431.post@n5.nabble.com> References: <1454956267303-5736431.post@n5.nabble.com> Message-ID: You mean the example in QVTKRenderWindowInteractor.py? See the following recent discussion: http://public.kitware.com/pipermail/vtkusers/2016-February/094016.html Cheers, - David On Mon, Feb 8, 2016 at 11:31 AM, Tommy Ellqvist wrote: > The VTK example "QVTKRenderWidgetConeExample" does not render correctly in > VTK7. It looks like the triangles are rendered in the wrong order. The cone > is rendered correctly in python when not using QT. It looks like a bug with > the Qt code in VTK? Or could there be something else messing up the > rendering? > > I am running VTK 7.0.0 compiled with OpenGL2, Python 3, PyQt5.2.1, Qt5.2 > > Thanks, > Tommy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kayarre at gmail.com Mon Feb 8 16:55:50 2016 From: kayarre at gmail.com (Kurt Sansom) Date: Mon, 8 Feb 2016 13:55:50 -0800 Subject: [vtkusers] GL_EXT_gpu_shader4 unsupported help Message-ID: I am having this issue that my compiled version of VTK doesn't like GL_EXT_gpu_shader4. I have the latest nvidia drivers installed and what I believe is the correct OpenGL version. I messed with several of the CMake VTK build settings to no avail. I also ran glxinfo which lists GL_EXT_gpu_shader4. the output is attached. Any thoughts or help? I also tried adding these variables before running which just made the program repeat output to the standard out. export MESA_GL_VERSION_OVERRIDE=3.2; export MESA_GLSL_VERSION_OVERRIDE=150; Executing vmtklevelsetsegmentation ... Please choose initialization type: 0: colliding fronts; 1: fast marching; 2: threshold; 3: isosurface; 4: seed GL_Version: 2.1 Mesa 10.6.5 ERROR: In /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 545 vtkOSOpenGLRenderWindow (0x4a61440): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. ERROR: In /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, line 369 vtkShaderProgram (0x3ade100): 1: #version 120 2: #extension GL_EXT_gpu_shader4 : require ... 103: ERROR: In /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, line 370 vtkShaderProgram (0x3ade100): 0:2(12): error: extension `GL_EXT_gpu_shader4' unsupported in fragment shader -- Kurt Sansom -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- name of display: :1 display: :1 screen: 0 direct rendering: Yes server glx vendor string: NVIDIA Corporation server glx version string: 1.4 server glx extensions: GLX_ARB_context_flush_control, GLX_ARB_create_context, GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, GLX_ARB_multisample, GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, GLX_EXT_framebuffer_sRGB, GLX_EXT_stereo_tree, GLX_EXT_swap_control, GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_buffer, GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, GLX_NV_multisample_coverage, GLX_NV_swap_group, GLX_NV_video_capture, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync client glx vendor string: NVIDIA Corporation client glx version string: 1.4 client glx extensions: GLX_ARB_context_flush_control, GLX_ARB_create_context, GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_stereo_tree, GLX_EXT_swap_control, GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_buffer, GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, GLX_NV_multisample_coverage, GLX_NV_present_video, GLX_NV_swap_group, GLX_NV_video_capture, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync GLX version: 1.4 GLX extensions: GLX_ARB_context_flush_control, GLX_ARB_create_context, GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, GLX_EXT_framebuffer_sRGB, GLX_EXT_stereo_tree, GLX_EXT_swap_control, GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_buffer, GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer, GLX_NV_multisample_coverage, GLX_NV_swap_group, GLX_NV_video_capture, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: Quadro 2000/PCIe/SSE2 OpenGL core profile version string: 4.4.0 NVIDIA 352.79 OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: GL_AMD_multi_draw_indirect, GL_ARB_ES2_compatibility, GL_ARB_ES3_1_compatibility, GL_ARB_ES3_compatibility, GL_ARB_arrays_of_arrays, GL_ARB_base_instance, GL_ARB_blend_func_extended, GL_ARB_buffer_storage, GL_ARB_clear_buffer_object, GL_ARB_clear_texture, GL_ARB_clip_control, GL_ARB_color_buffer_float, GL_ARB_compressed_texture_pixel_storage, GL_ARB_compute_shader, GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, GL_ARB_copy_buffer, GL_ARB_copy_image, GL_ARB_cull_distance, GL_ARB_debug_output, GL_ARB_depth_buffer_float, GL_ARB_depth_clamp, GL_ARB_depth_texture, GL_ARB_derivative_control, GL_ARB_direct_state_access, GL_ARB_draw_buffers, GL_ARB_draw_buffers_blend, GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect, GL_ARB_draw_instanced, GL_ARB_enhanced_layouts, GL_ARB_explicit_attrib_location, GL_ARB_explicit_uniform_location, GL_ARB_fragment_coord_conventions, GL_ARB_fragment_layer_viewport, GL_ARB_fragment_program, GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader, GL_ARB_framebuffer_no_attachments, GL_ARB_framebuffer_object, GL_ARB_framebuffer_sRGB, GL_ARB_geometry_shader4, GL_ARB_get_program_binary, GL_ARB_get_texture_sub_image, GL_ARB_gpu_shader5, GL_ARB_gpu_shader_fp64, GL_ARB_half_float_pixel, GL_ARB_half_float_vertex, GL_ARB_imaging, GL_ARB_indirect_parameters, GL_ARB_instanced_arrays, GL_ARB_internalformat_query, GL_ARB_internalformat_query2, GL_ARB_invalidate_subdata, GL_ARB_map_buffer_alignment, GL_ARB_map_buffer_range, GL_ARB_multi_bind, GL_ARB_multi_draw_indirect, GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_occlusion_query2, GL_ARB_pipeline_statistics_query, GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_program_interface_query, GL_ARB_provoking_vertex, GL_ARB_query_buffer_object, GL_ARB_robust_buffer_access_behavior, GL_ARB_robustness, GL_ARB_sample_shading, GL_ARB_sampler_objects, GL_ARB_seamless_cube_map, GL_ARB_separate_shader_objects, GL_ARB_shader_atomic_counters, GL_ARB_shader_bit_encoding, GL_ARB_shader_draw_parameters, GL_ARB_shader_group_vote, GL_ARB_shader_image_load_store, GL_ARB_shader_image_size, GL_ARB_shader_objects, GL_ARB_shader_precision, GL_ARB_shader_storage_buffer_object, GL_ARB_shader_subroutine, GL_ARB_shader_texture_image_samples, GL_ARB_shader_texture_lod, GL_ARB_shading_language_100, GL_ARB_shading_language_420pack, GL_ARB_shading_language_include, GL_ARB_shading_language_packing, GL_ARB_shadow, GL_ARB_sparse_buffer, GL_ARB_sparse_texture, GL_ARB_stencil_texturing, GL_ARB_sync, GL_ARB_tessellation_shader, GL_ARB_texture_barrier, GL_ARB_texture_border_clamp, GL_ARB_texture_buffer_object, GL_ARB_texture_buffer_object_rgb32, GL_ARB_texture_buffer_range, GL_ARB_texture_compression, GL_ARB_texture_compression_bptc, GL_ARB_texture_compression_rgtc, GL_ARB_texture_cube_map, GL_ARB_texture_cube_map_array, GL_ARB_texture_env_add, GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3, GL_ARB_texture_float, GL_ARB_texture_gather, GL_ARB_texture_mirror_clamp_to_edge, GL_ARB_texture_mirrored_repeat, GL_ARB_texture_multisample, GL_ARB_texture_non_power_of_two, GL_ARB_texture_query_levels, GL_ARB_texture_query_lod, GL_ARB_texture_rectangle, GL_ARB_texture_rg, GL_ARB_texture_rgb10_a2ui, GL_ARB_texture_stencil8, GL_ARB_texture_storage, GL_ARB_texture_storage_multisample, GL_ARB_texture_swizzle, GL_ARB_texture_view, GL_ARB_timer_query, GL_ARB_transform_feedback2, GL_ARB_transform_feedback3, GL_ARB_transform_feedback_instanced, GL_ARB_transform_feedback_overflow_query, GL_ARB_transpose_matrix, GL_ARB_uniform_buffer_object, GL_ARB_vertex_array_bgra, GL_ARB_vertex_array_object, GL_ARB_vertex_attrib_64bit, GL_ARB_vertex_attrib_binding, GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_vertex_type_10f_11f_11f_rev, GL_ARB_vertex_type_2_10_10_10_rev, GL_ARB_viewport_array, GL_ARB_window_pos, GL_ATI_draw_buffers, GL_ATI_texture_float, GL_ATI_texture_mirror_once, GL_EXTX_framebuffer_mixed_formats, GL_EXT_Cg_shader, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_bindable_uniform, GL_EXT_blend_color, GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_compiled_vertex_array, GL_EXT_depth_bounds_test, GL_EXT_direct_state_access, GL_EXT_draw_buffers2, GL_EXT_draw_instanced, GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_multisample_blit_scaled, GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_geometry_shader4, GL_EXT_gpu_program_parameters, GL_EXT_gpu_shader4, GL_EXT_import_sync_object, GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil, GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object, GL_EXT_point_parameters, GL_EXT_polygon_offset_clamp, GL_EXT_provoking_vertex, GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_separate_shader_objects, GL_EXT_separate_specular_color, GL_EXT_shader_image_load_store, GL_EXT_shader_integer_mix, GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_texture3D, GL_EXT_texture_array, GL_EXT_texture_buffer_object, GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_latc, GL_EXT_texture_compression_rgtc, GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add, GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic, GL_EXT_texture_integer, GL_EXT_texture_lod, GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp, GL_EXT_texture_object, GL_EXT_texture_sRGB, GL_EXT_texture_sRGB_decode, GL_EXT_texture_shared_exponent, GL_EXT_texture_storage, GL_EXT_texture_swizzle, GL_EXT_timer_query, GL_EXT_transform_feedback2, GL_EXT_vertex_array, GL_EXT_vertex_array_bgra, GL_EXT_vertex_attrib_64bit, GL_EXT_x11_sync_object, GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat, GL_KHR_blend_equation_advanced, GL_KHR_context_flush_control, GL_KHR_debug, GL_KHR_robust_buffer_access_behavior, GL_KHR_robustness, GL_KTX_buffer_region, GL_NVX_conditional_render, GL_NVX_gpu_memory_info, GL_NV_ES1_1_compatibility, GL_NV_ES3_1_compatibility, GL_NV_bindless_multi_draw_indirect, GL_NV_bindless_multi_draw_indirect_count, GL_NV_blend_equation_advanced, GL_NV_blend_square, GL_NV_command_list, GL_NV_compute_program5, GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image, GL_NV_depth_buffer_float, GL_NV_depth_clamp, GL_NV_draw_texture, GL_NV_explicit_multisample, GL_NV_fence, GL_NV_float_buffer, GL_NV_fog_distance, GL_NV_fragment_program, GL_NV_fragment_program2, GL_NV_fragment_program_option, GL_NV_framebuffer_multisample_coverage, GL_NV_geometry_shader4, GL_NV_gpu_program4, GL_NV_gpu_program4_1, GL_NV_gpu_program5, GL_NV_gpu_program5_mem_extended, GL_NV_gpu_program_fp64, GL_NV_gpu_shader5, GL_NV_half_float, GL_NV_internalformat_sample_query, GL_NV_light_max_exponent, GL_NV_multisample_coverage, GL_NV_multisample_filter_hint, GL_NV_occlusion_query, GL_NV_packed_depth_stencil, GL_NV_parameter_buffer_object, GL_NV_parameter_buffer_object2, GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite, GL_NV_primitive_restart, GL_NV_register_combiners, GL_NV_register_combiners2, GL_NV_shader_atomic_counters, GL_NV_shader_atomic_float, GL_NV_shader_buffer_load, GL_NV_shader_storage_buffer_object, GL_NV_shader_thread_group, GL_NV_texgen_reflection, GL_NV_texture_barrier, GL_NV_texture_compression_vtc, GL_NV_texture_env_combine4, GL_NV_texture_multisample, GL_NV_texture_rectangle, GL_NV_texture_shader, GL_NV_texture_shader2, GL_NV_texture_shader3, GL_NV_transform_feedback, GL_NV_transform_feedback2, GL_NV_uniform_buffer_unified_memory, GL_NV_vdpau_interop, GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_attrib_integer_64bit, GL_NV_vertex_buffer_unified_memory, GL_NV_vertex_program, GL_NV_vertex_program1_1, GL_NV_vertex_program2, GL_NV_vertex_program2_option, GL_NV_vertex_program3, GL_NV_video_capture, GL_S3_s3tc, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow, GL_SUN_slice_accum OpenGL version string: 4.5.0 NVIDIA 352.79 OpenGL shading language version string: 4.50 NVIDIA OpenGL context flags: (none) OpenGL profile mask: (none) OpenGL extensions: GL_AMD_multi_draw_indirect, GL_ARB_ES2_compatibility, GL_ARB_ES3_1_compatibility, GL_ARB_ES3_compatibility, GL_ARB_arrays_of_arrays, GL_ARB_base_instance, GL_ARB_blend_func_extended, GL_ARB_buffer_storage, GL_ARB_clear_buffer_object, GL_ARB_clear_texture, GL_ARB_clip_control, GL_ARB_color_buffer_float, GL_ARB_compatibility, GL_ARB_compressed_texture_pixel_storage, GL_ARB_compute_shader, GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, GL_ARB_copy_buffer, GL_ARB_copy_image, GL_ARB_cull_distance, GL_ARB_debug_output, GL_ARB_depth_buffer_float, GL_ARB_depth_clamp, GL_ARB_depth_texture, GL_ARB_derivative_control, GL_ARB_direct_state_access, GL_ARB_draw_buffers, GL_ARB_draw_buffers_blend, GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect, GL_ARB_draw_instanced, GL_ARB_enhanced_layouts, GL_ARB_explicit_attrib_location, GL_ARB_explicit_uniform_location, GL_ARB_fragment_coord_conventions, GL_ARB_fragment_layer_viewport, GL_ARB_fragment_program, GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader, GL_ARB_framebuffer_no_attachments, GL_ARB_framebuffer_object, GL_ARB_framebuffer_sRGB, GL_ARB_geometry_shader4, GL_ARB_get_program_binary, GL_ARB_get_texture_sub_image, GL_ARB_gpu_shader5, GL_ARB_gpu_shader_fp64, GL_ARB_half_float_pixel, GL_ARB_half_float_vertex, GL_ARB_imaging, GL_ARB_indirect_parameters, GL_ARB_instanced_arrays, GL_ARB_internalformat_query, GL_ARB_internalformat_query2, GL_ARB_invalidate_subdata, GL_ARB_map_buffer_alignment, GL_ARB_map_buffer_range, GL_ARB_multi_bind, GL_ARB_multi_draw_indirect, GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_occlusion_query2, GL_ARB_pipeline_statistics_query, GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_program_interface_query, GL_ARB_provoking_vertex, GL_ARB_query_buffer_object, GL_ARB_robust_buffer_access_behavior, GL_ARB_robustness, GL_ARB_sample_shading, GL_ARB_sampler_objects, GL_ARB_seamless_cube_map, GL_ARB_separate_shader_objects, GL_ARB_shader_atomic_counters, GL_ARB_shader_bit_encoding, GL_ARB_shader_draw_parameters, GL_ARB_shader_group_vote, GL_ARB_shader_image_load_store, GL_ARB_shader_image_size, GL_ARB_shader_objects, GL_ARB_shader_precision, GL_ARB_shader_storage_buffer_object, GL_ARB_shader_subroutine, GL_ARB_shader_texture_image_samples, GL_ARB_shader_texture_lod, GL_ARB_shading_language_100, GL_ARB_shading_language_420pack, GL_ARB_shading_language_include, GL_ARB_shading_language_packing, GL_ARB_shadow, GL_ARB_sparse_buffer, GL_ARB_sparse_texture, GL_ARB_stencil_texturing, GL_ARB_sync, GL_ARB_tessellation_shader, GL_ARB_texture_barrier, GL_ARB_texture_border_clamp, GL_ARB_texture_buffer_object, GL_ARB_texture_buffer_object_rgb32, GL_ARB_texture_buffer_range, GL_ARB_texture_compression, GL_ARB_texture_compression_bptc, GL_ARB_texture_compression_rgtc, GL_ARB_texture_cube_map, GL_ARB_texture_cube_map_array, GL_ARB_texture_env_add, GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3, GL_ARB_texture_float, GL_ARB_texture_gather, GL_ARB_texture_mirror_clamp_to_edge, GL_ARB_texture_mirrored_repeat, GL_ARB_texture_multisample, GL_ARB_texture_non_power_of_two, GL_ARB_texture_query_levels, GL_ARB_texture_query_lod, GL_ARB_texture_rectangle, GL_ARB_texture_rg, GL_ARB_texture_rgb10_a2ui, GL_ARB_texture_stencil8, GL_ARB_texture_storage, GL_ARB_texture_storage_multisample, GL_ARB_texture_swizzle, GL_ARB_texture_view, GL_ARB_timer_query, GL_ARB_transform_feedback2, GL_ARB_transform_feedback3, GL_ARB_transform_feedback_instanced, GL_ARB_transform_feedback_overflow_query, GL_ARB_transpose_matrix, GL_ARB_uniform_buffer_object, GL_ARB_vertex_array_bgra, GL_ARB_vertex_array_object, GL_ARB_vertex_attrib_64bit, GL_ARB_vertex_attrib_binding, GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_vertex_type_10f_11f_11f_rev, GL_ARB_vertex_type_2_10_10_10_rev, GL_ARB_viewport_array, GL_ARB_window_pos, GL_ATI_draw_buffers, GL_ATI_texture_float, GL_ATI_texture_mirror_once, GL_EXTX_framebuffer_mixed_formats, GL_EXT_Cg_shader, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_bindable_uniform, GL_EXT_blend_color, GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_compiled_vertex_array, GL_EXT_depth_bounds_test, GL_EXT_direct_state_access, GL_EXT_draw_buffers2, GL_EXT_draw_instanced, GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_multisample_blit_scaled, GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_geometry_shader4, GL_EXT_gpu_program_parameters, GL_EXT_gpu_shader4, GL_EXT_import_sync_object, GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil, GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object, GL_EXT_point_parameters, GL_EXT_polygon_offset_clamp, GL_EXT_provoking_vertex, GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_separate_shader_objects, GL_EXT_separate_specular_color, GL_EXT_shader_image_load_store, GL_EXT_shader_integer_mix, GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_texture3D, GL_EXT_texture_array, GL_EXT_texture_buffer_object, GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_latc, GL_EXT_texture_compression_rgtc, GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add, GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic, GL_EXT_texture_integer, GL_EXT_texture_lod, GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp, GL_EXT_texture_object, GL_EXT_texture_sRGB, GL_EXT_texture_sRGB_decode, GL_EXT_texture_shared_exponent, GL_EXT_texture_storage, GL_EXT_texture_swizzle, GL_EXT_timer_query, GL_EXT_transform_feedback2, GL_EXT_vertex_array, GL_EXT_vertex_array_bgra, GL_EXT_vertex_attrib_64bit, GL_EXT_x11_sync_object, GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat, GL_KHR_blend_equation_advanced, GL_KHR_context_flush_control, GL_KHR_debug, GL_KHR_robust_buffer_access_behavior, GL_KHR_robustness, GL_KTX_buffer_region, GL_NVX_conditional_render, GL_NVX_gpu_memory_info, GL_NV_ES1_1_compatibility, GL_NV_ES3_1_compatibility, GL_NV_bindless_multi_draw_indirect, GL_NV_bindless_multi_draw_indirect_count, GL_NV_blend_equation_advanced, GL_NV_blend_square, GL_NV_command_list, GL_NV_compute_program5, GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image, GL_NV_depth_buffer_float, GL_NV_depth_clamp, GL_NV_draw_texture, GL_NV_explicit_multisample, GL_NV_fence, GL_NV_float_buffer, GL_NV_fog_distance, GL_NV_fragment_program, GL_NV_fragment_program2, GL_NV_fragment_program_option, GL_NV_framebuffer_multisample_coverage, GL_NV_geometry_shader4, GL_NV_gpu_program4, GL_NV_gpu_program4_1, GL_NV_gpu_program5, GL_NV_gpu_program5_mem_extended, GL_NV_gpu_program_fp64, GL_NV_gpu_shader5, GL_NV_half_float, GL_NV_internalformat_sample_query, GL_NV_light_max_exponent, GL_NV_multisample_coverage, GL_NV_multisample_filter_hint, GL_NV_occlusion_query, GL_NV_packed_depth_stencil, GL_NV_parameter_buffer_object, GL_NV_parameter_buffer_object2, GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite, GL_NV_primitive_restart, GL_NV_register_combiners, GL_NV_register_combiners2, GL_NV_shader_atomic_counters, GL_NV_shader_atomic_float, GL_NV_shader_buffer_load, GL_NV_shader_storage_buffer_object, GL_NV_shader_thread_group, GL_NV_texgen_reflection, GL_NV_texture_barrier, GL_NV_texture_compression_vtc, GL_NV_texture_env_combine4, GL_NV_texture_multisample, GL_NV_texture_rectangle, GL_NV_texture_shader, GL_NV_texture_shader2, GL_NV_texture_shader3, GL_NV_transform_feedback, GL_NV_transform_feedback2, GL_NV_uniform_buffer_unified_memory, GL_NV_vdpau_interop, GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_attrib_integer_64bit, GL_NV_vertex_buffer_unified_memory, GL_NV_vertex_program, GL_NV_vertex_program1_1, GL_NV_vertex_program2, GL_NV_vertex_program2_option, GL_NV_vertex_program3, GL_NV_video_capture, GL_S3_s3tc, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow, GL_SUN_slice_accum OpenGL ES profile version string: OpenGL ES 3.1 NVIDIA 352.79 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10 OpenGL ES profile extensions: GL_ANDROID_extension_pack_es31a, GL_EXT_base_instance, GL_EXT_blend_minmax, GL_EXT_buffer_storage, GL_EXT_color_buffer_float, GL_EXT_color_buffer_half_float, GL_EXT_copy_image, GL_EXT_debug_label, GL_EXT_discard_framebuffer, GL_EXT_disjoint_timer_query, GL_EXT_draw_buffers_indexed, GL_EXT_draw_elements_base_vertex, GL_EXT_frag_depth, GL_EXT_geometry_point_size, GL_EXT_geometry_shader, GL_EXT_gpu_shader5, GL_EXT_map_buffer_range, GL_EXT_multi_draw_indirect, GL_EXT_occlusion_query_boolean, GL_EXT_primitive_bounding_box, GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB, GL_EXT_sRGB_write_control, GL_EXT_separate_shader_objects, GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix, GL_EXT_shader_io_blocks, GL_EXT_shader_texture_lod, GL_EXT_shadow_samplers, GL_EXT_sparse_texture, GL_EXT_tessellation_point_size, GL_EXT_tessellation_shader, GL_EXT_texture_border_clamp, GL_EXT_texture_buffer, GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map_array, GL_EXT_texture_filter_anisotropic, GL_EXT_texture_format_BGRA8888, GL_EXT_texture_norm16, GL_EXT_texture_rg, GL_EXT_texture_sRGB_decode, GL_EXT_texture_storage, GL_EXT_texture_view, GL_EXT_unpack_subimage, GL_KHR_blend_equation_advanced, GL_KHR_context_flush_control, GL_KHR_debug, GL_KHR_robust_buffer_access_behavior, GL_KHR_robustness, GL_NV_bgr, GL_NV_blend_equation_advanced, GL_NV_conditional_render, GL_NV_copy_buffer, GL_NV_copy_image, GL_NV_draw_buffers, GL_NV_draw_instanced, GL_NV_draw_texture, GL_NV_explicit_attrib_location, GL_NV_fbo_color_attachments, GL_NV_framebuffer_blit, GL_NV_framebuffer_multisample, GL_NV_generate_mipmap_sRGB, GL_NV_gpu_shader5, GL_NV_image_formats, GL_NV_instanced_arrays, GL_NV_internalformat_sample_query, GL_NV_non_square_matrices, GL_NV_occlusion_query_samples, GL_NV_pack_subimage, GL_NV_packed_float, GL_NV_packed_float_linear, GL_NV_path_rendering, GL_NV_pixel_buffer_object, GL_NV_polygon_mode, GL_NV_read_buffer, GL_NV_read_depth, GL_NV_read_depth_stencil, GL_NV_read_stencil, GL_NV_sRGB_formats, GL_NV_shader_noperspective_interpolation, GL_NV_shadow_samplers_array, GL_NV_shadow_samplers_cube, GL_NV_texture_array, GL_NV_texture_border_clamp, GL_NV_texture_compression_latc, GL_NV_texture_compression_s3tc, GL_NV_texture_compression_s3tc_update, GL_NV_timer_query, GL_NV_viewport_array, GL_OES_compressed_ETC1_RGB8_texture, GL_OES_copy_image, GL_OES_depth24, GL_OES_depth32, GL_OES_depth_texture, GL_OES_depth_texture_cube_map, GL_OES_draw_buffers_indexed, GL_OES_draw_elements_base_vertex, GL_OES_element_index_uint, GL_OES_fbo_render_mipmap, GL_OES_geometry_point_size, GL_OES_geometry_shader, GL_OES_get_program_binary, GL_OES_gpu_shader5, GL_OES_mapbuffer, GL_OES_packed_depth_stencil, GL_OES_primitive_bounding_box, GL_OES_rgb8_rgba8, GL_OES_sample_shading, GL_OES_sample_variables, GL_OES_shader_image_atomic, GL_OES_shader_io_blocks, GL_OES_shader_multisample_interpolation, GL_OES_standard_derivatives, GL_OES_tessellation_point_size, GL_OES_tessellation_shader, GL_OES_texture_border_clamp, GL_OES_texture_buffer, GL_OES_texture_cube_map_array, GL_OES_texture_float, GL_OES_texture_float_linear, GL_OES_texture_half_float, GL_OES_texture_half_float_linear, GL_OES_texture_npot, GL_OES_texture_stencil8, GL_OES_texture_storage_multisample_2d_array, GL_OES_texture_view, GL_OES_vertex_array_object, GL_OES_vertex_half_float 276 GLX Visuals visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat ---------------------------------------------------------------------------- 0x021 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x022 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x024 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x025 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x026 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x027 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x028 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x029 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x02a 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x02b 24 tc 0 24 0 r y . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x02c 24 tc 0 32 0 r y . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x02d 24 tc 0 24 0 r . . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x02e 24 tc 0 32 0 r . . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x02f 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x030 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x031 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x032 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x033 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x034 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x035 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x036 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x037 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x038 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x039 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x03a 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x03b 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x03c 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x03d 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x03e 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x03f 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x040 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x041 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x042 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x043 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x044 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x045 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x046 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x047 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x048 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x049 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x04a 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x04b 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x04c 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x04d 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x04e 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x04f 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x050 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x051 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x052 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x053 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x054 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x055 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x056 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x057 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x058 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x059 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x05a 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x05b 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x05c 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x05d 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x05e 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x05f 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x060 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x061 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x062 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x063 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x064 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x065 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x066 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x067 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x068 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x069 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x06a 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x06b 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x06c 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x06d 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x06e 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x06f 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x070 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x071 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x072 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x073 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x074 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x075 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x076 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x077 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x078 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x079 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x07a 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x07b 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x07c 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x07d 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x07e 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x07f 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x080 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x081 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x082 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x083 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x084 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x085 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x086 24 dc 0 24 0 r y . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x087 24 dc 0 32 0 r y . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x088 24 dc 0 24 0 r . . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x089 24 dc 0 32 0 r . . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x08a 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x08b 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x08c 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x08d 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x08e 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x08f 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x090 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x091 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x092 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x093 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x094 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x095 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x096 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x097 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x098 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x099 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x09a 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x09b 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x09c 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x09d 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x09e 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x09f 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0a0 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0a1 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0a2 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0a3 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0a4 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0a5 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0a6 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0a7 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0a8 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0a9 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0aa 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x0ab 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x0ac 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x0ad 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x0ae 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x0af 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x0b0 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x0b1 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x0b2 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x0b3 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x0b4 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0b5 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0b6 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0b7 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0b8 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x0b9 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x0ba 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0bb 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0bc 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0bd 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0be 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0bf 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0c0 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0c1 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0c2 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0c3 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0c4 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0c5 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0c6 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0c7 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0c8 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0c9 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x0ca 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x0cb 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x0cc 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x0cd 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x0ce 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x0cf 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x0d0 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x0d1 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x0d2 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x0d3 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x0d4 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x0d5 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x0d6 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x0d7 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x0d8 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x0d9 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x023 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x0da 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x0db 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x0dc 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x0dd 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x0de 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x0df 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x0e0 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x0e1 32 tc 0 24 0 r y . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x0e2 32 tc 0 32 0 r y . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x0e3 32 tc 0 24 0 r . . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x0e4 32 tc 0 32 0 r . . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x0e5 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x0e6 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x0e7 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x0e8 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x0e9 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x0ea 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x0eb 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x0ec 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x0ed 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x0ee 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x0ef 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x0f0 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x0f1 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x0f2 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x0f3 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x0f4 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x0f5 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x0f6 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x0f7 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x0f8 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x0f9 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0fa 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0fb 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0fc 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x0fd 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0fe 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x0ff 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x100 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x101 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x102 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x103 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x104 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x105 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x106 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x107 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x108 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x109 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x10a 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x10b 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x10c 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x10d 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x10e 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x10f 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x110 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x111 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x112 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x113 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x114 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x115 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x116 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x117 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x118 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x119 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x11a 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x11b 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x11c 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x11d 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x11e 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x11f 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x120 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x121 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x122 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x123 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x124 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x125 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x126 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x127 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x128 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x129 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x12a 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x12b 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x12c 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x12d 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x12e 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x12f 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x130 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x131 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x132 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x133 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x134 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 359 GLXFBConfigs: visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat ---------------------------------------------------------------------------- 0x135 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x136 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x137 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x138 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x139 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x13a 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x13b 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x13c 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x13d 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x13e 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x13f 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x140 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x141 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x142 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x143 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x144 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x145 24 tc 0 24 0 r y . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x146 24 dc 0 24 0 r y . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x147 24 tc 0 32 0 r y . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x148 24 dc 0 32 0 r y . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x149 24 tc 0 24 0 r . . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x14a 24 dc 0 24 0 r . . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x14b 24 tc 0 32 0 r . . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x14c 24 dc 0 32 0 r . . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x14d 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x14e 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x14f 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x150 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x151 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x152 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x153 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x154 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x155 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x156 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x157 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x158 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x159 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x15a 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x15b 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x15c 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x15d 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x15e 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x15f 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x160 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x161 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x162 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x163 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x164 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x165 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x166 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x167 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x168 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x169 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x16a 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x16b 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x16c 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x16d 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x16e 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x16f 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x170 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x171 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x172 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x173 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x174 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x175 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x176 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x177 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x178 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x179 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x17a 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x17b 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x17c 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x17d 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x17e 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x17f 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x180 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x181 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x182 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x183 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x184 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x185 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x186 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x187 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x188 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x189 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x18a 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x18b 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x18c 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x18d 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x18e 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x18f 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x190 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x191 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x192 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x193 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x194 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x195 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x196 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x197 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x198 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x199 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x19a 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x19b 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x19c 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x19d 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x19e 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x19f 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x1a0 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x1a1 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1a2 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1a3 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1a4 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1a5 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1a6 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1a7 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1a8 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1a9 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x1aa 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x1ab 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x1ac 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x1ad 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1ae 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1af 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1b0 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1b1 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1b2 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1b3 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1b4 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x1b5 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x1b6 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x1b7 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x1b8 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x1b9 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1ba 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1bb 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1bc 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1bd 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1be 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1bf 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1c0 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1c1 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x1c2 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x1c3 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x1c4 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x1c5 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1c6 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1c7 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1c8 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1c9 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1ca 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1cb 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1cc 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x1cd 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x1ce 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x1cf 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x1d0 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x1d1 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x1d2 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x1d3 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x1d4 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x1d5 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x1d6 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x1d7 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x1d8 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x1d9 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x1da 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x1db 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x1dc 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x1dd 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x1de 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x1df 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x1e0 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x1e1 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x1e2 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x1e3 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x1e4 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x1e5 24 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x1e6 24 dc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x1e7 24 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x1e8 24 dc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x1e9 24 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x1ea 24 dc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x1eb 24 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x1ec 24 dc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x1ed 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x1ee 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x1ef 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 0 0 None 0x1f0 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 0 0 None 0x1f1 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x1f2 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x1f3 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 0 0 None 0x1f4 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 0 0 None 0x1f5 32 tc 0 24 0 r y . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x1f6 32 tc 0 32 0 r y . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x1f7 32 tc 0 24 0 r . . 8 8 8 0 . s 4 0 0 16 16 16 16 0 0 None 0x1f8 32 tc 0 32 0 r . . 8 8 8 8 . s 4 0 0 16 16 16 16 0 0 None 0x1f9 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x1fa 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x1fb 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x1fc 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x1fd 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 2 1 Ncon 0x1fe 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 2 1 Ncon 0x1ff 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 4 1 Ncon 0x200 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 4 1 Ncon 0x201 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x202 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x203 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x204 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x205 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 2 1 Ncon 0x206 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 2 1 Ncon 0x207 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 4 1 Ncon 0x208 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 4 1 Ncon 0x209 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x20a 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x20b 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x20c 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x20d 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x20e 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x20f 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x210 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x211 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x212 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x213 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x214 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x215 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x216 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x217 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x218 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x219 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x21a 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x21b 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x21c 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x21d 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x21e 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x21f 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x220 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x221 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x222 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x223 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x224 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x225 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x226 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x227 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 8 1 Ncon 0x228 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 8 1 Ncon 0x229 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x22a 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 16 1 Ncon 0x22b 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x22c 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 16 1 Ncon 0x22d 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x22e 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x22f 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x230 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x231 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x232 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x233 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 8 1 Ncon 0x234 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 8 1 Ncon 0x235 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x236 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 16 1 Ncon 0x237 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x238 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 16 1 Ncon 0x239 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x23a 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x23b 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 64 1 Ncon 0x23c 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 64 1 Ncon 0x23d 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x23e 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x23f 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 64 1 Ncon 0x240 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 64 1 Ncon 0x241 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x242 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x243 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 0 16 16 16 16 32 1 Ncon 0x244 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 0 16 16 16 16 32 1 Ncon 0x245 32 tc 0 24 0 r y . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x246 32 tc 0 32 0 r y . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x247 32 tc 0 24 0 r . . 8 8 8 0 . s 4 24 8 16 16 16 16 32 1 Ncon 0x248 32 tc 0 32 0 r . . 8 8 8 8 . s 4 24 8 16 16 16 16 32 1 Ncon 0x249 0 sg 0 16 0 r y . 5 6 5 0 . . 4 16 0 16 16 16 16 0 0 None 0x24a 0 sg 0 16 0 r . . 5 6 5 0 . . 4 16 0 16 16 16 16 0 0 None 0x24b 0 sg 0 16 0 r y . 5 6 5 0 . . 4 24 0 16 16 16 16 0 0 None 0x24c 0 sg 0 16 0 r . . 5 6 5 0 . . 4 24 0 16 16 16 16 0 0 None 0x24d 0 sg 0 16 0 r y . 5 6 5 0 . . 4 24 8 16 16 16 16 0 0 None 0x24e 0 sg 0 16 0 r . . 5 6 5 0 . . 4 24 8 16 16 16 16 0 0 None 0x24f 0 sg 0 16 0 r y . 5 6 5 0 . . 4 0 0 16 16 16 16 0 0 None 0x250 0 sg 0 16 0 r . . 5 6 5 0 . . 4 0 0 16 16 16 16 0 0 None 0x251 0 sg 0 0 0 r . . 0 0 0 0 . . 4 16 0 16 16 16 16 0 0 None 0x252 0 sg 0 0 0 r . . 0 0 0 0 . . 4 24 0 16 16 16 16 0 0 None 0x253 0 sg 0 0 0 r . . 0 0 0 0 . . 4 24 8 16 16 16 16 0 0 None 0x254 0 sg 0 32 0 r . . 16 16 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x255 0 sg 0 32 0 . . 16 16 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x256 0 sg 0 32 0 r y . 16 16 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x257 0 sg 0 32 0 y . 16 16 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x258 0 sg 0 32 0 r . . 32 0 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x259 0 sg 0 32 0 . . 32 0 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x25a 0 sg 0 32 0 r y . 32 0 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x25b 0 sg 0 32 0 y . 32 0 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x25c 0 sg 0 64 0 r . . 16 16 16 16 f . 4 0 0 16 16 16 16 0 0 None 0x25d 0 sg 0 64 0 . . 16 16 16 16 f . 4 0 0 16 16 16 16 0 0 None 0x25e 0 sg 0 64 0 r y . 16 16 16 16 f . 4 0 0 16 16 16 16 0 0 None 0x25f 0 sg 0 64 0 y . 16 16 16 16 f . 4 0 0 16 16 16 16 0 0 None 0x260 0 sg 0 128 0 r . . 32 32 32 32 f . 4 0 0 16 16 16 16 0 0 None 0x261 0 sg 0 128 0 . . 32 32 32 32 f . 4 0 0 16 16 16 16 0 0 None 0x262 0 sg 0 128 0 r y . 32 32 32 32 f . 4 0 0 16 16 16 16 0 0 None 0x263 0 sg 0 128 0 y . 32 32 32 32 f . 4 0 0 16 16 16 16 0 0 None 0x264 0 sg 0 32 0 r . . 16 16 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x265 0 sg 0 32 0 . . 16 16 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x266 0 sg 0 32 0 r y . 16 16 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x267 0 sg 0 32 0 y . 16 16 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x268 0 sg 0 32 0 r . . 16 16 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x269 0 sg 0 32 0 . . 16 16 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x26a 0 sg 0 32 0 r y . 16 16 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x26b 0 sg 0 32 0 y . 16 16 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x26c 0 sg 0 32 0 r . . 32 0 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x26d 0 sg 0 32 0 . . 32 0 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x26e 0 sg 0 32 0 r y . 32 0 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x26f 0 sg 0 32 0 y . 32 0 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x270 0 sg 0 32 0 r . . 32 0 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x271 0 sg 0 32 0 . . 32 0 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x272 0 sg 0 32 0 r y . 32 0 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x273 0 sg 0 32 0 y . 32 0 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x274 0 sg 0 64 0 r . . 16 16 16 16 f . 4 24 0 16 16 16 16 0 0 None 0x275 0 sg 0 64 0 . . 16 16 16 16 f . 4 24 0 16 16 16 16 0 0 None 0x276 0 sg 0 64 0 r y . 16 16 16 16 f . 4 24 0 16 16 16 16 0 0 None 0x277 0 sg 0 64 0 y . 16 16 16 16 f . 4 24 0 16 16 16 16 0 0 None 0x278 0 sg 0 64 0 r . . 16 16 16 16 f . 4 24 8 16 16 16 16 0 0 None 0x279 0 sg 0 64 0 . . 16 16 16 16 f . 4 24 8 16 16 16 16 0 0 None 0x27a 0 sg 0 64 0 r y . 16 16 16 16 f . 4 24 8 16 16 16 16 0 0 None 0x27b 0 sg 0 64 0 y . 16 16 16 16 f . 4 24 8 16 16 16 16 0 0 None 0x27c 0 sg 0 128 0 r . . 32 32 32 32 f . 4 24 0 16 16 16 16 0 0 None 0x27d 0 sg 0 128 0 . . 32 32 32 32 f . 4 24 0 16 16 16 16 0 0 None 0x27e 0 sg 0 128 0 r y . 32 32 32 32 f . 4 24 0 16 16 16 16 0 0 None 0x27f 0 sg 0 128 0 y . 32 32 32 32 f . 4 24 0 16 16 16 16 0 0 None 0x280 0 sg 0 128 0 r . . 32 32 32 32 f . 4 24 8 16 16 16 16 0 0 None 0x281 0 sg 0 128 0 . . 32 32 32 32 f . 4 24 8 16 16 16 16 0 0 None 0x282 0 sg 0 128 0 r y . 32 32 32 32 f . 4 24 8 16 16 16 16 0 0 None 0x283 0 sg 0 128 0 y . 32 32 32 32 f . 4 24 8 16 16 16 16 0 0 None 0x284 0 sg 0 16 0 r . . 16 0 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x285 0 sg 0 16 0 . . 16 0 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x286 0 sg 0 16 0 r y . 16 0 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x287 0 sg 0 16 0 y . 16 0 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x288 0 sg 0 64 0 r . . 32 32 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x289 0 sg 0 64 0 . . 32 32 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x28a 0 sg 0 64 0 r y . 32 32 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x28b 0 sg 0 64 0 y . 32 32 0 0 f . 4 0 0 16 16 16 16 0 0 None 0x28c 0 sg 0 16 0 r . . 16 0 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x28d 0 sg 0 16 0 . . 16 0 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x28e 0 sg 0 16 0 r y . 16 0 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x28f 0 sg 0 16 0 y . 16 0 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x290 0 sg 0 16 0 r . . 16 0 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x291 0 sg 0 16 0 . . 16 0 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x292 0 sg 0 16 0 r y . 16 0 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x293 0 sg 0 16 0 y . 16 0 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x294 0 sg 0 64 0 r . . 32 32 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x295 0 sg 0 64 0 . . 32 32 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x296 0 sg 0 64 0 r y . 32 32 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x297 0 sg 0 64 0 y . 32 32 0 0 f . 4 24 0 16 16 16 16 0 0 None 0x298 0 sg 0 64 0 r . . 32 32 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x299 0 sg 0 64 0 . . 32 32 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x29a 0 sg 0 64 0 r y . 32 32 0 0 f . 4 24 8 16 16 16 16 0 0 None 0x29b 0 sg 0 64 0 y . 32 32 0 0 f . 4 24 8 16 16 16 16 0 0 None From ken.martin at kitware.com Mon Feb 8 18:31:23 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 8 Feb 2016 18:31:23 -0500 Subject: [vtkusers] GL_EXT_gpu_shader4 unsupported help In-Reply-To: References: Message-ID: It looks like you are using OSMesa instead of the normal OpenGL driver. That is what is causing the issue I believe. If you do want OS mesa then I believe you need version 11.2 to get the OpenGL 3.2 support. See this nice post by Utkarsh on using OSMesa with the new VTK rendering engine, https://www.kitware.com/blog/home/post/999 Thanks Ken On Mon, Feb 8, 2016 at 4:55 PM, Kurt Sansom wrote: > I am having this issue that my compiled version of VTK doesn't like > GL_EXT_gpu_shader4. I have the latest nvidia drivers installed and what I > believe is the correct OpenGL version. I messed with several of the CMake > VTK build settings to no avail. I also ran glxinfo which lists GL_EXT_gpu_shader4. > the output is attached. Any thoughts or help? > > I also tried adding these variables before running which just made the > program repeat output to the standard out. > > export MESA_GL_VERSION_OVERRIDE=3.2; export > MESA_GLSL_VERSION_OVERRIDE=150; > > Executing vmtklevelsetsegmentation ... > Please choose initialization type: > 0: colliding fronts; > 1: fast marching; > 2: threshold; > 3: isosurface; > 4: seed > GL_Version: 2.1 Mesa 10.6.5 > ERROR: In > /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, > line 545 > vtkOSOpenGLRenderWindow (0x4a61440): GL version 2.1 with the gpu_shader4 > extension is not supported by your graphics driver but is required for the > new OpenGL rendering backend. Please update your OpenGL driver. If you are > using Mesa please make sure you have version 10.6.5 or later and make sure > your driver in Mesa supports OpenGL 3.2. > > ERROR: In > /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, > line 369 > vtkShaderProgram (0x3ade100): 1: #version 120 > 2: #extension GL_EXT_gpu_shader4 : require > ... > 103: > > ERROR: In > /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, > line 370 > vtkShaderProgram (0x3ade100): 0:2(12): error: extension > `GL_EXT_gpu_shader4' unsupported in fragment shader > > -- > Kurt Sansom > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kayarre at gmail.com Mon Feb 8 18:43:01 2016 From: kayarre at gmail.com (Kurt Sansom) Date: Mon, 8 Feb 2016 15:43:01 -0800 Subject: [vtkusers] GL_EXT_gpu_shader4 unsupported help In-Reply-To: References: Message-ID: That is helpful. Could you point me to the regular opengl drivers. I am not stuck on mesa, but I will take a look at the post as well. Thank you. On Feb 8, 2016 3:31 PM, "Ken Martin" wrote: > It looks like you are using OSMesa instead of the normal OpenGL driver. > That is what is causing the issue I believe. If you do want OS mesa then I > believe you need version 11.2 to get the OpenGL 3.2 support. See this nice > post by Utkarsh on using OSMesa with the new VTK rendering engine, > > https://www.kitware.com/blog/home/post/999 > > Thanks > Ken > > On Mon, Feb 8, 2016 at 4:55 PM, Kurt Sansom wrote: > >> I am having this issue that my compiled version of VTK doesn't like >> GL_EXT_gpu_shader4. I have the latest nvidia drivers installed and what >> I believe is the correct OpenGL version. I messed with several of the CMake >> VTK build settings to no avail. I also ran glxinfo which lists GL_EXT_gpu_shader4. >> the output is attached. Any thoughts or help? >> >> I also tried adding these variables before running which just made the >> program repeat output to the standard out. >> >> export MESA_GL_VERSION_OVERRIDE=3.2; export >> MESA_GLSL_VERSION_OVERRIDE=150; >> >> Executing vmtklevelsetsegmentation ... >> Please choose initialization type: >> 0: colliding fronts; >> 1: fast marching; >> 2: threshold; >> 3: isosurface; >> 4: seed >> GL_Version: 2.1 Mesa 10.6.5 >> ERROR: In >> /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, >> line 545 >> vtkOSOpenGLRenderWindow (0x4a61440): GL version 2.1 with the gpu_shader4 >> extension is not supported by your graphics driver but is required for the >> new OpenGL rendering backend. Please update your OpenGL driver. If you are >> using Mesa please make sure you have version 10.6.5 or later and make sure >> your driver in Mesa supports OpenGL 3.2. >> >> ERROR: In >> /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, >> line 369 >> vtkShaderProgram (0x3ade100): 1: #version 120 >> 2: #extension GL_EXT_gpu_shader4 : require >> ... >> 103: >> >> ERROR: In >> /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, >> line 370 >> vtkShaderProgram (0x3ade100): 0:2(12): error: extension >> `GL_EXT_gpu_shader4' unsupported in fragment shader >> >> -- >> Kurt Sansom >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rexissimus at yahoo.se Tue Feb 9 07:59:22 2016 From: rexissimus at yahoo.se (Tommy Ellqvist) Date: Tue, 9 Feb 2016 13:59:22 +0100 Subject: [vtkusers] Sorting bug when running QVTKRenderWidgetConeExample in VTK 7.0.0 In-Reply-To: References: <1454956267303-5736431.post@n5.nabble.com> Message-ID: <56B9E2AA.4090606@yahoo.se> Thanks David, that is indeed my problem. It looks like the proposed fix is not merged into the 7.0.0 release. I guess I have to use QGLWidget in my own version of QVTKRenderWindowInteractor for now, although the discussion points out that this is not the best solution. Best, Tommy On 2016-02-08 19:46, David Gobbi wrote: > You mean the example in QVTKRenderWindowInteractor.py? See the > following recent discussion: > > http://public.kitware.com/pipermail/vtkusers/2016-February/094016.html > > Cheers, > - David > > On Mon, Feb 8, 2016 at 11:31 AM, Tommy Ellqvist > wrote: > > The VTK example "QVTKRenderWidgetConeExample" does not render > correctly in > VTK7. It looks like the triangles are rendered in the wrong order. > The cone > is rendered correctly in python when not using QT. It looks like a > bug with > the Qt code in VTK? Or could there be something else messing up the > rendering? > > I am running VTK 7.0.0 compiled with OpenGL2, Python 3, PyQt5.2.1, > Qt5.2 > > Thanks, > Tommy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Tue Feb 9 08:12:48 2016 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Tue, 9 Feb 2016 06:12:48 -0700 (MST) Subject: [vtkusers] ShallowCopy in vtk 7.0 works correct? In-Reply-To: References: <1454840580511-5736416.post@n5.nabble.com> Message-ID: <1455023568303-5736442.post@n5.nabble.com> Hi, Now I try a new compilation and set VTK_RENDERING_BACKEND to OpenGL. It works! Why not with OpenGL2? approximate example - code snippet: / // I create three vtkActors like... vtkLineSource lineX = new vtkLineSource(); lineX.SetPoint1(50, 0, 0); lineX.SetPoint2(150, 0, 0); vtkActor lineXActor = setLine(lineX); // separate method: vtkLineSource->vtkPolyDataMapper->vtkActor lineXActor.GetProperty().SetColor(1, 0, 0); // copy of vtkActor vtkActor copyLineXActor = new vtkActor(); copyLineXActor.ShallowCopy(lineXActor); copyLineXActor.VisibilityOn(); // add actors to different renderer ( vtkPanel().getRenderer() ) // -> renderer1.AddActor(lineXActor); // -> renderer2.AddActor2D(copyLineXActor); / The vtkActor's are not visible at the same time. (By using OpenGL2 in the VTK_Rendering_Backend settings) -- View this message in context: http://vtk.1045678.n5.nabble.com/ShallowCopy-in-vtk-7-0-works-correct-tp5736416p5736442.html Sent from the VTK - Users mailing list archive at Nabble.com. From mallikarjun49 at gmail.com Tue Feb 9 08:25:10 2016 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Tue, 9 Feb 2016 18:55:10 +0530 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering Message-ID: Hello All, I used dcmtk to read dicom raw data and applied Modality LUT and created a vtkImageData. When I used this data for Volume Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. [image: Inline image 2] When I used vtkDicomImageReader's output for Volume rendering ,I am getting the following output. [image: Inline image 1] Can anyone give some pointers why this is happening? Thanks in advance.. -- *With Kind Regards:* Mallikarjun -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: From jeff.baumes at kitware.com Tue Feb 9 09:00:07 2016 From: jeff.baumes at kitware.com (Jeff Baumes) Date: Tue, 09 Feb 2016 14:00:07 +0000 Subject: [vtkusers] saving vtkGraph to graphviz dot-files In-Reply-To: <56B06AD7.2000301@mh-hannover.de> References: <56B06AD7.2000301@mh-hannover.de> Message-ID: This is great, thanks for sharing. On Tue, Feb 2, 2016 at 3:37 AM Grothausmann, Roman Dr. < grothausmann.roman at mh-hannover.de> wrote: > Just for those who stumble upon this. I got this working in both > directions: > > https://github.com/romangrothausmann/VTK-CLIs/blob/master/vtp2dot.cxx > https://github.com/romangrothausmann/VTK-CLIs/blob/master/dot2vtp.cxx > > On 07/02/13 13:29, Jeff Baumes wrote: > > The problem is that vtkGraph (the superclass) is abstract and does not > specify > > directionality. You should determine whether vtkPolyDataToGraph outputs a > > vtkDirectedGraph or vtkUndirectedGraph and store the output in a > variable of > > that type before sending it to write_graph. > > > > Jeff > > > > > > On Thu, Feb 7, 2013 at 5:01 AM, Dr. Roman Grothausmann > > <__grothausmann.roman at mh-hannover.de__> wrote: > > Dear mailing list members, > > > > > > It seems there is no vtk-Filter to save a vtkGraph as a graphviz > dot-file. > > Therefore, I tried to create a simple program for that but it fails > during > > compilation with: > > > > > > /usr/include/boost/graph/graphviz.hpp:297:5: required from ?void > > boost::write_graphviz(std::ostream&, const Graph&, typename > > > boost::enable_if_c > typename boost::graph_traits::traversal_category>::value, > > boost::graph::detail::no_parameter>::type) [with Graph = vtkGraph*; > std::ostream > > = std::basic_ostream; typename > > > boost::enable_if_c > typename boost::graph_traits::traversal_category>::value, > > boost::graph::detail::no_parameter>::type = > boost::graph::detail::no_parameter]? > > /home/grothama/vtk/graphviz-vtk/vtp2dot_01.cxx:47:38: required from here > > /usr/include/boost/graph/graphviz.hpp:255:61: error: no type named > > ?directed_category? in ?struct boost::graph_traits? > > /usr/include/boost/graph/graphviz.hpp:256:42: error: no type named > > ?directed_category? in ?struct boost::graph_traits? > > make[2]: *** [CMakeFiles/vtp2dot_01.dir/vtp2dot_01.cxx.o] Error 1 > > > > > > Am I missing something in my code (see attached zip)? > > > > Any help or hints are very much appreciated > > Roman > > _____ > > > > > > ////convert a graph stored in a vtp-file to a dot-file (graphviz) > > > > > > #include > > #include //for vtp-files > > #include > > > > #include "vtkBoostGraphAdapter.h" > > #include // For writing graphs to a file > > > > > > int main(int argc, char* argv[]){ > > if( argc != 3 ) > > { > > std::cerr << "Usage: " << argv[0]; > > std::cerr << " inputMesh"; > > std::cerr << " outputFile"; > > std::cerr << std::endl; > > return EXIT_FAILURE; > > } > > > > if(!(strcasestr(argv[1],".vtp"))) { > > std::cout << "The input should end with .vtp" << std::endl; > > return -1; > > } > > > > if(!(strcasestr(argv[2],".dot"))) { > > std::cout << "The input should end with .dot" << std::endl; > > return -1; > > } > > > > > > vtkSmartPointer reader = > > vtkSmartPointer::New(); > > > > //reader->SetFileName(inputFileName); > > reader->SetFileName(argv[1]); > > reader->Update(); > > > > vtkSmartPointer polyDataToGraphFilter= > > vtkSmartPointer::New(); > > polyDataToGraphFilter->SetInputConnection(reader->GetOutputPort()); > > polyDataToGraphFilter->Update(); > > > > vtkGraph* graph= polyDataToGraphFilter->GetOutput(); > > > > std::ofstream fout(argv[2]); > > boost::write_graphviz(fout, graph); > > > > > > return EXIT_SUCCESS; > > } > > > > > > -- > > Dr. Roman Grothausmann > > > > Tomographie und Digitale Bildverarbeitung > > Tomography and Digital Image Analysis > > > > Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 > > Medizinische Hochschule Hannover > > Carl-Neuberg-Str. 1 > > D-30625 Hannover > > > > Tel. __+49 511 532-9574__ > > > > _______________________________________________ > > Powered by __www.kitware.com__ > > > > Visit other Kitware open-source projects at > > __http://www.kitware.com/opensource/opensource.html__ > > > > Please keep messages on-topic and check the VTK FAQ at: > > __http://www.vtk.org/Wiki/VTK_FAQ__ > > > > Follow this link to subscribe/unsubscribe: > > __http://www.vtk.org/mailman/listinfo/vtkusers__ > > > > > > > > -- > Dr. Roman Grothausmann > > Tomographie und Digitale Bildverarbeitung > Tomography and Digital Image Analysis > > Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 > Medizinische Hochschule Hannover > Carl-Neuberg-Str. 1 > D-30625 Hannover > > Tel. +49 511 532-2900 > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 Tue Feb 9 10:17:04 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 9 Feb 2016 10:17:04 -0500 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: How are you getting the data from dcmtk to VTK? Code would be helpful. As an aside, you may be interested in David Gobbi's excellent DICOM reader for VTK. https://github.com/dgobbi/vtk-dicom I believe you can build this within VTK by enabling the Module_vtkDICOM option. Best, Cory On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K wrote: > Hello All, > I used dcmtk to read dicom raw data and applied Modality LUT and created a > vtkImageData. When I used this data for Volume > Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. > > > [image: Inline image 2] > > > When I used vtkDicomImageReader's output for Volume rendering ,I am > getting the following output. > > [image: Inline image 1] > > Can anyone give some pointers why this is happening? > > Thanks in advance.. > -- > *With Kind 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 > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: From cory.quammen at kitware.com Tue Feb 9 10:26:02 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 9 Feb 2016 10:26:02 -0500 Subject: [vtkusers] ShallowCopy in vtk 7.0 works correct? In-Reply-To: <1455023568303-5736442.post@n5.nabble.com> References: <1454840580511-5736416.post@n5.nabble.com> <1455023568303-5736442.post@n5.nabble.com> Message-ID: Daniel, Thanks for sharing the code sample. You are using different actors for different renderers, which is good. But the shallow copy sets the same mapper for each of the different actors. This should be fine within the same renderer, but using the same mapper in different renders is not supported. The reason is because each mapper has some OpenGL state associated with the context in one of the renderers, and that state is not valid in the other renderers. It likely worked in the first OpenGL backend by sheer luck. HTH, Cory On Tue, Feb 9, 2016 at 8:12 AM, -Daniel- wrote: > Hi, > > Now I try a new compilation and set VTK_RENDERING_BACKEND to OpenGL. It > works! > Why not with OpenGL2? > > approximate example - code snippet: / > // I create three vtkActors like... > vtkLineSource lineX = new vtkLineSource(); > lineX.SetPoint1(50, 0, 0); > lineX.SetPoint2(150, 0, 0); > vtkActor lineXActor = setLine(lineX); // separate method: > vtkLineSource->vtkPolyDataMapper->vtkActor > lineXActor.GetProperty().SetColor(1, 0, 0); > > // copy of vtkActor > vtkActor copyLineXActor = new vtkActor(); > copyLineXActor.ShallowCopy(lineXActor); > copyLineXActor.VisibilityOn(); > > // add actors to different renderer ( vtkPanel().getRenderer() ) > // -> renderer1.AddActor(lineXActor); > // -> renderer2.AddActor2D(copyLineXActor); > / > The vtkActor's are not visible at the same time. (By using OpenGL2 in the > VTK_Rendering_Backend settings) > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/ShallowCopy-in-vtk-7-0-works-correct-tp5736416p5736442.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 ich_daniel at habmalnefrage.de Tue Feb 9 15:40:09 2016 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Tue, 9 Feb 2016 13:40:09 -0700 (MST) Subject: [vtkusers] ShallowCopy in vtk 7.0 works correct? In-Reply-To: References: <1454840580511-5736416.post@n5.nabble.com> <1455023568303-5736442.post@n5.nabble.com> Message-ID: <1455050409249-5736458.post@n5.nabble.com> Thanks Cory! I will try your hint and change my code. Bye -- View this message in context: http://vtk.1045678.n5.nabble.com/ShallowCopy-in-vtk-7-0-works-correct-tp5736416p5736458.html Sent from the VTK - Users mailing list archive at Nabble.com. From mallikarjun49 at gmail.com Wed Feb 10 02:40:58 2016 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Wed, 10 Feb 2016 13:10:58 +0530 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: Hello Cory Quammen, Thanks for the response and suggestions.We are kind of established in using dcmtk in our project,So couldn't use vtk-dicom for time being. Below is the code snippet which I used to get dcmtk data to vtk: vtkDataArray* scalars = 0; switch (dicomDataType) { case TYPE_U32Data: scalars = vtkUnsignedIntArray::New(); ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned int*)dicomData, dicomDataSize, 1);//dicomData is the data from dcmtk break; case TYPE_U8Data: scalars = vtkUnsignedCharArray::New(); ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned char*)dicomData, dicomDataSize, 1); break; case TYPE_U16Data: scalars = vtkUnsignedShortArray::New(); ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned short*)dicomData, dicomDataSize, 1); break; case TYPE_S16Data: scalars = vtkShortArray::New(); ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, dicomDataSize, 1); break; } scalars->SetNumberOfComponents(1); double range[2]; scalars->GetRange(range); m_imageData = vtkImageData::New(); m_imageData->SetDimensions(dimensions); m_imageData->SetSpacing(spacing); m_imageData->GetPointData()->SetScalars(scalars); scalars->Delete(); m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); Thanks&Regards, Mallikarjun On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen wrote: > How are you getting the data from dcmtk to VTK? Code would be helpful. > > As an aside, you may be interested in David Gobbi's excellent DICOM reader > for VTK. > > https://github.com/dgobbi/vtk-dicom > > I believe you can build this within VTK by enabling the Module_vtkDICOM > option. > > Best, > Cory > > On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K > wrote: > >> Hello All, >> I used dcmtk to read dicom raw data and applied Modality LUT and created >> a vtkImageData. When I used this data for Volume >> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >> >> >> [image: Inline image 2] >> >> >> When I used vtkDicomImageReader's output for Volume rendering ,I am >> getting the following output. >> >> [image: Inline image 1] >> >> Can anyone give some pointers why this is happening? >> >> Thanks in advance.. >> -- >> *With Kind 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 >> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -- *With Kind Regards:* Mallikarjuna K, 07795531103/09908238861. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: From sur.chiranjib at gmail.com Wed Feb 10 05:43:28 2016 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 10 Feb 2016 16:13:28 +0530 Subject: [vtkusers] floating point exception : vtkdealunay example Message-ID: Hi all, I am trying our vtkDelaunay filter and started with the examples available in the wiki ( http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Modelling/Cxx/Delaunay3D.cxx ) While executing the example, I am getting floating point exceptions errors. Here are some details about the environment : OS : RHEL 6.6 VTK : 6.1 GCC : 4.9.2 CMAKE : 3.0.2 Any pointers about how to resolve this? Thanks, Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeinsalah at gmail.com Wed Feb 10 08:32:30 2016 From: zeinsalah at gmail.com (Zein Salah) Date: Wed, 10 Feb 2016 14:32:30 +0100 Subject: [vtkusers] Fwd: converting a tube structure to binary image In-Reply-To: References: Message-ID: Reminder ---------- Forwarded message ---------- From: Zein Salah Date: 2016-01-18 16:33 GMT+01:00 Subject: converting a tube structure to binary image To: VTK Users Hi, I have a tube structure in the form of a vtkPolyData, which I create using the vtkTubeFilter. I want to convert this into a binary image containing the tube voxel as e.g. white and the backround as black (kind of volumization). Is there a direct filter for this in VTK (or ITK)? example? Much thanks, Zein From jan.hirsch at st.ovgu.de Wed Feb 10 08:37:07 2016 From: jan.hirsch at st.ovgu.de (jhirsch) Date: Wed, 10 Feb 2016 06:37:07 -0700 (MST) Subject: [vtkusers] raycasting scalar field - does size matter? In-Reply-To: <1329407127397-5489849.post@n5.nabble.com> References: <1329407127397-5489849.post@n5.nabble.com> Message-ID: <1455111427314-5736467.post@n5.nabble.com> Hello Peter, I'm sorry that no one answerd your question. I had the same problem and it cost me several days to figure out that the answer is 'yes'. Size does matter. ParaView manages to set this automatically. Developing only in C++ and VTK (6.3) you have to set SetScalarOpacityUnitDistance of the vtkVolumeProperty manually, at least this is the way I know so far. For example the default value is 1.0. I had to change that to something like 0.000X in order to see my object that is a couple of millimeters in real life. -- View this message in context: http://vtk.1045678.n5.nabble.com/raycasting-scalar-field-does-size-matter-tp5489849p5736467.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Wed Feb 10 08:48:25 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 10 Feb 2016 08:48:25 -0500 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: Mallikarjun, Could you clarify for me whether the first image at all looks like a human head? Is the issue that the color/opacity maps do not appear to be applied correctly, or that the data is just completely strange when reading from dcmtk? If it is the latter, I have a couple guesses: - maybe your dimensions are off from what dcmtk tells you - maybe dcmtk's conventions for voxel order are different from VTK Cory On Wed, Feb 10, 2016 at 2:40 AM, Mallikarjun K wrote: > Hello Cory Quammen, > > Thanks for the response and suggestions.We are kind of established in > using dcmtk in our project,So couldn't use vtk-dicom for time being. > > Below is the code snippet which I used to get dcmtk data to vtk: > > > vtkDataArray* scalars = 0; > > > > switch (dicomDataType) > { > case TYPE_U32Data: > scalars = vtkUnsignedIntArray::New(); > ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned int*)dicomData, > dicomDataSize, 1);//dicomData is the data from dcmtk > break; > case TYPE_U8Data: > scalars = vtkUnsignedCharArray::New(); > ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned char*)dicomData, > dicomDataSize, 1); > break; > case TYPE_U16Data: > scalars = vtkUnsignedShortArray::New(); > ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned short*)dicomData, > dicomDataSize, 1); > break; > case TYPE_S16Data: > scalars = vtkShortArray::New(); > ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, dicomDataSize, 1); > break; > } > scalars->SetNumberOfComponents(1); > double range[2]; > scalars->GetRange(range); > m_imageData = vtkImageData::New(); > m_imageData->SetDimensions(dimensions); > m_imageData->SetSpacing(spacing); > m_imageData->GetPointData()->SetScalars(scalars); > scalars->Delete(); > m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); > > > Thanks&Regards, > Mallikarjun > > > > On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen > wrote: > >> How are you getting the data from dcmtk to VTK? Code would be helpful. >> >> As an aside, you may be interested in David Gobbi's excellent DICOM >> reader for VTK. >> >> https://github.com/dgobbi/vtk-dicom >> >> I believe you can build this within VTK by enabling the Module_vtkDICOM >> option. >> >> Best, >> Cory >> >> On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K >> wrote: >> >>> Hello All, >>> I used dcmtk to read dicom raw data and applied Modality LUT and created >>> a vtkImageData. When I used this data for Volume >>> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >>> >>> >>> [image: Inline image 2] >>> >>> >>> When I used vtkDicomImageReader's output for Volume rendering ,I am >>> getting the following output. >>> >>> [image: Inline image 1] >>> >>> Can anyone give some pointers why this is happening? >>> >>> Thanks in advance.. >>> -- >>> *With Kind 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 >>> >>> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > > > > -- > *With Kind Regards:* > Mallikarjuna K, > 07795531103/09908238861. > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: From cory.quammen at kitware.com Wed Feb 10 08:51:27 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 10 Feb 2016 08:51:27 -0500 Subject: [vtkusers] Fwd: converting a tube structure to binary image In-Reply-To: References: Message-ID: See vtkPolyDataToImageStencil for a possible way to do this. In particular, this example may be helpful: http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Imaging/Core/Testing/Cxx/TestStencilWithPolyDataSurface.cxx On Wed, Feb 10, 2016 at 8:32 AM, Zein Salah wrote: > Reminder > > ---------- Forwarded message ---------- > From: Zein Salah > Date: 2016-01-18 16:33 GMT+01:00 > Subject: converting a tube structure to binary image > To: VTK Users > > > Hi, > > I have a tube structure in the form of a vtkPolyData, which I create > using the vtkTubeFilter. I want to convert this into a binary image > containing the tube voxel as e.g. white and the backround as black > (kind of volumization). > > Is there a direct filter for this in VTK (or ITK)? example? > > Much thanks, > > Zein > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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 mallikarjun49 at gmail.com Wed Feb 10 09:12:37 2016 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Wed, 10 Feb 2016 19:42:37 +0530 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: Hello Cory, Yes,the first image looks like a human head but it is surrounded by some other gray/balck colored stuff.I think you are right,it is the issue with color/opacity maps.The data is in the range of 0-65536(unsigned short). Below are the color and opacity maps I applied. //setup opacity d->m_opacityTransferFunction->AddPoint(132.108911, 0.000000); d->m_opacityTransferFunction->AddPoint(197.063492, 0.041333); d->m_opacityTransferFunction->AddPoint(1087.917989, 0.700000); //setup gradient opacity d->m_gradientTransferFunction->AddPoint(560.695000, 1.000000); // Setup color d->m_colorTransferFunction->AddRGBPoint(176.881890, 0.650980, 0.000000, 0.000000); d->m_colorTransferFunction->AddRGBPoint(239.427822, 0.933333, 0.000000, 0.000000); d->m_colorTransferFunction->AddRGBPoint(301.973753, 1.000000, 0.800000, 0.062745); d->m_colorTransferFunction->AddRGBPoint(495.866142, 1.000000, 0.905882, 0.666667); d->m_colorTransferFunction->AddRGBPoint(677.249344, 1.000000, 0.882353, 0.215686); d->m_colorTransferFunction->AddRGBPoint(808.595801, 1.000000, 1.000000, 1.000000); What should I do to eliminate gray/balck colored stuff ? please guide me. Thank you. Regards, Mallikarjun On Wed, Feb 10, 2016 at 7:18 PM, Cory Quammen wrote: > Mallikarjun, > > Could you clarify for me whether the first image at all looks like a human > head? Is the issue that the color/opacity maps do not appear to be applied > correctly, or that the data is just completely strange when reading from > dcmtk? > > If it is the latter, I have a couple guesses: > > - maybe your dimensions are off from what dcmtk tells you > - maybe dcmtk's conventions for voxel order are different from VTK > > Cory > > On Wed, Feb 10, 2016 at 2:40 AM, Mallikarjun K > wrote: > >> Hello Cory Quammen, >> >> Thanks for the response and suggestions.We are kind of established in >> using dcmtk in our project,So couldn't use vtk-dicom for time being. >> >> Below is the code snippet which I used to get dcmtk data to vtk: >> >> >> vtkDataArray* scalars = 0; >> >> >> >> switch (dicomDataType) >> { >> case TYPE_U32Data: >> scalars = vtkUnsignedIntArray::New(); >> ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned int*)dicomData, >> dicomDataSize, 1);//dicomData is the data from dcmtk >> break; >> case TYPE_U8Data: >> scalars = vtkUnsignedCharArray::New(); >> ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned char*)dicomData, >> dicomDataSize, 1); >> break; >> case TYPE_U16Data: >> scalars = vtkUnsignedShortArray::New(); >> ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned short*)dicomData, >> dicomDataSize, 1); >> break; >> case TYPE_S16Data: >> scalars = vtkShortArray::New(); >> ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, dicomDataSize, >> 1); >> break; >> } >> scalars->SetNumberOfComponents(1); >> double range[2]; >> scalars->GetRange(range); >> m_imageData = vtkImageData::New(); >> m_imageData->SetDimensions(dimensions); >> m_imageData->SetSpacing(spacing); >> m_imageData->GetPointData()->SetScalars(scalars); >> scalars->Delete(); >> m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); >> >> >> Thanks&Regards, >> Mallikarjun >> >> >> >> On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen >> wrote: >> >>> How are you getting the data from dcmtk to VTK? Code would be helpful. >>> >>> As an aside, you may be interested in David Gobbi's excellent DICOM >>> reader for VTK. >>> >>> https://github.com/dgobbi/vtk-dicom >>> >>> I believe you can build this within VTK by enabling the Module_vtkDICOM >>> option. >>> >>> Best, >>> Cory >>> >>> On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K >>> wrote: >>> >>>> Hello All, >>>> I used dcmtk to read dicom raw data and applied Modality LUT and >>>> created a vtkImageData. When I used this data for Volume >>>> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >>>> >>>> >>>> [image: Inline image 2] >>>> >>>> >>>> When I used vtkDicomImageReader's output for Volume rendering ,I am >>>> getting the following output. >>>> >>>> [image: Inline image 1] >>>> >>>> Can anyone give some pointers why this is happening? >>>> >>>> Thanks in advance.. >>>> -- >>>> *With Kind 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 >>>> >>>> >>> >>> >>> -- >>> Cory Quammen >>> R&D Engineer >>> Kitware, Inc. >>> >> >> >> >> -- >> *With Kind Regards:* >> Mallikarjuna K, >> 07795531103/09908238861. >> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -- *With Kind Regards:* Mallikarjuna K, 07795531103/09908238861. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: From simon.esneault at gmail.com Wed Feb 10 09:34:06 2016 From: simon.esneault at gmail.com (Simon ESNEAULT) Date: Wed, 10 Feb 2016 15:34:06 +0100 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: Hello Mallikarjun, If it is a CT scan, maybe you're missing the Rescale Intercept Slope parameters to get the same results as the vtkDicomImageReader ? https://blog.kitware.com/dicom-rescale-intercept-rescale-slope-and-itk/ Simon 2016-02-10 15:12 GMT+01:00 Mallikarjun K : > Hello Cory, > > Yes,the first image looks like a human head but it is surrounded by some > other gray/balck colored stuff.I think you are right,it is the issue with > color/opacity maps.The data is in the range of 0-65536(unsigned short). > Below are the color and opacity maps I applied. > > //setup opacity > d->m_opacityTransferFunction->AddPoint(132.108911, 0.000000); > d->m_opacityTransferFunction->AddPoint(197.063492, 0.041333); > d->m_opacityTransferFunction->AddPoint(1087.917989, 0.700000); > //setup gradient opacity > d->m_gradientTransferFunction->AddPoint(560.695000, 1.000000); > > // Setup color > d->m_colorTransferFunction->AddRGBPoint(176.881890, 0.650980, 0.000000, > 0.000000); > d->m_colorTransferFunction->AddRGBPoint(239.427822, 0.933333, 0.000000, > 0.000000); > d->m_colorTransferFunction->AddRGBPoint(301.973753, 1.000000, 0.800000, > 0.062745); > d->m_colorTransferFunction->AddRGBPoint(495.866142, 1.000000, 0.905882, > 0.666667); > d->m_colorTransferFunction->AddRGBPoint(677.249344, 1.000000, 0.882353, > 0.215686); > d->m_colorTransferFunction->AddRGBPoint(808.595801, 1.000000, 1.000000, > 1.000000); > > What should I do to eliminate gray/balck colored stuff ? please guide me. > > Thank you. > Regards, > Mallikarjun > > > > On Wed, Feb 10, 2016 at 7:18 PM, Cory Quammen > wrote: > >> Mallikarjun, >> >> Could you clarify for me whether the first image at all looks like a >> human head? Is the issue that the color/opacity maps do not appear to be >> applied correctly, or that the data is just completely strange when reading >> from dcmtk? >> >> If it is the latter, I have a couple guesses: >> >> - maybe your dimensions are off from what dcmtk tells you >> - maybe dcmtk's conventions for voxel order are different from VTK >> >> Cory >> >> On Wed, Feb 10, 2016 at 2:40 AM, Mallikarjun K >> wrote: >> >>> Hello Cory Quammen, >>> >>> Thanks for the response and suggestions.We are kind of established in >>> using dcmtk in our project,So couldn't use vtk-dicom for time being. >>> >>> Below is the code snippet which I used to get dcmtk data to vtk: >>> >>> >>> vtkDataArray* scalars = 0; >>> >>> >>> >>> switch (dicomDataType) >>> { >>> case TYPE_U32Data: >>> scalars = vtkUnsignedIntArray::New(); >>> ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned int*)dicomData, >>> dicomDataSize, 1);//dicomData is the data from dcmtk >>> break; >>> case TYPE_U8Data: >>> scalars = vtkUnsignedCharArray::New(); >>> ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned char*)dicomData, >>> dicomDataSize, 1); >>> break; >>> case TYPE_U16Data: >>> scalars = vtkUnsignedShortArray::New(); >>> ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned >>> short*)dicomData, dicomDataSize, 1); >>> break; >>> case TYPE_S16Data: >>> scalars = vtkShortArray::New(); >>> ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, dicomDataSize, >>> 1); >>> break; >>> } >>> scalars->SetNumberOfComponents(1); >>> double range[2]; >>> scalars->GetRange(range); >>> m_imageData = vtkImageData::New(); >>> m_imageData->SetDimensions(dimensions); >>> m_imageData->SetSpacing(spacing); >>> m_imageData->GetPointData()->SetScalars(scalars); >>> scalars->Delete(); >>> m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); >>> >>> >>> Thanks&Regards, >>> Mallikarjun >>> >>> >>> >>> On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen >>> wrote: >>> >>>> How are you getting the data from dcmtk to VTK? Code would be helpful. >>>> >>>> As an aside, you may be interested in David Gobbi's excellent DICOM >>>> reader for VTK. >>>> >>>> https://github.com/dgobbi/vtk-dicom >>>> >>>> I believe you can build this within VTK by enabling the Module_vtkDICOM >>>> option. >>>> >>>> Best, >>>> Cory >>>> >>>> On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K >>>> wrote: >>>> >>>>> Hello All, >>>>> I used dcmtk to read dicom raw data and applied Modality LUT and >>>>> created a vtkImageData. When I used this data for Volume >>>>> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >>>>> >>>>> >>>>> [image: Inline image 2] >>>>> >>>>> >>>>> When I used vtkDicomImageReader's output for Volume rendering ,I am >>>>> getting the following output. >>>>> >>>>> [image: Inline image 1] >>>>> >>>>> Can anyone give some pointers why this is happening? >>>>> >>>>> Thanks in advance.. >>>>> -- >>>>> *With Kind 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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> Cory Quammen >>>> R&D Engineer >>>> Kitware, Inc. >>>> >>> >>> >>> >>> -- >>> *With Kind Regards:* >>> Mallikarjuna K, >>> 07795531103/09908238861. >>> >>> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > > > > -- > *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 > > -- ------------------------------------------------------------------ Simon Esneault Rennes, France ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: From hjchen.work at gmail.com Wed Feb 10 09:46:51 2016 From: hjchen.work at gmail.com (hchen) Date: Wed, 10 Feb 2016 07:46:51 -0700 (MST) Subject: [vtkusers] vtkEventQtSlotConnect not wrapped in python 2.7 + VTK6.3 In-Reply-To: References: <1454082066016-5736250.post@n5.nabble.com> Message-ID: <1455115611734-5736473.post@n5.nabble.com> Hi David, I removed the EXCLUDE_FROM_WRAPPING line, but it didn't quite work, the error massage reads: make[2]: *** No rule to make target `GUISupport/Qt/moc_QVTKApplication.h', needed by `GUISupport/Qt/vtkGUISupportQtHierarchy.stamp.txt'. Stop. make[1]: *** [GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all] Error 2 make: *** [all] Error 2 One thing I noticed, when building VTK5.10, there is an entry VTK_WRAP_PYTHON_SIP, but in building VTK6.3, this entry is no longer there. I am not sure if this has anything to do with above error. Any thoughts? Thank you! Chen -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkEventQtSlotConnect-not-wrapped-in-python-2-7-VTK6-3-tp5736250p5736473.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Wed Feb 10 10:38:50 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 10 Feb 2016 10:38:50 -0500 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: Yep, what Simon said. Cory On Wed, Feb 10, 2016 at 9:34 AM, Simon ESNEAULT wrote: > Hello Mallikarjun, > > If it is a CT scan, maybe you're missing the Rescale Intercept Slope > parameters to get the same results as the vtkDicomImageReader ? > https://blog.kitware.com/dicom-rescale-intercept-rescale-slope-and-itk/ > > Simon > > > 2016-02-10 15:12 GMT+01:00 Mallikarjun K : > >> Hello Cory, >> >> Yes,the first image looks like a human head but it is surrounded by some >> other gray/balck colored stuff.I think you are right,it is the issue with >> color/opacity maps.The data is in the range of 0-65536(unsigned short). >> Below are the color and opacity maps I applied. >> >> //setup opacity >> d->m_opacityTransferFunction->AddPoint(132.108911, 0.000000); >> d->m_opacityTransferFunction->AddPoint(197.063492, 0.041333); >> d->m_opacityTransferFunction->AddPoint(1087.917989, 0.700000); >> //setup gradient opacity >> d->m_gradientTransferFunction->AddPoint(560.695000, 1.000000); >> >> // Setup color >> d->m_colorTransferFunction->AddRGBPoint(176.881890, 0.650980, 0.000000, >> 0.000000); >> d->m_colorTransferFunction->AddRGBPoint(239.427822, 0.933333, 0.000000, >> 0.000000); >> d->m_colorTransferFunction->AddRGBPoint(301.973753, 1.000000, 0.800000, >> 0.062745); >> d->m_colorTransferFunction->AddRGBPoint(495.866142, 1.000000, 0.905882, >> 0.666667); >> d->m_colorTransferFunction->AddRGBPoint(677.249344, 1.000000, 0.882353, >> 0.215686); >> d->m_colorTransferFunction->AddRGBPoint(808.595801, 1.000000, 1.000000, >> 1.000000); >> >> What should I do to eliminate gray/balck colored stuff ? please guide me. >> >> Thank you. >> Regards, >> Mallikarjun >> >> >> >> On Wed, Feb 10, 2016 at 7:18 PM, Cory Quammen >> wrote: >> >>> Mallikarjun, >>> >>> Could you clarify for me whether the first image at all looks like a >>> human head? Is the issue that the color/opacity maps do not appear to be >>> applied correctly, or that the data is just completely strange when reading >>> from dcmtk? >>> >>> If it is the latter, I have a couple guesses: >>> >>> - maybe your dimensions are off from what dcmtk tells you >>> - maybe dcmtk's conventions for voxel order are different from VTK >>> >>> Cory >>> >>> On Wed, Feb 10, 2016 at 2:40 AM, Mallikarjun K >>> wrote: >>> >>>> Hello Cory Quammen, >>>> >>>> Thanks for the response and suggestions.We are kind of established in >>>> using dcmtk in our project,So couldn't use vtk-dicom for time being. >>>> >>>> Below is the code snippet which I used to get dcmtk data to vtk: >>>> >>>> >>>> vtkDataArray* scalars = 0; >>>> >>>> >>>> >>>> switch (dicomDataType) >>>> { >>>> case TYPE_U32Data: >>>> scalars = vtkUnsignedIntArray::New(); >>>> ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned int*)dicomData, >>>> dicomDataSize, 1);//dicomData is the data from dcmtk >>>> break; >>>> case TYPE_U8Data: >>>> scalars = vtkUnsignedCharArray::New(); >>>> ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned char*)dicomData, >>>> dicomDataSize, 1); >>>> break; >>>> case TYPE_U16Data: >>>> scalars = vtkUnsignedShortArray::New(); >>>> ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned >>>> short*)dicomData, dicomDataSize, 1); >>>> break; >>>> case TYPE_S16Data: >>>> scalars = vtkShortArray::New(); >>>> ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, dicomDataSize, >>>> 1); >>>> break; >>>> } >>>> scalars->SetNumberOfComponents(1); >>>> double range[2]; >>>> scalars->GetRange(range); >>>> m_imageData = vtkImageData::New(); >>>> m_imageData->SetDimensions(dimensions); >>>> m_imageData->SetSpacing(spacing); >>>> m_imageData->GetPointData()->SetScalars(scalars); >>>> scalars->Delete(); >>>> m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); >>>> >>>> >>>> Thanks&Regards, >>>> Mallikarjun >>>> >>>> >>>> >>>> On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen >>>> wrote: >>>> >>>>> How are you getting the data from dcmtk to VTK? Code would be helpful. >>>>> >>>>> As an aside, you may be interested in David Gobbi's excellent DICOM >>>>> reader for VTK. >>>>> >>>>> https://github.com/dgobbi/vtk-dicom >>>>> >>>>> I believe you can build this within VTK by enabling the >>>>> Module_vtkDICOM option. >>>>> >>>>> Best, >>>>> Cory >>>>> >>>>> On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K >>>> > wrote: >>>>> >>>>>> Hello All, >>>>>> I used dcmtk to read dicom raw data and applied Modality LUT and >>>>>> created a vtkImageData. When I used this data for Volume >>>>>> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >>>>>> >>>>>> >>>>>> [image: Inline image 2] >>>>>> >>>>>> >>>>>> When I used vtkDicomImageReader's output for Volume rendering ,I am >>>>>> getting the following output. >>>>>> >>>>>> [image: Inline image 1] >>>>>> >>>>>> Can anyone give some pointers why this is happening? >>>>>> >>>>>> Thanks in advance.. >>>>>> -- >>>>>> *With Kind 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 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Cory Quammen >>>>> R&D Engineer >>>>> Kitware, Inc. >>>>> >>>> >>>> >>>> >>>> -- >>>> *With Kind Regards:* >>>> Mallikarjuna K, >>>> 07795531103/09908238861. >>>> >>>> >>> >>> >>> -- >>> Cory Quammen >>> R&D Engineer >>> Kitware, Inc. >>> >> >> >> >> -- >> *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 >> >> > > > -- > ------------------------------------------------------------------ > Simon Esneault > Rennes, France > ------------------------------------------------------------------ > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: From aashish.chaudhary at kitware.com Wed Feb 10 11:54:06 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 10 Feb 2016 11:54:06 -0500 Subject: [vtkusers] slice a volume In-Reply-To: References: Message-ID: Have you looked into this mapper: http://www.vtk.org/doc/nightly/html/classvtkImageResliceMapper.html Not sure about vtkSphereSource relation to volume. Can you elaborate more? Thanks On Sat, Feb 6, 2016 at 7:53 PM, WangQ wrote: > Hello vtkusers, > > I have a volume, in which there are lots of spheres by vtkSphereSource at > arbitrary position, and possible a few isosurfaces. I want to slice the > volume at any position along one axis, and save the slices. I tried several > ways to achieve it, but since every object has its own mapper and actor. I > do not know how to do it. > > Really appreciate for any help! > > Cheers, > > Chiang > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 mallikarjun49 at gmail.com Wed Feb 10 11:56:10 2016 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Wed, 10 Feb 2016 22:26:10 +0530 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: Hello Simon and Cory, As I said in my first post,I applied ModalityLUT(which is nothing but applying rescale slope and rescale intercept ) on dicom raw data of unsigned short data type.That is why raw data range(0-4095) is shifted to unsigned short range (0-65536) what I guess. When I checked data range when read by vtkdicomimagereader,it is short data type and range is from -32768 to +32767. With Kind Regards, Mallikarjun On Feb 10, 2016 9:08 PM, "Cory Quammen" wrote: > Yep, what Simon said. > > Cory > > On Wed, Feb 10, 2016 at 9:34 AM, Simon ESNEAULT > wrote: > >> Hello Mallikarjun, >> >> If it is a CT scan, maybe you're missing the Rescale Intercept Slope >> parameters to get the same results as the vtkDicomImageReader ? >> https://blog.kitware.com/dicom-rescale-intercept-rescale-slope-and-itk/ >> >> Simon >> >> >> 2016-02-10 15:12 GMT+01:00 Mallikarjun K : >> >>> Hello Cory, >>> >>> Yes,the first image looks like a human head but it is surrounded by some >>> other gray/balck colored stuff.I think you are right,it is the issue with >>> color/opacity maps.The data is in the range of 0-65536(unsigned short). >>> Below are the color and opacity maps I applied. >>> >>> //setup opacity >>> d->m_opacityTransferFunction->AddPoint(132.108911, 0.000000); >>> d->m_opacityTransferFunction->AddPoint(197.063492, 0.041333); >>> d->m_opacityTransferFunction->AddPoint(1087.917989, 0.700000); >>> //setup gradient opacity >>> d->m_gradientTransferFunction->AddPoint(560.695000, 1.000000); >>> >>> // Setup color >>> d->m_colorTransferFunction->AddRGBPoint(176.881890, 0.650980, 0.000000, >>> 0.000000); >>> d->m_colorTransferFunction->AddRGBPoint(239.427822, 0.933333, 0.000000, >>> 0.000000); >>> d->m_colorTransferFunction->AddRGBPoint(301.973753, 1.000000, 0.800000, >>> 0.062745); >>> d->m_colorTransferFunction->AddRGBPoint(495.866142, 1.000000, 0.905882, >>> 0.666667); >>> d->m_colorTransferFunction->AddRGBPoint(677.249344, 1.000000, 0.882353, >>> 0.215686); >>> d->m_colorTransferFunction->AddRGBPoint(808.595801, 1.000000, 1.000000, >>> 1.000000); >>> >>> What should I do to eliminate gray/balck colored stuff ? please guide me. >>> >>> Thank you. >>> Regards, >>> Mallikarjun >>> >>> >>> >>> On Wed, Feb 10, 2016 at 7:18 PM, Cory Quammen >>> wrote: >>> >>>> Mallikarjun, >>>> >>>> Could you clarify for me whether the first image at all looks like a >>>> human head? Is the issue that the color/opacity maps do not appear to be >>>> applied correctly, or that the data is just completely strange when reading >>>> from dcmtk? >>>> >>>> If it is the latter, I have a couple guesses: >>>> >>>> - maybe your dimensions are off from what dcmtk tells you >>>> - maybe dcmtk's conventions for voxel order are different from VTK >>>> >>>> Cory >>>> >>>> On Wed, Feb 10, 2016 at 2:40 AM, Mallikarjun K >>> > wrote: >>>> >>>>> Hello Cory Quammen, >>>>> >>>>> Thanks for the response and suggestions.We are kind of established in >>>>> using dcmtk in our project,So couldn't use vtk-dicom for time being. >>>>> >>>>> Below is the code snippet which I used to get dcmtk data to vtk: >>>>> >>>>> >>>>> vtkDataArray* scalars = 0; >>>>> >>>>> >>>>> >>>>> switch (dicomDataType) >>>>> { >>>>> case TYPE_U32Data: >>>>> scalars = vtkUnsignedIntArray::New(); >>>>> ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned int*)dicomData, >>>>> dicomDataSize, 1);//dicomData is the data from dcmtk >>>>> break; >>>>> case TYPE_U8Data: >>>>> scalars = vtkUnsignedCharArray::New(); >>>>> ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned >>>>> char*)dicomData, dicomDataSize, 1); >>>>> break; >>>>> case TYPE_U16Data: >>>>> scalars = vtkUnsignedShortArray::New(); >>>>> ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned >>>>> short*)dicomData, dicomDataSize, 1); >>>>> break; >>>>> case TYPE_S16Data: >>>>> scalars = vtkShortArray::New(); >>>>> ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, >>>>> dicomDataSize, 1); >>>>> break; >>>>> } >>>>> scalars->SetNumberOfComponents(1); >>>>> double range[2]; >>>>> scalars->GetRange(range); >>>>> m_imageData = vtkImageData::New(); >>>>> m_imageData->SetDimensions(dimensions); >>>>> m_imageData->SetSpacing(spacing); >>>>> m_imageData->GetPointData()->SetScalars(scalars); >>>>> scalars->Delete(); >>>>> m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); >>>>> >>>>> >>>>> Thanks&Regards, >>>>> Mallikarjun >>>>> >>>>> >>>>> >>>>> On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen >>>> > wrote: >>>>> >>>>>> How are you getting the data from dcmtk to VTK? Code would be helpful. >>>>>> >>>>>> As an aside, you may be interested in David Gobbi's excellent DICOM >>>>>> reader for VTK. >>>>>> >>>>>> https://github.com/dgobbi/vtk-dicom >>>>>> >>>>>> I believe you can build this within VTK by enabling the >>>>>> Module_vtkDICOM option. >>>>>> >>>>>> Best, >>>>>> Cory >>>>>> >>>>>> On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K < >>>>>> mallikarjun49 at gmail.com> wrote: >>>>>> >>>>>>> Hello All, >>>>>>> I used dcmtk to read dicom raw data and applied Modality LUT and >>>>>>> created a vtkImageData. When I used this data for Volume >>>>>>> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >>>>>>> >>>>>>> >>>>>>> [image: Inline image 2] >>>>>>> >>>>>>> >>>>>>> When I used vtkDicomImageReader's output for Volume rendering ,I am >>>>>>> getting the following output. >>>>>>> >>>>>>> [image: Inline image 1] >>>>>>> >>>>>>> Can anyone give some pointers why this is happening? >>>>>>> >>>>>>> Thanks in advance.. >>>>>>> -- >>>>>>> *With Kind 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 >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cory Quammen >>>>>> R&D Engineer >>>>>> Kitware, Inc. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *With Kind Regards:* >>>>> Mallikarjuna K, >>>>> 07795531103/09908238861. >>>>> >>>>> >>>> >>>> >>>> -- >>>> Cory Quammen >>>> R&D Engineer >>>> Kitware, Inc. >>>> >>> >>> >>> >>> -- >>> *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 >>> >>> >> >> >> -- >> ------------------------------------------------------------------ >> Simon Esneault >> Rennes, France >> ------------------------------------------------------------------ >> > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: From bill.lorensen at gmail.com Wed Feb 10 11:58:08 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 10 Feb 2016 11:58:08 -0500 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: Your data should also be short. Once you apply the slope and intercept. Do not use unsigned short for CT data. On Wed, Feb 10, 2016 at 11:56 AM, Mallikarjun K wrote: > Hello Simon and Cory, > As I said in my first post,I applied ModalityLUT(which is nothing but > applying rescale slope and rescale intercept ) on dicom raw data of > unsigned short data type.That is why raw data range(0-4095) is shifted to > unsigned short range (0-65536) what I guess. > When I checked data range when read by vtkdicomimagereader,it is short > data type and range is from -32768 to +32767. > > With Kind Regards, > Mallikarjun > On Feb 10, 2016 9:08 PM, "Cory Quammen" wrote: > >> Yep, what Simon said. >> >> Cory >> >> On Wed, Feb 10, 2016 at 9:34 AM, Simon ESNEAULT > > wrote: >> >>> Hello Mallikarjun, >>> >>> If it is a CT scan, maybe you're missing the Rescale Intercept Slope >>> parameters to get the same results as the vtkDicomImageReader ? >>> https://blog.kitware.com/dicom-rescale-intercept-rescale-slope-and-itk/ >>> >>> Simon >>> >>> >>> 2016-02-10 15:12 GMT+01:00 Mallikarjun K : >>> >>>> Hello Cory, >>>> >>>> Yes,the first image looks like a human head but it is surrounded by >>>> some other gray/balck colored stuff.I think you are right,it is the issue >>>> with color/opacity maps.The data is in the range of 0-65536(unsigned >>>> short). Below are the color and opacity maps I applied. >>>> >>>> //setup opacity >>>> d->m_opacityTransferFunction->AddPoint(132.108911, 0.000000); >>>> d->m_opacityTransferFunction->AddPoint(197.063492, 0.041333); >>>> d->m_opacityTransferFunction->AddPoint(1087.917989, 0.700000); >>>> //setup gradient opacity >>>> d->m_gradientTransferFunction->AddPoint(560.695000, 1.000000); >>>> >>>> // Setup color >>>> d->m_colorTransferFunction->AddRGBPoint(176.881890, 0.650980, 0.000000, >>>> 0.000000); >>>> d->m_colorTransferFunction->AddRGBPoint(239.427822, 0.933333, 0.000000, >>>> 0.000000); >>>> d->m_colorTransferFunction->AddRGBPoint(301.973753, 1.000000, 0.800000, >>>> 0.062745); >>>> d->m_colorTransferFunction->AddRGBPoint(495.866142, 1.000000, 0.905882, >>>> 0.666667); >>>> d->m_colorTransferFunction->AddRGBPoint(677.249344, 1.000000, 0.882353, >>>> 0.215686); >>>> d->m_colorTransferFunction->AddRGBPoint(808.595801, 1.000000, 1.000000, >>>> 1.000000); >>>> >>>> What should I do to eliminate gray/balck colored stuff ? please guide >>>> me. >>>> >>>> Thank you. >>>> Regards, >>>> Mallikarjun >>>> >>>> >>>> >>>> On Wed, Feb 10, 2016 at 7:18 PM, Cory Quammen >>> > wrote: >>>> >>>>> Mallikarjun, >>>>> >>>>> Could you clarify for me whether the first image at all looks like a >>>>> human head? Is the issue that the color/opacity maps do not appear to be >>>>> applied correctly, or that the data is just completely strange when reading >>>>> from dcmtk? >>>>> >>>>> If it is the latter, I have a couple guesses: >>>>> >>>>> - maybe your dimensions are off from what dcmtk tells you >>>>> - maybe dcmtk's conventions for voxel order are different from VTK >>>>> >>>>> Cory >>>>> >>>>> On Wed, Feb 10, 2016 at 2:40 AM, Mallikarjun K < >>>>> mallikarjun49 at gmail.com> wrote: >>>>> >>>>>> Hello Cory Quammen, >>>>>> >>>>>> Thanks for the response and suggestions.We are kind of established in >>>>>> using dcmtk in our project,So couldn't use vtk-dicom for time being. >>>>>> >>>>>> Below is the code snippet which I used to get dcmtk data to vtk: >>>>>> >>>>>> >>>>>> vtkDataArray* scalars = 0; >>>>>> >>>>>> >>>>>> >>>>>> switch (dicomDataType) >>>>>> { >>>>>> case TYPE_U32Data: >>>>>> scalars = vtkUnsignedIntArray::New(); >>>>>> ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned int*)dicomData, >>>>>> dicomDataSize, 1);//dicomData is the data from dcmtk >>>>>> break; >>>>>> case TYPE_U8Data: >>>>>> scalars = vtkUnsignedCharArray::New(); >>>>>> ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned >>>>>> char*)dicomData, dicomDataSize, 1); >>>>>> break; >>>>>> case TYPE_U16Data: >>>>>> scalars = vtkUnsignedShortArray::New(); >>>>>> ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned >>>>>> short*)dicomData, dicomDataSize, 1); >>>>>> break; >>>>>> case TYPE_S16Data: >>>>>> scalars = vtkShortArray::New(); >>>>>> ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, >>>>>> dicomDataSize, 1); >>>>>> break; >>>>>> } >>>>>> scalars->SetNumberOfComponents(1); >>>>>> double range[2]; >>>>>> scalars->GetRange(range); >>>>>> m_imageData = vtkImageData::New(); >>>>>> m_imageData->SetDimensions(dimensions); >>>>>> m_imageData->SetSpacing(spacing); >>>>>> m_imageData->GetPointData()->SetScalars(scalars); >>>>>> scalars->Delete(); >>>>>> m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); >>>>>> >>>>>> >>>>>> Thanks&Regards, >>>>>> Mallikarjun >>>>>> >>>>>> >>>>>> >>>>>> On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen < >>>>>> cory.quammen at kitware.com> wrote: >>>>>> >>>>>>> How are you getting the data from dcmtk to VTK? Code would be >>>>>>> helpful. >>>>>>> >>>>>>> As an aside, you may be interested in David Gobbi's excellent DICOM >>>>>>> reader for VTK. >>>>>>> >>>>>>> https://github.com/dgobbi/vtk-dicom >>>>>>> >>>>>>> I believe you can build this within VTK by enabling the >>>>>>> Module_vtkDICOM option. >>>>>>> >>>>>>> Best, >>>>>>> Cory >>>>>>> >>>>>>> On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K < >>>>>>> mallikarjun49 at gmail.com> wrote: >>>>>>> >>>>>>>> Hello All, >>>>>>>> I used dcmtk to read dicom raw data and applied Modality LUT and >>>>>>>> created a vtkImageData. When I used this data for Volume >>>>>>>> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >>>>>>>> >>>>>>>> >>>>>>>> [image: Inline image 2] >>>>>>>> >>>>>>>> >>>>>>>> When I used vtkDicomImageReader's output for Volume rendering ,I am >>>>>>>> getting the following output. >>>>>>>> >>>>>>>> [image: Inline image 1] >>>>>>>> >>>>>>>> Can anyone give some pointers why this is happening? >>>>>>>> >>>>>>>> Thanks in advance.. >>>>>>>> -- >>>>>>>> *With Kind 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 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Cory Quammen >>>>>>> R&D Engineer >>>>>>> Kitware, Inc. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *With Kind Regards:* >>>>>> Mallikarjuna K, >>>>>> 07795531103/09908238861. >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Cory Quammen >>>>> R&D Engineer >>>>> Kitware, Inc. >>>>> >>>> >>>> >>>> >>>> -- >>>> *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 >>>> >>>> >>> >>> >>> -- >>> ------------------------------------------------------------------ >>> Simon Esneault >>> Rennes, France >>> ------------------------------------------------------------------ >>> >> >> >> >> -- >> 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 > > -- Unpaid intern in BillsBasement at noware dot com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: From aashish.chaudhary at kitware.com Wed Feb 10 12:12:34 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 10 Feb 2016 12:12:34 -0500 Subject: [vtkusers] Streaming pipeline with parts of big volume in multiple views In-Reply-To: References: Message-ID: On Sun, Feb 7, 2016 at 5:41 AM, Elvis Stansvik wrote: > Hi all, > > As I tried to explain in a previous mail > > http://markmail.org/message/mfp2npib5nqeeuux > > I have a large amount of volume data, and I need to render only a small > part of it. > > I've been trying to find information on the streaming visualization > pipeline that VTK supports, but it's been a bit hard to find examples > similar what I want to do. > > My questions right now are: > > 1) Is there some file format for volume data which is supported by VTK > with a reader that is "intelligent" enough to only read the parts of the > file that is requested by downstream consumers into main memory? That is, > is there something I could use so that my use case would work "out of the > box". If there is, I'm prepared to make sure the output from our analysis > is in this format, as it would save me from writing a custom reader. > AMR data structure might help ( http://www.vtk.org/doc/nightly/html/classvtkAMRVolumeMapper.html#details). > > 2) If there isn't, does anyone know of an example reader somewhere that > has this intelligence? I'm prepared to write my own reader, but would > really like a good example of how such a reader can be written. > I believe some of the VTK image filter do this kind of work but I have to look into it. > > 3) I assume that all parts of the pipeline I set up must be capable of > working with partial data (extents in my case) for this to work? That is, I > obviously can't have something in the pipeline which is a "bad citizen" and > spoils it, causing the pipeline to request all the data. Is there a list of > which classes that supports this? Or are all filters et.c. in VTK > well-written in the sense that they will only request the minimal amount of > data they need, based on downstream requirements? > I believe so. > > 4) If I set the volume of interest for a volume using a vtkExtractVOI, > will the information about which piece of the volume is required reach the > source (reader) at the start of the pipeline? > > 5) I was planning on having a pipeline that looks roughly like > > Reader ----> Extract VOI ----> Do stuff ---> View1 > \ > +------> Extract VOI ----> Do other stuff ---> View2 > > where each of the two views show a different part of the full volume. One > of the views is scrollable, and the idea is that when the user scrolls that > view, the VOI is updated and that branch of the pipeline is re-executed. > Only the required data should be loaded from disk into main memory when > this happens. Is this kind of setup possible? Or will I have to use two > completely separate pipelines? > It depends how you write the code (are you setting data to mapper or you are connecting it to a pipeline?). > > 6) If it turns out there are no built-in file formats where the reader > supports loading parts of the data from the file on disk based on > downstream requirements, I'm leaning towards making our own HDF5-based > format + reader (I believe the full volume will be around 50-100 GB of > data), since I think (but I'm not sure) that it's possible to only read > parts of a 3D array from a HDF5 file using h5py. Does anyone else have a > good suggestion for a file format, or have you been in a similar situation? > > Very grateful for any advice. > > Best regards, > Elvis > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From mallikarjun49 at gmail.com Wed Feb 10 12:17:20 2016 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Wed, 10 Feb 2016 22:47:20 +0530 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: Thanks Bill. Can I use vtkShiftscale filter on this unsigned short data to convert to short?Because I want to keep original data type as it is, as it is being used by the another process in the pipeline. If yes,what should be the shift and scale I have to supply to shiftscale filter. With Kind Regards, Mallikarjun On Feb 10, 2016 10:28 PM, "Bill Lorensen" wrote: > Your data should also be short. Once you apply the slope and intercept. Do > not use unsigned short for CT data. > > On Wed, Feb 10, 2016 at 11:56 AM, Mallikarjun K > wrote: > >> Hello Simon and Cory, >> As I said in my first post,I applied ModalityLUT(which is nothing but >> applying rescale slope and rescale intercept ) on dicom raw data of >> unsigned short data type.That is why raw data range(0-4095) is shifted to >> unsigned short range (0-65536) what I guess. >> When I checked data range when read by vtkdicomimagereader,it is short >> data type and range is from -32768 to +32767. >> >> With Kind Regards, >> Mallikarjun >> On Feb 10, 2016 9:08 PM, "Cory Quammen" wrote: >> >>> Yep, what Simon said. >>> >>> Cory >>> >>> On Wed, Feb 10, 2016 at 9:34 AM, Simon ESNEAULT < >>> simon.esneault at gmail.com> wrote: >>> >>>> Hello Mallikarjun, >>>> >>>> If it is a CT scan, maybe you're missing the Rescale Intercept Slope >>>> parameters to get the same results as the vtkDicomImageReader ? >>>> https://blog.kitware.com/dicom-rescale-intercept-rescale-slope-and-itk/ >>>> >>>> Simon >>>> >>>> >>>> 2016-02-10 15:12 GMT+01:00 Mallikarjun K : >>>> >>>>> Hello Cory, >>>>> >>>>> Yes,the first image looks like a human head but it is surrounded by >>>>> some other gray/balck colored stuff.I think you are right,it is the issue >>>>> with color/opacity maps.The data is in the range of 0-65536(unsigned >>>>> short). Below are the color and opacity maps I applied. >>>>> >>>>> //setup opacity >>>>> d->m_opacityTransferFunction->AddPoint(132.108911, 0.000000); >>>>> d->m_opacityTransferFunction->AddPoint(197.063492, 0.041333); >>>>> d->m_opacityTransferFunction->AddPoint(1087.917989, 0.700000); >>>>> //setup gradient opacity >>>>> d->m_gradientTransferFunction->AddPoint(560.695000, 1.000000); >>>>> >>>>> // Setup color >>>>> d->m_colorTransferFunction->AddRGBPoint(176.881890, 0.650980, >>>>> 0.000000, 0.000000); >>>>> d->m_colorTransferFunction->AddRGBPoint(239.427822, 0.933333, >>>>> 0.000000, 0.000000); >>>>> d->m_colorTransferFunction->AddRGBPoint(301.973753, 1.000000, >>>>> 0.800000, 0.062745); >>>>> d->m_colorTransferFunction->AddRGBPoint(495.866142, 1.000000, >>>>> 0.905882, 0.666667); >>>>> d->m_colorTransferFunction->AddRGBPoint(677.249344, 1.000000, >>>>> 0.882353, 0.215686); >>>>> d->m_colorTransferFunction->AddRGBPoint(808.595801, 1.000000, >>>>> 1.000000, 1.000000); >>>>> >>>>> What should I do to eliminate gray/balck colored stuff ? please guide >>>>> me. >>>>> >>>>> Thank you. >>>>> Regards, >>>>> Mallikarjun >>>>> >>>>> >>>>> >>>>> On Wed, Feb 10, 2016 at 7:18 PM, Cory Quammen < >>>>> cory.quammen at kitware.com> wrote: >>>>> >>>>>> Mallikarjun, >>>>>> >>>>>> Could you clarify for me whether the first image at all looks like a >>>>>> human head? Is the issue that the color/opacity maps do not appear to be >>>>>> applied correctly, or that the data is just completely strange when reading >>>>>> from dcmtk? >>>>>> >>>>>> If it is the latter, I have a couple guesses: >>>>>> >>>>>> - maybe your dimensions are off from what dcmtk tells you >>>>>> - maybe dcmtk's conventions for voxel order are different from VTK >>>>>> >>>>>> Cory >>>>>> >>>>>> On Wed, Feb 10, 2016 at 2:40 AM, Mallikarjun K < >>>>>> mallikarjun49 at gmail.com> wrote: >>>>>> >>>>>>> Hello Cory Quammen, >>>>>>> >>>>>>> Thanks for the response and suggestions.We are kind of established >>>>>>> in using dcmtk in our project,So couldn't use vtk-dicom for time being. >>>>>>> >>>>>>> Below is the code snippet which I used to get dcmtk data to vtk: >>>>>>> >>>>>>> >>>>>>> vtkDataArray* scalars = 0; >>>>>>> >>>>>>> >>>>>>> >>>>>>> switch (dicomDataType) >>>>>>> { >>>>>>> case TYPE_U32Data: >>>>>>> scalars = vtkUnsignedIntArray::New(); >>>>>>> ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned >>>>>>> int*)dicomData, dicomDataSize, 1);//dicomData is the data from dcmtk >>>>>>> break; >>>>>>> case TYPE_U8Data: >>>>>>> scalars = vtkUnsignedCharArray::New(); >>>>>>> ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned >>>>>>> char*)dicomData, dicomDataSize, 1); >>>>>>> break; >>>>>>> case TYPE_U16Data: >>>>>>> scalars = vtkUnsignedShortArray::New(); >>>>>>> ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned >>>>>>> short*)dicomData, dicomDataSize, 1); >>>>>>> break; >>>>>>> case TYPE_S16Data: >>>>>>> scalars = vtkShortArray::New(); >>>>>>> ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, >>>>>>> dicomDataSize, 1); >>>>>>> break; >>>>>>> } >>>>>>> scalars->SetNumberOfComponents(1); >>>>>>> double range[2]; >>>>>>> scalars->GetRange(range); >>>>>>> m_imageData = vtkImageData::New(); >>>>>>> m_imageData->SetDimensions(dimensions); >>>>>>> m_imageData->SetSpacing(spacing); >>>>>>> m_imageData->GetPointData()->SetScalars(scalars); >>>>>>> scalars->Delete(); >>>>>>> m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); >>>>>>> >>>>>>> >>>>>>> Thanks&Regards, >>>>>>> Mallikarjun >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen < >>>>>>> cory.quammen at kitware.com> wrote: >>>>>>> >>>>>>>> How are you getting the data from dcmtk to VTK? Code would be >>>>>>>> helpful. >>>>>>>> >>>>>>>> As an aside, you may be interested in David Gobbi's excellent DICOM >>>>>>>> reader for VTK. >>>>>>>> >>>>>>>> https://github.com/dgobbi/vtk-dicom >>>>>>>> >>>>>>>> I believe you can build this within VTK by enabling the >>>>>>>> Module_vtkDICOM option. >>>>>>>> >>>>>>>> Best, >>>>>>>> Cory >>>>>>>> >>>>>>>> On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K < >>>>>>>> mallikarjun49 at gmail.com> wrote: >>>>>>>> >>>>>>>>> Hello All, >>>>>>>>> I used dcmtk to read dicom raw data and applied Modality LUT and >>>>>>>>> created a vtkImageData. When I used this data for Volume >>>>>>>>> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >>>>>>>>> >>>>>>>>> >>>>>>>>> [image: Inline image 2] >>>>>>>>> >>>>>>>>> >>>>>>>>> When I used vtkDicomImageReader's output for Volume rendering ,I >>>>>>>>> am getting the following output. >>>>>>>>> >>>>>>>>> [image: Inline image 1] >>>>>>>>> >>>>>>>>> Can anyone give some pointers why this is happening? >>>>>>>>> >>>>>>>>> Thanks in advance.. >>>>>>>>> -- >>>>>>>>> *With Kind 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 >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Cory Quammen >>>>>>>> R&D Engineer >>>>>>>> Kitware, Inc. >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> *With Kind Regards:* >>>>>>> Mallikarjuna K, >>>>>>> 07795531103/09908238861. >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cory Quammen >>>>>> R&D Engineer >>>>>> Kitware, Inc. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> ------------------------------------------------------------------ >>>> Simon Esneault >>>> Rennes, France >>>> ------------------------------------------------------------------ >>>> >>> >>> >>> >>> -- >>> 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 >> >> > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: From bill.lorensen at gmail.com Wed Feb 10 12:28:34 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 10 Feb 2016 12:28:34 -0500 Subject: [vtkusers] (dcmtk -> vtkImageData) for Volume rendering In-Reply-To: References: Message-ID: If you apply the rescale slope and intercept, you must use use short. Otherwise you are overflowing the unsigned short. On Wed, Feb 10, 2016 at 12:17 PM, Mallikarjun K wrote: > Thanks Bill. > Can I use vtkShiftscale filter on this unsigned short data to convert to > short?Because I want to keep original data type as it is, as it is being > used by the another process in the pipeline. > If yes,what should be the shift and scale I have to supply to shiftscale > filter. > > With Kind Regards, > Mallikarjun > On Feb 10, 2016 10:28 PM, "Bill Lorensen" wrote: > >> Your data should also be short. Once you apply the slope and intercept. >> Do not use unsigned short for CT data. >> >> On Wed, Feb 10, 2016 at 11:56 AM, Mallikarjun K >> wrote: >> >>> Hello Simon and Cory, >>> As I said in my first post,I applied ModalityLUT(which is nothing but >>> applying rescale slope and rescale intercept ) on dicom raw data of >>> unsigned short data type.That is why raw data range(0-4095) is shifted to >>> unsigned short range (0-65536) what I guess. >>> When I checked data range when read by vtkdicomimagereader,it is short >>> data type and range is from -32768 to +32767. >>> >>> With Kind Regards, >>> Mallikarjun >>> On Feb 10, 2016 9:08 PM, "Cory Quammen" >>> wrote: >>> >>>> Yep, what Simon said. >>>> >>>> Cory >>>> >>>> On Wed, Feb 10, 2016 at 9:34 AM, Simon ESNEAULT < >>>> simon.esneault at gmail.com> wrote: >>>> >>>>> Hello Mallikarjun, >>>>> >>>>> If it is a CT scan, maybe you're missing the Rescale Intercept Slope >>>>> parameters to get the same results as the vtkDicomImageReader ? >>>>> https://blog.kitware.com/dicom-rescale-intercept-rescale-slope-and-itk/ >>>>> >>>>> Simon >>>>> >>>>> >>>>> 2016-02-10 15:12 GMT+01:00 Mallikarjun K : >>>>> >>>>>> Hello Cory, >>>>>> >>>>>> Yes,the first image looks like a human head but it is surrounded by >>>>>> some other gray/balck colored stuff.I think you are right,it is the issue >>>>>> with color/opacity maps.The data is in the range of 0-65536(unsigned >>>>>> short). Below are the color and opacity maps I applied. >>>>>> >>>>>> //setup opacity >>>>>> d->m_opacityTransferFunction->AddPoint(132.108911, 0.000000); >>>>>> d->m_opacityTransferFunction->AddPoint(197.063492, 0.041333); >>>>>> d->m_opacityTransferFunction->AddPoint(1087.917989, 0.700000); >>>>>> //setup gradient opacity >>>>>> d->m_gradientTransferFunction->AddPoint(560.695000, 1.000000); >>>>>> >>>>>> // Setup color >>>>>> d->m_colorTransferFunction->AddRGBPoint(176.881890, 0.650980, >>>>>> 0.000000, 0.000000); >>>>>> d->m_colorTransferFunction->AddRGBPoint(239.427822, 0.933333, >>>>>> 0.000000, 0.000000); >>>>>> d->m_colorTransferFunction->AddRGBPoint(301.973753, 1.000000, >>>>>> 0.800000, 0.062745); >>>>>> d->m_colorTransferFunction->AddRGBPoint(495.866142, 1.000000, >>>>>> 0.905882, 0.666667); >>>>>> d->m_colorTransferFunction->AddRGBPoint(677.249344, 1.000000, >>>>>> 0.882353, 0.215686); >>>>>> d->m_colorTransferFunction->AddRGBPoint(808.595801, 1.000000, >>>>>> 1.000000, 1.000000); >>>>>> >>>>>> What should I do to eliminate gray/balck colored stuff ? please guide >>>>>> me. >>>>>> >>>>>> Thank you. >>>>>> Regards, >>>>>> Mallikarjun >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Feb 10, 2016 at 7:18 PM, Cory Quammen < >>>>>> cory.quammen at kitware.com> wrote: >>>>>> >>>>>>> Mallikarjun, >>>>>>> >>>>>>> Could you clarify for me whether the first image at all looks like a >>>>>>> human head? Is the issue that the color/opacity maps do not appear to be >>>>>>> applied correctly, or that the data is just completely strange when reading >>>>>>> from dcmtk? >>>>>>> >>>>>>> If it is the latter, I have a couple guesses: >>>>>>> >>>>>>> - maybe your dimensions are off from what dcmtk tells you >>>>>>> - maybe dcmtk's conventions for voxel order are different from VTK >>>>>>> >>>>>>> Cory >>>>>>> >>>>>>> On Wed, Feb 10, 2016 at 2:40 AM, Mallikarjun K < >>>>>>> mallikarjun49 at gmail.com> wrote: >>>>>>> >>>>>>>> Hello Cory Quammen, >>>>>>>> >>>>>>>> Thanks for the response and suggestions.We are kind of established >>>>>>>> in using dcmtk in our project,So couldn't use vtk-dicom for time being. >>>>>>>> >>>>>>>> Below is the code snippet which I used to get dcmtk data to vtk: >>>>>>>> >>>>>>>> >>>>>>>> vtkDataArray* scalars = 0; >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> switch (dicomDataType) >>>>>>>> { >>>>>>>> case TYPE_U32Data: >>>>>>>> scalars = vtkUnsignedIntArray::New(); >>>>>>>> ((vtkUnsignedIntArray*)(scalars))->SetArray((unsigned >>>>>>>> int*)dicomData, dicomDataSize, 1);//dicomData is the data from dcmtk >>>>>>>> break; >>>>>>>> case TYPE_U8Data: >>>>>>>> scalars = vtkUnsignedCharArray::New(); >>>>>>>> ((vtkUnsignedCharArray*)(scalars))->SetArray((unsigned >>>>>>>> char*)dicomData, dicomDataSize, 1); >>>>>>>> break; >>>>>>>> case TYPE_U16Data: >>>>>>>> scalars = vtkUnsignedShortArray::New(); >>>>>>>> ((vtkUnsignedShortArray*)(scalars))->SetArray((unsigned >>>>>>>> short*)dicomData, dicomDataSize, 1); >>>>>>>> break; >>>>>>>> case TYPE_S16Data: >>>>>>>> scalars = vtkShortArray::New(); >>>>>>>> ((vtkShortArray*)(scalars))->SetArray((short*)dicomData, >>>>>>>> dicomDataSize, 1); >>>>>>>> break; >>>>>>>> } >>>>>>>> scalars->SetNumberOfComponents(1); >>>>>>>> double range[2]; >>>>>>>> scalars->GetRange(range); >>>>>>>> m_imageData = vtkImageData::New(); >>>>>>>> m_imageData->SetDimensions(dimensions); >>>>>>>> m_imageData->SetSpacing(spacing); >>>>>>>> m_imageData->GetPointData()->SetScalars(scalars); >>>>>>>> scalars->Delete(); >>>>>>>> m_imageData->GetPointData()->GetScalars()->SetName("VR Cuboid"); >>>>>>>> >>>>>>>> >>>>>>>> Thanks&Regards, >>>>>>>> Mallikarjun >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Tue, Feb 9, 2016 at 8:47 PM, Cory Quammen < >>>>>>>> cory.quammen at kitware.com> wrote: >>>>>>>> >>>>>>>>> How are you getting the data from dcmtk to VTK? Code would be >>>>>>>>> helpful. >>>>>>>>> >>>>>>>>> As an aside, you may be interested in David Gobbi's excellent >>>>>>>>> DICOM reader for VTK. >>>>>>>>> >>>>>>>>> https://github.com/dgobbi/vtk-dicom >>>>>>>>> >>>>>>>>> I believe you can build this within VTK by enabling the >>>>>>>>> Module_vtkDICOM option. >>>>>>>>> >>>>>>>>> Best, >>>>>>>>> Cory >>>>>>>>> >>>>>>>>> On Tue, Feb 9, 2016 at 8:25 AM, Mallikarjun K < >>>>>>>>> mallikarjun49 at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Hello All, >>>>>>>>>> I used dcmtk to read dicom raw data and applied Modality LUT and >>>>>>>>>> created a vtkImageData. When I used this data for Volume >>>>>>>>>> Rendering(vtkGPUVolumeRayCastMapper), I am getting the following output. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> [image: Inline image 2] >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> When I used vtkDicomImageReader's output for Volume rendering ,I >>>>>>>>>> am getting the following output. >>>>>>>>>> >>>>>>>>>> [image: Inline image 1] >>>>>>>>>> >>>>>>>>>> Can anyone give some pointers why this is happening? >>>>>>>>>> >>>>>>>>>> Thanks in advance.. >>>>>>>>>> -- >>>>>>>>>> *With Kind 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 >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Cory Quammen >>>>>>>>> R&D Engineer >>>>>>>>> Kitware, Inc. >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *With Kind Regards:* >>>>>>>> Mallikarjuna K, >>>>>>>> 07795531103/09908238861. >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Cory Quammen >>>>>>> R&D Engineer >>>>>>> Kitware, Inc. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *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 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> ------------------------------------------------------------------ >>>>> Simon Esneault >>>>> Rennes, France >>>>> ------------------------------------------------------------------ >>>>> >>>> >>>> >>>> >>>> -- >>>> 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 >>> >>> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com >> > -- Unpaid intern in BillsBasement at noware dot com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 111519 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 35053 bytes Desc: not available URL: From elvis.stansvik at orexplore.com Wed Feb 10 13:25:58 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 10 Feb 2016 19:25:58 +0100 Subject: [vtkusers] Streaming pipeline with parts of big volume in multiple views In-Reply-To: References: Message-ID: Hi Aashish, 2016-02-10 18:12 GMT+01:00 Aashish Chaudhary : > > > On Sun, Feb 7, 2016 at 5:41 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> Hi all, >> >> As I tried to explain in a previous mail >> >> http://markmail.org/message/mfp2npib5nqeeuux >> >> I have a large amount of volume data, and I need to render only a small >> part of it. >> >> I've been trying to find information on the streaming visualization >> pipeline that VTK supports, but it's been a bit hard to find examples >> similar what I want to do. >> >> My questions right now are: >> >> 1) Is there some file format for volume data which is supported by VTK >> with a reader that is "intelligent" enough to only read the parts of the >> file that is requested by downstream consumers into main memory? That is, >> is there something I could use so that my use case would work "out of the >> box". If there is, I'm prepared to make sure the output from our analysis >> is in this format, as it would save me from writing a custom reader. >> > > AMR data structure might help ( > http://www.vtk.org/doc/nightly/html/classvtkAMRVolumeMapper.html#details > ). > Hm, the "detailed description" you linked is essentially empty. I'll do some googling, as I don't even know what AMR is. Thanks for the pointer though! In general I've begun to realize that most class docs in VTK are either very brief or essentially empty. It makes it extremely hard to work with the library as a newcomer. There are a few blog posts and wiki pages around, but it's a mix of outdated and up-to-date info, and the almost total lack of class docs or high-level documents is quite discouraging :( > >> 2) If there isn't, does anyone know of an example reader somewhere that >> has this intelligence? I'm prepared to write my own reader, but would >> really like a good example of how such a reader can be written. >> > > I believe some of the VTK image filter do this kind of work but I have to > look into it. > Yes, I started looking into the MINC reader which we're using in a prototype, and it seems it tries to respect the extends requested by downstream. I'm not 100% sure though. > >> 3) I assume that all parts of the pipeline I set up must be capable of >> working with partial data (extents in my case) for this to work? That is, I >> obviously can't have something in the pipeline which is a "bad citizen" and >> spoils it, causing the pipeline to request all the data. Is there a list of >> which classes that supports this? Or are all filters et.c. in VTK >> well-written in the sense that they will only request the minimal amount of >> data they need, based on downstream requirements? >> > > I believe so. > Sorry for bunching several questions together like I did here. I assume your answer was to the last question? > >> 4) If I set the volume of interest for a volume using a vtkExtractVOI, >> will the information about which piece of the volume is required reach the >> source (reader) at the start of the pipeline? >> > > >> 5) I was planning on having a pipeline that looks roughly like >> >> Reader ----> Extract VOI ----> Do stuff ---> View1 >> \ >> +------> Extract VOI ----> Do other stuff ---> View2 >> >> where each of the two views show a different part of the full volume. One >> of the views is scrollable, and the idea is that when the user scrolls that >> view, the VOI is updated and that branch of the pipeline is re-executed. >> Only the required data should be loaded from disk into main memory when >> this happens. Is this kind of setup possible? Or will I have to use two >> completely separate pipelines? >> > > It depends how you write the code (are you setting data to mapper or you > are connecting it to a pipeline?). > Hm, I'm not sure I understand. The above was a conceptual sketch of a pipeline. I assume I would have mappers somewhere at the end of the two branches above, around "View1" and "View2". Each of these mappers would be connected to a branch of the pipeline. I don't think I would "set the data" in any way, but try to use the streaming nature of the VTK pipeline. Thanks a lot for taking the time to answer. Elvis > >> 6) If it turns out there are no built-in file formats where the reader >> supports loading parts of the data from the file on disk based on >> downstream requirements, I'm leaning towards making our own HDF5-based >> format + reader (I believe the full volume will be around 50-100 GB of >> data), since I think (but I'm not sure) that it's possible to only read >> parts of a 3D array from a HDF5 file using h5py. Does anyone else have a >> good suggestion for a file format, or have you been in a similar situation? >> >> Very grateful for any advice. >> >> Best regards, >> Elvis >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > > > > *| 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 Wed Feb 10 14:21:39 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 10 Feb 2016 14:21:39 -0500 Subject: [vtkusers] GL_EXT_gpu_shader4 unsupported help In-Reply-To: References: Message-ID: I suspect you have selected OSMesa when building VTK (or your application was compiled to use OSMesa). Make sure any cmake OSMESA options in you VTK build are turned off. They may be advanced options. Thanks Ken On Mon, Feb 8, 2016 at 6:43 PM, Kurt Sansom wrote: > That is helpful. Could you point me to the regular opengl drivers. I am > not stuck on mesa, but I will take a look at the post as well. Thank you. > On Feb 8, 2016 3:31 PM, "Ken Martin" wrote: > >> It looks like you are using OSMesa instead of the normal OpenGL driver. >> That is what is causing the issue I believe. If you do want OS mesa then I >> believe you need version 11.2 to get the OpenGL 3.2 support. See this nice >> post by Utkarsh on using OSMesa with the new VTK rendering engine, >> >> https://www.kitware.com/blog/home/post/999 >> >> Thanks >> Ken >> >> On Mon, Feb 8, 2016 at 4:55 PM, Kurt Sansom wrote: >> >>> I am having this issue that my compiled version of VTK doesn't like >>> GL_EXT_gpu_shader4. I have the latest nvidia drivers installed and what >>> I believe is the correct OpenGL version. I messed with several of the CMake >>> VTK build settings to no avail. I also ran glxinfo which lists GL_EXT_gpu_shader4. >>> the output is attached. Any thoughts or help? >>> >>> I also tried adding these variables before running which just made the >>> program repeat output to the standard out. >>> >>> export MESA_GL_VERSION_OVERRIDE=3.2; export >>> MESA_GLSL_VERSION_OVERRIDE=150; >>> >>> Executing vmtklevelsetsegmentation ... >>> Please choose initialization type: >>> 0: colliding fronts; >>> 1: fast marching; >>> 2: threshold; >>> 3: isosurface; >>> 4: seed >>> GL_Version: 2.1 Mesa 10.6.5 >>> ERROR: In >>> /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, >>> line 545 >>> vtkOSOpenGLRenderWindow (0x4a61440): GL version 2.1 with the gpu_shader4 >>> extension is not supported by your graphics driver but is required for the >>> new OpenGL rendering backend. Please update your OpenGL driver. If you are >>> using Mesa please make sure you have version 10.6.5 or later and make sure >>> your driver in Mesa supports OpenGL 3.2. >>> >>> ERROR: In >>> /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, >>> line 369 >>> vtkShaderProgram (0x3ade100): 1: #version 120 >>> 2: #extension GL_EXT_gpu_shader4 : require >>> ... >>> 103: >>> >>> ERROR: In >>> /home/ksansom/build/vmtk/vmtk-build/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, >>> line 370 >>> vtkShaderProgram (0x3ade100): 0:2(12): error: extension >>> `GL_EXT_gpu_shader4' unsupported in fragment shader >>> >>> -- >>> Kurt Sansom >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Feb 10 14:35:16 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 10 Feb 2016 14:35:16 -0500 Subject: [vtkusers] VTK 7 and vtkRenderingOpenGL2 migration In-Reply-To: <56B8CF78.2030305@cora.nwra.com> References: <56B4CD74.7090406@cora.nwra.com> <56B8CF78.2030305@cora.nwra.com> Message-ID: It is here https://gitlab.kitware.com/vtk/vtk/merge_requests/1002 but I do not believe it was included in the VTK 7 rc. Ken On Mon, Feb 8, 2016 at 12:25 PM, Orion Poplawski wrote: > Thanks for the response, but I can't find any evidence of these macros in > the > installed headers or anything else of use in that header file, except > perhaps > the new definition of VTK_USE_GLSL_SHADERS. > > On 02/08/2016 09:59 AM, Ken Martin wrote: > > I believe you can do > > > > #include "vtkRenderingOpenGLConfigure.h" > > > > #ifdef VTK_OPENGL2 > > blah > > #endif > > > > #ifdef VTK_OPENGL1 > > blah > > #endif > > > > > > > > On Fri, Feb 5, 2016 at 11:27 AM, Orion Poplawski > > wrote: > > > > I'm looking at updating the Fedora VTK package to 7.0 and rebuilding > dependent > > packages here: > https://copr.fedorainfracloud.org/coprs/orion/vtk7/builds/ > > > > One problem is packages (e.g. engrid) that do: > > > > VTK_MODULE_INIT(vtkRenderingOpenGL); > > > > It appears that with VTK 7.0 it would need to do: > > > > VTK_MODULE_INIT(vtkRenderingOpenGL2); > > > > What's the best way for projects to handle this automatically, as > the vtk they > > are building against may have been built with either backend. > > > > > > -- > > Orion Poplawski > > Technical Manager 303-415-9701 x222 > > > > NWRA, Boulder/CoRA Office FAX: 303-415-9702 303-415-9702> > > 3380 Mitchell Lane orion at nwra.com > > > > Boulder, CO 80301 http://www.nwra.com > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > > > > > -- > > Ken Martin PhD > > Chairman & CFO > > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > 518 371 3971 > > > > This communication, including all attachments, contains confidential and > > legally privileged information, and it is intended only for the use of > the > > addressee. Access to this email by anyone else is unauthorized. If you > are > > not the intended recipient, any disclosure, copying, distribution or any > > action taken in reliance on it is prohibited and may be unlawful. If you > > received this communication in error please notify us immediately and > destroy > > the original message. Thank you. > > > -- > Orion Poplawski > Technical Manager 303-415-9701 x222 > NWRA, Boulder/CoRA Office FAX: 303-415-9702 > 3380 Mitchell Lane orion at nwra.com > Boulder, CO 80301 http://www.nwra.com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion at cora.nwra.com Wed Feb 10 15:34:58 2016 From: orion at cora.nwra.com (Orion Poplawski) Date: Wed, 10 Feb 2016 13:34:58 -0700 Subject: [vtkusers] VTK 7 and vtkRenderingOpenGL2 migration In-Reply-To: References: <56B4CD74.7090406@cora.nwra.com> <56B8CF78.2030305@cora.nwra.com> Message-ID: <56BB9EF2.5080606@cora.nwra.com> Yeah, looks like it's only on the master branch, not on release, and didn't make it into 7.0.0 final. That's too bad. On 02/10/2016 12:35 PM, Ken Martin wrote: > It is here https://gitlab.kitware.com/vtk/vtk/merge_requests/1002 but I do not > believe it was included in the VTK 7 rc. > > Ken > > > > On Mon, Feb 8, 2016 at 12:25 PM, Orion Poplawski > wrote: > > Thanks for the response, but I can't find any evidence of these macros in the > installed headers or anything else of use in that header file, except perhaps > the new definition of VTK_USE_GLSL_SHADERS. > > On 02/08/2016 09:59 AM, Ken Martin wrote: > > I believe you can do > > > > #include "vtkRenderingOpenGLConfigure.h" > > > > #ifdef VTK_OPENGL2 > > blah > > #endif > > > > #ifdef VTK_OPENGL1 > > blah > > #endif > > > > > > > > On Fri, Feb 5, 2016 at 11:27 AM, Orion Poplawski > > >> wrote: > > > > I'm looking at updating the Fedora VTK package to 7.0 and rebuilding > dependent > > packages here: > https://copr.fedorainfracloud.org/coprs/orion/vtk7/builds/ > > > > One problem is packages (e.g. engrid) that do: > > > > VTK_MODULE_INIT(vtkRenderingOpenGL); > > > > It appears that with VTK 7.0 it would need to do: > > > > VTK_MODULE_INIT(vtkRenderingOpenGL2); > > > > What's the best way for projects to handle this automatically, as > the vtk they > > are building against may have been built with either backend. > > > > > > -- > > Orion Poplawski > > Technical Manager 303-415-9701 x222 > > > > > NWRA, Boulder/CoRA Office FAX: 303-415-9702 > > > > 3380 Mitchell Lane orion at nwra.com > > > > > > Boulder, CO 80301 http://www.nwra.com > > _______________________________________________ > > Powered by www.kitware.com > > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > > > > > -- > > Ken Martin PhD > > Chairman & CFO > > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > 518 371 3971 > > > > This communication, including all attachments, contains confidential and > > legally privileged information, and it is intended only for the use of the > > addressee. Access to this email by anyone else is unauthorized. If you are > > not the intended recipient, any disclosure, copying, distribution or any > > action taken in reliance on it is prohibited and may be unlawful. If you > > received this communication in error please notify us immediately and > destroy > > the original message. Thank you. > > > -- > Orion Poplawski > Technical Manager 303-415-9701 x222 > > NWRA, Boulder/CoRA Office FAX: 303-415-9702 > 3380 Mitchell Lane orion at nwra.com > > Boulder, CO 80301 http://www.nwra.com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and destroy > the original message. Thank you. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion at nwra.com Boulder, CO 80301 http://www.nwra.com From sotoglzz at gmail.com Wed Feb 10 16:55:22 2016 From: sotoglzz at gmail.com (Jose Soto) Date: Wed, 10 Feb 2016 15:55:22 -0600 Subject: [vtkusers] Uninstall VTK help Message-ID: Hi. I have compiled and installed VTK-5.10.1, however, I want to uninstall it and install an old version (5.8). How can I uninstall VTK?? I'm using Linux Mint Thanks, in advance Jos? Soto. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vianamp at gmail.com Wed Feb 10 19:20:50 2016 From: vianamp at gmail.com (matheus_viana) Date: Wed, 10 Feb 2016 17:20:50 -0700 (MST) Subject: [vtkusers] typedef redefinition during VTK compilation In-Reply-To: References: <1454585276455-5736352.post@n5.nabble.com> Message-ID: <1455150050344-5736529.post@n5.nabble.com> Hi David, thanks for your reply. I tried to include the line you mentioned, but I had the same problem. Instead of trying to fix it, I decided to compile the new VTK 7.0. Now both shared and non-shared library versions are compiling fine. Thanks, -m -- View this message in context: http://vtk.1045678.n5.nabble.com/typedef-redefinition-during-VTK-compilation-tp5736352p5736529.html Sent from the VTK - Users mailing list archive at Nabble.com. From richard at research.canon.com.au Wed Feb 10 20:01:27 2016 From: richard at research.canon.com.au (Chungzuwalla) Date: Wed, 10 Feb 2016 18:01:27 -0700 (MST) Subject: [vtkusers] Switching backends wrecks VTK install folder Message-ID: <1455152487571-5736530.post@n5.nabble.com> This is really a trap for new players. I've been trying to build PCL 1.8 with VTK 7.0.0, using the instructions at: http://pointclouds.org/documentation/tutorials/compiling_pcl_windows.php My target is Visual Studio 2015. I was able to configure, generate, build and install VTK 7.0.0 without errors. When building PCL I got errors that led me to this post: http://www.pcl-users.org/Building-PCL-1-8-0-issue-vtkgl-missing-td4040453.html indicating that PCL does not support VTK with the default OpenGL2 backend. I followed the instructions there to rebuild VTK (in a new CMake build folder) and reinstall it. However, things got weird when building PCL. I was getting compiler errors (missing methods in classes etc) which were finally traced to the fact it was still trying to include VTK OpenGL2 headers, and linker errors for nonexistent libraries such as (the suspiciously OpenGL2-sounding) "vtkDomainsChemistryOpenGL2.lib". I have no prior experience with CMake, PCL or VTK, and spent a couple of entire days working exclusively on this problem, fiddling with CMake config files, deleting CMake caches and doing clean rebuilds of VTK and PCL several times with different settings (an hour or so of compiler time for each). To cut a long story short, the problem is that VTKConfig.cmake uses file globbing to find all modules that have ever been installed in the VTK install dir (C:\Program Files (x86)\VTK in my case), and if the dependent software (PCL in my case) does not request specific modules using VTK_MODULES_REQUESTED, it attempts to use all of them. As soon as I installed the default backend, switched backends (as a result of the abovementioned errors) and installed that too, I was utterly screwed -- nothing I did was going to work, until I thought to search for the VTK install dir and manually delete it. The compiler errors I expect were caused by multiple identically-named includes on the search path, for both OpenGL and OpenGL2 backends (I didn't investigate this further). Once I manually deleted the install dir, then rebuilt and installed VTK with the OpenGL backend, the PCL build went without a hitch. So I guess the question is, does this indicate a problem with the VTK CMake system? Perhaps it could at least check the installation folder for conflicting modules and issue a warning? Thanks in advance... -- View this message in context: http://vtk.1045678.n5.nabble.com/Switching-backends-wrecks-VTK-install-folder-tp5736530.html Sent from the VTK - Users mailing list archive at Nabble.com. From s.kitlu at gmail.com Thu Feb 11 08:19:41 2016 From: s.kitlu at gmail.com (s.kitlu) Date: Thu, 11 Feb 2016 06:19:41 -0700 (MST) Subject: [vtkusers] sturctured to unstructured vtk In-Reply-To: References: Message-ID: <1455196781321-5736533.post@n5.nabble.com> Hello David , i tried to convert but not able to do so i converted nrrd to vtp using vmtk command line then i converted vtp to polydatavtk and unstructured vtk using surface filter and triangle filter . But not able to convert directly nrrd into polydatavtk using script. Can you please explain with some example script. Thanks, S.kitlu -- View this message in context: http://vtk.1045678.n5.nabble.com/sturctured-to-unstructured-vtk-tp5736205p5736533.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Thu Feb 11 10:03:07 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 11 Feb 2016 08:03:07 -0700 (MST) Subject: [vtkusers] setOrigin() of plane is slowing the rendering In-Reply-To: <1454667824889-5736377.post@n5.nabble.com> References: <1454434392380-5736303.post@n5.nabble.com> <1454436336240-5736307.post@n5.nabble.com> <1454505005463-5736328.post@n5.nabble.com> <1454667824889-5736377.post@n5.nabble.com> Message-ID: <1455202987648-5736538.post@n5.nabble.com> Ok so I also tried to use a translate on the plane itself, and it is slow... I really don't understand why, I'm using the release mode to make sure the debugging is not slowing down the rendering too much, but it's still crazy slow. I can imagine that since this plane is clipping my dataset if I transform it there are some computation to do, but this computation runs just fine on my tablet but is slow as hell on my computer, even though I do the exact same thing on both... To be honest my graphics card is pretty advanced in my tablet, and standard in my computer, could it be that it is not good enough? -- View this message in context: http://vtk.1045678.n5.nabble.com/setOrigin-of-plane-is-slowing-the-rendering-tp5736303p5736538.html Sent from the VTK - Users mailing list archive at Nabble.com. From hjchen.work at gmail.com Thu Feb 11 13:21:12 2016 From: hjchen.work at gmail.com (hchen) Date: Thu, 11 Feb 2016 11:21:12 -0700 (MST) Subject: [vtkusers] Uninstall VTK help In-Reply-To: References: Message-ID: <1455214872773-5736540.post@n5.nabble.com> I am using Ubuntu, so there might be a slightly difference from Mint. I would do the following: 1. install checkinstall, it should be available on Mint 2. go to VTK-5.10.1 build folder (where you build VTK and run make install from), and run checkinstall (or sudo checkinstall), checkintsall will reinstall (overwrite) VTK-5.10.1 again, meanwhile, it will track what is installed and will also build a installation package (you can give the installation package a name). 3. I am 99% sure that at this point, VTK-5.10.1 should be listed in you package manager (eg, Synaptic package manager) but with the name you specified in step 2(if you didn't specify a name for installation package, I think the default name is 'build', maybe followed by year, date and time); if it falls in the 1% and it's not listed in the package manager, install the installation package; 4. now you can uninstall it with package manager I am sure there is a better way, but the above worked for me when I was trying to uninstall some other package I build from source... good luck Chen -- View this message in context: http://vtk.1045678.n5.nabble.com/Uninstall-VTK-help-tp5736520p5736540.html Sent from the VTK - Users mailing list archive at Nabble.com. From hjchen.work at gmail.com Thu Feb 11 14:05:11 2016 From: hjchen.work at gmail.com (hchen) Date: Thu, 11 Feb 2016 12:05:11 -0700 (MST) Subject: [vtkusers] GetEventPosition() problem Message-ID: <1455217511555-5736541.post@n5.nabble.com> I have a vtkwidget embedded in a pyqt frame, the frame is a part of pyqt main window. I use vtkImageViewer2 to display CT slices, here is how I set up: ... self.vtkWidgetCT = QVTKRenderWindowInteractor(self.ui.CTFrame) self.gridlayoutCT = QtGui.QGridLayout(self.ui.CTFrame) self.gridlayoutCT.addWidget(self.vtkWidgetCT, 0, 0, 1, 1) self.imageViewerCT = vtk.vtkImageViewer2() self.imageViewerCT.SetupInteractor(self.vtkWidgetCT.GetRenderWindow().GetInteractor()) self.imageViewerCT.SetRenderWindow(self.vtkWidgetCT.GetRenderWindow()) self.imageViewerCT.GetRenderer().SetBackground(0.5, 0.5, 0.5) self.irenCT = self.imageViewerCT.GetRenderWindow().GetInteractor() ... I need to draw a line on top of the CT using mouse: first click for the beginning of the line, second click for the end. I use irenCT.GetEventPosition() to get mouse click positions. Here is my problem: When the program starts, the main window is not maximized, GetEventPosition() gives correct x, but wrong y. Now if I simply maximize the main window (the qt frame where the vtkwidget is in gets larger accordingly), then GetEventPosition() gives both x and y correctly thereafter, even when restoring main window to its previous size. It feels like when the program starts, there is "something" not updated/set correctly, when maximizing the window, everything is re-drawn, this "something" gets corrected. Can anyone please help to point out what this "something" might be or what I forget to set in the first place? Thank you! Chen -- View this message in context: http://vtk.1045678.n5.nabble.com/GetEventPosition-problem-tp5736541.html Sent from the VTK - Users mailing list archive at Nabble.com. From newcfd at yahoo.com Thu Feb 11 18:05:56 2016 From: newcfd at yahoo.com (newcfd) Date: Thu, 11 Feb 2016 16:05:56 -0700 (MST) Subject: [vtkusers] is there function call to tell if a mesh is a volume or surface one from vtkUnstructuredGridReader Message-ID: <1455231956009-5736542.post@n5.nabble.com> one cell in a surface mesh may have 4 vertices. one cell in a volume mesh may have 4 vertices as well. -- View this message in context: http://vtk.1045678.n5.nabble.com/is-there-function-call-to-tell-if-a-mesh-is-a-volume-or-surface-one-from-vtkUnstructuredGridReader-tp5736542.html Sent from the VTK - Users mailing list archive at Nabble.com. From f.nellmeldin at open-engineering.com Fri Feb 12 04:26:18 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Fri, 12 Feb 2016 10:26:18 +0100 Subject: [vtkusers] Generate debug libraries with _d postfix Message-ID: Hello all. I know that this has been discussed in the past but it seems that nothing has changed. It would be of interest if the libraries of VTK had different names between their debug and release versions. For example: * Debug: vtkRendering_d.lib * Release: vtkRendering.lib I know that there is a "trick" for VTK 5.10, which is putting the following line in the main CMakeLists.txt: SET(VTK_LIBRARY_PROPERTIES ${VTK_LIBRARY_PROPERTIES} DEBUG_POSTFIX _d ) However, that doesn't work for VTK 6.3.0 nor VTK 7.0.0. (for 5.10 does just what I want). Any thoughts of how to do the same on these versions? Thank you. PS: I'm using CMake with VS2010 generator under windows8, but I think the solution should be general. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pip010 at gmail.com Fri Feb 12 06:46:13 2016 From: pip010 at gmail.com (Petar Petrov) Date: Fri, 12 Feb 2016 12:46:13 +0100 Subject: [vtkusers] vtkftgl.lib Message-ID: Hello, the following lib is not build as of vtk 7.0. Any idea? what did it change? Cheers, petar -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Fri Feb 12 10:18:56 2016 From: berk.geveci at kitware.com (Berk Geveci) Date: Fri, 12 Feb 2016 10:18:56 -0500 Subject: [vtkusers] ANN: CFP - Eurographics 2016 Symposium on Parallel, Graphics and, Visualization (EGPGV 2016) Message-ID: [We apologize if you receive multiple copies of this message.] Eurographics 2016 Symposium on Parallel Graphics and Visualization (EGPGV 2016) ========================================================================= June 6-7, 2016, Groningen, the Netherlands Co-located with EuroVis 2016 www.egpgv.org Call for Papers ================ The importance of parallel computing is increasing rapidly with the ubiquitous availability of multi-core CPUs, GPUs, and cluster systems. Computationally demanding and data-intensive applications in graphics and visualization are strongly affected by this trend and require novel efficient parallel solutions. The aim of this symposium is to foster the exchange of experiences and knowledge exploiting and defining new trends in parallel graphics and visualization. The proceedings of the EGPGV Symposium will be published in the Eurographics Proceedings Series and in the Eurographics Digital Library. Best papers from the EGPGV symposium will be invited to submit an extended journal version to IEEE Transactions on Visualization and Computer Graphics. Focusing on parallel computing, the symposium seeks papers on graphics and visualization techniques, data structures, algorithms, and systems for: - large-data - clusters - (multi-)GPU computing, and heterogeneous, hybrid architectures - out-of-core - hybrid distributed and shared memory architectures - grid and cloud environments In particular the symposium topics include: - computationally and data intensive rendering - scientific visualization (volume rendering, flow and tensor visualization) - information visualization and visual analytics - simulations for virtual environments (physics-based animation, collision detection, acoustics) - mesh processing, level-of-detail, and geometric methods - visual computing (image- and video-based rendering, image processing and exploitation, segmentation) - scheduling, memory management and data coherence - large and high resolution displays, virtual environments - scientific, engineering, and industrial applications Important Dates ================= Paper Submission: February 19, 2016 Author Notification: April 1, 2016 Camera-Ready papers: April 15, 2016 Symposium: June 6-7, 2016 Submission instructions ======================== You are invited to submit original and unpublished research works. Full papers are expected to be eight to ten (8-10) pages in length, with the final length appropriate to the contribution of the paper. Submissions are to be formatted along the Eurographics paper publication guidelines. We expect that the submissions will clearly discuss the novel and significant contributions as well as related work in the field. Authors must highlight how their contributions differ and advance the state of the art in parallel graphics and visualization. The full paper and all supplementary material must be submitted via the PCS online system. Additional submission details will be announced shortly on egpgv.org. Symposium Chair ================= Alexandru Telea, University of Groningen, the Netherlands Program Chairs =============== Wes Bethel, Lawrence Berkeley National Laboratory, USA Enrico Gobbetti, CRS4, Italy Program Committee ================== Marco Ament, Karlsruhe Institute of Technology, Germany Ulf Assarsson, Chalmers University, Sweden Janine Bennett, SANDIA Labs, USA Hank Childs, Lawrence Berkeley National Laboratory, USA Kurt Debattista, University of Warwick, UK Stefan Eilemann, ?cole Polytechnique F?d?rale de Lausanne, Switzerland Elmar Eisemann, TU Delft, the Netherlands Kelly Gaither, University Texas/Austin, USA Christoph Garth, University of Kaiserslautern, Germany Berk Geveci, Kitware, USA Michael Guthe, University of Bayreuth, Germany Andrei Jalba, TU Eindhoven, the Netherlands Jens Kr?ger, University Duisburg-Essen, Germany Torsten Kuhlen, RWTH Aachen University, Germany Fabio Marton, CRS4, Italy Patrick McCormick, Los Alamos National Laboratory, USA Kenneth Moreland, Sandia National Laboratories, USA Renato Pajarola, University of Z?rich, Switzerland Bruno Raffin, INRIA Grenoble, France Filip Sadlo, University of Heidelberg, Germany Daniel Weiskopf, University of Stuttgart, Germany Michael Wimmer, Technische Universit?t Wien, Austria -------------- next part -------------- An HTML attachment was scrubbed... URL: From wangq1979 at outlook.com Fri Feb 12 11:27:39 2016 From: wangq1979 at outlook.com (WangQ) Date: Sat, 13 Feb 2016 00:27:39 +0800 Subject: [vtkusers] slice a volume In-Reply-To: References: , Message-ID: Hello Aashish, I have a 3-d image like below. What I want is to cross-sectionally slice the image. I have checked the reslice class, but it needs vtkImageData as input. Cheers, Chiang Date: Wed, 10 Feb 2016 11:54:06 -0500 Subject: Re: [vtkusers] slice a volume From: aashish.chaudhary at kitware.com To: wangq1979 at outlook.com CC: vtkusers at vtk.org Have you looked into this mapper: http://www.vtk.org/doc/nightly/html/classvtkImageResliceMapper.html Not sure about vtkSphereSource relation to volume. Can you elaborate more? Thanks On Sat, Feb 6, 2016 at 7:53 PM, WangQ wrote: Hello vtkusers,I have a volume, in which there are lots of spheres by vtkSphereSource at arbitrary position, and possible a few isosurfaces. I want to slice the volume at any position along one axis, and save the slices. I tried several ways to achieve it, but since every object has its own mapper and actor. I do not know how to do it.Really appreciate for any help!Cheers,Chiang _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: slice.png Type: image/png Size: 102351 bytes Desc: not available URL: From ben.boeckel at kitware.com Fri Feb 12 11:39:59 2016 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Fri, 12 Feb 2016 11:39:59 -0500 Subject: [vtkusers] vtkftgl.lib In-Reply-To: References: Message-ID: <20160212163959.GA28230@megas.kitware.com> On Fri, Feb 12, 2016 at 12:46:13 +0100, Petar Petrov wrote: > the following lib is not build as of vtk 7.0. Any idea? > what did it change? VTK no longer requires ftgl, so it was removed. --Ben From ben.boeckel at kitware.com Fri Feb 12 11:43:55 2016 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Fri, 12 Feb 2016 11:43:55 -0500 Subject: [vtkusers] Generate debug libraries with _d postfix In-Reply-To: References: Message-ID: <20160212164355.GB28230@megas.kitware.com> On Fri, Feb 12, 2016 at 10:26:18 +0100, Fernando Nellmeldin wrote: > However, that doesn't work for VTK 6.3.0 nor VTK 7.0.0. (for 5.10 does just > what I want). Probably due to the module system changes for VTK6. > Any thoughts of how to do the same on these versions? Some logic could be added to CMake/vtkModuleMacros.cmake:624 or so (inside of vtk_module_library) to do this for Windows. > PS: I'm using CMake with VS2010 generator under windows8, but I think the > solution should be general. Well, at least on Windows. Other platforms don't have the debug/release runtime library split and such things are annoying to work with elsewhere (I regularly debug a single library and not having to build the entire stack because the library name changed is a big plus). --Ben From wangq1979 at outlook.com Fri Feb 12 11:55:04 2016 From: wangq1979 at outlook.com (WangQ) Date: Sat, 13 Feb 2016 00:55:04 +0800 Subject: [vtkusers] slice a volume In-Reply-To: References: , , , Message-ID: Hello, Thanks for the prompt response. However, the point is that the shown volume is not from single input. The spheres inside the cylinder are generated dynamically, and included in the vtkRender one by one, i.e. each sphere has its own mapper, actor, etc. Therefore, simply using cutter or plane is unable to fulfill the slicing. One thing I can imagine is that if I can get the data from the renderer, I can then apply cutter or plane to slice it. But I do not know how to get the data. Cheers, Chiang Date: Fri, 12 Feb 2016 14:31:22 -0200 Subject: Re: [vtkusers] slice a volume From: eduardo.ecamargo at gmail.com To: wangq1979 at outlook.com Did you try to use vtkCutter class? http://www.vtk.org/Wiki/VTK/Examples/Java/Miscellaneous/vtkCutterAtenciosamente, Eduardo Camargo, M.Sc. Analista de Sistemas Instituto Nacional de Ci?ncia e Tecnologia em Medicina Assistida por Computa??o Cient?fica INCT-MACC http://macc.lncc.br Laborat?rio Nacional de Computa??o Cient?fica LNCC - http://www.lncc.br Skype: camargo_rh "Work hard toward your goals, no matter what obstacles get in your way. Even if you think you can?t do it, just be disciplined, put your mind to it, and then do your best." - Jean Chiar - SETI Institute On 12 February 2016 at 14:27, WangQ wrote: Hello Aashish, I have a 3-d image like below. What I want is to cross-sectionally slice the image. I have checked the reslice class, but it needs vtkImageData as input. Cheers, Chiang Date: Wed, 10 Feb 2016 11:54:06 -0500 Subject: Re: [vtkusers] slice a volume From: aashish.chaudhary at kitware.com To: wangq1979 at outlook.com CC: vtkusers at vtk.org Have you looked into this mapper: http://www.vtk.org/doc/nightly/html/classvtkImageResliceMapper.html Not sure about vtkSphereSource relation to volume. Can you elaborate more? Thanks On Sat, Feb 6, 2016 at 7:53 PM, WangQ wrote: Hello vtkusers,I have a volume, in which there are lots of spheres by vtkSphereSource at arbitrary position, and possible a few isosurfaces. I want to slice the volume at any position along one axis, and save the slices. I tried several ways to achieve it, but since every object has its own mapper and actor. I do not know how to do it.Really appreciate for any help!Cheers,Chiang _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: slice.png Type: image/png Size: 102351 bytes Desc: not available URL: From david.gobbi at gmail.com Fri Feb 12 12:25:21 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 12 Feb 2016 10:25:21 -0700 Subject: [vtkusers] slice a volume In-Reply-To: References: Message-ID: Hi Chiang, It sounds like you need something that will select some or all of the actors in the scene, trace backwards through the pipeline to get the data, apply a cutter to the data, and then create new mappers and actors to show the cut. This is possible, but not easy! Another approach is to create an additional layer of abstraction on top of VTK to manage situations like this. For example, you could create a "SuperActor" class to manage the extra filters, mappers, and actors that are needed to display the cut. Then, if you give a cutting plane to the "SuperActor", it can automatically add the vtkCutter, a new mapper, and a new actor to the renderer. And a "SuperSuperActor" could be used to manage multiple "SuperActors". All of this requires a lot of programming, however. In summary: I don't think there is an easy solution. Hopefully someone will prove me wrong! - David On Fri, Feb 12, 2016 at 9:55 AM, WangQ wrote: > Hello, > > Thanks for the prompt response. > > However, the point is that the shown volume is not from single input. The > spheres inside the cylinder are generated dynamically, and included in the > vtkRender one by one, i.e. each sphere has its own mapper, actor, etc. > Therefore, simply using cutter or plane is unable to fulfill the slicing. > > One thing I can imagine is that if I can get the data from the renderer, I > can then apply cutter or plane to slice it. But I do not know how to get > the data. > > Cheers, > > Chiang > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wangq1979 at outlook.com Fri Feb 12 12:48:28 2016 From: wangq1979 at outlook.com (WangQ) Date: Sat, 13 Feb 2016 01:48:28 +0800 Subject: [vtkusers] slice a volume In-Reply-To: References: , , , Message-ID: Thanks David, Sounds like meta-meta programming. Is it possible to save the data of the image like a sequence of slices, and then load as an image data for cutting? Cheers, Chiang From: david.gobbi at gmail.com Date: Fri, 12 Feb 2016 10:25:21 -0700 Subject: Re: [vtkusers] slice a volume To: wangq1979 at outlook.com CC: vtkusers at vtk.org Hi Chiang, It sounds like you need something that will select some or all of the actors in the scene, trace backwards through the pipeline to get the data, apply a cutter to the data, and then create new mappers and actors to show the cut. This is possible, but not easy! Another approach is to create an additional layer of abstraction on top of VTK to manage situations like this. For example, you could create a "SuperActor" class to manage the extra filters, mappers, and actors that are needed to display the cut. Then, if you give a cutting plane to the "SuperActor", it can automatically add the vtkCutter, a new mapper, and a new actor to the renderer. And a "SuperSuperActor" could be used to manage multiple "SuperActors". All of this requires a lot of programming, however. In summary: I don't think there is an easy solution. Hopefully someone will prove me wrong! - David On Fri, Feb 12, 2016 at 9:55 AM, WangQ wrote: Hello, Thanks for the prompt response. However, the point is that the shown volume is not from single input. The spheres inside the cylinder are generated dynamically, and included in the vtkRender one by one, i.e. each sphere has its own mapper, actor, etc. Therefore, simply using cutter or plane is unable to fulfill the slicing. One thing I can imagine is that if I can get the data from the renderer, I can then apply cutter or plane to slice it. But I do not know how to get the data. Cheers, Chiang -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Feb 12 13:02:07 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 12 Feb 2016 11:02:07 -0700 Subject: [vtkusers] slice a volume In-Reply-To: References: Message-ID: No, that really isn't possible. In any case, it would be far easier and far, far more efficient to export the scene as a single polygonal object (using point attributes for colors and whatnot) and then apply vtkCutter to it. - David On Fri, Feb 12, 2016 at 10:48 AM, WangQ wrote: > Thanks David, > > Sounds like meta-meta programming. > > Is it possible to save the data of the image like a sequence of slices, > and then load as an image data for cutting? > > Cheers, > > Chiang > > ------------------------------ > From: david.gobbi at gmail.com > Date: Fri, 12 Feb 2016 10:25:21 -0700 > Subject: Re: [vtkusers] slice a volume > To: wangq1979 at outlook.com > CC: vtkusers at vtk.org > > > Hi Chiang, > > It sounds like you need something that will select some or all of the > actors in the scene, trace backwards through the pipeline to get the data, > apply a cutter to the data, and then create new mappers and actors to show > the cut. This is possible, but not easy! > > Another approach is to create an additional layer of abstraction on top of > VTK to manage situations like this. For example, you could create a > "SuperActor" class to manage the extra filters, mappers, and actors that > are needed to display the cut. Then, if you give a cutting plane to the > "SuperActor", it can automatically add the vtkCutter, a new mapper, and a > new actor to the renderer. And a "SuperSuperActor" could be used to manage > multiple "SuperActors". All of this requires a lot of programming, however. > > In summary: I don't think there is an easy solution. Hopefully someone > will prove me wrong! > > - David > > > On Fri, Feb 12, 2016 at 9:55 AM, WangQ wrote: > > Hello, > > Thanks for the prompt response. > > However, the point is that the shown volume is not from single input. The > spheres inside the cylinder are generated dynamically, and included in the > vtkRender one by one, i.e. each sphere has its own mapper, actor, etc. > Therefore, simply using cutter or plane is unable to fulfill the slicing. > > One thing I can imagine is that if I can get the data from the renderer, I > can then apply cutter or plane to slice it. But I do not know how to get > the data. > > Cheers, > > Chiang > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 wangq1979 at outlook.com Fri Feb 12 13:26:00 2016 From: wangq1979 at outlook.com (WangQ) Date: Sat, 13 Feb 2016 02:26:00 +0800 Subject: [vtkusers] slice a volume In-Reply-To: References: , , , , Message-ID: Good tips, indeed. Any example or particular class for the purpose? Cheers, Chiang From: david.gobbi at gmail.com Date: Fri, 12 Feb 2016 11:02:07 -0700 Subject: Re: [vtkusers] slice a volume To: wangq1979 at outlook.com CC: vtkusers at vtk.org No, that really isn't possible. In any case, it would be far easier and far, far more efficient to export the scene as a single polygonal object (using point attributes for colors and whatnot) and then apply vtkCutter to it. - David On Fri, Feb 12, 2016 at 10:48 AM, WangQ wrote: Thanks David, Sounds like meta-meta programming. Is it possible to save the data of the image like a sequence of slices, and then load as an image data for cutting? Cheers, Chiang From: david.gobbi at gmail.com Date: Fri, 12 Feb 2016 10:25:21 -0700 Subject: Re: [vtkusers] slice a volume To: wangq1979 at outlook.com CC: vtkusers at vtk.org Hi Chiang, It sounds like you need something that will select some or all of the actors in the scene, trace backwards through the pipeline to get the data, apply a cutter to the data, and then create new mappers and actors to show the cut. This is possible, but not easy! Another approach is to create an additional layer of abstraction on top of VTK to manage situations like this. For example, you could create a "SuperActor" class to manage the extra filters, mappers, and actors that are needed to display the cut. Then, if you give a cutting plane to the "SuperActor", it can automatically add the vtkCutter, a new mapper, and a new actor to the renderer. And a "SuperSuperActor" could be used to manage multiple "SuperActors". All of this requires a lot of programming, however. In summary: I don't think there is an easy solution. Hopefully someone will prove me wrong! - David On Fri, Feb 12, 2016 at 9:55 AM, WangQ wrote: Hello, Thanks for the prompt response. However, the point is that the shown volume is not from single input. The spheres inside the cylinder are generated dynamically, and included in the vtkRender one by one, i.e. each sphere has its own mapper, actor, etc. Therefore, simply using cutter or plane is unable to fulfill the slicing. One thing I can imagine is that if I can get the data from the renderer, I can then apply cutter or plane to slice it. But I do not know how to get the data. Cheers, Chiang _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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 Fri Feb 12 13:37:43 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 12 Feb 2016 11:37:43 -0700 Subject: [vtkusers] slice a volume In-Reply-To: References: Message-ID: I know that VTK has classes for exporting a scene, but I'm not very familiar with them. Search for "VTK" and "Exporter" to see what exporters exist. You want to export the entire scene from the renderer to a file, and then import the file as a single vtkPolyData object. - David On Fri, Feb 12, 2016 at 11:26 AM, WangQ wrote: > Good tips, indeed. > > Any example or particular class for the purpose? > > Cheers, > > Chiang > > ------------------------------ > From: david.gobbi at gmail.com > Date: Fri, 12 Feb 2016 11:02:07 -0700 > > Subject: Re: [vtkusers] slice a volume > To: wangq1979 at outlook.com > CC: vtkusers at vtk.org > > No, that really isn't possible. In any case, it would be far easier and > far, far more efficient to export the scene as a single polygonal object > (using point attributes for colors and whatnot) and then apply vtkCutter to > it. > > - David > > > On Fri, Feb 12, 2016 at 10:48 AM, WangQ wrote: > > Thanks David, > > Sounds like meta-meta programming. > > Is it possible to save the data of the image like a sequence of slices, > and then load as an image data for cutting? > > Cheers, > > Chiang > > ------------------------------ > From: david.gobbi at gmail.com > Date: Fri, 12 Feb 2016 10:25:21 -0700 > Subject: Re: [vtkusers] slice a volume > To: wangq1979 at outlook.com > CC: vtkusers at vtk.org > > > Hi Chiang, > > It sounds like you need something that will select some or all of the > actors in the scene, trace backwards through the pipeline to get the data, > apply a cutter to the data, and then create new mappers and actors to show > the cut. This is possible, but not easy! > > Another approach is to create an additional layer of abstraction on top of > VTK to manage situations like this. For example, you could create a > "SuperActor" class to manage the extra filters, mappers, and actors that > are needed to display the cut. Then, if you give a cutting plane to the > "SuperActor", it can automatically add the vtkCutter, a new mapper, and a > new actor to the renderer. And a "SuperSuperActor" could be used to manage > multiple "SuperActors". All of this requires a lot of programming, however. > > In summary: I don't think there is an easy solution. Hopefully someone > will prove me wrong! > > - David > > > On Fri, Feb 12, 2016 at 9:55 AM, WangQ wrote: > > Hello, > > Thanks for the prompt response. > > However, the point is that the shown volume is not from single input. The > spheres inside the cylinder are generated dynamically, and included in the > vtkRender one by one, i.e. each sphere has its own mapper, actor, etc. > Therefore, simply using cutter or plane is unable to fulfill the slicing. > > One thing I can imagine is that if I can get the data from the renderer, I > can then apply cutter or plane to slice it. But I do not know how to get > the data. > > Cheers, > > Chiang > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wangq1979 at outlook.com Fri Feb 12 13:55:24 2016 From: wangq1979 at outlook.com (WangQ) Date: Sat, 13 Feb 2016 02:55:24 +0800 Subject: [vtkusers] slice a volume In-Reply-To: References: , , , , , Message-ID: Thanks David. I will check it. Cheers, Chiang From: david.gobbi at gmail.com Date: Fri, 12 Feb 2016 11:37:43 -0700 Subject: Re: [vtkusers] slice a volume To: wangq1979 at outlook.com CC: vtkusers at vtk.org I know that VTK has classes for exporting a scene, but I'm not very familiar with them. Search for "VTK" and "Exporter" to see what exporters exist. You want to export the entire scene from the renderer to a file, and then import the file as a single vtkPolyData object. - David On Fri, Feb 12, 2016 at 11:26 AM, WangQ wrote: Good tips, indeed. Any example or particular class for the purpose? Cheers, Chiang From: david.gobbi at gmail.com Date: Fri, 12 Feb 2016 11:02:07 -0700 Subject: Re: [vtkusers] slice a volume To: wangq1979 at outlook.com CC: vtkusers at vtk.org No, that really isn't possible. In any case, it would be far easier and far, far more efficient to export the scene as a single polygonal object (using point attributes for colors and whatnot) and then apply vtkCutter to it. - David On Fri, Feb 12, 2016 at 10:48 AM, WangQ wrote: Thanks David, Sounds like meta-meta programming. Is it possible to save the data of the image like a sequence of slices, and then load as an image data for cutting? Cheers, Chiang From: david.gobbi at gmail.com Date: Fri, 12 Feb 2016 10:25:21 -0700 Subject: Re: [vtkusers] slice a volume To: wangq1979 at outlook.com CC: vtkusers at vtk.org Hi Chiang, It sounds like you need something that will select some or all of the actors in the scene, trace backwards through the pipeline to get the data, apply a cutter to the data, and then create new mappers and actors to show the cut. This is possible, but not easy! Another approach is to create an additional layer of abstraction on top of VTK to manage situations like this. For example, you could create a "SuperActor" class to manage the extra filters, mappers, and actors that are needed to display the cut. Then, if you give a cutting plane to the "SuperActor", it can automatically add the vtkCutter, a new mapper, and a new actor to the renderer. And a "SuperSuperActor" could be used to manage multiple "SuperActors". All of this requires a lot of programming, however. In summary: I don't think there is an easy solution. Hopefully someone will prove me wrong! - David On Fri, Feb 12, 2016 at 9:55 AM, WangQ wrote: Hello, Thanks for the prompt response. However, the point is that the shown volume is not from single input. The spheres inside the cylinder are generated dynamically, and included in the vtkRender one by one, i.e. each sphere has its own mapper, actor, etc. Therefore, simply using cutter or plane is unable to fulfill the slicing. One thing I can imagine is that if I can get the data from the renderer, I can then apply cutter or plane to slice it. But I do not know how to get the data. Cheers, Chiang -------------- next part -------------- An HTML attachment was scrubbed... URL: From setegn.2 at buckeyemail.osu.edu Fri Feb 12 18:21:19 2016 From: setegn.2 at buckeyemail.osu.edu (Setegn, Manny) Date: Fri, 12 Feb 2016 23:21:19 +0000 Subject: [vtkusers] VTK 6.2 Java Standalone Application In-Reply-To: <1454911071102-5736423.post@n5.nabble.com> References: , <1454911071102-5736423.post@n5.nabble.com> Message-ID: It is an unsatisfied link error where it cannot find all of the vtk dependent libraries. The exact error is as follows (over all VTK libraries, but this is just one example): java.lang.UnsatisfiedLinkError: C:\Program Files\VTK\bin\vtkRenderingOpenGLJava. dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160 ) It does this for the following libraries: vtkAcceleratorsDaxJava not loaded vtkAcceleratorsPistonJava not loaded vtkChartsCoreJava not loaded vtkDomainsChemistryJava not loaded vtkDomainsChemistryOpenGL2Java not loaded vtkFiltersParallelFlowPathsJava not loaded vtkFiltersParallelGeometryJava not loaded vtkFiltersParallelMPIJava not loaded vtkFiltersParallelStatisticsJava not loaded vtkFiltersReebGraphJava not loaded vtkFiltersStatisticsGnuRJava not loaded vtkGeovisCoreJava not loaded vtkInfovisBoostGraphAlgorithmsJava not loaded vtkInfovisParallelJava not loaded vtkInteractionStyleJava not loaded vtkInteractionWidgetsJava not loaded vtkIOADIOSJava not loaded vtkIOExportJava not loaded vtkIOFFMPEGJava not loaded vtkIOGDALJava not loaded vtkIOGeoJSONJava not loaded vtkIOMPIImageJava not loaded vtkIOMPIParallelJava not loaded vtkIOMySQLJava not loaded vtkIOODBCJava not loaded vtkIOParallelExodusJava not loaded vtkIOParallelLSDynaJava not loaded vtkIOParallelNetCDFJava not loaded vtkIOPostgreSQLJava not loaded vtkIOVPICJava not loaded vtkIOXdmf2Java not loaded vtkIOXdmf3Java not loaded vtkParallelMPIJava not loaded vtkRenderingAnnotationJava not loaded vtkRenderingContext2DJava not loaded vtkRenderingContextOpenGLJava not loaded vtkRenderingContextOpenGL2Java not loaded vtkRenderingCoreJava not loaded vtkRenderingExternalJava not loaded vtkRenderingFreeTypeJava not loaded vtkRenderingFreeTypeOpenGLJava not loaded vtkRenderingFreeTypeOpenGL2Java not loaded vtkRenderingImageJava not loaded vtkRenderingLabelJava not loaded vtkRenderingLICJava not loaded vtkRenderingLODJava not loaded vtkRenderingMatplotlibJava not loaded vtkRenderingOpenGLJava not loaded vtkRenderingOpenGL2Java not loaded vtkRenderingParallelJava not loaded vtkRenderingParallelLICJava not loaded vtkRenderingQtJava not loaded vtkRenderingVolumeJava not loaded vtkRenderingVolumeAMRJava not loaded vtkRenderingVolumeOpenGLJava not loaded vtkRenderingVolumeOpenGL2Java not loaded vtkRenderingVolumeOpenGLNewJava not loaded vtkTestingRenderingJava not loaded vtkPythonInterpreterJava not loaded vtkViewsContext2DJava not loaded vtkViewsGeovisJava not loaded vtkViewsInfovisJava not loaded vtkWebCoreJava not loaded vtkWebGLExporterJava not loaded It is finding the folder with the dll, yet it is still not loading the dll's correctly. I have moved the vtk jar out of the jar I am trying to run and placed it, and the other jars, in a separate folder. ________________________________________ From: vtkusers on behalf of vincentrivola Sent: Monday, February 8, 2016 12:57 AM To: vtkusers at vtk.org Subject: Re: [vtkusers] VTK 6.2 Java Standalone Application If you are trying to use the jar you created on a different machine, indeed, you should make sure that all the Visual Studio redistruables has been installed on this machine. If it's not working on your own machine (where you made the VTK compilation), it is often a problem of finding the java dll, like jawt.dll for instance. In any case you can use dependency walker in order to find out which exact dll is missing. good luck -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-2-Java-Standalone-Application-tp5736419p5736423.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 sebastien.jourdain at kitware.com Fri Feb 12 22:29:35 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Fri, 12 Feb 2016 20:29:35 -0700 Subject: [vtkusers] VTK 6.2 Java Standalone Application In-Reply-To: References: <1454911071102-5736423.post@n5.nabble.com> Message-ID: Can you explain what you've done? - setting of your env PATH? - what command line did you ran? - which dir contain what... Just so we can understand what you are missing... Seb On Fri, Feb 12, 2016 at 4:21 PM, Setegn, Manny wrote: > It is an unsatisfied link error where it cannot find all of the vtk > dependent libraries. The exact error is as follows (over all VTK > libraries, but this is just one example): > > java.lang.UnsatisfiedLinkError: C:\Program > Files\VTK\bin\vtkRenderingOpenGLJava. > dll: Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854) > at java.lang.Runtime.loadLibrary0(Runtime.java:870) > at java.lang.System.loadLibrary(System.java:1122) > at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) > at > vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160 > ) > > It does this for the following libraries: > > vtkAcceleratorsDaxJava not loaded > vtkAcceleratorsPistonJava not loaded > vtkChartsCoreJava not loaded > vtkDomainsChemistryJava not loaded > vtkDomainsChemistryOpenGL2Java not loaded > vtkFiltersParallelFlowPathsJava not loaded > vtkFiltersParallelGeometryJava not loaded > vtkFiltersParallelMPIJava not loaded > vtkFiltersParallelStatisticsJava not loaded > vtkFiltersReebGraphJava not loaded > vtkFiltersStatisticsGnuRJava not loaded > vtkGeovisCoreJava not loaded > vtkInfovisBoostGraphAlgorithmsJava not loaded > vtkInfovisParallelJava not loaded > vtkInteractionStyleJava not loaded > vtkInteractionWidgetsJava not loaded > vtkIOADIOSJava not loaded > vtkIOExportJava not loaded > vtkIOFFMPEGJava not loaded > vtkIOGDALJava not loaded > vtkIOGeoJSONJava not loaded > vtkIOMPIImageJava not loaded > vtkIOMPIParallelJava not loaded > vtkIOMySQLJava not loaded > vtkIOODBCJava not loaded > vtkIOParallelExodusJava not loaded > vtkIOParallelLSDynaJava not loaded > vtkIOParallelNetCDFJava not loaded > vtkIOPostgreSQLJava not loaded > vtkIOVPICJava not loaded > vtkIOXdmf2Java not loaded > vtkIOXdmf3Java not loaded > vtkParallelMPIJava not loaded > vtkRenderingAnnotationJava not loaded > vtkRenderingContext2DJava not loaded > vtkRenderingContextOpenGLJava not loaded > vtkRenderingContextOpenGL2Java not loaded > vtkRenderingCoreJava not loaded > vtkRenderingExternalJava not loaded > vtkRenderingFreeTypeJava not loaded > vtkRenderingFreeTypeOpenGLJava not loaded > vtkRenderingFreeTypeOpenGL2Java not loaded > vtkRenderingImageJava not loaded > vtkRenderingLabelJava not loaded > vtkRenderingLICJava not loaded > vtkRenderingLODJava not loaded > vtkRenderingMatplotlibJava not loaded > vtkRenderingOpenGLJava not loaded > vtkRenderingOpenGL2Java not loaded > vtkRenderingParallelJava not loaded > vtkRenderingParallelLICJava not loaded > vtkRenderingQtJava not loaded > vtkRenderingVolumeJava not loaded > vtkRenderingVolumeAMRJava not loaded > vtkRenderingVolumeOpenGLJava not loaded > vtkRenderingVolumeOpenGL2Java not loaded > vtkRenderingVolumeOpenGLNewJava not loaded > vtkTestingRenderingJava not loaded > vtkPythonInterpreterJava not loaded > vtkViewsContext2DJava not loaded > vtkViewsGeovisJava not loaded > vtkViewsInfovisJava not loaded > vtkWebCoreJava not loaded > vtkWebGLExporterJava not loaded > > It is finding the folder with the dll, yet it is still not loading the > dll's correctly. I have moved the vtk jar out of the jar I am trying to > run and placed it, and the other jars, in a separate folder. > > ________________________________________ > From: vtkusers on behalf of vincentrivola < > vincentrivola at hotmail.com> > Sent: Monday, February 8, 2016 12:57 AM > To: vtkusers at vtk.org > Subject: Re: [vtkusers] VTK 6.2 Java Standalone Application > > If you are trying to use the jar you created on a different machine, > indeed, > you should make sure that all the Visual Studio redistruables has been > installed on this machine. > > If it's not working on your own machine (where you made the VTK > compilation), it is often a problem of finding the java dll, like jawt.dll > for instance. > > In any case you can use dependency walker in order to find out which exact > dll is missing. > > good luck > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/VTK-6-2-Java-Standalone-Application-tp5736419p5736423.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 setegn.2 at buckeyemail.osu.edu Sat Feb 13 09:31:44 2016 From: setegn.2 at buckeyemail.osu.edu (Setegn, Manny) Date: Sat, 13 Feb 2016 14:31:44 +0000 Subject: [vtkusers] VTK 6.2 Java Standalone Application In-Reply-To: References: <1454911071102-5736423.post@n5.nabble.com> , Message-ID: So to re-clarify, I've built the release version of VTK 6.2 using Microsoft Visual Studio 2013. After building this, I built the INSTALL Project, and it added VTK to my program files. Then from here I appended my System Environment Path to include the following: "C:\Program Files\VTK\bin" This folder contained all of the dll files. "C:\Program Files\VTK\lib" contains the jar file as well as the .lib files. Once doing this, I tested to see if VTK would still work in Eclipse, and it did. So I proceeded to export my project as a Runnable JAR, and then packaged the necessary jar's in a separate folder (the one that will contain vtk.jar). So now vtk.jar is in two locations, but it shouldn't point to this until I add it to my System Path, I just want to use this folder later when I try sending this to a computer without VTK). Once the jar was created, I opened Command Prompt, went to the folder with my runnable jar I had just created and ran the following command prompt line: java -jar Test.jar Then the errors I posted before occurred. Thank you for your help so far ________________________________ From: Sebastien Jourdain Sent: Friday, February 12, 2016 10:29 PM To: Setegn, Manny Cc: vincentrivola; vtkusers at vtk.org Subject: Re: [vtkusers] VTK 6.2 Java Standalone Application Can you explain what you've done? - setting of your env PATH? - what command line did you ran? - which dir contain what... Just so we can understand what you are missing... Seb On Fri, Feb 12, 2016 at 4:21 PM, Setegn, Manny > wrote: It is an unsatisfied link error where it cannot find all of the vtk dependent libraries. The exact error is as follows (over all VTK libraries, but this is just one example): java.lang.UnsatisfiedLinkError: C:\Program Files\VTK\bin\vtkRenderingOpenGLJava. dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160 ) It does this for the following libraries: vtkAcceleratorsDaxJava not loaded vtkAcceleratorsPistonJava not loaded vtkChartsCoreJava not loaded vtkDomainsChemistryJava not loaded vtkDomainsChemistryOpenGL2Java not loaded vtkFiltersParallelFlowPathsJava not loaded vtkFiltersParallelGeometryJava not loaded vtkFiltersParallelMPIJava not loaded vtkFiltersParallelStatisticsJava not loaded vtkFiltersReebGraphJava not loaded vtkFiltersStatisticsGnuRJava not loaded vtkGeovisCoreJava not loaded vtkInfovisBoostGraphAlgorithmsJava not loaded vtkInfovisParallelJava not loaded vtkInteractionStyleJava not loaded vtkInteractionWidgetsJava not loaded vtkIOADIOSJava not loaded vtkIOExportJava not loaded vtkIOFFMPEGJava not loaded vtkIOGDALJava not loaded vtkIOGeoJSONJava not loaded vtkIOMPIImageJava not loaded vtkIOMPIParallelJava not loaded vtkIOMySQLJava not loaded vtkIOODBCJava not loaded vtkIOParallelExodusJava not loaded vtkIOParallelLSDynaJava not loaded vtkIOParallelNetCDFJava not loaded vtkIOPostgreSQLJava not loaded vtkIOVPICJava not loaded vtkIOXdmf2Java not loaded vtkIOXdmf3Java not loaded vtkParallelMPIJava not loaded vtkRenderingAnnotationJava not loaded vtkRenderingContext2DJava not loaded vtkRenderingContextOpenGLJava not loaded vtkRenderingContextOpenGL2Java not loaded vtkRenderingCoreJava not loaded vtkRenderingExternalJava not loaded vtkRenderingFreeTypeJava not loaded vtkRenderingFreeTypeOpenGLJava not loaded vtkRenderingFreeTypeOpenGL2Java not loaded vtkRenderingImageJava not loaded vtkRenderingLabelJava not loaded vtkRenderingLICJava not loaded vtkRenderingLODJava not loaded vtkRenderingMatplotlibJava not loaded vtkRenderingOpenGLJava not loaded vtkRenderingOpenGL2Java not loaded vtkRenderingParallelJava not loaded vtkRenderingParallelLICJava not loaded vtkRenderingQtJava not loaded vtkRenderingVolumeJava not loaded vtkRenderingVolumeAMRJava not loaded vtkRenderingVolumeOpenGLJava not loaded vtkRenderingVolumeOpenGL2Java not loaded vtkRenderingVolumeOpenGLNewJava not loaded vtkTestingRenderingJava not loaded vtkPythonInterpreterJava not loaded vtkViewsContext2DJava not loaded vtkViewsGeovisJava not loaded vtkViewsInfovisJava not loaded vtkWebCoreJava not loaded vtkWebGLExporterJava not loaded It is finding the folder with the dll, yet it is still not loading the dll's correctly. I have moved the vtk jar out of the jar I am trying to run and placed it, and the other jars, in a separate folder. ________________________________________ From: vtkusers > on behalf of vincentrivola > Sent: Monday, February 8, 2016 12:57 AM To: vtkusers at vtk.org Subject: Re: [vtkusers] VTK 6.2 Java Standalone Application If you are trying to use the jar you created on a different machine, indeed, you should make sure that all the Visual Studio redistruables has been installed on this machine. If it's not working on your own machine (where you made the VTK compilation), it is often a problem of finding the java dll, like jawt.dll for instance. In any case you can use dependency walker in order to find out which exact dll is missing. good luck -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-2-Java-Standalone-Application-tp5736419p5736423.html Sent from the VTK - Users mailing list archive at Nabble.com. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Sat Feb 13 11:58:43 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Sat, 13 Feb 2016 09:58:43 -0700 Subject: [vtkusers] VTK 6.2 Java Standalone Application In-Reply-To: References: <1454911071102-5736423.post@n5.nabble.com> Message-ID: Hum, I don't see what the problem is here... Sorry, Seb PS: When you build VTK, can you enable all the JAVA install flag, in particularly the one that do some library renaming and generate a native JAR. (You will have to unzip it to get things working, but it should be closer to what Java is expecting.) But I really don't have much understanding of your issue here. On Sat, Feb 13, 2016 at 7:31 AM, Setegn, Manny wrote: > So to re-clarify, I've built the release version of VTK 6.2 using > Microsoft Visual Studio 2013. After building this, I built the INSTALL > Project, and it added VTK to my program files. Then from here I > appended my System Environment Path to include the following: > > > "C:\Program Files\VTK\bin" > > > This folder contained all of the dll files. "C:\Program Files\VTK\lib" > contains the jar file as well as the .lib files. > > > Once doing this, I tested to see if VTK would still work in Eclipse, and > it did. So I proceeded to export my project as a Runnable JAR, and then > packaged the necessary jar's in a separate folder (the one that > will contain vtk.jar). So now vtk.jar is in two locations, but it > shouldn't point to this until I add it to my System Path, I just want to > use this folder later when I try sending this to a computer without VTK). > > Once the jar was created, I opened Command Prompt, went to the folder with > my runnable jar I had just created and ran the following command prompt > line: > > java -jar Test.jar > > Then the errors I posted before occurred. Thank you for your help so far > > ------------------------------ > *From:* Sebastien Jourdain > *Sent:* Friday, February 12, 2016 10:29 PM > *To:* Setegn, Manny > *Cc:* vincentrivola; vtkusers at vtk.org > > *Subject:* Re: [vtkusers] VTK 6.2 Java Standalone Application > > Can you explain what you've done? > - setting of your env PATH? > - what command line did you ran? > - which dir contain what... > > Just so we can understand what you are missing... > > Seb > > On Fri, Feb 12, 2016 at 4:21 PM, Setegn, Manny < > setegn.2 at buckeyemail.osu.edu> wrote: > >> It is an unsatisfied link error where it cannot find all of the vtk >> dependent libraries. The exact error is as follows (over all VTK >> libraries, but this is just one example): >> >> java.lang.UnsatisfiedLinkError: C:\Program >> Files\VTK\bin\vtkRenderingOpenGLJava. >> dll: Can't find dependent libraries >> at java.lang.ClassLoader$NativeLibrary.load(Native Method) >> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) >> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854) >> at java.lang.Runtime.loadLibrary0(Runtime.java:870) >> at java.lang.System.loadLibrary(System.java:1122) >> at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) >> at >> vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160 >> ) >> >> It does this for the following libraries: >> >> vtkAcceleratorsDaxJava not loaded >> vtkAcceleratorsPistonJava not loaded >> vtkChartsCoreJava not loaded >> vtkDomainsChemistryJava not loaded >> vtkDomainsChemistryOpenGL2Java not loaded >> vtkFiltersParallelFlowPathsJava not loaded >> vtkFiltersParallelGeometryJava not loaded >> vtkFiltersParallelMPIJava not loaded >> vtkFiltersParallelStatisticsJava not loaded >> vtkFiltersReebGraphJava not loaded >> vtkFiltersStatisticsGnuRJava not loaded >> vtkGeovisCoreJava not loaded >> vtkInfovisBoostGraphAlgorithmsJava not loaded >> vtkInfovisParallelJava not loaded >> vtkInteractionStyleJava not loaded >> vtkInteractionWidgetsJava not loaded >> vtkIOADIOSJava not loaded >> vtkIOExportJava not loaded >> vtkIOFFMPEGJava not loaded >> vtkIOGDALJava not loaded >> vtkIOGeoJSONJava not loaded >> vtkIOMPIImageJava not loaded >> vtkIOMPIParallelJava not loaded >> vtkIOMySQLJava not loaded >> vtkIOODBCJava not loaded >> vtkIOParallelExodusJava not loaded >> vtkIOParallelLSDynaJava not loaded >> vtkIOParallelNetCDFJava not loaded >> vtkIOPostgreSQLJava not loaded >> vtkIOVPICJava not loaded >> vtkIOXdmf2Java not loaded >> vtkIOXdmf3Java not loaded >> vtkParallelMPIJava not loaded >> vtkRenderingAnnotationJava not loaded >> vtkRenderingContext2DJava not loaded >> vtkRenderingContextOpenGLJava not loaded >> vtkRenderingContextOpenGL2Java not loaded >> vtkRenderingCoreJava not loaded >> vtkRenderingExternalJava not loaded >> vtkRenderingFreeTypeJava not loaded >> vtkRenderingFreeTypeOpenGLJava not loaded >> vtkRenderingFreeTypeOpenGL2Java not loaded >> vtkRenderingImageJava not loaded >> vtkRenderingLabelJava not loaded >> vtkRenderingLICJava not loaded >> vtkRenderingLODJava not loaded >> vtkRenderingMatplotlibJava not loaded >> vtkRenderingOpenGLJava not loaded >> vtkRenderingOpenGL2Java not loaded >> vtkRenderingParallelJava not loaded >> vtkRenderingParallelLICJava not loaded >> vtkRenderingQtJava not loaded >> vtkRenderingVolumeJava not loaded >> vtkRenderingVolumeAMRJava not loaded >> vtkRenderingVolumeOpenGLJava not loaded >> vtkRenderingVolumeOpenGL2Java not loaded >> vtkRenderingVolumeOpenGLNewJava not loaded >> vtkTestingRenderingJava not loaded >> vtkPythonInterpreterJava not loaded >> vtkViewsContext2DJava not loaded >> vtkViewsGeovisJava not loaded >> vtkViewsInfovisJava not loaded >> vtkWebCoreJava not loaded >> vtkWebGLExporterJava not loaded >> >> It is finding the folder with the dll, yet it is still not loading the >> dll's correctly. I have moved the vtk jar out of the jar I am trying to >> run and placed it, and the other jars, in a separate folder. >> >> ________________________________________ >> From: vtkusers on behalf of vincentrivola < >> vincentrivola at hotmail.com> >> Sent: Monday, February 8, 2016 12:57 AM >> To: vtkusers at vtk.org >> Subject: Re: [vtkusers] VTK 6.2 Java Standalone Application >> >> If you are trying to use the jar you created on a different machine, >> indeed, >> you should make sure that all the Visual Studio redistruables has been >> installed on this machine. >> >> If it's not working on your own machine (where you made the VTK >> compilation), it is often a problem of finding the java dll, like jawt.dll >> for instance. >> >> In any case you can use dependency walker in order to find out which exact >> dll is missing. >> >> good luck >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/VTK-6-2-Java-Standalone-Application-tp5736419p5736423.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 zmanvortex at gmail.com Sat Feb 13 14:23:26 2016 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Sat, 13 Feb 2016 13:23:26 -0600 Subject: [vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries Message-ID: Hello, I can compile my Visual Studio 2012 app fine against VTK 6.2 libraries but when I try to compile my app against the VTK 7.1 libraries I get 165 linker errors. I have changed my directory paths to the correct include and library paths for VTK 7.1 in the app properties. I have also added all of the VTK 7.1 .lib files to the Additional Dependencies in the app properties. I can't figure out what might have changed between VTK versions. All of the linker errors are similar with the modules being the only difference. Here is the first linker error: *Error 9 error LNK2028: unresolved token (0A000996) "void __cdecl > vtkRenderingVolumeOpenGL_AutoInit_Construct(void)" > (?vtkRenderingVolumeOpenGL_AutoInit_Construct@@$$FYAXXZ) referenced in > function "public: __thiscall > vtkRenderingVolume_AutoInit::vtkRenderingVolume_AutoInit(void)" > (??0vtkRenderingVolume_AutoInit@@$$FQAE at XZ) > C:\Users\donny.zimmerman.UNMC_DOMAIN\Documents\Visual Studio > 2012\Projects\swis\SwisVtkEngine\SwisVtkEngine.obj SwisVtkEngine* Any help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zmanvortex at gmail.com Sat Feb 13 14:44:10 2016 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Sat, 13 Feb 2016 13:44:10 -0600 Subject: [vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries In-Reply-To: References: Message-ID: I think I have narrowed the linker errors down to the following lines in my source files: #define vtkRenderingCore_AUTOINIT 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL) #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) I think I need to change the "vtkRenderingOpenGL" to "vtkRenderingOpenGL2" and the same with RenderingVolume. I am not sure what to do with "vtkRenderingFreeTypeOpenGL". On Sat, Feb 13, 2016 at 1:23 PM, Donny Zimmerman wrote: > Hello, > I can compile my Visual Studio 2012 app fine against VTK 6.2 libraries but > when I try to compile my app against the VTK 7.1 libraries I get 165 linker > errors. I have changed my directory paths to the correct include and > library paths for VTK 7.1 in the app properties. I have also added all of > the VTK 7.1 .lib files to the Additional Dependencies in the app > properties. I can't figure out what might have changed between VTK versions. > All of the linker errors are similar with the modules being the only > difference. Here is the first linker error: > > *Error 9 error LNK2028: unresolved token (0A000996) "void __cdecl >> vtkRenderingVolumeOpenGL_AutoInit_Construct(void)" >> (?vtkRenderingVolumeOpenGL_AutoInit_Construct@@$$FYAXXZ) referenced in >> function "public: __thiscall >> vtkRenderingVolume_AutoInit::vtkRenderingVolume_AutoInit(void)" >> (??0vtkRenderingVolume_AutoInit@@$$FQAE at XZ) >> C:\Users\donny.zimmerman.UNMC_DOMAIN\Documents\Visual Studio >> 2012\Projects\swis\SwisVtkEngine\SwisVtkEngine.obj SwisVtkEngine* > > > Any help would be greatly appreciated. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zmanvortex at gmail.com Sat Feb 13 14:55:30 2016 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Sat, 13 Feb 2016 13:55:30 -0600 Subject: [vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries In-Reply-To: References: Message-ID: Sorry, I figured it out myself. Here are my new AUTOINIT lines: #define vtkRenderingCore_AUTOINIT 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2) #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL2) Hope this helps someone else. On Sat, Feb 13, 2016 at 1:44 PM, Donny Zimmerman wrote: > I think I have narrowed the linker errors down to the following lines in > my source files: > > #define vtkRenderingCore_AUTOINIT > 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL) > #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) > > I think I need to change the "vtkRenderingOpenGL" to "vtkRenderingOpenGL2" > and the same with RenderingVolume. I am not sure what to do with > "vtkRenderingFreeTypeOpenGL". > > On Sat, Feb 13, 2016 at 1:23 PM, Donny Zimmerman > wrote: > >> Hello, >> I can compile my Visual Studio 2012 app fine against VTK 6.2 libraries >> but when I try to compile my app against the VTK 7.1 libraries I get 165 >> linker errors. I have changed my directory paths to the correct include and >> library paths for VTK 7.1 in the app properties. I have also added all of >> the VTK 7.1 .lib files to the Additional Dependencies in the app >> properties. I can't figure out what might have changed between VTK versions. >> All of the linker errors are similar with the modules being the only >> difference. Here is the first linker error: >> >> *Error 9 error LNK2028: unresolved token (0A000996) "void __cdecl >>> vtkRenderingVolumeOpenGL_AutoInit_Construct(void)" >>> (?vtkRenderingVolumeOpenGL_AutoInit_Construct@@$$FYAXXZ) referenced in >>> function "public: __thiscall >>> vtkRenderingVolume_AutoInit::vtkRenderingVolume_AutoInit(void)" >>> (??0vtkRenderingVolume_AutoInit@@$$FQAE at XZ) >>> C:\Users\donny.zimmerman.UNMC_DOMAIN\Documents\Visual Studio >>> 2012\Projects\swis\SwisVtkEngine\SwisVtkEngine.obj SwisVtkEngine* >> >> >> Any help would be greatly appreciated. >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From biomates at telefonica.net Sat Feb 13 14:53:26 2016 From: biomates at telefonica.net (Mario Rodriguez) Date: Sat, 13 Feb 2016 20:53:26 +0100 Subject: [vtkusers] Problem with logarithmic scale in vtkChartXY Message-ID: <56BF89B6.8080808@telefonica.net> Hi, Suppose I want to plot a polygonal line connecting points (0, e^0), (10, e^10), and (20, e^20) onto the canvas provided by class vtkChartXY with logarithmic scale in the y-axis. The output should be a straight line. But points are plotted ignoring the logarithmic scale. Only when I click on the image, or resize the window, the three points are allocated in their correct positions. My environment is TCL + VTK 6.3 I'm not sure if I am doing something wrong, or if I found a bug. Here is a reduced version of my problem: ######################### package require vtk package require vtkinteraction vtkFloatArray arrayX1 arrayX1 SetName "arrayX1" arrayX1 InsertNextValue 0.0 arrayX1 InsertNextValue 10.0 arrayX1 InsertNextValue 20.0 vtkFloatArray arrayY1 arrayY1 SetName "" arrayY1 InsertNextValue 1.0 arrayY1 InsertNextValue 22026.46579480671 arrayY1 InsertNextValue 4.851651954097903E8 vtkTable table1 table1 AddColumn arrayX1 table1 AddColumn arrayY1 vtkChartXY chart1 [chart1 GetAxis 0] SetLogScale 1 set line [chart1 AddPlot 0] $line SetInputData table1 0 1 vtkContextScene scenechart1 scenechart1 AddItem chart1 vtkContextActor actorchart1 actorchart1 SetScene scenechart1 vtkRenderer renderer1 renderer1 SetBackground 1 1 1 renderer1 AddActor actorchart1 vtkRenderWindow renWin renWin AddRenderer renderer1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin iren Initialize iren Start ######################### I would greatly appreciate any help on this issue. -- Mario From serhattural12 at gmail.com Sun Feb 14 09:35:38 2016 From: serhattural12 at gmail.com (serseri) Date: Sun, 14 Feb 2016 07:35:38 -0700 (MST) Subject: [vtkusers] Volume Rendering Gradient Opacity Value Range Message-ID: <1455460538680-5736565.post@n5.nabble.com> Hi, How can I get the value range of gradient values to use on volume rendering? I try to find optimal values for my samples. An example usega of gradient opacity function: http://www.paraview.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext vtkPiecewiseFunction * volumeGradientOpacity = vtkPiecewiseFunction::New(); volumeGradientOpacity->AddPoint(0, 0.0); volumeGradientOpacity->AddPoint(90, 0.5); volumeGradientOpacity->AddPoint(100, 1.0); volumeProperty->SetGradientOpacity(volumeGradientOpacity); Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-Gradient-Opacity-Value-Range-tp5736565.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Sun Feb 14 14:22:34 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Sun, 14 Feb 2016 12:22:34 -0700 (MST) Subject: [vtkusers] Relative Rotation with VTK Transform Message-ID: <1455477754599-5736566.post@n5.nabble.com> Hello, I'm experimenting a little with the gyroscope of my android tablet to rotate vtk datasets. For the sake of simplicity let's imagine that both the tablet and the the vtk coordinate systems are the same. So when I tilt my tablet, rotating around the x axis, my dataset rotates around the x axis as well. However, if I rotate first say 90 degrees around the y axis and then rotate again around the x axis, the dataset doesn't rotate around the x axis anymore but rather around the z axis. Therefore, what I get does not make sense anymore. However I thought that what I did was supposed to give me relative transformation. My algorithm is basically this (I simplify the code as I think the logic matters and the code really doesn't here). ///Retrieve the current matrix of the dataset and set a transform with this matrix vtkSmartPointer t = vtkTransform::New(); t->SetUserMatrix(actor->GetMatrix()); //I get the quaternion corresponding to the current rotation of the dataset, let's call it qD. //I get from a function call the current rotation performed relatively to the previous one with the gyroscope, let's call it rotation and assume it's in the right format directly (WXYZ) of a quaternion qR //I perform qf = qD.inverse() * qR //I rotate the user matrix t->RotateXYZ(qf[0], ...) / But this does not work at all and I get the result previously described. I even tried directly using the RotateWXYZ with both rotations in different orders and with either Post or Pre multiply but it doesn't seem to change a thing to set Post or Pre multiply and no matter what order of rotations I use, I don't get an interesting result. Would anyone know what's wrong with my thinking here? Thanks in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566.html Sent from the VTK - Users mailing list archive at Nabble.com. From atc1992vtk at gmail.com Sun Feb 14 14:58:36 2016 From: atc1992vtk at gmail.com (atc1992vtk) Date: Sun, 14 Feb 2016 12:58:36 -0700 (MST) Subject: [vtkusers] [Java] VTK volume rendering Message-ID: <1455479916601-5736567.post@n5.nabble.com> Hi guys, I am working on an application using VTK with Java on Mac. Currently I am working on the volume rending function, the file I am working with is *UnstructedGrid*. I got some trouble in displaying the file, I tried to use different mapper and filter, only "*vtkProjectedTetrahedraMapper*" is working but the result was so laggy that i even couldn't move the object. So of the other Mapper (e.g. vtkUnstructuredGridVolumeMapper) I got a "*Invalid memory access of location*" error. Can anyone give me an up-to-date example or some hints on the correct class should be used in the pipeline?? Andy -- View this message in context: http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567.html Sent from the VTK - Users mailing list archive at Nabble.com. From Aude.CHENET-ext at galderma.com Mon Feb 15 05:31:20 2016 From: Aude.CHENET-ext at galderma.com (CHENET Aude (External)) Date: Mon, 15 Feb 2016 10:31:20 +0000 Subject: [vtkusers] Error Using TkPhoto Message-ID: <512AA6AA7E7E224A874888677C6CB2FB558CF7@WWEURMBX03.galderma.com> Hello, I'm trying to use vtk with Python 27. I've installed vtk 6.2 with pip. When I execute OrthogonalPlanesWithTkPhoto.py example, I've an error : Traceback (most recent call last): File "C:\Users\chenet-ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in S = SampleViewer() File "C:\Users\chenet-ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in __init__ tphoto = self.tphoto = vtkTkPhotoImage () File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line 20, in __init__ vtkLoadPythonTkWidgets ( self.tk ) File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", line 81, in vtkLoadPythonTkWidgets interp.call('load', filename, pkgname) _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets-6.2.dll": this library or a dependent library could not be found in library path I've made a research on my computer and I can't find vtkRenderingPythonTkWidgets. Can someone help me to use this example? Aude -------------- next part -------------- An HTML attachment was scrubbed... URL: From aude.chenet-ext at galderma.com Mon Feb 15 10:13:49 2016 From: aude.chenet-ext at galderma.com (Aude) Date: Mon, 15 Feb 2016 15:13:49 +0000 (UTC) Subject: [vtkusers] Vtk Python Widgets Message-ID: Hello, I?m trying to use vtk with Python 27. I?ve installed vtk 6.2 with pip. When I execute OrthogonalPlanesWithTkPhoto.py example, I?ve an error : Traceback (most recent call last): File "C:\Users\chenet- ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in S = SampleViewer() File "C:\Users\chenet- ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in __init__ tphoto = self.tphoto = vtkTkPhotoImage () File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line 20, in __init__ vtkLoadPythonTkWidgets ( self.tk ) File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", line 81, in vtkLoadPythonTkWidgets interp.call('load', filename, pkgname) _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets- 6.2.dll": this library or a dependent library could not be found in library path I?ve made a research on my computer and I can?t find vtkRenderingPythonTkWidgets. Can someone help me to use this example? Aude From david.gobbi at gmail.com Mon Feb 15 10:56:35 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 15 Feb 2016 08:56:35 -0700 Subject: [vtkusers] Vtk Python Widgets In-Reply-To: References: Message-ID: Hi Aude, This means that your vtk package was built without the Tk components. I don't know of any binary packages that provide the DLL that you need, you might have to build your own vtk with VTK_Group_Tk:BOOL=ON. - David On Mon, Feb 15, 2016 at 8:13 AM, Aude wrote: > Hello, > > I?m trying to use vtk with Python 27. I?ve installed vtk 6.2 with pip. > When I execute OrthogonalPlanesWithTkPhoto.py example, I?ve an error : > Traceback (most recent call last): > File "C:\Users\chenet- > ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in > > S = SampleViewer() > File "C:\Users\chenet- > ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in > __init__ > tphoto = self.tphoto = vtkTkPhotoImage () > File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line 20, > in __init__ > vtkLoadPythonTkWidgets ( self.tk ) > File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", > line 81, in vtkLoadPythonTkWidgets > interp.call('load', filename, pkgname) > _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets- > 6.2.dll": this library or a dependent library could not be found in > library path > > I?ve made a research on my computer and I can?t find > vtkRenderingPythonTkWidgets. > Can someone help me to use this example? > > Aude > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Mon Feb 15 11:05:14 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 15 Feb 2016 11:05:14 -0500 Subject: [vtkusers] ANN: VTK Wiki Examples available as a Remote Module Message-ID: Folks, The VTK Wiki Examples are now available as a VTK Remote Module. If you are running VTK 6.3 or newer: 1) Add this file (WikiExamples.remote.cmake) https://gitlab.kitware.com/vtk/vtk/raw/master/Remote/WikiExamples.remote.cmake to the Remote directory in your VTK source tree. 2) In your build tree, configure with cmake and make cmake -DModule_WikiExamples:BOOL=ON "your VTK source tree" make 3) The binaries will all have a prefix "wiki", e.g. BandedPolyDataContourFilter will be called wikiBandedPolyDataContourFilter 4) To disable the wiki examples: cmake -DModule_WikiExamples:BOOL=ON "your VTK source tree" NOTE: There are almost 700 c++ examples. If BUILD_TESTING is ON, almost 700 tests will also be created. The Wiki Examples can still be built as individual executables or all can be built by cloning the VTK Wiki Examples git repository: https://github.com/lorensen/VTKWikiExamples More information on the VTK Wiki Examples can be found here: http://www.vtk.org/Wiki/VTK/Examples Feedback and new contributions are appreciated, Bill -- Unpaid intern in BillsBasement at noware dot com From f.nellmeldin at open-engineering.com Mon Feb 15 11:28:00 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Mon, 15 Feb 2016 17:28:00 +0100 Subject: [vtkusers] Generate debug libraries with _d postfix In-Reply-To: <20160212164355.GB28230@megas.kitware.com> References: <20160212164355.GB28230@megas.kitware.com> Message-ID: Thank you for your response. I checked the file with the function name, but I didn't know what to do. For the current time, I guess I could do it manually. It is just a quick find & rename that shouldn't take long. Fernando. 2016-02-12 17:43 GMT+01:00 Ben Boeckel : > On Fri, Feb 12, 2016 at 10:26:18 +0100, Fernando Nellmeldin wrote: > > However, that doesn't work for VTK 6.3.0 nor VTK 7.0.0. (for 5.10 does > just > > what I want). > > Probably due to the module system changes for VTK6. > > > Any thoughts of how to do the same on these versions? > > Some logic could be added to CMake/vtkModuleMacros.cmake:624 or so > (inside of vtk_module_library) to do this for Windows. > > > PS: I'm using CMake with VS2010 generator under windows8, but I think the > > solution should be general. > > Well, at least on Windows. Other platforms don't have the debug/release > runtime library split and such things are annoying to work with > elsewhere (I regularly debug a single library and not having to build > the entire stack because the library name changed is a big plus). > > --Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Feb 15 11:28:51 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 15 Feb 2016 09:28:51 -0700 Subject: [vtkusers] Vtk Python Widgets In-Reply-To: <512AA6AA7E7E224A874888677C6CB2FB558D38@WWEURMBX03.galderma.com> References: <512AA6AA7E7E224A874888677C6CB2FB558D38@WWEURMBX03.galderma.com> Message-ID: Yes. As far as I understand, that is the situation. On Mon, Feb 15, 2016 at 9:19 AM, CHENET Aude (External) < Aude.CHENET-ext at galderma.com> wrote: > Thanks for your answer. > > It means it is not possible to get vtk with pip ? It?s mandatory to build > vtk from sources to have acces to TkWidgets? > > > > *De :* David Gobbi [mailto:david.gobbi at gmail.com] > *Envoy? :* lundi 15 f?vrier 2016 16:57 > *? :* CHENET Aude (External) > *Cc :* vtkusers at public.kitware.com > *Objet :* Re: [vtkusers] Vtk Python Widgets > > > > Hi Aude, > > > > This means that your vtk package was built without the Tk components. > > I don't know of any binary packages that provide the DLL that you need, > > you might have to build your own vtk with VTK_Group_Tk:BOOL=ON. > > > > - David > > > > > > On Mon, Feb 15, 2016 at 8:13 AM, Aude > wrote: > > Hello, > > I?m trying to use vtk with Python 27. I?ve installed vtk 6.2 with pip. > When I execute OrthogonalPlanesWithTkPhoto.py example, I?ve an error : > Traceback (most recent call last): > File "C:\Users\chenet- > ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in > > S = SampleViewer() > File "C:\Users\chenet- > ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in > __init__ > tphoto = self.tphoto = vtkTkPhotoImage () > File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line 20, > in __init__ > vtkLoadPythonTkWidgets ( self.tk ) > File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", > line 81, in vtkLoadPythonTkWidgets > interp.call('load', filename, pkgname) > _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets- > 6.2.dll": this library or a dependent library could not be found in > library path > > I?ve made a research on my computer and I can?t find > vtkRenderingPythonTkWidgets. > Can someone help me to use this example? > > Aude > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Aude.CHENET-ext at galderma.com Mon Feb 15 11:19:03 2016 From: Aude.CHENET-ext at galderma.com (CHENET Aude (External)) Date: Mon, 15 Feb 2016 16:19:03 +0000 Subject: [vtkusers] Vtk Python Widgets In-Reply-To: References: Message-ID: <512AA6AA7E7E224A874888677C6CB2FB558D38@WWEURMBX03.galderma.com> Thanks for your answer. It means it is not possible to get vtk with pip ? It?s mandatory to build vtk from sources to have acces to TkWidgets? De : David Gobbi [mailto:david.gobbi at gmail.com] Envoy? : lundi 15 f?vrier 2016 16:57 ? : CHENET Aude (External) Cc : vtkusers at public.kitware.com Objet : Re: [vtkusers] Vtk Python Widgets Hi Aude, This means that your vtk package was built without the Tk components. I don't know of any binary packages that provide the DLL that you need, you might have to build your own vtk with VTK_Group_Tk:BOOL=ON. - David On Mon, Feb 15, 2016 at 8:13 AM, Aude > wrote: Hello, I?m trying to use vtk with Python 27. I?ve installed vtk 6.2 with pip. When I execute OrthogonalPlanesWithTkPhoto.py example, I?ve an error : Traceback (most recent call last): File "C:\Users\chenet- ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in S = SampleViewer() File "C:\Users\chenet- ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in __init__ tphoto = self.tphoto = vtkTkPhotoImage () File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line 20, in __init__ vtkLoadPythonTkWidgets ( self.tk ) File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", line 81, in vtkLoadPythonTkWidgets interp.call('load', filename, pkgname) _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets- 6.2.dll": this library or a dependent library could not be found in library path I?ve made a research on my computer and I can?t find vtkRenderingPythonTkWidgets. Can someone help me to use this example? Aude -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Mon Feb 15 12:44:28 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Mon, 15 Feb 2016 18:44:28 +0100 Subject: [vtkusers] Vtk Python Widgets In-Reply-To: References: Message-ID: Den 15 feb 2016 4:30 em skrev "Aude" : > > Hello, > > I?m trying to use vtk with Python 27. I?ve installed vtk 6.2 with pip. Wait, is VTK available on PyPI? (!). I had been looking for that but couldn't find it. What's the name of the package? Elvis > When I execute OrthogonalPlanesWithTkPhoto.py example, I?ve an error : > Traceback (most recent call last): > File "C:\Users\chenet- > ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in > > S = SampleViewer() > File "C:\Users\chenet- > ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in > __init__ > tphoto = self.tphoto = vtkTkPhotoImage () > File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line 20, > in __init__ > vtkLoadPythonTkWidgets ( self.tk ) > File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", > line 81, in vtkLoadPythonTkWidgets > interp.call('load', filename, pkgname) > _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets- > 6.2.dll": this library or a dependent library could not be found in > library path > > I?ve made a research on my computer and I can?t find > vtkRenderingPythonTkWidgets. > Can someone help me to use this example? > > Aude > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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 daviddoria at gmail.com Mon Feb 15 13:26:54 2016 From: daviddoria at gmail.com (David Doria) Date: Mon, 15 Feb 2016 12:26:54 -0600 Subject: [vtkusers] vtkConnectivityFilter on vtkStructuredGrid Message-ID: Hi all, The ConnectivityFilter seems to work as expected with PolyData (e.g. http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/ConnectivityFilter). However, I've been trying to find "connected" regions (obviously by some property, as the whole grid is topologically connected) in a vtkStructuredGrid and it does not seem to respect the specified ScalarConnectivity. As a minimal example, I created a grid with the top and bottom slices set to "valid" (an arbitrarily chosen value of 10) and the interior slices set to "invalid" (0). I used my own vtkIntArray instead of the vtkGhostType set by blanking just to be sure it wasn't any weirdness with that. I set this array as the cell scalars of the grid, specified to use it with: connectivityFilter->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_CELLS, "ValidValue"); and then used: connectivityFilter->ScalarConnectivityOn(); connectivityFilter->SetScalarRange(9,11); to try to find regions where the value is 10. In this case, I'd expect two regions (one for each layer that is "valid"). However, the filter outputs only one region (the entire grid). The sample code is below - can anyone see what is going wrong? #include #include #include #include #include #include int main(int, char *[]) { // Create a 7x7 grid, with only 2 unblanked z slices vtkSmartPointer structuredGrid = vtkSmartPointer::New(); vtkSmartPointer points = vtkSmartPointer::New(); unsigned int voxelsPerDimension = 7; // Create an array vtkSmartPointer valid = vtkSmartPointer::New(); valid->SetName("ValidValue"); valid->SetNumberOfComponents(1); valid->SetNumberOfTuples(voxelsPerDimension * voxelsPerDimension * voxelsPerDimension); // The grid is created as points (the corners of voxels), so we need n+1 points per dimension for(unsigned int k = 0; k < voxelsPerDimension + 1; k++) { for(unsigned int j = 0; j < voxelsPerDimension + 1; j++) { for(unsigned int i = 0; i < voxelsPerDimension + 1; i++) { points->InsertNextPoint(i, j, k); } } } // Specify the dimensions of the grid (again, using point dimensions) structuredGrid->SetDimensions(voxelsPerDimension + 1, voxelsPerDimension + 1, voxelsPerDimension + 1); structuredGrid->SetPoints(points); int dims[3]; structuredGrid->GetDimensions(dims); for(unsigned int i = 0; i < voxelsPerDimension; ++i) { for(unsigned int j = 0; j < voxelsPerDimension; ++j) { for(unsigned int k = 0; k < voxelsPerDimension; ++k) { int ijk[3]; ijk[0] = i; ijk[1] = j; ijk[2] = k; vtkIdType cellID = vtkStructuredData::ComputeCellId(dims,ijk); if(k == 0 || k == 6) { valid->SetTuple1(cellID, 10); } else { structuredGrid->BlankCell(cellID); valid->SetTuple1(cellID, 0); } } } } structuredGrid->GetCellData()->SetScalars(valid); structuredGrid->Modified(); vtkSmartPointer connectivityFilter = vtkConnectivityFilter::New(); connectivityFilter->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_CELLS, "ValidValue"); connectivityFilter->SetInputData(structuredGrid); connectivityFilter->SetExtractionModeToAllRegions(); connectivityFilter->ColorRegionsOn(); connectivityFilter->ScalarConnectivityOn(); connectivityFilter->SetScalarRange(9,11); connectivityFilter->Update(); std::cout << "There were " << connectivityFilter->GetNumberOfExtractedRegions() << " extracted regions." << std::endl; return EXIT_SUCCESS; } Thanks, David From newcfd at yahoo.com Mon Feb 15 13:36:53 2016 From: newcfd at yahoo.com (newcfd) Date: Mon, 15 Feb 2016 11:36:53 -0700 (MST) Subject: [vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries In-Reply-To: References: Message-ID: <1455561413970-5736578.post@n5.nabble.com> Add this in your vtk application #if VTK_MAJOR_VERSION >= 7 VTK_MODULE_INIT(vtkRenderingVolumeOpenGL); #endif The module is not initialized automatically on Windows. No issues on Linux -- View this message in context: http://vtk.1045678.n5.nabble.com/Linker-Errors-Compiling-Application-against-VTK-7-1-Libraries-tp5736561p5736578.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Mon Feb 15 15:07:44 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 15 Feb 2016 15:07:44 -0500 Subject: [vtkusers] [Java] VTK volume rendering In-Reply-To: <1455479916601-5736567.post@n5.nabble.com> References: <1455479916601-5736567.post@n5.nabble.com> Message-ID: vtkProjectedTetrahedraMapper is the class that meant for UnstructedGrid. Are you using OpenGL2 backend or OpenGL1? Also, any information on your system (os, graphics card), data type and size would be nice to know. The other thing you can do is sample your grid into vtkImageData and then you can use GPU Mapper. Thanks, On Sun, Feb 14, 2016 at 2:58 PM, atc1992vtk wrote: > Hi guys, > I am working on an application using VTK with Java on Mac. > Currently I am working on the volume rending function, the file I am > working > with is *UnstructedGrid*. > I got some trouble in displaying the file, I tried to use different mapper > and filter, only "*vtkProjectedTetrahedraMapper*" is working but the result > was so laggy that i even couldn't move the object. So of the other Mapper > (e.g. vtkUnstructuredGridVolumeMapper) I got a "*Invalid memory access of > location*" error. > > Can anyone give me an up-to-date example or some hints on the correct class > should be used in the pipeline?? > > Andy > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567.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 sotoglzz at gmail.com Mon Feb 15 15:28:21 2016 From: sotoglzz at gmail.com (Jose Soto) Date: Mon, 15 Feb 2016 14:28:21 -0600 Subject: [vtkusers] Export from .obj to .ply or .xyz file Message-ID: Hi all. Recently I have to work with wavefrom objets to the visualization toolkit, however I've never worked before with VTK libraries, it's like a black box VTK for my, so, I would like to know which is the best and easy way in linux to export from a wavefrom objets to the visualization toolkit to a ply. or a point cloud file or any file that can import to a 3D editor like Meshlab or Blender. I'm not a programmer so any help would be great. Thaks, in advances Jos? Soto -------------- next part -------------- An HTML attachment was scrubbed... URL: From znhc5 at mail.missouri.edu Mon Feb 15 23:24:23 2016 From: znhc5 at mail.missouri.edu (Nie, Andrew (MU-Student)) Date: Tue, 16 Feb 2016 04:24:23 +0000 Subject: [vtkusers] Error warning when I install the VTK In-Reply-To: References: Message-ID: Hi there, This is Andrew Nie, a Ph.D student at University of Missouri. I have to use the VTK to reconstruct the 3D model. Now I am installing the VTK. But there is an error when I test an example that the website provides. My OS is Windows 7 Ultimate, and VS version is VS 2015. First of all, I downloaded the VTK 7.0.0 and CMake 3.5.0. I used CMake to build the binaries. It was no errors. After then I used VS 2015 to build them successfully. It seems like I have installed the VTK 7.0.0. Finally, when I compile examples, there was an error warning. It is shown in below: CMake Error at CMakeLists.txt:6 (find_package): By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VTK", but CMake did not find one. Could not find a package configuration file provided by "VTK" with any of the following names: VTKConfig.cmake vtk-config.cmake Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" to a directory containing one of the above files. If "VTK" provides a separate development package or SDK, be sure it has been installed. How can I deal with that? Thank you very much. Nie, Zhengwei Andrew Ph.D Candidate Mechanical & Aerospace Engineering University of Missouri 573-239-6981 znhc5 at mail.missouri.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Tue Feb 16 01:28:38 2016 From: tjlp at netease.com (Liu_tj) Date: Tue, 16 Feb 2016 14:28:38 +0800 (CST) Subject: [vtkusers] memory allocation fail for MarchingCubes Message-ID: <7479a28c.16.152e8c43281.Coremail.tjlp@netease.com> Hi, I am a newbie of VTK. Now I need to build 3d model which can be saved as STL file from DICOM files. I google it and find some guys mentions that MarchingCubes. So I try to load a DICOM series(515K one file, totally 676 files, around 340M) with the sample code at http://www.vtk.org/Wiki/VTK/Examples/Cxx/Modelling/MarchingCubes. Even I set the isoValue of vtkMarchingCubes to 1, when the application memory increase to around 1.07G, then get a memory bad_alloc exception. What happen with it? What should I fix this problem? Thanks in advance. Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Tue Feb 16 09:54:25 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 16 Feb 2016 07:54:25 -0700 (MST) Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: <1455477754599-5736566.post@n5.nabble.com> References: <1455477754599-5736566.post@n5.nabble.com> Message-ID: <1455634465346-5736584.post@n5.nabble.com> Any insights? -- View this message in context: http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736584.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Tue Feb 16 10:15:34 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 16 Feb 2016 10:15:34 -0500 Subject: [vtkusers] memory allocation fail for MarchingCubes In-Reply-To: <7479a28c.16.152e8c43281.Coremail.tjlp@netease.com> References: <7479a28c.16.152e8c43281.Coremail.tjlp@netease.com> Message-ID: Liu, That is fairly large DICOM file. If your chosen isovalue picks up a lot of background noise, the resulting isosurface could be huge. To solve this, you need to either: 1). Increase your system's RAM 2). Choose a different isovalue that does not produce such a large geometry. - Cory On Tue, Feb 16, 2016 at 1:28 AM, Liu_tj wrote: > Hi, > > I am a newbie of VTK. Now I need to build 3d model which can be saved as STL > file from DICOM files. I google it and find some guys mentions that > MarchingCubes. So I try to load a DICOM series(515K one file, totally 676 > files, around 340M) with the sample code at > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Modelling/MarchingCubes. Even I set > the isoValue of vtkMarchingCubes to 1, when the application memory increase > to around 1.07G, then get a memory bad_alloc exception. > > What happen with it? What should I fix this problem? > > Thanks in advance. > > Liu Peng > > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 Tue Feb 16 10:26:10 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 16 Feb 2016 10:26:10 -0500 Subject: [vtkusers] Volume Rendering Gradient Opacity Value Range In-Reply-To: <1455460538680-5736565.post@n5.nabble.com> References: <1455460538680-5736565.post@n5.nabble.com> Message-ID: Hi Serseri, In many ways it depends on your data and what you are trying to visualize. Depending on the dataset, you would likely to know the range of data values and general idea on where you are expecting to see bigger or smaller change in gradients. Mostly, I have seen that a interactive editor is most useful for the users. I am not aware of any existing code in VTK to give you a better idea. Thanks, On Sun, Feb 14, 2016 at 9:35 AM, serseri wrote: > Hi, > > How can I get the value range of gradient values to use on volume > rendering? > I try to find optimal values for my samples. > > An example usega of gradient opacity function: > > http://www.paraview.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext > > vtkPiecewiseFunction * volumeGradientOpacity = vtkPiecewiseFunction::New(); > volumeGradientOpacity->AddPoint(0, 0.0); > volumeGradientOpacity->AddPoint(90, 0.5); > volumeGradientOpacity->AddPoint(100, 1.0); > volumeProperty->SetGradientOpacity(volumeGradientOpacity); > > Thanks. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Volume-Rendering-Gradient-Opacity-Value-Range-tp5736565.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 david.gobbi at gmail.com Tue Feb 16 10:46:54 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 16 Feb 2016 08:46:54 -0700 Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: <1455634465346-5736584.post@n5.nabble.com> References: <1455477754599-5736566.post@n5.nabble.com> <1455634465346-5736584.post@n5.nabble.com> Message-ID: Hi Lonni, The RotateWXYZ() method takes an angle (in degrees) and a rotation axis, rather than a quaternion. angle = 2.0*atan2(sqrt(q[1]*q[1] + q[2]*q[2] + q[3]*q[3]), q[0]) * 180.0/pi - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Tue Feb 16 10:55:44 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 16 Feb 2016 08:55:44 -0700 (MST) Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: References: <1455477754599-5736566.post@n5.nabble.com> <1455634465346-5736584.post@n5.nabble.com> Message-ID: <1455638144238-5736588.post@n5.nabble.com> Hi David, Thanks for your interest. I actually figured it out a few hours ago, but I'm still stuck there. Indeed, I can get the rotation that I want to perform in the form that RotateWXYZ takes (angle in degrees, axis). However, when I perform the rotation that way, using the values I have, I have the problem that my dataset is not rotating according to the rotation I perform on tablet i.e: When I start, my dataset is aligned with the tablet, rotating around the x-axis performs a x-axis rotation of the dataset and so on for other axis. However, when I rotate first around an other axis and then perform a x-axis rotation of the tablet, the dataset gets rotated along an other axis (which is none of the tablet's axis). This led me to think that the order in which the rotation were performed was not good, so I tried again changing Post to Pre multiply but it did not change anything. Not sure my explanations are really clear here. Hope you understand. -- View this message in context: http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736588.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Tue Feb 16 11:07:52 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 16 Feb 2016 09:07:52 -0700 Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: <1455638144238-5736588.post@n5.nabble.com> References: <1455477754599-5736566.post@n5.nabble.com> <1455634465346-5736584.post@n5.nabble.com> <1455638144238-5736588.post@n5.nabble.com> Message-ID: Hi Lonni, Unfortunately, this is the sort of puzzle that I would not want to attempt to solve without having an actual device and code to test. - David On Tue, Feb 16, 2016 at 8:55 AM, Lonni Besan?on wrote: > Hi David, > > Thanks for your interest. > I actually figured it out a few hours ago, but I'm still stuck there. > > Indeed, I can get the rotation that I want to perform in the form that > RotateWXYZ takes (angle in degrees, axis). > However, when I perform the rotation that way, using the values I have, I > have the problem that my dataset is not rotating according to the rotation > I > perform on tablet i.e: > When I start, my dataset is aligned with the tablet, rotating around the > x-axis performs a x-axis rotation of the dataset and so on for other axis. > However, when I rotate first around an other axis and then perform a x-axis > rotation of the tablet, the dataset gets rotated along an other axis (which > is none of the tablet's axis). This led me to think that the order in which > the rotation were performed was not good, so I tried again changing Post to > Pre multiply but it did not change anything. > > Not sure my explanations are really clear here. Hope you understand. > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736588.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 prakeshofficial at gmail.com Tue Feb 16 11:33:43 2016 From: prakeshofficial at gmail.com (rakesh patil) Date: Tue, 16 Feb 2016 22:03:43 +0530 Subject: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS In-Reply-To: References: Message-ID: Hi, Since, I got no reply for this, I have prepared a small test case. It is a dock/undock example from Qt and I have just added QVTKWidget to it. Atleast the flickering should be disabled somehow. Can some experts help me? I am using Qt 5.5 and vtk 6.3. This happens only on MAC (tested on OS X Yosemite & OS X El Capitan). On Sun, Feb 7, 2016 at 8:17 PM, rakesh patil wrote: > Hello, > > I am facing a very strange issue with Dock/Undocking when one of the > docked widget is QVTKWidget. I have a centralWidget which contains four > tabs. Each tab is an inherited from QWidget. Among these, one widget is > QVTKWidget. The issue what I am facing is when I click on the bar and try > to undock, the mouse events are lost. I release the mouse button and move > the mouse, QVTKWidget keeps moving along with the mouse. I need to click > once again on the tab and then it gets undocked fully. Some times while > undocking or docking, I observed flickering effect on the renderwindow. > > It gives feeling like QDockWidget is passing some information/signal to > its widgets, which QVTKWidget is not able to process, and other QWidgets > are able to process. Has anyone come across this type of scenario? > > Thanks in advance > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dock_qvtkwidget.zip Type: application/zip Size: 13951 bytes Desc: not available URL: From aashish.chaudhary at kitware.com Tue Feb 16 11:34:14 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 16 Feb 2016 11:34:14 -0500 Subject: [vtkusers] PROJ4 in VTK In-Reply-To: References: Message-ID: Hi all, As previously mentioned, Dan and I pushed VTK changes to update PROJ4 support in VTK to 4.9.2. Apart from major bug fixes, new API support, now you should be able to use EPSG codes as well. The branch in review is here: https://gitlab.kitware.com/vtk/vtk/merge_requests/1207 Thanks, Aashish On Tue, Dec 8, 2015 at 12:36 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > On Tue, Dec 8, 2015 at 12:35 PM, David E DeMarle > wrote: > >> Branch is tomorrow. >> > > Great.. yes.. certainly we can wait that long (it may take atleast 1-2 > days anyways). > > Thanks, > > >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> On Tue, Dec 8, 2015 at 12:22 PM, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >>> >>> On Tue, Dec 8, 2015 at 12:15 PM, David E DeMarle < >>> dave.demarle at kitware.com> wrote: >>> >>>> If after 7.0 branch you've got my +1. >>>> >>> >>> Sure. When is 7.0? >>> >>>> >>>> When we do please do so via Ben's nifty new scripts that standardize >>>> and use best practices for TPL integration into VTK. >>>> >>> >>> I don't remember / know the script whereabouts. Can you send it to me >>> please? >>> >>> Thanks >>> >>> >>> >>>> >>>> >>>> David E DeMarle >>>> Kitware, Inc. >>>> R&D Engineer >>>> 21 Corporate Drive >>>> Clifton Park, NY 12065-8662 >>>> Phone: 518-881-4909 >>>> >>>> On Tue, Dec 8, 2015 at 11:54 AM, Aashish Chaudhary < >>>> aashish.chaudhary at kitware.com> wrote: >>>> >>>>> Hi Folks, >>>>> >>>>> The mangled PROJ4 in VTK is ancient and no longer supported by anyone >>>>> else. Also, it is buggy, since then PROJ4 has moved on fixing bugs and >>>>> changed the API a bit as well (includes the named EPSG codes). >>>>> >>>>> Are there any objections to switching to last release of PROJ4? We >>>>> need this sometime soon so if you have any feedback please send me/mailing >>>>> list an email. >>>>> >>>>> Thanks, >>>>> Aashish >>>>> >>>>> -- >>>>> >>>>> >>>>> >>>>> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >>>>> * >>>>> *| http://www.kitware.com/company/team/chaudhary.html >>>>> * >>>>> >>>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>> >>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> >>>> >>> >>> >>> -- >>> >>> >>> >>> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >>> * >>> *| http://www.kitware.com/company/team/chaudhary.html >>> * >>> >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From felipebordeu at gmail.com Tue Feb 16 11:55:23 2016 From: felipebordeu at gmail.com (Felipe Bordeu) Date: Tue, 16 Feb 2016 17:55:23 +0100 Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: <1455477754599-5736566.post@n5.nabble.com> References: <1455477754599-5736566.post@n5.nabble.com> Message-ID: I did the same thing ones on an app (not a vtk app). You have to control the orientation using absolute values. You must set the camera position using the information from your phone(not the camera rotation). You will not be able to keep the orientations in sync using incremental rotations. Instead you know the orientation of your phone and you know where to put your camera. Felipe Hello, I'm experimenting a little with the gyroscope of my android tablet to rotate vtk datasets. For the sake of simplicity let's imagine that both the tablet and the the vtk coordinate systems are the same. So when I tilt my tablet, rotating around the x axis, my dataset rotates around the x axis as well. However, if I rotate first say 90 degrees around the y axis and then rotate again around the x axis, the dataset doesn't rotate around the x axis anymore but rather around the z axis. Therefore, what I get does not make sense anymore. However I thought that what I did was supposed to give me relative transformation. My algorithm is basically this (I simplify the code as I think the logic matters and the code really doesn't here). ///Retrieve the current matrix of the dataset and set a transform with this matrix vtkSmartPointer t = vtkTransform::New(); t->SetUserMatrix(actor->GetMatrix()); //I get the quaternion corresponding to the current rotation of the dataset, let's call it qD. //I get from a function call the current rotation performed relatively to the previous one with the gyroscope, let's call it rotation and assume it's in the right format directly (WXYZ) of a quaternion qR //I perform qf = qD.inverse() * qR //I rotate the user matrix t->RotateXYZ(qf[0], ...) / But this does not work at all and I get the result previously described. I even tried directly using the RotateWXYZ with both rotations in different orders and with either Post or Pre multiply but it doesn't seem to change a thing to set Post or Pre multiply and no matter what order of rotations I use, I don't get an interesting result. Would anyone know what's wrong with my thinking here? Thanks in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566.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 lonni.besancon at gmail.com Tue Feb 16 11:58:47 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 16 Feb 2016 09:58:47 -0700 (MST) Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: References: <1455477754599-5736566.post@n5.nabble.com> Message-ID: <1455641927452-5736595.post@n5.nabble.com> Thanks for the idea. However, using absolute rotations (tablet orientation in 3D space) goes against my initial idea that the rotation can be manipulated thanks to both finger input and gyro input. I would very much like to be able to combine these two. -- View this message in context: http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736595.html Sent from the VTK - Users mailing list archive at Nabble.com. From allen at sci.utah.edu Tue Feb 16 13:48:07 2016 From: allen at sci.utah.edu (Allen Sanderson) Date: Tue, 16 Feb 2016 11:48:07 -0700 Subject: [vtkusers] Mappers and vtkLookupTable Message-ID: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> Hello, We are trying to render geometry using a lookup table for the RGB value using one scalar variable, but we want to use a secondary scalar variable for determining the opacity. Something like the following: RGB -> variable one A -> variable two In looking through the VTK 6 documentation on mappers we have not found anything that leads us to believe this functionality is possible. But we have done an exhaustive search. If it is possible we would greatly appreciate pointers. Thanks. Cheers, Allen Allen Sanderson SCI Institute University of Utah www.sci.utah.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Feb 16 14:20:28 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 16 Feb 2016 12:20:28 -0700 Subject: [vtkusers] Mappers and vtkLookupTable In-Reply-To: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> References: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> Message-ID: Hi Allen, You are correct, vtkLookupTable does not provide a way of doing this. I'm not sure what work-arounds there are for geometry, but for images you can map the RGB and A separately, and then combine them into RGBA with vtkImageAppendComponents. - David On Tue, Feb 16, 2016 at 11:48 AM, Allen Sanderson wrote: > Hello, > > We are trying to render geometry using a lookup table for the RGB value > using one scalar variable, but we want to use a secondary scalar variable > for determining the opacity. Something like the following: > > RGB -> variable one > A -> variable two > > In looking through the VTK 6 documentation on mappers we have not found > anything that leads us to believe this functionality is possible. But we > have done an exhaustive search. > > If it is possible we would greatly appreciate pointers. Thanks. > > > > Cheers, > > > Allen > > > > Allen Sanderson > > SCI Institute > > University of Utah > > www.sci.utah.edu > -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at sci.utah.edu Tue Feb 16 17:32:39 2016 From: allen at sci.utah.edu (Allen Sanderson) Date: Tue, 16 Feb 2016 15:32:39 -0700 Subject: [vtkusers] Mappers and vtkLookupTable In-Reply-To: References: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> Message-ID: <01679D94-FE27-4BCF-86C7-CF42CC6B9D41@sci.utah.edu> Thanks David, we thought that was the case. Let me ask a somewhat parallel question. When rendering lines one typically sets a line width and sends the geometry downstream. The lines will be colored base on a variable but the line width is constant. At the same time when doing point glyphs we set the color and size based on a variable. If we wanted to vary the line width using a variable is our only choice to use a cylinder? Cheers, Allen Allen Sanderson SCI Institute University of Utah www.sci.utah.edu > On Feb 16, 2016, at 12:20 PM, David Gobbi wrote: > > Hi Allen, > > You are correct, vtkLookupTable does not provide a way of doing this. > > I'm not sure what work-arounds there are for geometry, but for images > you can map the RGB and A separately, and then combine them into > RGBA with vtkImageAppendComponents. > > - David > > > On Tue, Feb 16, 2016 at 11:48 AM, Allen Sanderson > wrote: > Hello, > > We are trying to render geometry using a lookup table for the RGB value using one scalar variable, but we want to use a secondary scalar variable for determining the opacity. Something like the following: > > RGB -> variable one > A -> variable two > > In looking through the VTK 6 documentation on mappers we have not found anything that leads us to believe this functionality is possible. But we have done an exhaustive search. > > If it is possible we would greatly appreciate pointers. Thanks. > > > > Cheers, > > Allen > > > Allen Sanderson > SCI Institute > University of Utah > www.sci.utah.edu > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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 Tue Feb 16 17:44:45 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 16 Feb 2016 17:44:45 -0500 Subject: [vtkusers] Mappers and vtkLookupTable In-Reply-To: <01679D94-FE27-4BCF-86C7-CF42CC6B9D41@sci.utah.edu> References: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> <01679D94-FE27-4BCF-86C7-CF42CC6B9D41@sci.utah.edu> Message-ID: Allen, I don't know of a way to set the line width based on a variable in stock VTK. Maybe you could do something with a custom geometry shader, which you can set in the OpenGL2 backend version of vtkOpenGLPolyDataMapper via SetGeometryShaderCode(const char*). Another approach could be using vtkTubeFilter to automatically set the radius of the cylinders. The input to this filter should be a set of line segments with point data with your variable for each line defined at each endpoint of the line. HTH, Cory On Tue, Feb 16, 2016 at 5:32 PM, Allen Sanderson wrote: > Thanks David, we thought that was the case. > > Let me ask a somewhat parallel question. When rendering lines one typically > sets a line width and sends the geometry downstream. The lines will be > colored base on a variable but the line width is constant. At the same time > when doing point glyphs we set the color and size based on a variable. If we > wanted to vary the line width using a variable is our only choice to use a > cylinder? > > Cheers, > > > Allen > > > > Allen Sanderson > > SCI Institute > > University of Utah > > www.sci.utah.edu > > > > > On Feb 16, 2016, at 12:20 PM, David Gobbi wrote: > > Hi Allen, > > You are correct, vtkLookupTable does not provide a way of doing this. > > I'm not sure what work-arounds there are for geometry, but for images > you can map the RGB and A separately, and then combine them into > RGBA with vtkImageAppendComponents. > > - David > > > On Tue, Feb 16, 2016 at 11:48 AM, Allen Sanderson > wrote: >> >> Hello, >> >> We are trying to render geometry using a lookup table for the RGB value >> using one scalar variable, but we want to use a secondary scalar variable >> for determining the opacity. Something like the following: >> >> RGB -> variable one >> A -> variable two >> >> In looking through the VTK 6 documentation on mappers we have not found >> anything that leads us to believe this functionality is possible. But we >> have done an exhaustive search. >> >> If it is possible we would greatly appreciate pointers. Thanks. >> >> >> >> Cheers, >> >> Allen >> >> >> Allen Sanderson >> SCI Institute >> University of Utah >> www.sci.utah.edu > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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. From LCHEN41 at mgh.harvard.edu Tue Feb 16 17:58:13 2016 From: LCHEN41 at mgh.harvard.edu (Chen, Lifan) Date: Tue, 16 Feb 2016 22:58:13 +0000 Subject: [vtkusers] SetResliceMode of vtkResliceImageViewer change window/level automatically Message-ID: Dear all, I have got into a problem these days. I am using vtkResliceImageViewer to visualize PET dicom series in three dimensions. The scalar images have been converted into RGB images. However, when I turn on the ResliceMode which shows the cursor widget, the window/level changes automatically and which made the images becomes scalar images. Does anyone ever meet this problem or does anyone know how to avoid this change? Best wishes, Lifan 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 richard at research.canon.com.au Tue Feb 16 19:16:08 2016 From: richard at research.canon.com.au (Chungzuwalla) Date: Tue, 16 Feb 2016 17:16:08 -0700 (MST) Subject: [vtkusers] Generate debug libraries with _d postfix In-Reply-To: References: <20160212164355.GB28230@megas.kitware.com> Message-ID: <1455668168295-5736601.post@n5.nabble.com> I also needed to do this recently. I am no expert on CMake or VTK, but I was able to find a way that worked for me. I use PCL which uses VTK. PCL already uses different names for libraries (eg., pcl_xxx_debug.lib and pcl_xxx_release.lib). I wanted the PCL debug libs to link with VTK debug libs, and PCL release libs to link with VTK release libs. Find vtkModuleMacros.cmake, and find the line: set_property(TARGET ${_name} PROPERTY OUTPUT_NAME ${_vtk}${_name}${_lib_suffix}) I replaced this with: set_property(TARGET ${_name} PROPERTY DEBUG_OUTPUT_NAME ${_vtk}${_name}${_lib_suffix}_d) set_property(TARGET ${_name} PROPERTY RELEASE_OUTPUT_NAME ${_vtk}${_name}${_lib_suffix}) The CMake documentation I referred to for these properties is here: https://cmake.org/cmake/help/v3.3/command/set_target_properties.html See the paragraph starting ?Properties that affect the name of a target?s output file are as follows?. Then I opened VTK build in CMake-gui, re-ran ?configure?, re-ran ?generate? Opened the updated VTK build files in my IDE (Visual Studio 2015) (using Administrator mode, so that the install can succeed) Rebuilt INSTALL using ?debug? configuration, then again using ?release? configuration Checked in the VTK install directory, both debug and release libraries are there side by side. Then repeated all that for PCL: ?configure?, ?generate?, INSTALL debug, INSTALL release. When I opened the updated PCL build files in the IDE, I could see that the debug build of PCL was linking the VTK libs with the ?_d? suffix. Which is exactly what I wanted. A final note: my project which uses PCL, uses the Visual Studio IDE build system directly (not CMake). So in the debug build, I had to manually add the ?_d? suffix to the VTK import libraries. Otherwise my executable would have loaded both release and debug versions of the same VTK DLL, causing chaos. Hope this helps. -- View this message in context: http://vtk.1045678.n5.nabble.com/Generate-debug-libraries-with-d-postfix-tp5736543p5736601.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Tue Feb 16 19:29:47 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 16 Feb 2016 17:29:47 -0700 (MST) Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: References: <1455477754599-5736566.post@n5.nabble.com> <1455634465346-5736584.post@n5.nabble.com> <1455638144238-5736588.post@n5.nabble.com> Message-ID: <1455668987456-5736602.post@n5.nabble.com> David, I decided to get back to a basic version of the code to make sure that I did not do anything wrong. /void method(double* rotation, double* translation){ //rotation is in the form of a quaternion with angle in radians vtkSmartPointert = vtkTransform::New(); double axis[3] ; t->SetMatrix(actor->GetMatrix()); vtkQuaternion q = vtkQuaternion(rotation[3],rotation[0],rotation[2],rotation[1]); q.Normalize(); angle = q.GetRotationAngleAndAxis(axis); t->PreMultiply(); t->RotateWXYZ(angle*180.0/3.14,axis[0],axis[1],axis[2]); actor->SetUserMatrix(t->GetMatrix()); }/ So this is a basic version that does not work. Yet I thought this was only linked to the Pre or Post Multiply setup, so I tried changing it and it did not actually change anything. So then I thought that what I was missing was to take into account the current orientation of my actor and so I did: /void method(double* rotation, double* translation){ double quatActor[4] ; double axis[3] ; //rotation is in the form of a quaternion with angle in radians vtkSmartPointert = vtkTransform::New(); t->SetMatrix(actor->GetMatrix()); vtkQuaternion q = vtkQuaternion(rotation[3],rotation[0],rotation[2],rotation[1]); t->GetOrientationWXYZ (quatActor) ; vtkQuaternion qA = vtkQuaternion(quatActor[3],quatActor[0],quatActor[1],quatActor[2]); q = qA.Inverse() * q ; q.Normalize(); angle = qA.GetRotationAngleAndAxis(axis); t->RotateWXYZ(angle*180.0/3.14,axis[0],axis[1],axis[2]); }/ But I don't get a better result. Is there a crucial point that I'm missing here? Or maybe I misunderstood how the Transform works. In any case, I have a feeling there is something obvious that I don't get right with vtkTransforms right now. My aim is to mimic what you would get with a mouse or a touch input. Imagine we use the bunny.vtp dataset, tilting the tablet along the x axis causes the bunny to show its feet. If we rotate with 90 degrees, its ears are not shown and we only see the paws. Then if the rotation was along the y axis, say 90 degrees, we would get to see its tail in front of us. If we were then to perform a rotation along the x-axis, we should see as a result the tail going up. However, in my case, what I see is the bunny rotating as if it was still in its original position ( the paws are going up, and not the tail ). -- View this message in context: http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736602.html Sent from the VTK - Users mailing list archive at Nabble.com. From tluisrs at gmail.com Tue Feb 16 19:42:13 2016 From: tluisrs at gmail.com (Thales Luis Rodrigues Sabino) Date: Tue, 16 Feb 2016 22:42:13 -0200 Subject: [vtkusers] Generate debug libraries with _d postfix In-Reply-To: <1455668168295-5736601.post@n5.nabble.com> References: <20160212164355.GB28230@megas.kitware.com> <1455668168295-5736601.post@n5.nabble.com> Message-ID: Well, Configuring the Debug Post Fix in the CMake command line works fine with me. I also use PCL and VTK 6.3.0. This is the command line I use to build VTK cmake -DCMAKE_DEBUG_POSTFIX=_d ../../Downloads/VTK-6.3.0 And the libraries are generated with _d suffix. There is also the possibility of defining CMAKE_RELEASE_POSTFIX for a suffix to be added in the release libraries. On Tue, Feb 16, 2016 at 10:16 PM, Chungzuwalla < richard at research.canon.com.au> wrote: > I also needed to do this recently. I am no expert on CMake or VTK, but I > was > able to find a way that worked for me. > I use PCL which uses VTK. PCL already uses different names for libraries > (eg., pcl_xxx_debug.lib and pcl_xxx_release.lib). > I wanted the PCL debug libs to link with VTK debug libs, and PCL release > libs to link with VTK release libs. > > Find vtkModuleMacros.cmake, and find the line: > set_property(TARGET ${_name} PROPERTY OUTPUT_NAME > ${_vtk}${_name}${_lib_suffix}) > I replaced this with: > set_property(TARGET ${_name} PROPERTY DEBUG_OUTPUT_NAME > ${_vtk}${_name}${_lib_suffix}_d) > set_property(TARGET ${_name} PROPERTY RELEASE_OUTPUT_NAME > ${_vtk}${_name}${_lib_suffix}) > > The CMake documentation I referred to for these properties is here: > https://cmake.org/cmake/help/v3.3/command/set_target_properties.html > See the paragraph starting ?Properties that affect the name of a target?s > output file are as follows?. > > Then I opened VTK build in CMake-gui, re-ran ?configure?, re-ran ?generate? > Opened the updated VTK build files in my IDE (Visual Studio 2015) (using > Administrator mode, so that the install can succeed) > Rebuilt INSTALL using ?debug? configuration, then again using ?release? > configuration > Checked in the VTK install directory, both debug and release libraries are > there side by side. > > Then repeated all that for PCL: ?configure?, ?generate?, INSTALL debug, > INSTALL release. > When I opened the updated PCL build files in the IDE, I could see that the > debug build of PCL was linking the VTK libs with the ?_d? suffix. > Which is exactly what I wanted. > > A final note: my project which uses PCL, uses the Visual Studio IDE build > system directly (not CMake). > So in the debug build, I had to manually add the ?_d? suffix to the VTK > import libraries. > Otherwise my executable would have loaded both release and debug versions > of the same VTK DLL, causing chaos. > > Hope this helps. > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Generate-debug-libraries-with-d-postfix-tp5736543p5736601.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 > -- Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at sci.utah.edu Tue Feb 16 20:12:16 2016 From: allen at sci.utah.edu (Allen Sanderson) Date: Tue, 16 Feb 2016 18:12:16 -0700 Subject: [vtkusers] Mappers and vtkLookupTable In-Reply-To: References: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> <01679D94-FE27-4BCF-86C7-CF42CC6B9D41@sci.utah.edu> Message-ID: A colleague also pointed me to the vtkTubeFilter and I am using that successfully. Thanks. Cheers, Allen Allen Sanderson SCI Institute University of Utah www.sci.utah.edu > On Feb 16, 2016, at 3:44 PM, Cory Quammen wrote: > > Allen, > > I don't know of a way to set the line width based on a variable in > stock VTK. Maybe you could do something with a custom geometry shader, > which you can set in the OpenGL2 backend version of > vtkOpenGLPolyDataMapper via SetGeometryShaderCode(const char*). > > Another approach could be using vtkTubeFilter to automatically set the > radius of the cylinders. The input to this filter should be a set of > line segments with point data with your variable for each line defined > at each endpoint of the line. > > HTH, > Cory > > On Tue, Feb 16, 2016 at 5:32 PM, Allen Sanderson wrote: >> Thanks David, we thought that was the case. >> >> Let me ask a somewhat parallel question. When rendering lines one typically >> sets a line width and sends the geometry downstream. The lines will be >> colored base on a variable but the line width is constant. At the same time >> when doing point glyphs we set the color and size based on a variable. If we >> wanted to vary the line width using a variable is our only choice to use a >> cylinder? >> >> Cheers, >> >> >> Allen >> >> >> >> Allen Sanderson >> >> SCI Institute >> >> University of Utah >> >> www.sci.utah.edu >> >> >> >> >> On Feb 16, 2016, at 12:20 PM, David Gobbi wrote: >> >> Hi Allen, >> >> You are correct, vtkLookupTable does not provide a way of doing this. >> >> I'm not sure what work-arounds there are for geometry, but for images >> you can map the RGB and A separately, and then combine them into >> RGBA with vtkImageAppendComponents. >> >> - David >> >> >> On Tue, Feb 16, 2016 at 11:48 AM, Allen Sanderson >> wrote: >>> >>> Hello, >>> >>> We are trying to render geometry using a lookup table for the RGB value >>> using one scalar variable, but we want to use a secondary scalar variable >>> for determining the opacity. Something like the following: >>> >>> RGB -> variable one >>> A -> variable two >>> >>> In looking through the VTK 6 documentation on mappers we have not found >>> anything that leads us to believe this functionality is possible. But we >>> have done an exhaustive search. >>> >>> If it is possible we would greatly appreciate pointers. Thanks. >>> >>> >>> >>> Cheers, >>> >>> Allen >>> >>> >>> Allen Sanderson >>> SCI Institute >>> University of Utah >>> www.sci.utah.edu >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 david.gobbi at gmail.com Tue Feb 16 22:14:48 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 16 Feb 2016 20:14:48 -0700 Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: <1455668987456-5736602.post@n5.nabble.com> References: <1455477754599-5736566.post@n5.nabble.com> <1455634465346-5736584.post@n5.nabble.com> <1455638144238-5736588.post@n5.nabble.com> <1455668987456-5736602.post@n5.nabble.com> Message-ID: On Tue, Feb 16, 2016 at 5:29 PM, Lonni Besan?on wrote: > David, > > I decided to get back to a basic version of the code to make sure that I > did > not do anything wrong. > > /void method(double* rotation, double* translation){ > //rotation is in the form of a quaternion with angle in radians > The above comment confuses me. None of the elements of a quaternion are angles, so why say "in radians"? vtkSmartPointert = vtkTransform::New(); > This is a minor point, but using a VTK smart pointer like the above creates a memory leak. Proper use of vtkSmartPointer is this: vtkSmartPointer t = vtkSmartPointer::New(); > double axis[3] ; > t->SetMatrix(actor->GetMatrix()); > vtkQuaternion q = > vtkQuaternion(rotation[3],rotation[0],rotation[2],rotation[1]); > This line of code also confuses me. What are the elements of "rotation"? Why is this strange ordering used? > q.Normalize(); > angle = q.GetRotationAngleAndAxis(axis); > t->PreMultiply(); > t->RotateWXYZ(angle*180.0/3.14,axis[0],axis[1],axis[2]); > Using "3.14" for pi is not very precise. Please fix my confusion regarding the elements of "rotation" before I go any further with this... - David actor->SetUserMatrix(t->GetMatrix()); > > }/ > > So this is a basic version that does not work. > > Yet I thought this was only linked to the Pre or Post Multiply setup, so I > tried changing it and it did not actually change anything. > > So then I thought that what I was missing was to take into account the > current orientation of my actor and so I did: > > /void method(double* rotation, double* translation){ > double quatActor[4] ; > double axis[3] ; > //rotation is in the form of a quaternion with angle in radians > vtkSmartPointert = vtkTransform::New(); > t->SetMatrix(actor->GetMatrix()); > vtkQuaternion q = > vtkQuaternion(rotation[3],rotation[0],rotation[2],rotation[1]); > t->GetOrientationWXYZ (quatActor) ; > vtkQuaternion qA = > vtkQuaternion(quatActor[3],quatActor[0],quatActor[1],quatActor[2]); > q = qA.Inverse() * q ; > q.Normalize(); > angle = qA.GetRotationAngleAndAxis(axis); > t->RotateWXYZ(angle*180.0/3.14,axis[0],axis[1],axis[2]); > }/ > > But I don't get a better result. > Is there a crucial point that I'm missing here? Or maybe I misunderstood > how > the Transform works. In any case, I have a feeling there is something > obvious that I don't get right with vtkTransforms right now. > > My aim is to mimic what you would get with a mouse or a touch input. > Imagine > we use the bunny.vtp dataset, tilting the tablet along the x axis causes > the > bunny to show its feet. If we rotate with 90 degrees, its ears are not > shown > and we only see the paws. > Then if the rotation was along the y axis, say 90 degrees, we would get to > see its tail in front of us. If we were then to perform a rotation along > the > x-axis, we should see as a result the tail going up. However, in my case, > what I see is the bunny rotating as if it was still in its original > position > ( the paws are going up, and not the tail ). > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736602.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 zhuangming.shen at sphic.org.cn Wed Feb 17 01:31:57 2016 From: zhuangming.shen at sphic.org.cn (=?utf-8?B?5rKI5bqE5piO?=) Date: Wed, 17 Feb 2016 06:31:57 +0000 Subject: [vtkusers] Aminate actor Message-ID: <1455690715742.5762@sphic.org.cn> Hi all, ? I would like to display 5 different vtkActors in a loop. That means, display the 1st vtkActor in the 1st second, display the 2nd vtkActor in the 2nd second, ... , display the 1st vtkActor in the 6th second, ... . All the vtkActors are kept in the vector actorList. I wrote my code (see below) with reference to the two existing VTK examples (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Animation/AnimateActors and http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/AnimationScene). Currently, I can animate those vtkActors when I set "scene->SetLoop(0)". However, when I change the setting to "scene->SetLoop(1)" to endlessly play the animation, those vtkActors can only be animated in the first loop but kept still from the second loop. Therefore, I'm so confused whether I have missed something important in my code. Anyone can help me? Thanks in advance. ? Regards, Zhuangming Shen ----------------------------------------------------- Part of My Code ---------------------------------------------------------------- const int frameNum = 5; const int frameRate = 1; class AnimationSceneObserver :public vtkCommand { public: static AnimationSceneObserver *New() { r?eturn new AnimationSceneObserver; } void SetRenderWindow(vtkRenderWindow *renWin) { if (this->RenderWindow) { ?this->RenderWindow->UnRegister(this); } this->RenderWindow = renWin; this->RenderWindow->Register(this); } virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long event, void *vtkNotUsed(calldata)) { if (this->RenderWindow != 0) { switch (event) { case vtkCommand::AnimationCueTickEvent: this->RenderWindow->Render(); break; } } } protected: AnimationSceneObserver() { t?his->RenderWindow = 0; } ~AnimationSceneObserver() { if (this->RenderWindow) { this->RenderWindow->UnRegister(this); this->RenderWindow = 0; } } ?vtkRenderWindow *RenderWindow; }; class ActorAnimator ?{ ?public: ActorAnimator() { this->Actor = 0; this->Ren = 0; this->Observer = AnimationCueObserver::New(); this->Observer->Animator = this; } ~ActorAnimator() { if? (this->Actor) { this->Actor->UnRegister(0); this->Actor = 0; } if (this->Ren) { this->Ren->UnRegister(0); this->Ren = 0; } thi?s->Observer->UnRegister(0); } void SetActor(vtkActor *actor) { if (t?his->Actor) { this->?Actor->UnRegister(0); } this->Actor = actor; this->Actor->Register(0); } void SetRenderer(vtkRenderer *ren) { if (this->Ren) { this->Ren->?UnRegister(0); } this->Ren = ren; this->Ren->Register(0); } void AddObserversToCue(vtkAnimationCue *cue) { cue->AddObserver(vtkCommand::StartAnimationCueEvent, this->Observer); cue->AddObserver(vtkCommand::EndAnimationCueEvent, this->Observer); cue->AddObserver(vtkCommand::AnimationCueTickEvent, this->Observer); } void Start(vtkAnimationCue::AnimationCueInfo *vtkNotUsed(info)) { this->SetActor(actorList[0]); this->Ren->AddActor(this->Actor); this->Ren->Modified(); } void Tick(vtkAnimationCue::AnimationCueInfo *info) { this->SetActor(actorList[int(info->AnimationTime)]); // choose which vtkActor from actorList will be displayed according to the AnimationTime this->Ren->AddActor(this->Actor); this->Ren->Modified(); } void End(vtkAnimationCue::AnimationCueInfo *vtkNotUsed(info)) { this->SetActor(actorList[0]); this->Ren->AddActor(this->Actor); this->Ren->Modified(); } ?protected: class AnimationCueObserver :public vtkCommand { public: static AnimationCueObserver *New() { return new AnimationCueObserver; } virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long event, void *calldata) { if (this->Animator != 0) { vtkAnimationCue::AnimationCueInfo *info = static_cast(calldata); switch (?event) { case vtkCommand::StartAnimationCueEvent: this->Animator->Start(info); break; case vtkCommand::EndAnimationCueEvent: this->Animator->End(info); break; case vtkCommand::AnimationCueTickEvent: this->Animator->Tick(info); break; } } ?} AnimationCueObserver() { this->Anima?tor = 0; } ActorAnima?tor *Animator; }; AnimationCueObserver *Observer; vtkActor *Actor; vtkRenderer *Ren; }; int main() { vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); vtkRenderer *ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); iren->SetRenderWindow(renWin); renWin->SetMultiSamples(0); renWin->AddRenderer(ren1); // All the vtkActors have been kept in actorList ren1->AddActor(actorList[0]); // create Animation Scene vtkAnimationScene *scene = vtkAnimationScene::New(); scene->SetModeToSequence(); scene->SetLoop(1); scene->SetFrameRate(frameRate); scene->SetStartTime(0); scene->SetEndTime(frameNum - 1); AnimationSceneObserver *sceneObserver = AnimationSceneObserver::New(); sceneObserver->SetRenderWindow(renWin); scene->AddObserver(vtkCommand::AnimationCueTickEvent, sceneObserver); // create an Animation Cue vtkAnimationCue *cue1 = vtkAnimationCue::New(); cue1->SetStartTime(0); cue1->SetEndTime(frameNum - 1); scene->AddCue(cue1); ActorAnimator animateOrgan; animateOrgan.SetActor(actorList[0]); animateOrgan.SetRenderer(ren1); animateOrgan.AddObserversToCue(cue1); vtkCamera *camera = vtkCamera::New(); camera->SetViewUp(0.0, 0.0, -1.0); camera->SetPosition(0.0, 1.0, 0.0); camera->SetFocalPoint(0.0, 0.0, 0.0); camera->ComputeViewPlaneNormal(); camera->Dolly(1.5); ren1->ResetCameraClippingRange(); ren1->SetActiveCamera(camera); renWin->Render(); ren1->ResetCamera(); scene->Play(); scene->Stop(); iren->Start(); return EXIT_SUCCESS; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Wed Feb 17 03:58:50 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 17 Feb 2016 01:58:50 -0700 (MST) Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: References: <1455477754599-5736566.post@n5.nabble.com> <1455634465346-5736584.post@n5.nabble.com> <1455638144238-5736588.post@n5.nabble.com> <1455668987456-5736602.post@n5.nabble.com> Message-ID: <1455699530263-5736607.post@n5.nabble.com> Hello David, thanks for answering and thanks for your time. For the elements of rotations, this is what I get from google in their documentation. /Orientation, as a quaternion, of the pose of the target frame with reference to to the base frame. Specified as (x,y,z,w) where RotationAngle is in radians: x = RotationAxis.x * sin(RotationAngle / 2) y = RotationAxis.y * sin(RotationAngle / 2) z = RotationAxis.z * sin(RotationAngle / 2) w = cos(RotationAngle / 2)/ So the rotation I use is this one. It is from a special kind of tablet and special sensors. Therefore rotation[3] is my w, and since the coordinate system is not the same, I had to switch the axis parts of rotation. I think the basic operations that I do with rotation and RotateWXYZ are ok, because if I always go back to my original position, all the rotations are correctly mapped to my actor. However, combining rotations is what triggers weird and unexpected rotation (i.e not on the correct axis). Thanks for the tip on the memory leak, and thanks again for your time. Lonni -- View this message in context: http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736607.html Sent from the VTK - Users mailing list archive at Nabble.com. From f.nellmeldin at open-engineering.com Wed Feb 17 04:52:25 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Wed, 17 Feb 2016 10:52:25 +0100 Subject: [vtkusers] Generate debug libraries with _d postfix In-Reply-To: References: <20160212164355.GB28230@megas.kitware.com> Message-ID: Hello. This solution worked for me as expected! I only had to edit the file and rerun configure-generate-compile-install. Thank you very much. Fernando. 2016-02-17 0:48 GMT+01:00 Richard Ling : > I also needed to do this recently. I am no expert on CMake or VTK, but I > was able to find a way that worked for me. > > I use PCL which uses VTK. PCL already uses different names for libraries > (eg., pcl_xxx_debug.lib and pcl_xxx_release.lib). > > I wanted the PCL debug libs to link with VTK debug libs, and PCL release > libs to link with VTK release libs. > > > > Find vtkModuleMacros.cmake, and find the line: > > set_property(TARGET ${_name} PROPERTY OUTPUT_NAME > ${_vtk}${_name}${_lib_suffix}) > > I replaced this with: > > set_property(TARGET ${_name} PROPERTY DEBUG_OUTPUT_NAME > ${_vtk}${_name}${_lib_suffix}_d) > > set_property(TARGET ${_name} PROPERTY RELEASE_OUTPUT_NAME > ${_vtk}${_name}${_lib_suffix}) > > > > The CMake documentation I referred to for these properties is here: > > https://cmake.org/cmake/help/v3.3/command/set_target_properties.html > > See the paragraph starting ?Properties that affect the name of a target?s > output file are as follows?. > > > > Then I opened VTK build in CMake-gui, re-ran ?configure?, re-ran ?generate? > > Opened the updated VTK build files in my IDE (Visual Studio 2015) (using > Administrator mode, so that the install can succeed) > > Rebuilt INSTALL using ?debug? configuration, then again using ?release? > configuration > > Checked in the VTK install directory, both debug and release libraries are > there side by side. > > > > Then repeated all that for PCL: ?configure?, ?generate?, INSTALL debug, > INSTALL release. > > When I opened the updated PCL build files in the IDE, I could see that the > debug build of PCL was linking the VTK libs with the ?_d? suffix. > > Which is exactly what I wanted. > > > > A final note: my project which uses PCL, uses the Visual Studio IDE build > system directly (not CMake). > > So in the debug build, I had to manually add the ?_d? suffix to the VTK > import libraries. > > Otherwise my executable would have loaded both release and debug versions > of the same VTK DLL, causing chaos. > > > > Hope this helps. > > > > *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Fernando > Nellmeldin > *Sent:* Tuesday, 16 February 2016 3:28 AM > *To:* ben.boeckel at kitware.com > *Cc:* vtk-users > *Subject:* Re: [vtkusers] Generate debug libraries with _d postfix > > > > Thank you for your response. > > I checked the file with the function name, but I didn't know what to do. > > For the current time, I guess I could do it manually. It is just a quick > find & rename that shouldn't take long. > > > > Fernando. > > > > 2016-02-12 17:43 GMT+01:00 Ben Boeckel : > > On Fri, Feb 12, 2016 at 10:26:18 +0100, Fernando Nellmeldin wrote: > > However, that doesn't work for VTK 6.3.0 nor VTK 7.0.0. (for 5.10 does > just > > what I want). > > Probably due to the module system changes for VTK6. > > > Any thoughts of how to do the same on these versions? > > Some logic could be added to CMake/vtkModuleMacros.cmake:624 or so > (inside of vtk_module_library) to do this for Windows. > > > PS: I'm using CMake with VS2010 generator under windows8, but I think the > > solution should be general. > > Well, at least on Windows. Other platforms don't have the debug/release > runtime library split and such things are annoying to work with > elsewhere (I regularly debug a single library and not having to build > the entire stack because the library name changed is a big plus). > > --Ben > The information contained in this email message and any attachments may be > confidential and may also be the subject to legal professional privilege. > If you are not the intended recipient, any use, interference with, > disclosure or copying of this material is unauthorised and prohibited. If > you have received this email in error, please immediately advise the sender > by return email and delete the information from your system. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.kitlu at gmail.com Wed Feb 17 08:06:31 2016 From: s.kitlu at gmail.com (s.kitlu) Date: Wed, 17 Feb 2016 06:06:31 -0700 (MST) Subject: [vtkusers] Threshold Message-ID: <1455714391966-5736609.post@n5.nabble.com> Hello everyone, Can anyone help me to convert threshold applied nrrd into vtk or stl file using python script?? I am able to convert it into structured vtk but I want polydata or unstructured vtk or either stl. or Is there any option to apply threshold on vtk file using script ??? Please have a look and help. Thanks in advance Regads, S.kitlu -- View this message in context: http://vtk.1045678.n5.nabble.com/Threshold-tp5736609.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Wed Feb 17 08:14:19 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 17 Feb 2016 06:14:19 -0700 Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: <1455699530263-5736607.post@n5.nabble.com> References: <1455477754599-5736566.post@n5.nabble.com> <1455634465346-5736584.post@n5.nabble.com> <1455638144238-5736588.post@n5.nabble.com> <1455668987456-5736602.post@n5.nabble.com> <1455699530263-5736607.post@n5.nabble.com> Message-ID: Thanks, I just had to be sure about the definition. Does this "rotation" give a relative change from the previous position? I'm about 70% certain that you should be using PostMultiply. And if it's rotating around the wrong axis, that implies that you are applying the rotation in the wrong frame of reference. So, if the current pose matrix of the bunny is "M" and the transform from the quaternion is T, then maybe you should be applying the transform M*T*Inverse(M) to the actor. - David On Wed, Feb 17, 2016 at 1:58 AM, Lonni Besan?on wrote: > Hello David, thanks for answering and thanks for your time. > > For the elements of rotations, this is what I get from google in their > documentation. > /Orientation, as a quaternion, of the pose of the target frame with > reference to to the base frame. > Specified as (x,y,z,w) where RotationAngle is in radians: > > x = RotationAxis.x * sin(RotationAngle / 2) > y = RotationAxis.y * sin(RotationAngle / 2) > z = RotationAxis.z * sin(RotationAngle / 2) > w = cos(RotationAngle / 2)/ > > So the rotation I use is this one. It is from a special kind of tablet and > special sensors. > Therefore rotation[3] is my w, and since the coordinate system is not the > same, I had to switch the axis parts of rotation. > I think the basic operations that I do with rotation and RotateWXYZ are ok, > because if I always go back to my original position, all the rotations are > correctly mapped to my actor. However, combining rotations is what triggers > weird and unexpected rotation (i.e not on the correct axis). > > Thanks for the tip on the memory leak, and thanks again for your time. > > Lonni > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.sambin at gmail.com Wed Feb 17 09:33:55 2016 From: m.sambin at gmail.com (Marco Sambin) Date: Wed, 17 Feb 2016 15:33:55 +0100 Subject: [vtkusers] [Java] VTK volume rendering Message-ID: Hi all. Reading this post, a related but slightly off-topic question came to my mind: Has something changed in the latest VTK versions, as far as VTK's capability to directly render through JAWT with Oracle's JRE version 7+ on Mac OS X is concerned? For instance Andy, how are you rendering from Java + VTK on Mac? Which JRE are you using? Are you using JOGL or not? Thanks in advance for your input. Best regards, Marco On Mon, Feb 15, 2016 at 9:07 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > vtkProjectedTetrahedraMapper is the class that meant for UnstructedGrid. > Are you using OpenGL2 backend or OpenGL1? Also, any information on your > system (os, graphics card), data type and size would be nice to know. The > other thing you can do is sample your grid into vtkImageData and then you > can use GPU Mapper. > > Thanks, > > > On Sun, Feb 14, 2016 at 2:58 PM, atc1992vtk wrote: > >> Hi guys, >> I am working on an application using VTK with Java on Mac. >> Currently I am working on the volume rending function, the file I am >> working >> with is *UnstructedGrid*. >> I got some trouble in displaying the file, I tried to use different mapper >> and filter, only "*vtkProjectedTetrahedraMapper*" is working but the >> result >> was so laggy that i even couldn't move the object. So of the other Mapper >> (e.g. vtkUnstructuredGridVolumeMapper) I got a "*Invalid memory access of >> location*" error. >> >> Can anyone give me an up-to-date example or some hints on the correct >> class >> should be used in the pipeline?? >> >> Andy >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567.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 > * > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Wed Feb 17 10:22:53 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Wed, 17 Feb 2016 08:22:53 -0700 Subject: [vtkusers] [Java] VTK volume rendering In-Reply-To: References: Message-ID: Hi Marco, nothing special happened in that version, but as I recall, on OS X, the rendering was not properly working due to some native change in the JVM (can't remember exactly) hence we add a new renderer a while back using Jogl to create a OpenGL context for us and make it friendly for the Java UI. VTK 7, brings new GL calls that are more modern and align with todays graphic cards, hence I was wondering if something broke/change in regard to that GL update. Seb On Wed, Feb 17, 2016 at 7:33 AM, Marco Sambin wrote: > Hi all. > > Reading this post, a related but slightly off-topic question came to my > mind: > > Has something changed in the latest VTK versions, as far as VTK's > capability to directly render through JAWT with Oracle's JRE version 7+ on > Mac OS X is concerned? > > For instance Andy, how are you rendering from Java + VTK on Mac? Which JRE > are you using? Are you using JOGL or not? > > Thanks in advance for your input. > Best regards, > > Marco > > > On Mon, Feb 15, 2016 at 9:07 PM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > >> vtkProjectedTetrahedraMapper is the class that meant for UnstructedGrid. >> Are you using OpenGL2 backend or OpenGL1? Also, any information on your >> system (os, graphics card), data type and size would be nice to know. The >> other thing you can do is sample your grid into vtkImageData and then you >> can use GPU Mapper. >> >> Thanks, >> >> >> On Sun, Feb 14, 2016 at 2:58 PM, atc1992vtk wrote: >> >>> Hi guys, >>> I am working on an application using VTK with Java on Mac. >>> Currently I am working on the volume rending function, the file I am >>> working >>> with is *UnstructedGrid*. >>> I got some trouble in displaying the file, I tried to use different >>> mapper >>> and filter, only "*vtkProjectedTetrahedraMapper*" is working but the >>> result >>> was so laggy that i even couldn't move the object. So of the other Mapper >>> (e.g. vtkUnstructuredGridVolumeMapper) I got a "*Invalid memory access of >>> location*" error. >>> >>> Can anyone give me an up-to-date example or some hints on the correct >>> class >>> should be used in the pipeline?? >>> >>> Andy >>> >>> >>> >>> -- >>> View this message in context: >>> http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567.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 >> * >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 prakeshofficial at gmail.com Wed Feb 17 12:22:04 2016 From: prakeshofficial at gmail.com (rakesh patil) Date: Wed, 17 Feb 2016 22:52:04 +0530 Subject: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS In-Reply-To: References: Message-ID: Hi, You mean to say, vtk 6.3 + Qt 4.8.6 works fine. ? There won't be any flickering hapenning on MAC. ? On Wednesday, February 17, 2016, Fetzer, Andreas < a.fetzer at dkfz-heidelberg.de> wrote: > Hi, > > we are facing a similar problem on Mac OS X 10.9+ with VTK 6.2 and Qt 5.x. > (Strangely with Qt 4.8.6 everything works fine) > > We write our own Plugins that add new GUI components to our Application. > If we add a QVTKWidget to a plugin, all it's widgets do not react to mouse > clicks anymore. > This happens even if we just instantiate the QVTKWidget without adding it > to the plugin. > > Currently we suspect that the QVTKWidget or VTKInteractors consume some Qt > events > or do not forward these events. But we do not have a solution yet. > > We would be glad about any hints. > > Best regards, > Andreas > > Von: vtkusers vtkusers-bounces at vtk.org >> on behalf of rakesh patil < > prakeshofficial at gmail.com >> > Datum: Tuesday 16 February 2016 17:33 > An: VTK Users >> > Betreff: Re: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS > > Hi, > > Since, I got no reply for this, I have prepared a small test case. It is a > dock/undock example from Qt and I have just added QVTKWidget to it. Atleast > the flickering should be disabled somehow. Can some experts help me? > > I am using Qt 5.5 and vtk 6.3. This happens only on MAC (tested on OS X > Yosemite & OS X El Capitan). > > On Sun, Feb 7, 2016 at 8:17 PM, rakesh patil >> wrote: > Hello, > > I am facing a very strange issue with Dock/Undocking when one of the > docked widget is QVTKWidget. I have a centralWidget which contains four > tabs. Each tab is an inherited from QWidget. Among these, one widget is > QVTKWidget. The issue what I am facing is when I click on the bar and try > to undock, the mouse events are lost. I release the mouse button and move > the mouse, QVTKWidget keeps moving along with the mouse. I need to click > once again on the tab and then it gets undocked fully. Some times while > undocking or docking, I observed flickering effect on the renderwindow. > > It gives feeling like QDockWidget is passing some information/signal to > its widgets, which QVTKWidget is not able to process, and other QWidgets > are able to process. Has anyone come across this type of scenario? > > Thanks in advance > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.fetzer at Dkfz-Heidelberg.de Wed Feb 17 12:38:44 2016 From: a.fetzer at Dkfz-Heidelberg.de (Fetzer, Andreas) Date: Wed, 17 Feb 2016 18:38:44 +0100 Subject: [vtkusers] FW: QVTKWidget + Dock/Undocking + MAC OS In-Reply-To: References: Message-ID: Hi, VTK 6.2 and Qt 4.8.6 works fine. If we use Qt 5.x it doesn't work. We narrowed it down to the QVTKWidget's c'tor: If we uncomment the Qt::MSWindowsOwnDC flag it partially solves our problem. There are still cases where our Views do not react :-/ Cheers, Andreas Von: rakesh patil > Datum: Wednesday 17 February 2016 18:22 An: Andreas Fetzer > Cc: VTK Users > Betreff: Re: QVTKWidget + Dock/Undocking + MAC OS Hi, You mean to say, vtk 6.3 + Qt 4.8.6 works fine. ? There won't be any flickering hapenning on MAC. ? On Wednesday, February 17, 2016, Fetzer, Andreas > wrote: Hi, we are facing a similar problem on Mac OS X 10.9+ with VTK 6.2 and Qt 5.x. (Strangely with Qt 4.8.6 everything works fine) We write our own Plugins that add new GUI components to our Application. If we add a QVTKWidget to a plugin, all it's widgets do not react to mouse clicks anymore. This happens even if we just instantiate the QVTKWidget without adding it to the plugin. Currently we suspect that the QVTKWidget or VTKInteractors consume some Qt events or do not forward these events. But we do not have a solution yet. We would be glad about any hints. Best regards, Andreas Von: vtkusers >> on behalf of rakesh patil >> Datum: Tuesday 16 February 2016 17:33 An: VTK Users >> Betreff: Re: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS Hi, Since, I got no reply for this, I have prepared a small test case. It is a dock/undock example from Qt and I have just added QVTKWidget to it. Atleast the flickering should be disabled somehow. Can some experts help me? I am using Qt 5.5 and vtk 6.3. This happens only on MAC (tested on OS X Yosemite & OS X El Capitan). On Sun, Feb 7, 2016 at 8:17 PM, rakesh patil >> wrote: Hello, I am facing a very strange issue with Dock/Undocking when one of the docked widget is QVTKWidget. I have a centralWidget which contains four tabs. Each tab is an inherited from QWidget. Among these, one widget is QVTKWidget. The issue what I am facing is when I click on the bar and try to undock, the mouse events are lost. I release the mouse button and move the mouse, QVTKWidget keeps moving along with the mouse. I need to click once again on the tab and then it gets undocked fully. Some times while undocking or docking, I observed flickering effect on the renderwindow. It gives feeling like QDockWidget is passing some information/signal to its widgets, which QVTKWidget is not able to process, and other QWidgets are able to process. Has anyone come across this type of scenario? Thanks in advance From francesco81492 at gmail.com Wed Feb 17 15:27:43 2016 From: francesco81492 at gmail.com (Francesco R) Date: Wed, 17 Feb 2016 21:27:43 +0100 Subject: [vtkusers] android examples openGL ES 2.0 In-Reply-To: References: Message-ID: Dear vtk users and developers, I recently asked for suggestions on this problem on the ARM Mali Graphics community. You can find the post at https://community.arm.com/message/34034 Two issues have been found: 1. draw calls in VTK are using type=GL_UNSIGNED_INT. However, this type is supported only for GLES30, but not for GLES20. So, I fear that current vtk master is not compatible with GLES20. 2. it is suggest that too many eglMakeCurrent are being made. As concerns 1., I basically replaced all occurences of GL_UNSIGNED_INT with GL_UNSIGNED_SHORT in Rendering/OpenGL2. Of course this is probably not the correct approach, because the result is not as expected (I modified the examples to render only the sphere, but I can see less than a quarter of it), but at least now I can see some rendering on my screen. Do you have any suggestion on how to proceed now? Thanks On Tue, Jan 5, 2016 at 2:20 PM, Francesco R wrote: > Ok. I posted logcat and gltrace files, is there anything else that I can > do to help debug the issue? Thanks > > On Tue, Jan 5, 2016 at 1:57 PM, Ken Martin wrote: > >> The system I tested on is a Mali 628 MP6 GPU running 5.0.2 (support ES 20 >> and 3.0). The Mali 400 is old but its specs say that it supports OpenGL ES >> 2.0 so it should work. >> >> Thanks >> Ken >> >> On Tue, Jan 5, 2016 at 7:28 AM, Francesco R >> wrote: >> >>> Thanks Dr. Martin for you reply. I just recompiled the current master >>> with API 19 (the version of android installed on the device is 4.4) and I >>> can confirm that I have the same issues as in my first email. Do you think >>> it can be related to my particular GPU (ARM Mali 400 MP)? What GPU do you >>> have on your device? Thank you! >>> >>> On Mon, Jan 4, 2016 at 4:29 PM, Ken Martin >>> wrote: >>> >>>> I'm not sure what the issue is. I just checked and the Native app is >>>> working on my device. I just rebuilt and used API level 21 and >>>> OPENGL_ES_VERSION set to 2.0 >>>> >>>> - Ken >>>> >>>> On Sun, Dec 20, 2015 at 3:09 PM, Francesco R >>>> wrote: >>>> >>>>> >>>>> Dear vtk users and developers, >>>>> I am currently trying to run the two android examples with OpenGL ES >>>>> 2.0 backend available in vtk 7.0.0 rc1, on an ARM Mali 400 MP GPU. >>>>> Unfortunately, I am not able to run neither of them on the device. >>>>> >>>>> NativeVTK crashes at Rendering/OpenGL2/vtkShaderProgram.cxx, line 399 >>>>> with "Shader object was not initialized, cannot attach it." >>>>> See also http://pastebin.com/Wvew3gen for the full log. >>>>> >>>>> JavaVTK appears to interact correctly with the user (see >>>>> http://pastebin.com/w3Sdu7CC ), but only a blue background is shown. >>>>> The trace file obtained with the android device monitor is available at >>>>> http://filebin.ca/2QdKao08I3lb/trace1.gltrace >>>>> >>>>> Do you have any suggestion on what could be the issue? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>> >>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> >>>> >>>> >>>> -- >>>> Ken Martin PhD >>>> Chairman & CFO >>>> Kitware Inc. >>>> 28 Corporate Drive >>>> Clifton Park NY 12065 >>>> 518 371 3971 >>>> >>>> This communication, including all attachments, contains confidential >>>> and legally privileged information, and it is intended only for the use of >>>> the addressee. Access to this email by anyone else is unauthorized. If you >>>> are not the intended recipient, any disclosure, copying, distribution or >>>> any action taken in reliance on it is prohibited and may be unlawful. If >>>> you received this communication in error please notify us immediately and >>>> destroy the original message. Thank you. >>>> >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Feb 17 15:43:10 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 17 Feb 2016 15:43:10 -0500 Subject: [vtkusers] android examples openGL ES 2.0 In-Reply-To: References: Message-ID: Well the second issue (too many eglMakeCurrent) is a performance issue but should not cause crashes or incorrect results etc. At some point I plan to try cleaning some of that up to reduce latency etc. The first issue GL_UNSIGNED_INT is really your problem I suspect. Where it is being used would determine how to handle it. If you are creating a unsigned int texture map then the solution is probably to not create an unsigned int texture map. Typically other formats work better than unsigned int and unsigned int is often overkill for the data. If it is somewhere else then the answer could be different. The real fix would be for VTK to catch this and on the fly map the data to a supported format as best we can but I'm not sure how much effort we want to put into OpenGL ES 2.0, it is a pretty limited subset of OpenGL and most newer devices seem to have ES 3.0 or later. Thanks Ken On Wed, Feb 17, 2016 at 3:27 PM, Francesco R wrote: > Dear vtk users and developers, > I recently asked for suggestions on this problem on the ARM Mali Graphics > community. You can find the post at > https://community.arm.com/message/34034 > > Two issues have been found: > 1. draw calls in VTK are using type=GL_UNSIGNED_INT. However, this type is > supported only for GLES30, but not for GLES20. So, I fear that current vtk > master is not compatible with GLES20. > 2. it is suggest that too many eglMakeCurrent are being made. > > As concerns 1., I basically replaced all occurences of GL_UNSIGNED_INT > with GL_UNSIGNED_SHORT in Rendering/OpenGL2. Of course this is probably not > the correct approach, because the result is not as expected (I modified the > examples to render only the sphere, but I can see less than a quarter of > it), but at least now I can see some rendering on my screen. > > Do you have any suggestion on how to proceed now? Thanks > > On Tue, Jan 5, 2016 at 2:20 PM, Francesco R > wrote: > >> Ok. I posted logcat and gltrace files, is there anything else that I can >> do to help debug the issue? Thanks >> >> On Tue, Jan 5, 2016 at 1:57 PM, Ken Martin >> wrote: >> >>> The system I tested on is a Mali 628 MP6 GPU running 5.0.2 (support ES >>> 20 and 3.0). The Mali 400 is old but its specs say that it supports OpenGL >>> ES 2.0 so it should work. >>> >>> Thanks >>> Ken >>> >>> On Tue, Jan 5, 2016 at 7:28 AM, Francesco R >>> wrote: >>> >>>> Thanks Dr. Martin for you reply. I just recompiled the current master >>>> with API 19 (the version of android installed on the device is 4.4) and I >>>> can confirm that I have the same issues as in my first email. Do you think >>>> it can be related to my particular GPU (ARM Mali 400 MP)? What GPU do you >>>> have on your device? Thank you! >>>> >>>> On Mon, Jan 4, 2016 at 4:29 PM, Ken Martin >>>> wrote: >>>> >>>>> I'm not sure what the issue is. I just checked and the Native app is >>>>> working on my device. I just rebuilt and used API level 21 and >>>>> OPENGL_ES_VERSION set to 2.0 >>>>> >>>>> - Ken >>>>> >>>>> On Sun, Dec 20, 2015 at 3:09 PM, Francesco R >>>> > wrote: >>>>> >>>>>> >>>>>> Dear vtk users and developers, >>>>>> I am currently trying to run the two android examples with OpenGL ES >>>>>> 2.0 backend available in vtk 7.0.0 rc1, on an ARM Mali 400 MP GPU. >>>>>> Unfortunately, I am not able to run neither of them on the device. >>>>>> >>>>>> NativeVTK crashes at Rendering/OpenGL2/vtkShaderProgram.cxx, line 399 >>>>>> with "Shader object was not initialized, cannot attach it." >>>>>> See also http://pastebin.com/Wvew3gen for the full log. >>>>>> >>>>>> JavaVTK appears to interact correctly with the user (see >>>>>> http://pastebin.com/w3Sdu7CC ), but only a blue background is shown. >>>>>> The trace file obtained with the android device monitor is available at >>>>>> http://filebin.ca/2QdKao08I3lb/trace1.gltrace >>>>>> >>>>>> Do you have any suggestion on what could be the issue? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Powered by www.kitware.com >>>>>> >>>>>> Visit other Kitware open-source projects at >>>>>> http://www.kitware.com/opensource/opensource.html >>>>>> >>>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>>> >>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Ken Martin PhD >>>>> Chairman & CFO >>>>> Kitware Inc. >>>>> 28 Corporate Drive >>>>> Clifton Park NY 12065 >>>>> 518 371 3971 >>>>> >>>>> This communication, including all attachments, contains confidential >>>>> and legally privileged information, and it is intended only for the use of >>>>> the addressee. Access to this email by anyone else is unauthorized. If you >>>>> are not the intended recipient, any disclosure, copying, distribution or >>>>> any action taken in reliance on it is prohibited and may be unlawful. If >>>>> you received this communication in error please notify us immediately and >>>>> destroy the original message. Thank you. >>>>> >>>> >>>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> This communication, including all attachments, contains confidential and >>> legally privileged information, and it is intended only for the use of the >>> addressee. Access to this email by anyone else is unauthorized. If you are >>> not the intended recipient, any disclosure, copying, distribution or any >>> action taken in reliance on it is prohibited and may be unlawful. If you >>> received this communication in error please notify us immediately and >>> destroy the original message. Thank you. >>> >> >> > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prakeshofficial at gmail.com Wed Feb 17 19:15:26 2016 From: prakeshofficial at gmail.com (rakesh patil) Date: Thu, 18 Feb 2016 05:45:26 +0530 Subject: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS In-Reply-To: References: Message-ID: Hi, So apart from changing the versions, there is no other work around for this problem. ? Thanks On Wednesday, February 17, 2016, Fetzer, Andreas < a.fetzer at dkfz-heidelberg.de> wrote: > Hi, > > VTK 6.2 and Qt 4.8.6 works fine. > If we use Qt 5.x it doesn't work. > > We narrowed it down to the QVTKWidget's c'tor: > If we uncomment the Qt::MSWindowsOwnDC flag it partially solves our > problem. > There are still cases where our Views do not react :-/ > > Cheers, > Andreas > > Von: rakesh patil prakeshofficial at gmail.com >> > Datum: Wednesday 17 February 2016 18:22 > An: Andreas Fetzer a.fetzer at dkfz-heidelberg.de >> > Cc: VTK Users >> > Betreff: Re: QVTKWidget + Dock/Undocking + MAC OS > > Hi, > > You mean to say, vtk 6.3 + Qt 4.8.6 works fine. ? There won't be any > flickering hapenning on MAC. ? > > On Wednesday, February 17, 2016, Fetzer, Andreas < > a.fetzer at dkfz-heidelberg.de a.fetzer at dkfz-heidelberg.de >> wrote: > Hi, > > we are facing a similar problem on Mac OS X 10.9+ with VTK 6.2 and Qt 5.x. > (Strangely with Qt 4.8.6 everything works fine) > > We write our own Plugins that add new GUI components to our Application. > If we add a QVTKWidget to a plugin, all it's widgets do not react to mouse > clicks anymore. > This happens even if we just instantiate the QVTKWidget without adding it > to the plugin. > > Currently we suspect that the QVTKWidget or VTKInteractors consume some Qt > events > or do not forward these events. But we do not have a solution yet. > > We would be glad about any hints. > > Best regards, > Andreas > > Von: vtkusers > >> > on behalf of rakesh patil > > >> > Datum: Tuesday 16 February 2016 17:33 > An: VTK Users vtkusers at vtk.org >> > Betreff: Re: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS > > Hi, > > Since, I got no reply for this, I have prepared a small test case. It is a > dock/undock example from Qt and I have just added QVTKWidget to it. Atleast > the flickering should be disabled somehow. Can some experts help me? > > I am using Qt 5.5 and vtk 6.3. This happens only on MAC (tested on OS X > Yosemite & OS X El Capitan). > > On Sun, Feb 7, 2016 at 8:17 PM, rakesh patil >> wrote: > Hello, > > I am facing a very strange issue with Dock/Undocking when one of the > docked widget is QVTKWidget. I have a centralWidget which contains four > tabs. Each tab is an inherited from QWidget. Among these, one widget is > QVTKWidget. The issue what I am facing is when I click on the bar and try > to undock, the mouse events are lost. I release the mouse button and move > the mouse, QVTKWidget keeps moving along with the mouse. I need to click > once again on the tab and then it gets undocked fully. Some times while > undocking or docking, I observed flickering effect on the renderwindow. > > It gives feeling like QDockWidget is passing some information/signal to > its widgets, which QVTKWidget is not able to process, and other QWidgets > are able to process. Has anyone come across this type of scenario? > > Thanks in advance > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From atc1992vtk at gmail.com Wed Feb 17 20:25:30 2016 From: atc1992vtk at gmail.com (atc1992vtk) Date: Wed, 17 Feb 2016 18:25:30 -0700 (MST) Subject: [vtkusers] [Java] VTK volume rendering In-Reply-To: References: <1455479916601-5736567.post@n5.nabble.com> Message-ID: <1455758730790-5736620.post@n5.nabble.com> Well as I mention I am using OSX 10.9.5 Graphics : Intel Iris Pro 1536 MB but I am not sure how to check is Opengl2 or Opengl1 base The VTK version I am using is 6.3.0 So *vtkProjectedTetrahedraMapper* should be the right filter? Here are part of the script i used. The input image is *UnstructuredGrid* and I map the output to a Actor. But the result was really to *laggy* can't even rotate the object. ====================================== vtkProjectedTetrahedraMapper volumeMapper = new vtkProjectedTetrahedraMapper(); vtkVolume volume = new vtkVolume(); vtkVolumeProperty volumeProperty = new vtkVolumeProperty(); volumeProperty.IndependentComponentsOn(); volumeProperty.DisableGradientOpacityOn(); volumeProperty.SetInterpolationType(1); volumeProperty.SetShade(0); volumeProperty.SetAmbient(0.5d); volumeProperty.SetDiffuse(0.4d); volumeProperty.SetSpecular(0.4d); volumeMapper.SetInputData(image); volumeMapper.Update(); ====================================== At the meantime, I got another question. >From paraview, we can extract color maps into .json file. Is it possible to import that to my vtk project? What class should I be using to read them or by changing lookuptable? Need some lead on that too... thx -- View this message in context: http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567p5736620.html Sent from the VTK - Users mailing list archive at Nabble.com. From atc1992vtk at gmail.com Wed Feb 17 20:34:29 2016 From: atc1992vtk at gmail.com (atc1992vtk) Date: Wed, 17 Feb 2016 18:34:29 -0700 (MST) Subject: [vtkusers] [Java] VTK volume rendering In-Reply-To: References: <1455479916601-5736567.post@n5.nabble.com> Message-ID: <1455759269138-5736621.post@n5.nabble.com> >From what I know and experienced. Java with mac is really not favourable with VTK development. First, Java version after 1.6 (Which means 1.7+) they have remove some rendering component that VTK is using, such that it will cause to various error (e.g. NS Exception) Secondly, if u want to build a UI for VTK, swing is not a good choice as well. Since VTK panel is using AWT which will cause some random problems. Qt is more popular for VTK UI designing, however, Jambi Qt has compatibility issue with some Mac and the VTK Widget was not in the provided Jambi.jar. You will have to download the source, add the Widget and compile to wrap the whole thing to .jar again. Therefore, if you haven't start yet. I really don't prefer to use Java on Mac for VTK development. -- View this message in context: http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567p5736621.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Wed Feb 17 21:20:05 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 17 Feb 2016 21:20:05 -0500 Subject: [vtkusers] [Java] VTK volume rendering In-Reply-To: <1455758730790-5736620.post@n5.nabble.com> References: <1455479916601-5736567.post@n5.nabble.com> <1455758730790-5736620.post@n5.nabble.com> Message-ID: Hi there, On Wed, Feb 17, 2016 at 8:25 PM, atc1992vtk wrote: > > Well as I mention I am using OSX 10.9.5 > Graphics : Intel Iris Pro 1536 MB > but I am not sure how to check is Opengl2 or Opengl1 base The VTK version I am using is 6.3.0 > Since you are using VTK 6.3.0 and unless you change the VTK_BACKEND to OPENGL2 you are using OPENGL1 backend. Would it be possible for you to switch to VTK 7.0? or VTK master. Also, You are not using a GPU which will also affect the performance. > So *vtkProjectedTetrahedraMapper* should be the right filter? > > Here are part of the script i used. The input image is *UnstructuredGrid* > and I map the output to a Actor. But the result was really to *laggy* can't > even rotate the object. > ====================================== > vtkProjectedTetrahedraMapper volumeMapper = new > vtkProjectedTetrahedraMapper(); > vtkVolume volume = new vtkVolume(); > vtkVolumeProperty volumeProperty = new vtkVolumeProperty(); > volumeProperty.IndependentComponentsOn(); > volumeProperty.DisableGradientOpacityOn(); > volumeProperty.SetInterpolationType(1); > volumeProperty.SetShade(0); > volumeProperty.SetAmbient(0.5d); > volumeProperty.SetDiffuse(0.4d); > volumeProperty.SetSpecular(0.4d); > volumeMapper.SetInputData(image); > volumeMapper.Update(); > ====================================== > > At the meantime, I got another question. > From paraview, we can extract color maps into .json file. > Is it possible to import that to my vtk project? What class should I be > using to read them or by changing lookuptable? Need some lead on that > too... > thx > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Java-VTK-volume-rendering-tp5736567p5736620.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 LvRuijven at gmx.com Thu Feb 18 03:07:04 2016 From: LvRuijven at gmx.com (Leo van Ruijven) Date: Thu, 18 Feb 2016 09:07:04 +0100 Subject: [vtkusers] Mappers and vtkLookupTable (Allen Sanderson) Message-ID: An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 18 09:21:53 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 18 Feb 2016 07:21:53 -0700 (MST) Subject: [vtkusers] vtkImageReslice and cutting planes Message-ID: <1455805313616-5736627.post@n5.nabble.com> Hello everybody, So I want to implement an interface that would provide in a first part of my window my whole 3D dataset and in the second part only the cutting plane image of that data (a 2D slice of the dataset). I looked at the examples provided here (vtkImageSlice) and here (vtkImageReslice) . I managed to adapt it to my dataset to get this code: /std::string filename ="Data/ftlelog.vtk" ; vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(filename.c_str()); reader->Update(); vtkSmartPointer imageData = vtkSmartPointer::New(); imageData->ShallowCopy(reader->GetOutput()); vtkSmartPointer datasetImage = vtkSmartPointer::New(); datasetImage->ShallowCopy(reader->GetOutput()); vtkSmartPointer imageResliceMapper = vtkSmartPointer::New(); vtkSmartPointer imageSlice = vtkSmartPointer::New(); imageSlice->SetMapper(imageResliceMapper); vtkSmartPointer renderer = vtkSmartPointer::New(); renderer->AddViewProp(imageSlice); renderer->ResetCamera(); // Setup render window vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->SetSize(300, 300); renderWindow->AddRenderer(renderer); // Setup render window interactor vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); vtkSmartPointer style = vtkSmartPointer::New(); renderWindowInteractor->SetInteractorStyle(style);/ This compiles and works fine. Clicking and moving my mouse cursor updates the slicing and it works like a charm. In other words, my image is always located at the same place but I get different slices of the data displayed onto it. However, I would like to be able to slice according to normal and origin that I would manually input. I thought modifying the plane itself would work but apparently it doesn't. I was therefore thinking that I should try and set the normal and origin of the vtkImageSlice directly. But from the documentation I got that the slice can be set manualy thanks to vtkImageMapper3D (abstract of vtkImageResliceMapper). Thus, I tried to simply push my plane along one axis, to see what I would get. In that case, I see my image moving (being pushed along the axis) but I don't get to see any slices of the data. I am pretty sure there is something that I did not understand with the different classes involved here and their purpose. Get I can get some clarifications? Thanks in advance -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageReslice-and-cutting-planes-tp5736627.html Sent from the VTK - Users mailing list archive at Nabble.com. From f.nellmeldin at open-engineering.com Thu Feb 18 10:14:08 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Thu, 18 Feb 2016 16:14:08 +0100 Subject: [vtkusers] Flat interpolation under OpenGL2 backend Message-ID: Hello friends. In our application, we want to allow the user to alternate between a flat and a smooth shading of the colors in an actor. To do this, we have a option that allows the user to call setInterpolationToFlat() or setInterpolationToPhong() in the property of the vtkactor. The problem is that the call to set flat is not working, there is no change and the actor is always rendered smooth. I've tried with VTK 6.3.0 and VTK 7.0.0 under OpenGL2 backend. In VTK 5.10 (using the old opengl), this works as expected. And please note that in the three cases, the code is exactly the same. Well, except the connection between the ugrid and the geometry filter that I have the usual if: #if VTK_MAJOR_VERSION <= 5 geometryFilter->SetInputConnection(m_model->GetProducerPort()); #else geometryFilter->SetInputData(m_model); #endif Therefore, is the support of flat interpolation dropped, or I have to add something to make it work under OpenGL2 backend? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 18 10:45:04 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 18 Feb 2016 08:45:04 -0700 (MST) Subject: [vtkusers] Relative Rotation with VTK Transform In-Reply-To: References: <1455477754599-5736566.post@n5.nabble.com> <1455634465346-5736584.post@n5.nabble.com> <1455638144238-5736588.post@n5.nabble.com> <1455668987456-5736602.post@n5.nabble.com> <1455699530263-5736607.post@n5.nabble.com> Message-ID: <1455810304856-5736629.post@n5.nabble.com> Yes the "rotation" give a relative change from the previous position. Well I tried what you suggested, but it does not seem to work better. Actually the bunny does not rotate at all in this case. Here is the code I used: /t->SetMatrix(actor->GetMatrix()); tInverse->SetMatrix(actor->GetMatrix()); tL->Inverse(); tRotationToApply->Identity(); tRotationToApply->RotateWXYZ(angle*180.0/3.14,axis[0],axis[1],axis[2]); t->PostMultiply(); t->Concatenate(tRotationToApply) ; t->Contatenate(tL); actor->SetUserMatrix(t->GetMatrix());/ Also, changing the PostMultiply() to PreMultiply did not change the result at all. The bunny gets back to its original position (unless I make a really quick tablet tilt, you don't even see it move). -- View this message in context: http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736629.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Feb 18 10:59:28 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 18 Feb 2016 08:59:28 -0700 Subject: [vtkusers] vtkImageReslice and cutting planes In-Reply-To: <1455805313616-5736627.post@n5.nabble.com> References: <1455805313616-5736627.post@n5.nabble.com> Message-ID: There is a wiki page that describes these classes: http://www.vtk.org/Wiki/VTK/Image_Rendering_Classes The SetSlicePlane() method should work if you want to manually set the position of the slice in 3D (note that the slice is in world coords). And of course the SetSlicePlane() method is mutually exclusive with the settings SliceAtFocalPointOn() and SliceFacesCameraOn(). You can control the slice plane manually, or the slice plane can be controlled by the camera, but not both! - David On Thu, Feb 18, 2016 at 7:21 AM, Lonni Besan?on wrote: > Hello everybody, > > So I want to implement an interface that would provide in a first part of > my > window my whole 3D dataset and in the second part only the cutting plane > image of that data (a 2D slice of the dataset). > > I looked at the examples provided here (vtkImageSlice) > and > here (vtkImageReslice) > . > I managed to adapt it to my dataset to get this code: > > /std::string filename ="Data/ftlelog.vtk" ; > vtkSmartPointer reader = > vtkSmartPointer::New(); > reader->SetFileName(filename.c_str()); > reader->Update(); > vtkSmartPointer imageData = > vtkSmartPointer::New(); > imageData->ShallowCopy(reader->GetOutput()); > vtkSmartPointer datasetImage = > vtkSmartPointer::New(); > datasetImage->ShallowCopy(reader->GetOutput()); > vtkSmartPointer imageResliceMapper = > vtkSmartPointer::New(); > > vtkSmartPointer imageSlice = > vtkSmartPointer::New(); > imageSlice->SetMapper(imageResliceMapper); > > vtkSmartPointer renderer = > vtkSmartPointer::New(); > renderer->AddViewProp(imageSlice); > renderer->ResetCamera(); > > // Setup render window > vtkSmartPointer renderWindow = > vtkSmartPointer::New(); > renderWindow->SetSize(300, 300); > renderWindow->AddRenderer(renderer); > > // Setup render window interactor > vtkSmartPointer renderWindowInteractor = > vtkSmartPointer::New(); > > vtkSmartPointer style = > vtkSmartPointer::New(); > > renderWindowInteractor->SetInteractorStyle(style);/ > > This compiles and works fine. Clicking and moving my mouse cursor updates > the slicing and it works like a charm. In other words, my image is always > located at the same place but I get different slices of the data displayed > onto it. > However, I would like to be able to slice according to normal and origin > that I would manually input. > I thought modifying the plane itself would work but apparently it doesn't. > I was therefore thinking that I should try and set the normal and origin of > the vtkImageSlice directly. But from the documentation I got that the slice > can be set manualy thanks to vtkImageMapper3D (abstract of > vtkImageResliceMapper). > Thus, I tried to simply push my plane along one axis, to see what I would > get. In that case, I see my image moving (being pushed along the axis) but > I > don't get to see any slices of the data. > > I am pretty sure there is something that I did not understand with the > different classes involved here and their purpose. Get I can get some > clarifications? > > Thanks in advance > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Thu Feb 18 10:29:58 2016 From: tjlp at netease.com (Liu_tj) Date: Thu, 18 Feb 2016 23:29:58 +0800 (CST) Subject: [vtkusers] Get information of DICOM Series before really loading the images into memory Message-ID: <73e5b086.6.152f50084f7.Coremail.tjlp@netease.com> Hi, I try the vtkDICOMImageReader to load DICOM series. It is possible to get the Dicom image information before the DICOM iamges are loaded into memory by vtkDICOMImageReader::update(), such as patient name, total slice number, etc? I just want to list these information to user, and then let the user to decide whether he want to load it. Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Feb 18 11:05:40 2016 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 18 Feb 2016 11:05:40 -0500 Subject: [vtkusers] Flat interpolation under OpenGL2 backend In-Reply-To: References: Message-ID: Hello Fernando, Making sure that I understand the issue. Essentially you have defined scalars/colors on the points of a triangle. With phong shading the colors interpolate across the triangle. With flat shading on the old backend, the system takes the color of the first point and uses that for the entire triangle. On the new backend the colors are still interpolated across the triangle. Is that the issue you see? If so, then the issue is that on the new backend I am interpreting shading to only mean lighting and normal calculations while in the old backend it seems to include vertex color properties (but not other properties such as tcoords, hmm wonder what happens with flat shading and texture based coloring) In modern OpenGL (version 3.2 ) you can specify flat versus smooth interpolation by attribute. So normals could be flat while colors are smooth. Without requiring OpenGL 3.2 we would need to rebuild the VBO each time you switch between flat and smooth, basically treating flat shading as if you had cell colors instead of point colors. If backward compatibility was not an issue :-) I would suggest moving to require OpenGL 3.2 and then modifying vtkProperty so that people can independently specify if they want normals/colors/etc to be flat/smooth/perspective. One stopgap, you could use vtkPointDataToCellData to essentially accomplish what you want in either back end. Thanks Ken On Thu, Feb 18, 2016 at 10:14 AM, Fernando Nellmeldin < f.nellmeldin at open-engineering.com> wrote: > Hello friends. > > In our application, we want to allow the user to alternate between a flat > and a smooth shading of the colors in an actor. To do this, we have a > option that allows the user to call setInterpolationToFlat() or > setInterpolationToPhong() in the property of the vtkactor. > > The problem is that the call to set flat is not working, there is no > change and the actor is always rendered smooth. > > I've tried with VTK 6.3.0 and VTK 7.0.0 under OpenGL2 backend. In VTK 5.10 > (using the old opengl), this works as expected. > > And please note that in the three cases, the code is exactly the same. > Well, except the connection between the ugrid and the geometry filter that > I have the usual if: > #if VTK_MAJOR_VERSION <= 5 > geometryFilter->SetInputConnection(m_model->GetProducerPort()); > #else > geometryFilter->SetInputData(m_model); > #endif > > Therefore, is the support of flat interpolation dropped, or I have to add > something to make it work under OpenGL2 backend? > > Thank you! > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Feb 18 11:14:43 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 18 Feb 2016 09:14:43 -0700 Subject: [vtkusers] Get information of DICOM Series before really loading the images into memory In-Reply-To: <73e5b086.6.152f50084f7.Coremail.tjlp@netease.com> References: <73e5b086.6.152f50084f7.Coremail.tjlp@netease.com> Message-ID: Hi Liu Peng, My vtk-dicom package has a VTK dicom reader that can read all of the meta data. It also has a class called vtkDICOMParser that only reads the meta data (not the image), and a class called vtkDICOMDirectory that will scan the filesystem for DICOM files and provide a summary of all of the DICOM series on the filesystem. The instructions for building vtk-dicom are in the PDF at the bottom of this page: https://github.com/dgobbi/vtk-dicom If you are using VTK 7 and if you built VTK yourself, then you can add all of these classes to VTK by simply setting "Module_vtkDICOM:BOOL=ON" in your VTK cmake cache and then rebuilding VTK. - David On Thu, Feb 18, 2016 at 8:29 AM, Liu_tj wrote: > Hi, > > I try the vtkDICOMImageReader to load DICOM series. It is possible to get > the Dicom image information before the DICOM iamges are loaded into memory > by vtkDICOMImageReader::update(), such as patient name, total slice number, > etc? I just want to list these information to user, and then let the user > to decide whether he want to load it. > > Thanks > Liu Peng > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 18 11:21:10 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 18 Feb 2016 09:21:10 -0700 (MST) Subject: [vtkusers] vtkImageReslice and cutting planes In-Reply-To: References: <1455805313616-5736627.post@n5.nabble.com> Message-ID: <1455812470448-5736634.post@n5.nabble.com> Ok I understand, but would there be a way for me to have in one part of my window in which I get the slice or a copy of the slice's data to face me and in the other part of the window the real 3D positioning on the dataset? -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageReslice-and-cutting-planes-tp5736627p5736634.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Feb 18 11:33:53 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 18 Feb 2016 09:33:53 -0700 Subject: [vtkusers] vtkImageReslice and cutting planes In-Reply-To: <1455812470448-5736634.post@n5.nabble.com> References: <1455805313616-5736627.post@n5.nabble.com> <1455812470448-5736634.post@n5.nabble.com> Message-ID: On Thu, Feb 18, 2016 at 9:21 AM, Lonni Besan?on wrote: > Ok I understand, but would there be a way for me to have in one part of my > window in which I get the slice or a copy of the slice's data to face me > and > in the other part of the window the real 3D positioning on the dataset? > You mean by having two renderers? You would need a different vtkImageSliceMapper for each renderer. You could try sharing the same plane between the mappers, e.g. sliceMapper1->SetSlicePlane(sliceMapper2->GetSlicePlane()) but you would still need to decide what will control the plane. Also, if you use two renderers with the same vtkRenderWindow, it is impossible to set different interaction styles for each renderer... this is one of the many reasons that I have totally given up on using vtkRenderWindowInteractor in my own VTK apps. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Feb 18 11:43:53 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 18 Feb 2016 09:43:53 -0700 Subject: [vtkusers] Mappers and vtkLookupTable In-Reply-To: References: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> <01679D94-FE27-4BCF-86C7-CF42CC6B9D41@sci.utah.edu> Message-ID: On Thu, Feb 18, 2016 at 9:32 AM, Allen Sanderson wrote: > > Hello, > > A followup question with the vtkTubeFilter and vtkRibbonFilter. If the > input vtkPolyData contains objects other than lines the filter strips those > objects out only return the tubes or ribbons. Is there a way to prevent > this from happening? Or does one need to handle that themselves? > I think that it would be a great feature if vtkTubeFilter had an option to pass polygons directly to the output. Unfortunately, right now there isn't any way to do this without changing the vtkTubeFilter source code. Instead, you can use vtkAppendPolyData to append the original data onto the output you get from vtkTubeFilter. Of course, this means that your tubes will have the lines put back inside of them, but that should be harmless. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at sci.utah.edu Thu Feb 18 11:32:44 2016 From: allen at sci.utah.edu (Allen Sanderson) Date: Thu, 18 Feb 2016 09:32:44 -0700 Subject: [vtkusers] Mappers and vtkLookupTable In-Reply-To: References: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> <01679D94-FE27-4BCF-86C7-CF42CC6B9D41@sci.utah.edu> Message-ID: Cheers, Allen Allen Sanderson SCI Institute University of Utah www.sci.utah.edu Hello, A followup question with the vtkTubeFilter and vtkRibbonFilter. If the input vtkPolyData contains objects other than lines the filter strips those objects out only return the tubes or ribbons. Is there a way to prevent this from happening? Or does one need to handle that themselves? > > >> On Feb 16, 2016, at 3:44 PM, Cory Quammen > wrote: >> >> Allen, >> >> I don't know of a way to set the line width based on a variable in >> stock VTK. Maybe you could do something with a custom geometry shader, >> which you can set in the OpenGL2 backend version of >> vtkOpenGLPolyDataMapper via SetGeometryShaderCode(const char*). >> >> Another approach could be using vtkTubeFilter to automatically set the >> radius of the cylinders. The input to this filter should be a set of >> line segments with point data with your variable for each line defined >> at each endpoint of the line. >> >> HTH, >> Cory >> >> On Tue, Feb 16, 2016 at 5:32 PM, Allen Sanderson > wrote: >>> Thanks David, we thought that was the case. >>> >>> Let me ask a somewhat parallel question. When rendering lines one typically >>> sets a line width and sends the geometry downstream. The lines will be >>> colored base on a variable but the line width is constant. At the same time >>> when doing point glyphs we set the color and size based on a variable. If we >>> wanted to vary the line width using a variable is our only choice to use a >>> cylinder? >>> >>> Cheers, >>> >>> >>> Allen >>> >>> >>> >>> Allen Sanderson >>> >>> SCI Institute >>> >>> University of Utah >>> >>> www.sci.utah.edu >>> >>> >>> >>> >>> On Feb 16, 2016, at 12:20 PM, David Gobbi wrote: >>> >>> Hi Allen, >>> >>> You are correct, vtkLookupTable does not provide a way of doing this. >>> >>> I'm not sure what work-arounds there are for geometry, but for images >>> you can map the RGB and A separately, and then combine them into >>> RGBA with vtkImageAppendComponents. >>> >>> - David >>> >>> >>> On Tue, Feb 16, 2016 at 11:48 AM, Allen Sanderson >>> wrote: >>>> >>>> Hello, >>>> >>>> We are trying to render geometry using a lookup table for the RGB value >>>> using one scalar variable, but we want to use a secondary scalar variable >>>> for determining the opacity. Something like the following: >>>> >>>> RGB -> variable one >>>> A -> variable two >>>> >>>> In looking through the VTK 6 documentation on mappers we have not found >>>> anything that leads us to believe this functionality is possible. But we >>>> have done an exhaustive search. >>>> >>>> If it is possible we would greatly appreciate pointers. Thanks. >>>> >>>> >>>> >>>> Cheers, >>>> >>>> Allen >>>> >>>> >>>> Allen Sanderson >>>> SCI Institute >>>> University of Utah >>>> www.sci.utah.edu >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> 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. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 18 12:11:50 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 18 Feb 2016 10:11:50 -0700 (MST) Subject: [vtkusers] vtkImageReslice and cutting planes In-Reply-To: References: <1455805313616-5736627.post@n5.nabble.com> <1455812470448-5736634.post@n5.nabble.com> Message-ID: <1455815510932-5736638.post@n5.nabble.com> So it's actually impossible to manually control my cutting plane on the one hand and present at the same time a view in which the slice is facing me? -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageReslice-and-cutting-planes-tp5736627p5736638.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Feb 18 12:15:01 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 18 Feb 2016 10:15:01 -0700 Subject: [vtkusers] vtkImageReslice and cutting planes In-Reply-To: <1455815510932-5736638.post@n5.nabble.com> References: <1455805313616-5736627.post@n5.nabble.com> <1455812470448-5736634.post@n5.nabble.com> <1455815510932-5736638.post@n5.nabble.com> Message-ID: On Thu, Feb 18, 2016 at 10:11 AM, Lonni Besan?on wrote: > So it's actually impossible to manually control my cutting plane on the one > hand and present at the same time a view in which the slice is facing me? > Where did I say that it was impossible? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 18 12:18:13 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 18 Feb 2016 10:18:13 -0700 (MST) Subject: [vtkusers] vtkImageReslice and cutting planes In-Reply-To: References: <1455805313616-5736627.post@n5.nabble.com> <1455812470448-5736634.post@n5.nabble.com> <1455815510932-5736638.post@n5.nabble.com> Message-ID: <1455815893691-5736640.post@n5.nabble.com> Sorry I thought that was what you actually meant by " but you would still need to decide what will control the plane." -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageReslice-and-cutting-planes-tp5736627p5736640.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Feb 18 12:23:08 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 18 Feb 2016 10:23:08 -0700 Subject: [vtkusers] vtkImageReslice and cutting planes In-Reply-To: <1455815893691-5736640.post@n5.nabble.com> References: <1455805313616-5736627.post@n5.nabble.com> <1455812470448-5736634.post@n5.nabble.com> <1455815510932-5736638.post@n5.nabble.com> <1455815893691-5736640.post@n5.nabble.com> Message-ID: On Thu, Feb 18, 2016 at 10:18 AM, Lonni Besan?on wrote: > Sorry I thought that was what you actually meant by " but you would still > need to decide what will control the plane." > What I meant is that you can use the camera in the 2D view to control the slice plane for both views. Or if you need more flexibility, you can write your own code for controlling the plane (and you can write your own code for controlling the camera). There are lots of ways to make it work. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at sci.utah.edu Thu Feb 18 13:46:26 2016 From: allen at sci.utah.edu (Allen Sanderson) Date: Thu, 18 Feb 2016 11:46:26 -0700 Subject: [vtkusers] Mappers and vtkLookupTable In-Reply-To: References: <5BFC8123-259C-4632-A74B-2BA3CC1CF18F@sci.utah.edu> <01679D94-FE27-4BCF-86C7-CF42CC6B9D41@sci.utah.edu> Message-ID: <964DE12A-5CED-493C-8AE2-1220EC806684@sci.utah.edu> Thanks David, I did an append then stripped out the lines. They are not seen with tubes but they are seen with ribbons. Cheers, Allen Allen Sanderson SCI Institute University of Utah www.sci.utah.edu > On Feb 18, 2016, at 9:43 AM, David Gobbi wrote: > > On Thu, Feb 18, 2016 at 9:32 AM, Allen Sanderson > wrote: > > Hello, > > A followup question with the vtkTubeFilter and vtkRibbonFilter. If the input vtkPolyData contains objects other than lines the filter strips those objects out only return the tubes or ribbons. Is there a way to prevent this from happening? Or does one need to handle that themselves? > > I think that it would be a great feature if vtkTubeFilter had an option to pass polygons directly to the output. Unfortunately, right now there isn't any way to do this without changing the vtkTubeFilter source code. > > Instead, you can use vtkAppendPolyData to append the original data onto the output you get from vtkTubeFilter. Of course, this means that your tubes will have the lines put back inside of them, but that should be harmless. > > - David > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From onlyjus at gmail.com Thu Feb 18 22:08:14 2016 From: onlyjus at gmail.com (Justin Weber) Date: Thu, 18 Feb 2016 22:08:14 -0500 Subject: [vtkusers] slice structured grid with polydata In-Reply-To: References: Message-ID: I would like to generate a "cutcell" mesh using vtk by slicing a structured grid with polydata loaded from a STL file. The resulting mesh would be an unstructured grid. Are there any tools in vtk to accomplish this? I can create the structured grid and polydata successfully. Now I just need an algorithm to slice the structured mesh with the polydata surface. In my searching I could not find anything. However, I could accomplish this by ray casting to find the intersections between the structured grid and the polydata. Then using those points to create the unstructured grid. See attached 2d sketch. Thanks! Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_2016-02-18-21-45-55-1.png Type: image/png Size: 120267 bytes Desc: not available URL: From sean at rogue-research.com Thu Feb 18 22:36:47 2016 From: sean at rogue-research.com (Sean McBride) Date: Thu, 18 Feb 2016 22:36:47 -0500 Subject: [vtkusers] memory allocation fail for MarchingCubes In-Reply-To: <7479a28c.16.152e8c43281.Coremail.tjlp@netease.com> References: <7479a28c.16.152e8c43281.Coremail.tjlp@netease.com> Message-ID: <20160219033647.1367009075@mail.rogue-research.com> On Tue, 16 Feb 2016 14:28:38 +0800, Liu_tj said: >Hi, > >I am a newbie of VTK. Now I need to build 3d model which can be saved as >STL file from DICOM files. I google it and find some guys mentions that >MarchingCubes. So I try to load a DICOM series(515K one file, totally >676 files, around 340M) with the sample code at http://www.vtk.org/Wiki/ >VTK/Examples/Cxx/Modelling/MarchingCubes. Even I set the isoValue of >vtkMarchingCubes to 1, when the application memory increase to around >1.07G, then get a memory bad_alloc exception. > >What happen with it? What should I fix this problem? What OS are you using? Are you building as a 64 bit process/app or 32 bit? You need the former for that size data. 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 drescherjm at gmail.com Thu Feb 18 22:42:50 2016 From: drescherjm at gmail.com (John Drescher) Date: Thu, 18 Feb 2016 22:42:50 -0500 Subject: [vtkusers] memory allocation fail for MarchingCubes In-Reply-To: <7479a28c.16.152e8c43281.Coremail.tjlp@netease.com> References: <7479a28c.16.152e8c43281.Coremail.tjlp@netease.com> Message-ID: > I am a newbie of VTK. Now I need to build 3d model which can be saved as STL > file from DICOM files. I google it and find some guys mentions that > MarchingCubes. So I try to load a DICOM series(515K one file, totally 676 > files, around 340M) with the sample code at > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Modelling/MarchingCubes. Even I set > the isoValue of vtkMarchingCubes to 1, when the application memory increase > to around 1.07G, then get a memory bad_alloc exception. > > What happen with it? What should I fix this problem? > Switch to using 64 bit vtk. John From cory.quammen at kitware.com Thu Feb 18 22:58:16 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 18 Feb 2016 22:58:16 -0500 Subject: [vtkusers] slice structured grid with polydata In-Reply-To: References: Message-ID: Justin, There is nothing canned in VTK to do this, but with some work you should be able to get there using an implicit function created from your STL file. At a high level, what you would do is create an instance of vtkImplicitPolyDataDistance. Set its input to the poly data from the STL file. Then, create a new point data array in your structured grid that stores the value from the implicit poly data distance filter. Negative values will be inside the poly data, positive values outside, and 0 at the surface. Finally, use vtkClipDataSet to clip the structured grid a function value 0. This should give you back an unstructured grid in approximately the shape of your input STL. It won't be exact because of the interpolation used by vtkClipDataSet, but it should be close. Hope that helps. Cory On Thu, Feb 18, 2016 at 10:08 PM, Justin Weber wrote: > I would like to generate a "cutcell" mesh using vtk by slicing a > structured grid with polydata loaded from a STL file. The resulting mesh > would be an unstructured grid. > > Are there any tools in vtk to accomplish this? > > I can create the structured grid and polydata successfully. Now I just > need an algorithm to slice the structured mesh with the polydata surface. > > In my searching I could not find anything. However, I could accomplish > this by ray casting to find the intersections between the structured grid > and the polydata. Then using those points to create the unstructured grid. > > See attached 2d sketch. > > Thanks! > Justin > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 tjlp at netease.com Fri Feb 19 00:00:28 2016 From: tjlp at netease.com (Liu_tj) Date: Fri, 19 Feb 2016 13:00:28 +0800 (CST) Subject: [vtkusers] memory allocation fail for MarchingCubes In-Reply-To: <20160219033647.1367009075@mail.rogue-research.com> References: <7479a28c.16.152e8c43281.Coremail.tjlp@netease.com> <20160219033647.1367009075@mail.rogue-research.com> Message-ID: <658cfcc.2.152f7e68e7c.Coremail.tjlp@netease.com> Oh, I just try on 32bit build. Thanks, I will try to 64bit build. ?2016-02-19?"Sean McBride" ??? -----????----- ???:"Sean McBride" ????:2016?02?19? ??? ???:"Liu_tj" ;"vtkusers" ??:Re: [vtkusers] memory allocation fail for MarchingCubes On Tue, 16 Feb 2016 14:28:38 +0800, Liu_tj said: >Hi, > >I am a newbie of VTK. Now I need to build 3d model which can be saved as >STL file from DICOM files. I google it and find some guys mentions that >MarchingCubes. So I try to load a DICOM series(515K one file, totally >676 files, around 340M) with the sample code at http://www.vtk.org/Wiki/ >VTK/Examples/Cxx/Modelling/MarchingCubes. Even I set the isoValue of >vtkMarchingCubes to 1, when the application memory increase to around >1.07G, then get a memory bad_alloc exception. > >What happen with it? What should I fix this problem? What OS are you using? Are you building as a 64 bit process/app or 32 bit? You need the former for that size data. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Feb 19 01:54:31 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 19 Feb 2016 07:54:31 +0100 Subject: [vtkusers] Vtk Python Widgets In-Reply-To: References: Message-ID: 2016-02-15 18:44 GMT+01:00 Elvis Stansvik : > Den 15 feb 2016 4:30 em skrev "Aude" : > > > > Hello, > > > > I?m trying to use vtk with Python 27. I?ve installed vtk 6.2 with pip. > > Wait, is VTK available on PyPI? (!). I had been looking for that but > couldn't find it. What's the name of the package? > Aude, I'm still interested in which pip package you installed. I am in no need of TkWidgets, so would be interested in using this package. Elvis > Elvis > > > When I execute OrthogonalPlanesWithTkPhoto.py example, I?ve an error : > > Traceback (most recent call last): > > File "C:\Users\chenet- > > ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in > > > > S = SampleViewer() > > File "C:\Users\chenet- > > ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in > > __init__ > > tphoto = self.tphoto = vtkTkPhotoImage () > > File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line > 20, > > in __init__ > > vtkLoadPythonTkWidgets ( self.tk ) > > File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", > > line 81, in vtkLoadPythonTkWidgets > > interp.call('load', filename, pkgname) > > _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets- > > 6.2.dll": this library or a dependent library could not be found in > > library path > > > > I?ve made a research on my computer and I can?t find > > vtkRenderingPythonTkWidgets. > > Can someone help me to use this example? > > > > Aude > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > > > 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 tjlp at netease.com Fri Feb 19 02:16:17 2016 From: tjlp at netease.com (Liu_tj) Date: Fri, 19 Feb 2016 15:16:17 +0800 (CST) Subject: [vtkusers] cannot open file 'vtkalglib.lib' Message-ID: <4f65f829.5.152f862e964.Coremail.tjlp@netease.com> I just try the example ReadDICOMSeries with visual studio 2008. At first I build the 32bit VTK and use CMake GUI to generate an 32bit solution for this example. The solution can build and work. After that I build 64bit VTK and use CMake GUI to generate an x64 solution. Build the solution and get the link error: 1>Compiling... 1>ReadDICOMSeries.cxx 1>Linking... 1>LINK : fatal error LNK1104: cannot open file 'vtkalglib.lib' What wrong with it? I already add the x64 VTK build directory(VTK_x64_Build) and the library path (VTK_x64_Build/bin/Release) to the PATH environment variable. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From wulihouxiaoshuai at 163.com Fri Feb 19 05:34:15 2016 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Fri, 19 Feb 2016 03:34:15 -0700 (MST) Subject: [vtkusers] question about run vtkWeb apps on the server Message-ID: <1455878055014-5736650.post@n5.nabble.com> Hello everyone, I want to run my vtkWeb applications on my server(Dell R720 with an NVIDIA Telsa k20m card). According to the vtkWeb deployment guides, I should install kde to make sure the server have a graphics environment. But when I install the nvidia driver, I cannot logged into the GUI desktop. And as I result, I failed to build the VTK because of the VTK_USE_X options. Anyone's advice is appreciated! Many thanks! Best Wishes! -- View this message in context: http://vtk.1045678.n5.nabble.com/question-about-run-vtkWeb-apps-on-the-server-tp5736650.html Sent from the VTK - Users mailing list archive at Nabble.com. From sean at rogue-research.com Fri Feb 19 09:08:38 2016 From: sean at rogue-research.com (Sean McBride) Date: Fri, 19 Feb 2016 09:08:38 -0500 Subject: [vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries In-Reply-To: References: Message-ID: <20160219140838.941421594@mail.rogue-research.com> On Sat, 13 Feb 2016 13:55:30 -0600, Donny Zimmerman said: >Sorry, I figured it out myself. Here are my new AUTOINIT lines: > >#define vtkRenderingCore_AUTOINIT >3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2) >#define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL2) Donny, In fact, you can make it a little nicer like: #include "vtkAutoInit.h" #include "vtkRenderingOpenGLConfigure.h" VTK_MODULE_INIT(vtkInteractionStyle) VTK_MODULE_INIT(vtkRenderingFreeType) #ifdef VTK_OPENGL2 VTK_MODULE_INIT(vtkRenderingOpenGL2) #else VTK_MODULE_INIT(vtkRenderingOpenGL) #endif 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 sean at rogue-research.com Fri Feb 19 09:10:52 2016 From: sean at rogue-research.com (Sean McBride) Date: Fri, 19 Feb 2016 09:10:52 -0500 Subject: [vtkusers] ANN: VTK Wiki Examples available as a Remote Module In-Reply-To: References: Message-ID: <20160219141052.1076499453@mail.rogue-research.com> On Mon, 15 Feb 2016 11:05:14 -0500, Bill Lorensen said: >The VTK Wiki Examples are now available as a VTK Remote Module. Is this something that dashboard maintainers can/should turn on? Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From bill.lorensen at gmail.com Fri Feb 19 09:15:58 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Fri, 19 Feb 2016 09:15:58 -0500 Subject: [vtkusers] ANN: VTK Wiki Examples available as a Remote Module In-Reply-To: <20160219141052.1076499453@mail.rogue-research.com> References: <20160219141052.1076499453@mail.rogue-research.com> Message-ID: I am submitting a dashboard daily. Still tweaking the process. On Feb 19, 2016 9:10 AM, "Sean McBride" wrote: > On Mon, 15 Feb 2016 11:05:14 -0500, Bill Lorensen said: > > >The VTK Wiki Examples are now available as a VTK Remote Module. > > Is this something that dashboard maintainers can/should turn on? > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Fri Feb 19 09:18:12 2016 From: sean at rogue-research.com (Sean McBride) Date: Fri, 19 Feb 2016 09:18:12 -0500 Subject: [vtkusers] ANN: VTK Wiki Examples available as a Remote Module In-Reply-To: References: <20160219141052.1076499453@mail.rogue-research.com> Message-ID: <20160219141812.1519481552@mail.rogue-research.com> On Fri, 19 Feb 2016 09:15:58 -0500, Bill Lorensen said: >I am submitting a dashboard daily. Still tweaking the process. Once you've got everything sorted, ping me and I'll enable it on some of my dashboards too. 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 zmanvortex at gmail.com Fri Feb 19 09:21:03 2016 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Fri, 19 Feb 2016 08:21:03 -0600 Subject: [vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries In-Reply-To: <20160219140838.941421594@mail.rogue-research.com> References: <20160219140838.941421594@mail.rogue-research.com> Message-ID: <4C3E3CD1-2A94-4F4C-8939-405D3D7C4482@gmail.com> Thank You Sean!! Good info. I never really have grasped the internals of why this is needed, I just know it solves the issue. Sent from my iPhone > On Feb 19, 2016, at 8:08 AM, Sean McBride wrote: > > On Sat, 13 Feb 2016 13:55:30 -0600, Donny Zimmerman said: > >> Sorry, I figured it out myself. Here are my new AUTOINIT lines: >> >> #define vtkRenderingCore_AUTOINIT >> 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2) >> #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL2) > > Donny, > > In fact, you can make it a little nicer like: > > #include "vtkAutoInit.h" > #include "vtkRenderingOpenGLConfigure.h" > VTK_MODULE_INIT(vtkInteractionStyle) > VTK_MODULE_INIT(vtkRenderingFreeType) > #ifdef VTK_OPENGL2 > VTK_MODULE_INIT(vtkRenderingOpenGL2) > #else > VTK_MODULE_INIT(vtkRenderingOpenGL) > #endif > > 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 shawn.waldon at kitware.com Fri Feb 19 09:30:34 2016 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Fri, 19 Feb 2016 09:30:34 -0500 Subject: [vtkusers] ANN: VTK Wiki Examples available as a Remote Module In-Reply-To: <20160219141812.1519481552@mail.rogue-research.com> References: <20160219141052.1076499453@mail.rogue-research.com> <20160219141812.1519481552@mail.rogue-research.com> Message-ID: On Fri, Feb 19, 2016 at 9:18 AM, Sean McBride wrote: > On Fri, 19 Feb 2016 09:15:58 -0500, Bill Lorensen said: > > >I am submitting a dashboard daily. Still tweaking the process. > > Once you've got everything sorted, ping me and I'll enable it on some of > my dashboards too. > We may want to enable this on some of the buildbot dashboards too. So ping me as well. Shawn > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Fri Feb 19 11:02:51 2016 From: tjlp at netease.com (Liu_tj) Date: Sat, 20 Feb 2016 00:02:51 +0800 (CST) Subject: [vtkusers] what issue of my dicom series Message-ID: <289ed9df.2a.152fa44fda5.Coremail.tjlp@netease.com> I try to use vtkDICOMImageReader to load a dicom series, when the vtkDICOMImageReader::Update() is called, the application is terminated. All the fail dicom series have the same character: the first dicom file is more than 1M, the other dicom files are the same size about 200k. In all the success dicom series, all the dicom file has the same size. Can anybody tell me what problem with the DICOM series? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Feb 19 11:40:41 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 19 Feb 2016 09:40:41 -0700 Subject: [vtkusers] what issue of my dicom series In-Reply-To: <289ed9df.2a.152fa44fda5.Coremail.tjlp@netease.com> References: <289ed9df.2a.152fa44fda5.Coremail.tjlp@netease.com> Message-ID: Are the DICOM files compressed? The vtkDICOMImageReader cannot read compressed DICOM files. Also, it requires that all the DICOM files in the series have exactly the same dimensions: if your first file is much larger than the others, then it probably does not have the same dimensions as the others. - David On Fri, Feb 19, 2016 at 9:02 AM, Liu_tj wrote: > I try to use vtkDICOMImageReader to load a dicom series, when the > vtkDICOMImageReader::Update() is called, the application is terminated. All > the fail dicom series have the same character: the first dicom file is more > than 1M, the other dicom files are the same size about 200k. In all the > success dicom series, all the dicom file has the same size. > > Can anybody tell me what problem with the DICOM series? > > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.hilbert at gmx.net Fri Feb 19 12:10:46 2016 From: sebastian.hilbert at gmx.net (Sebastian Hilbert) Date: Fri, 19 Feb 2016 18:10:46 +0100 Subject: [vtkusers] what issue of my dicom series In-Reply-To: <289ed9df.2a.152fa44fda5.Coremail.tjlp@netease.com> References: <289ed9df.2a.152fa44fda5.Coremail.tjlp@netease.com> Message-ID: <22410257.gpc9OtXKGm@basti-thinkpad-t410> Am Saturday 20 February 2016, 00:02:51 schrieb Liu_tj: > I try to use vtkDICOMImageReader to load a dicom series, when the > vtkDICOMImageReader::Update() is called, the application is terminated. All > the fail dicom series have the same character: the first dicom file is more > than 1M, the other dicom files are the same size about 200k. In all the > success dicom series, all the dicom file has the same size. > You should provide more information about the source of your dicom dataset. Can you display it in a regular dicom viewer ? Sometimes when the first file is larger it has some additional information. For example Philips provides binary segmentation masks in the first file and references all other files (CT slices) You can use a program to dump the dicom tags and find out. > Can anybody tell me what problem with the DICOM series? > No. Unless you provide either the file(s) or information. From jm.lucas at gantha.com Fri Feb 19 12:05:43 2016 From: jm.lucas at gantha.com (Jean-Michel Lucas) Date: Fri, 19 Feb 2016 18:05:43 +0100 Subject: [vtkusers] Cell locator : find closest point computation details Message-ID: <002b01d16b37$c4ddab50$4e9901f0$@lucas@gantha.com> Dear all, Could someone explain me how the vtkCellLocator::FindClosestPoint method works ? More specifically I would like to know how the distance is computed from a given point: is it measured with respect to the center of the neighbour cells ? Thanks in advance, Jean-Michel -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Feb 19 15:00:52 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 19 Feb 2016 13:00:52 -0700 Subject: [vtkusers] Cell locator : find closest point computation details In-Reply-To: <56c77341.512b6b0a.e0e6c.4f23SMTPIN_ADDED_BROKEN@mx.google.com> References: <56c77341.512b6b0a.e0e6c.4f23SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: On Fri, Feb 19, 2016 at 10:05 AM, Jean-Michel Lucas wrote: > Dear all, > > > > Could someone explain me how the vtkCellLocator::FindClosestPoint method > works ? More specifically I would like to know how the distance is computed > from a given point: is it measured with respect to the center of the > neighbour cells ? > If used on vtkPolyData, it gives the perpendicular distance to the closest surface. I'm pretty sure that the neighbour cells are not part the computation. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From wumengda at gmail.com Fri Feb 19 19:01:59 2016 From: wumengda at gmail.com (Mengda Wu) Date: Fri, 19 Feb 2016 19:01:59 -0500 Subject: [vtkusers] Catmull Clark subdivision surface in VTK Message-ID: Hi all, Is there any plan to implement a catmull Clark subdivision surface in VTK? I saw a plan to include pixar's opensubdiv library. I hope to see it sooner in VTK. Thanks, Mengda -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at sci.utah.edu Fri Feb 19 19:40:35 2016 From: allen at sci.utah.edu (Allen Sanderson) Date: Fri, 19 Feb 2016 17:40:35 -0700 Subject: [vtkusers] vtkGlyph3D Message-ID: <760101B5-E17A-4E37-9FFE-6FA37E60A4FA@sci.utah.edu> Hello, I am trying to use the vtkGlyph3D to create some glyphs where the user sets the ?Factor? between the largest and smallest glyph. This functionality is something that is possible with the vtkTubeFilter. i.e.. one sets the tube radius and a radius factor say 10 and the tubes will vary in size from the radius to 10xradius. Internally, the scalar values would get remapped to be between 1 and 10 and then scaled by the radius. I successfully duplicated this functionality for the vtkConeSource and vtkSphere source. I would like to do the same for the vtkGlyph3D but so far no luck with the methods provided. At this point one would need to roll their own. i.e. take the scalar values and normalize them to be between 1 and 10 (in this case) and then send that down stream. Cheers, Allen Allen Sanderson SCI Institute University of Utah www.sci.utah.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From 925345468 at qq.com Fri Feb 19 20:45:46 2016 From: 925345468 at qq.com (=?ISO-8859-1?B?anVzdF9yb29raWU=?=) Date: Sat, 20 Feb 2016 09:45:46 +0800 Subject: [vtkusers] How to build VTK with CMake for parallel computing? Message-ID: I would like to build VTK with CMake for parallel computing, the environment is Win10 (x64), Codeblocks-12.11, VTK-7.0.0 and CMake-3.5.0. When I selected VTK_Group_MPI and Module_vtkParallelMPI, CMake errors are as follows. So how to build VTK with CMake for parallel computing? Thank you in advance! CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: MPI_C_LIBRARIES (ADVANCED) linked by target "vtkParallelMPI" in directory C:/VTK/source/VTK-7.0.0/Parallel/MPI linked by target "vtkIOMPIImage" in directory C:/VTK/source/VTK-7.0.0/IO/MPIImage linked by target "vtkIOMPIParallel" in directory C:/VTK/source/VTK-7.0.0/IO/MPIParallel linked by target "vtkIOParallelNetCDF" in directory C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF MPI_HEADER_PATH used as include directory in directory C:/VTK/source/VTK-7.0.0/Parallel/MPI used as include directory in directory C:/VTK/source/VTK-7.0.0/Parallel/MPI used as include directory in directory C:/VTK/source/VTK-7.0.0/Parallel/MPI used as include directory in directory C:/VTK/source/VTK-7.0.0/Parallel/MPI used as include directory in directory C:/VTK/source/VTK-7.0.0/Parallel/MPI used as include directory in directory C:/VTK/source/VTK-7.0.0/Parallel/MPI used as include directory in directory C:/VTK/source/VTK-7.0.0/Parallel/MPI used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIImage used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIImage used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIImage used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIImage used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIImage used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIImage used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIImage used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIParallel used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIParallel used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIParallel used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIParallel used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIParallel used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIParallel used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/MPIParallel used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF used as include directory in directory C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Sat Feb 20 19:59:41 2016 From: juch at zhaw.ch (normanius) Date: Sat, 20 Feb 2016 17:59:41 -0700 (MST) Subject: [vtkusers] Access the points of a certain region extracted by vtkPolyDataConnectivityFilter Message-ID: <1456016381489-5736688.post@n5.nabble.com> Hi all I use vtkPolyDataConnectivityFilter in the following way. Now, here's the question: *How can I extract the poly data of the largest region, without the filtered points?* The question is not trivial. I noticed that the following is not possible: This will also yield the points of the non-largest regions. What I currently do is the following: This works, but I wondered whether there is built-in way to access just one single region, without any relics from the other regions. Thanks, Normanius -- View this message in context: http://vtk.1045678.n5.nabble.com/Access-the-points-of-a-certain-region-extracted-by-vtkPolyDataConnectivityFilter-tp5736688.html Sent from the VTK - Users mailing list archive at Nabble.com. From tluisrs at gmail.com Sat Feb 20 20:22:52 2016 From: tluisrs at gmail.com (Thales Luis Rodrigues Sabino) Date: Sat, 20 Feb 2016 23:22:52 -0200 Subject: [vtkusers] How to build VTK with CMake for parallel computing? In-Reply-To: References: Message-ID: My first question is "Do you have the MPI libraries installed?" I use MPI once in my life and it was in a Linux Environment. To use in Windows you need to install some implementation of MPI Here is one: http://www.mpich.org/downloads/ After you need to make sure that either CMake finds the installation of you set MPI_C_LIBRARIES by hand. On Fri, Feb 19, 2016 at 11:45 PM, just_rookie <925345468 at qq.com> wrote: > I would like to build VTK with CMake for parallel computing, the > environment is Win10 (x64), Codeblocks-12.11, VTK-7.0.0 and CMake-3.5.0. > When I selected VTK_Group_MPI and Module_vtkParallelMPI, CMake errors are > as follows. So how to build VTK with CMake for parallel computing? Thank > you in advance! > > CMake Error: The following variables are used in this project, but they > are set to NOTFOUND. > Please set them or make sure they are set and tested correctly in the > CMake files: > MPI_C_LIBRARIES (ADVANCED) > linked by target "vtkParallelMPI" in directory > C:/VTK/source/VTK-7.0.0/Parallel/MPI > linked by target "vtkIOMPIImage" in directory > C:/VTK/source/VTK-7.0.0/IO/MPIImage > linked by target "vtkIOMPIParallel" in directory > C:/VTK/source/VTK-7.0.0/IO/MPIParallel > linked by target "vtkIOParallelNetCDF" in directory > C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF > MPI_HEADER_PATH > used as include directory in directory > C:/VTK/source/VTK-7.0.0/Parallel/MPI > used as include directory in directory > C:/VTK/source/VTK-7.0.0/Parallel/MPI > used as include directory in directory > C:/VTK/source/VTK-7.0.0/Parallel/MPI > used as include directory in directory > C:/VTK/source/VTK-7.0.0/Parallel/MPI > used as include directory in directory > C:/VTK/source/VTK-7.0.0/Parallel/MPI > used as include directory in directory > C:/VTK/source/VTK-7.0.0/Parallel/MPI > used as include directory in directory > C:/VTK/source/VTK-7.0.0/Parallel/MPI > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIImage > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIImage > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIImage > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIImage > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIImage > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIImage > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIImage > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIParallel > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIParallel > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIParallel > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIParallel > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIParallel > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIParallel > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/MPIParallel > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF > used as include directory in directory > C:/VTK/source/VTK-7.0.0/IO/ParallelNetCDF > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sun Feb 21 09:21:09 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 21 Feb 2016 09:21:09 -0500 Subject: [vtkusers] Access the points of a certain region extracted by vtkPolyDataConnectivityFilter In-Reply-To: <1456016381489-5736688.post@n5.nabble.com> References: <1456016381489-5736688.post@n5.nabble.com> Message-ID: Hi Normanius, The code sample you provided didn't come through the mailing list for some reason. Mind sending again? Thanks, Cory On Sat, Feb 20, 2016 at 7:59 PM, normanius wrote: > Hi all > > I use vtkPolyDataConnectivityFilter in the following way. > > > > Now, here's the question: *How can I extract the poly data of the largest > region, without the filtered points?* > > The question is not trivial. I noticed that the following is not possible: > > This will also yield the points of the non-largest regions. > > What I currently do is the following: > > > This works, but I wondered whether there is built-in way to access just one > single region, without any relics from the other regions. > > Thanks, > Normanius > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Access-the-points-of-a-certain-region-extracted-by-vtkPolyDataConnectivityFilter-tp5736688.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. From richuitnl at gmail.com Sun Feb 21 17:52:10 2016 From: richuitnl at gmail.com (richy123) Date: Sun, 21 Feb 2016 15:52:10 -0700 (MST) Subject: [vtkusers] VTK7 OpenGL2 Depth Problem Message-ID: <1456095130621-5736691.post@n5.nabble.com> Hi All, Thanks all for the great 7 release! Eager to test it I have build VTK 7.0.0 with Qt.5.3.2 and PCL 1.8 master and managed to build it with cmake. I have a windows QT app that shows in a QVTKWidget a point cloud, Previously was using VTK 6.1 and PCL 1.7.2 and this worked fine. The app bilds ok with VTK7 and on first look it rendered fine but after some playing around I noticed that the points sometimes are not correctly shown depth wise. This becomes very notable when the point size is increased. So points that are more in the back obscure the points before it. Maybe this has to do with the depth buffer? Can someone please point me in the right direction is this a known bug in the new VTK7? Thank you, Rich. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK7-OpenGL2-Depth-Problem-tp5736691.html Sent from the VTK - Users mailing list archive at Nabble.com. From tjlp at netease.com Sun Feb 21 21:37:10 2016 From: tjlp at netease.com (Liu_tj) Date: Mon, 22 Feb 2016 10:37:10 +0800 (CST) Subject: [vtkusers] what VTk widget should be used for displaying DICOM series in Axial, Sagittal and Coronal 2D view and 3D view Message-ID: <62001e24.3.15306d67046.Coremail.tjlp@netease.com> Hi, guys, At present I want to display DICOM series in 4 views: Axial, Sagittal and Coronal 2D view, and the last one is a 3D view which displays Axial, Sagittal and Coronal view together. For the 2D view, I also want to display a rectangle to include the useful area. What widgets should be used for these 2 kinds of view? At least I know that vtkIamgePlaneWidget can be used for the 3D view. Any other recommendations? Besides, if uses vtkImagePlaneWidget, how to switch the Dicom image in the series when the mouse wheel rolls? Can the SetSliceIndex() or SetSlicePostion() switch the Dicom image? Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Mon Feb 22 04:09:08 2016 From: juch at zhaw.ch (normanius) Date: Mon, 22 Feb 2016 02:09:08 -0700 (MST) Subject: [vtkusers] Access the points of a certain region extracted by vtkPolyDataConnectivityFilter In-Reply-To: References: <1456016381489-5736688.post@n5.nabble.com> Message-ID: <1456132148328-5736694.post@n5.nabble.com> Hi Cory Strange, in the web-view of the mailing list, the code is visible. I repost/rephrase my question, this time without any formatting: #?How I use vtkPolyDataConnectivityFilter: largest = vtk.vtkPolyDataConnectivityFilter() largest.SetInputConnection(input.GetOutputPort()) largest.SetExtractionModeToLargestRegion() largest.Update() # How I would like to extract the points from the largest region, # but this does not work: It gives me all the points of input polyData = largest.GetOutput() N = polyData.GetNumberOfPoints() for i in range(0, N): p = sourceData.GetPoint(i) # What I currently do to extract those points: lines = largest.GetOutput().GetLines() # cell array lines.InitTraversal() idList = vtk.vtkIdList() I = set() while lines.GetNextCell(idList): for i in range(0, idList.GetNumberOfIds()): index = idList.GetId(i) if index not in I: p = sourceData.GetPoint(index) I.add(index) # Is there a more direct way of extracting only the connected region # of interest? -- View this message in context: http://vtk.1045678.n5.nabble.com/Access-the-points-of-a-certain-region-extracted-by-vtkPolyDataConnectivityFilter-tp5736688p5736694.html Sent from the VTK - Users mailing list archive at Nabble.com. From yassminabdallah at gmail.com Mon Feb 22 06:55:43 2016 From: yassminabdallah at gmail.com (YassminAbdallah) Date: Mon, 22 Feb 2016 04:55:43 -0700 (MST) Subject: [vtkusers] Convert volume to .obj file Message-ID: <1456142143776-5736695.post@n5.nabble.com> Hello, i was asking how to convert the volume generated from "vtkOpenGLGPUVolumeRayCastMapper" to .obj file ?? and if this possible or not ? Note: i use VTK for iOS. Thanks a lot for your time, Yassmin -- View this message in context: http://vtk.1045678.n5.nabble.com/Convert-volume-to-obj-file-tp5736695.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Mon Feb 22 07:15:59 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Mon, 22 Feb 2016 13:15:59 +0100 Subject: [vtkusers] Examples/Python/Widgets/EmbedPyQt segfault on Ubuntu Message-ID: Hi all, Trying the http://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt example on Ubuntu with python-vtk6 (6.2.0+dfsg1-4ubuntu5) and python-qt4 (4.11.4+dfsg-1build3) installed, I get a strange segmentation fault on startup: estan at newton:~/orexplore/dev/gui-demo$ gdb python GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from python...Reading symbols from /usr/lib/debug//usr/bin/python2.7...done. done. (gdb) run test2.py Starting program: /usr/bin/python test2.py [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffb1bb8700 (LWP 3113)] [New Thread 0x7fffb13b7700 (LWP 3114)] [New Thread 0x7fffacbb6700 (LWP 3115)] Program received signal SIGSEGV, Segmentation fault. 0x00007fff97a2885e in _GLOBAL__sub_I_qpycore_classinfo.cpp () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so (gdb) bt #0 0x00007fff97a2885e in _GLOBAL__sub_I_qpycore_classinfo.cpp () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so #1 0x00007ffff7de960a in call_init (l=, argc=argc at entry=2, argv=argv at entry=0x7fffffffddf8, env=env at entry=0x7fffffffde10) at dl-init.c:72 #2 0x00007ffff7de971b in call_init (env=, argv=, argc=, l=) at dl-init.c:30 #3 _dl_init (main_map=main_map at entry=0x9e8d10, argc=2, argv=0x7fffffffddf8, env=0x7fffffffde10) at dl-init.c:120 #4 0x00007ffff7dee5d7 in dl_open_worker (a=a at entry=0x7fffffffd1d8) at dl-open.c:579 #5 0x00007ffff7de94b4 in _dl_catch_error (objname=objname at entry=0x7fffffffd1c8, errstring=errstring at entry=0x7fffffffd1d0, mallocedp=mallocedp at entry=0x7fffffffd1c7, operate=operate at entry=0x7ffff7dee0f0 , args=args at entry=0x7fffffffd1d8) at dl-error.c:187 #6 0x00007ffff7ded9f3 in _dl_open (file=0xee42e0 "/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so", mode=-2147483646, caller_dlopen=0x51a359 <_PyImport_GetDynLoadFunc+233>, nsid=-2, argc=, argv=, env=0x7fffffffde10) at dl-open.c:663 #7 0x00007ffff75edfc9 in dlopen_doit (a=a at entry=0x7fffffffd3f0) at dlopen.c:66 #8 0x00007ffff7de94b4 in _dl_catch_error (objname=0x9a1650, errstring=0x9a1658, mallocedp=0x9a1648, operate=0x7ffff75edf70 , args=0x7fffffffd3f0) at dl-error.c:187 #9 0x00007ffff75ee62d in _dlerror_run (operate=operate at entry=0x7ffff75edf70 , args=args at entry=0x7fffffffd3f0) at dlerror.c:163 #10 0x00007ffff75ee061 in __dlopen (file=, mode=) at dlopen.c:87 #11 0x000000000051a359 in _PyImport_GetDynLoadFunc () at ../Python/dynload_shlib.c:140 #12 0x0000000000519eb4 in _PyImport_LoadDynamicModule () at ../Python/importdl.c:42 #13 0x00000000004a2891 in import_submodule () at ../Python/import.c:2704 #14 0x00000000004a7545 in ensure_fromlist () at ../Python/import.c:2610 #15 0x00000000004a1cc8 in import_module_level.isra.3 (level=-1, fromlist=('QtCore', 'QtGui'), globals=, name=) at ../Python/import.c:2273 #16 PyImport_ImportModuleLevel () at ../Python/import.c:2292 #17 0x00000000004a4834 in builtin___import__ () at ../Python/bltinmodule.c:49 #18 0x00000000004a45de in PyObject_Call () at ../Objects/abstract.c:2529 #19 0x00000000004c3e40 in PyEval_CallObjectWithKeywords () at ../Python/ceval.c:4225 #20 0x00000000004c2a38 in PyEval_EvalFrameEx () at ../Python/ceval.c:2628 #21 0x00000000004b7986 in PyEval_EvalCodeEx () at ../Python/ceval.c:3588 #22 0x00000000004e8f3f in PyEval_EvalCode (locals={'vtk': , '__builtins__': , '__file__': 'test2.py', '__package__': None, 'sys': , '__name__': '__main__', '__doc__': None}, globals={'vtk': , '__builtins__': , '__file__': 'test2.py', '__package__': None, 'sys': , '__name__': '__main__', '__doc__': None}, co=0x7ffff7ee8db0) at ../Python/ceval.c:669 #23 run_mod.lto_priv () at ../Python/pythonrun.c:1370 #24 0x00000000004e3b02 in PyRun_FileExFlags () at ../Python/pythonrun.c:1356 #25 0x00000000004e22e6 in PyRun_SimpleFileExFlags () at ../Python/pythonrun.c:948 #26 0x0000000000490fe1 in Py_Main () at ../Modules/main.c:640 #27 0x00007ffff7811a40 in __libc_start_main (main=0x4909f0
, argc=2, argv=0x7fffffffddf8, init=, fini=, rtld_fini=, stack_end=0x7fffffffdde8) at libc-start.c:289 #28 0x0000000000490919 in _start () Warning: the current language does not match this frame. (gdb) Has anyone seen this before? I'm a little perplexed, as even a very simple program like: from PyQt4.QtGui import QApplication, QMainWindow from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor import sys app = QApplication(sys.argv) gives a segmentation fault, though in this case, the crash occurs when dlopen()ing /usr/lib/libkdecore.so.5 instead: #0 0x00007fff93d9bd4e in ?? () from /usr/lib/libkdecore.so.5 #1 0x00007ffff7de960a in call_init (l=, argc=argc at entry=2, argv=argv at entry=0x7fffffffddf8, env=env at entry=0x7fffffffde10) at dl-init.c:72 #2 0x00007ffff7de971b in call_init (env=, argv=, argc=, l=) at dl-init.c:30 #3 _dl_init (main_map=main_map at entry=0x10c4470, argc=2, argv=0x7fffffffddf8, env=0x7fffffffde10) at dl-init.c:120 #4 0x00007ffff7dee5d7 in dl_open_worker (a=a at entry=0x7fffffffc508) at dl-open.c:579 #5 0x00007ffff7de94b4 in _dl_catch_error (objname=objname at entry=0x7fffffffc4f8, errstring=errstring at entry=0x7fffffffc500, mallocedp=mallocedp at entry=0x7fffffffc4f7, operate=operate at entry=0x7ffff7dee0f0 , args=args at entry=0x7fffffffc508) at dl-error.c:187 #6 0x00007ffff7ded9f3 in _dl_open (file=0x10d6638 "/usr/lib/kde4/plugins/styles/breeze.so", mode=-2147483647, caller_dlopen=0x7ffff4f08cd6, nsid=-2, argc=, argv=, env=0x7fffffffde10) at dl-open.c:663 #7 0x00007ffff75edfc9 in dlopen_doit (a=a at entry=0x7fffffffc720) at dlopen.c:66 #8 0x00007ffff7de94b4 in _dl_catch_error (objname=0x98b920, errstring=0x98b928, mallocedp=0x98b918, operate=0x7ffff75edf70 , args=0x7fffffffc720) at dl-error.c:187 #9 0x00007ffff75ee62d in _dlerror_run (operate=operate at entry=0x7ffff75edf70 , args=args at entry=0x7fffffffc720) at dlerror.c:163 #10 0x00007ffff75ee061 in __dlopen (file=, mode=) at dlopen.c:87 #11 0x00007ffff4f08cd6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #12 0x00007ffff4f0307d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #13 0x00007ffff4f0370b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #14 0x00007ffff4efc066 in QFactoryLoader::instance(QString const&) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #15 0x00007ffff575317d in QStyleFactory::create(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #16 0x00007ffff54479ce in QApplication::style() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #17 0x00007ffff54b910a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #18 0x00007ffff54bcc83 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #19 0x00007ffff5447fa2 in QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #20 0x00007ffff544824f in QApplication::QApplication(int&, char**, int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #21 0x00007ffff64fbfae in sipQApplication::sipQApplication (this=0xba80d0, a0=, a1=) at sipQtGuipart9.cpp:36106 #22 0x00007ffff64fc196 in init_type_QApplication (sipSelf=0x7ffff1136938, sipArgs=, sipKwds=0x0, sipUnused=, sipParseErr=) at /build/python-qt4-DPZMhZ/python-qt4-4.11.4+dfsg/sip/QtGui/qapplication.sip:901 #23 0x00007ffff16901cb in sipSimpleWrapper_init (self=0x7ffff1136938, args=(['test.py'],), kwds=0x0) at siplib.c:9702 #24 0x00000000004a9efb in type_call.lto_priv () at ../Objects/typeobject.c:745 #25 0x00000000004bf3cc in PyObject_Call (kw=0x0, arg=(['test.py'],), func=) at ../Objects/abstract.c:2529 #26 do_call (nk=, na=, pp_stack=0x7fffffffd9b0, func=) at ../Python/ceval.c:4574 #27 call_function (oparg=, pp_stack=0x7fffffffd9b0) at ../Python/ceval.c:4379 #28 PyEval_EvalFrameEx () at ../Python/ceval.c:2993 #29 0x00000000004b7986 in PyEval_EvalCodeEx () at ../Python/ceval.c:3588 #30 0x00000000004e8f3f in PyEval_EvalCode ( locals={'QMainWindow': , 'QVTKRenderWindowInteractor': , '__builtins__': , '__file__': 'test.py', 'QApplication': , '__package__': None, 'sys': , '__name__': '__main__', '__doc__': None}, globals={'QMainWindow': , 'QVTKRenderWindowInteractor': , '__builtins__': , '__file__': 'test.py', 'QApplication': , '__package__': None, 'sys': , '__name__': '__main__', '__doc__': None}, co=0x7ffff7edfe30) at ../Python/ceval.c:669 #31 run_mod.lto_priv () at ../Python/pythonrun.c:1370 #32 0x00000000004e3b02 in PyRun_FileExFlags () at ../Python/pythonrun.c:1356 #33 0x00000000004e22e6 in PyRun_SimpleFileExFlags () at ../Python/pythonrun.c:948 #34 0x0000000000490fe1 in Py_Main () at ../Modules/main.c:640 #35 0x00007ffff7811a40 in __libc_start_main (main=0x4909f0
, argc=2, argv=0x7fffffffddf8, init=, fini=, rtld_fini=, stack_end=0x7fffffffdde8) at libc-start.c:289 #36 0x0000000000490919 in _start () Just removing the from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor from the above minimal test and the segmentation fault goes away. So something seems quite broken :/ I'm surprised, as I've had VTK + PyQt4 programs working fine before. Thankful for any advice / ideas. Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From tluisrs at gmail.com Mon Feb 22 07:19:00 2016 From: tluisrs at gmail.com (Thales Luis Rodrigues Sabino) Date: Mon, 22 Feb 2016 09:19:00 -0300 Subject: [vtkusers] VTK7 OpenGL2 Depth Problem In-Reply-To: <1456095130621-5736691.post@n5.nabble.com> References: <1456095130621-5736691.post@n5.nabble.com> Message-ID: I'll assume you're using PCL Visualization Module. Have you tried opening the point clouds in a non pcl application? I'm using VTK6.3.0 with OpenGL2 backend building my custom application and the rendering is fine. I'll try VTK7 soon though. On Sun, Feb 21, 2016 at 7:52 PM, richy123 wrote: > Hi All, > Thanks all for the great 7 release! Eager to test it I have build VTK 7.0.0 > with Qt.5.3.2 and PCL 1.8 master and managed to build it with cmake. > I have a windows QT app that shows in a QVTKWidget a point cloud, > Previously > was using VTK 6.1 and PCL 1.7.2 and this worked fine. The app bilds ok with > VTK7 and on first look it rendered fine but after some playing around I > noticed that the points sometimes are not correctly shown depth wise. This > becomes very notable when the point size is increased. So points that are > more in the back obscure the points before it. Maybe this has to do with > the > depth buffer? > > Can someone please point me in the right direction is this a known bug in > the new VTK7? > > Thank you, > Rich. > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/VTK7-OpenGL2-Depth-Problem-tp5736691.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 > -- Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate -------------- next part -------------- An HTML attachment was scrubbed... URL: From dkxls23 at gmail.com Mon Feb 22 07:19:29 2016 From: dkxls23 at gmail.com (Armin Wehrfritz) Date: Mon, 22 Feb 2016 14:19:29 +0200 Subject: [vtkusers] Polyhedron support in Xdmf3 Message-ID: <56CAFCD1.402@gmail.com> Hei! The XDMF file format has been missing support for polyhedral cells, as it was pointed out in several places/discussions, e.g. [1-4]. Since the implementation seemed straight forward, I gave it a try and implemented it to the Xdmf3 reader/writer in VTK. I created a merge request in the hope to get comments and the code eventually merged into VTK: https://gitlab.kitware.com/vtk/vtk/merge_requests/1255 I found two small bugs along the way and you can find a fix for them in this merge request: https://gitlab.kitware.com/vtk/vtk/merge_requests/1251 I implemented this directly in VTK since the upstream Xdmf repository is already out of date and needs to be update (see [5] for more details). Best regards, Armin [1] http://www.kitware.com/pipermail/xdmf/2015-December/000895.html [2] http://www.xdmf.org/index.php/V3_Road_Feature_Request [3] http://public.kitware.com/Bug/view.php?id=14528 [4] http://visitbugs.ornl.gov/issues/1279 [5] http://www.kitware.com/pipermail/xdmf/2015-December/000893.html From f.nellmeldin at open-engineering.com Mon Feb 22 07:23:11 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Mon, 22 Feb 2016 13:23:11 +0100 Subject: [vtkusers] Flat interpolation under OpenGL2 backend In-Reply-To: References: Message-ID: Hello again. Yes, you understood the issue perfectly. And I understand the reason as of why is not working anymore, thank you for the great explanation. After your advise, I tried using vtkPointDataToCellData, but without success. Here is one small example I wrote. If I activate the line #define USE_P2C, I can't see any color (everything is light gray). If that line is commented, everything works as expected. Do you know what I am missing? #include #include #include #include #include #include #include #include #include #include #include #include #include int main() { // Read the grid std::string filename = "D:/model.vtu"; std::string fieldname = "TEMP"; vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(filename.c_str()); reader->Update(); vtkSmartPointer model = reader->GetOutput(); vtkSmartPointer colorMapper = vtkSmartPointer::New(); vtkSmartPointer colorActor = vtkSmartPointer::New(); vtkSmartPointer geometryFilter = vtkSmartPointer::New(); //============ BEGIN OF SECTION OF INTEREST // Convert point to cell data vtkSmartPointer point2CellData = vtkSmartPointer::New(); point2CellData->PassPointDataOn(); point2CellData->SetInputData(model); point2CellData->Update(); #define USE_P2C #ifdef USE_P2C // Neither of these "setActiveScalars" makes any difference //model->GetCellData()->SetActiveScalars(fieldname.c_str()); //model->GetPointData()->SetActiveScalars(fieldname.c_str()); geometryFilter->SetInputData(point2CellData->GetOutput()); geometryFilter->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_CELLS, fieldname.c_str()); // cells because I transfered the data #else model->GetPointData()->SetActiveScalars(fieldname.c_str()); geometryFilter->SetInputData(model); geometryFilter->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldname.c_str()); #endif colorMapper->SetInputConnection(geometryFilter->GetOutputPort()); //============ END OF SECTION OF INTEREST colorMapper->SetScalarRange(297, 637); //hardcoded to reduce code length colorActor->SetMapper(colorMapper); colorMapper->ScalarVisibilityOn(); // Usual rendering stuff, nothing of interest from here onwards //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(colorActor); renderer->SetBackground(.3, .6, .3); // Background color green //Render and interact renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } Thank you!. 2016-02-18 17:05 GMT+01:00 Ken Martin : > Hello Fernando, > > Making sure that I understand the issue. Essentially you have defined > scalars/colors on the points of a triangle. With phong shading the colors > interpolate across the triangle. With flat shading on the old backend, the > system takes the color of the first point and uses that for the entire > triangle. On the new backend the colors are still interpolated across the > triangle. Is that the issue you see? > > If so, then the issue is that on the new backend I am interpreting shading > to only mean lighting and normal calculations while in the old backend it > seems to include vertex color properties (but not other properties such as > tcoords, hmm wonder what happens with flat shading and texture based > coloring) In modern OpenGL (version 3.2 ) you can specify flat versus > smooth interpolation by attribute. So normals could be flat while colors > are smooth. Without requiring OpenGL 3.2 we would need to rebuild the VBO > each time you switch between flat and smooth, basically treating flat > shading as if you had cell colors instead of point colors. > > If backward compatibility was not an issue :-) I would suggest moving to > require OpenGL 3.2 and then modifying vtkProperty so that people can > independently specify if they want normals/colors/etc to be > flat/smooth/perspective. > > One stopgap, you could use vtkPointDataToCellData to essentially > accomplish what you want in either back end. > > Thanks > Ken > > > > On Thu, Feb 18, 2016 at 10:14 AM, Fernando Nellmeldin < > f.nellmeldin at open-engineering.com> wrote: > >> Hello friends. >> >> In our application, we want to allow the user to alternate between a flat >> and a smooth shading of the colors in an actor. To do this, we have a >> option that allows the user to call setInterpolationToFlat() or >> setInterpolationToPhong() in the property of the vtkactor. >> >> The problem is that the call to set flat is not working, there is no >> change and the actor is always rendered smooth. >> >> I've tried with VTK 6.3.0 and VTK 7.0.0 under OpenGL2 backend. In VTK >> 5.10 (using the old opengl), this works as expected. >> >> And please note that in the three cases, the code is exactly the same. >> Well, except the connection between the ugrid and the geometry filter that >> I have the usual if: >> #if VTK_MAJOR_VERSION <= 5 >> geometryFilter->SetInputConnection(m_model->GetProducerPort()); >> #else >> geometryFilter->SetInputData(m_model); >> #endif >> >> Therefore, is the support of flat interpolation dropped, or I have to add >> something to make it work under OpenGL2 backend? >> >> Thank you! >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > -- *Fernando NELLMELDIN* Software Engineer *_______________________________________________________________* *Open Engineering s.a.* Rue Bois Saint-Jean 15/1 B-4102 Seraing (Belgium) Tel: +32.4.353.30.34 http://www.open-engineering.com https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym *_________________________________________________________________________* -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Mon Feb 22 03:18:47 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Mon, 22 Feb 2016 09:18:47 +0100 Subject: [vtkusers] vtk.org down? Message-ID: Hi, vtk.org seems down at the moment: http://www.downforeveryoneorjustme.com/vtk.org Anyone know if it's a planned outage, and if so, when it's roughly planned to go up again? Cheers, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.esneault at gmail.com Mon Feb 22 08:28:44 2016 From: simon.esneault at gmail.com (Simon ESNEAULT) Date: Mon, 22 Feb 2016 14:28:44 +0100 Subject: [vtkusers] Flat interpolation under OpenGL2 backend In-Reply-To: References: Message-ID: Hello, Not sure, but maybe a call to SetScalarModeToUseCellData() is needed on the mapper ? You should try to save/load the dataset in paraview after it is processed to see what's going on with the cell/point data :) Good luck Simon 2016-02-22 13:23 GMT+01:00 Fernando Nellmeldin < f.nellmeldin at open-engineering.com>: > Hello again. > Yes, you understood the issue perfectly. And I understand the reason as of > why is not working anymore, thank you for the great explanation. > > After your advise, I tried using vtkPointDataToCellData, but without > success. > Here is one small example I wrote. If I activate the line #define USE_P2C, > I can't see any color (everything is light gray). If that line is > commented, everything works as expected. > Do you know what I am missing? > > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > int main() > { > // Read the grid > std::string filename = "D:/model.vtu"; > std::string fieldname = "TEMP"; > vtkSmartPointer reader = > vtkSmartPointer::New(); > reader->SetFileName(filename.c_str()); > reader->Update(); > vtkSmartPointer model = reader->GetOutput(); > > vtkSmartPointer colorMapper = > vtkSmartPointer::New(); > vtkSmartPointer colorActor = vtkSmartPointer::New(); > vtkSmartPointer geometryFilter = > vtkSmartPointer::New(); > > //============ BEGIN OF SECTION OF INTEREST > // Convert point to cell data > vtkSmartPointer point2CellData = > vtkSmartPointer::New(); > point2CellData->PassPointDataOn(); > point2CellData->SetInputData(model); > point2CellData->Update(); > > #define USE_P2C > #ifdef USE_P2C > // Neither of these "setActiveScalars" makes any difference > //model->GetCellData()->SetActiveScalars(fieldname.c_str()); > //model->GetPointData()->SetActiveScalars(fieldname.c_str()); > geometryFilter->SetInputData(point2CellData->GetOutput()); > geometryFilter->SetInputArrayToProcess(0, 0, 0, > vtkDataObject::FIELD_ASSOCIATION_CELLS, fieldname.c_str()); // cells > because I transfered the data > #else > model->GetPointData()->SetActiveScalars(fieldname.c_str()); > geometryFilter->SetInputData(model); > geometryFilter->SetInputArrayToProcess(0, 0, 0, > vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldname.c_str()); > #endif > > colorMapper->SetInputConnection(geometryFilter->GetOutputPort()); > > //============ END OF SECTION OF INTEREST > > colorMapper->SetScalarRange(297, 637); //hardcoded to reduce code length > colorActor->SetMapper(colorMapper); > colorMapper->ScalarVisibilityOn(); > > // Usual rendering stuff, nothing of interest from here onwards > //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(colorActor); > renderer->SetBackground(.3, .6, .3); // Background color green > //Render and interact > renderWindow->Render(); > renderWindowInteractor->Start(); > return EXIT_SUCCESS; > } > > > Thank you!. > > 2016-02-18 17:05 GMT+01:00 Ken Martin : > >> Hello Fernando, >> >> Making sure that I understand the issue. Essentially you have defined >> scalars/colors on the points of a triangle. With phong shading the colors >> interpolate across the triangle. With flat shading on the old backend, the >> system takes the color of the first point and uses that for the entire >> triangle. On the new backend the colors are still interpolated across the >> triangle. Is that the issue you see? >> >> If so, then the issue is that on the new backend I am interpreting >> shading to only mean lighting and normal calculations while in the old >> backend it seems to include vertex color properties (but not other >> properties such as tcoords, hmm wonder what happens with flat shading and >> texture based coloring) In modern OpenGL (version 3.2 ) you can specify >> flat versus smooth interpolation by attribute. So normals could be flat >> while colors are smooth. Without requiring OpenGL 3.2 we would need to >> rebuild the VBO each time you switch between flat and smooth, basically >> treating flat shading as if you had cell colors instead of point colors. >> >> If backward compatibility was not an issue :-) I would suggest moving to >> require OpenGL 3.2 and then modifying vtkProperty so that people can >> independently specify if they want normals/colors/etc to be >> flat/smooth/perspective. >> >> One stopgap, you could use vtkPointDataToCellData to essentially >> accomplish what you want in either back end. >> >> Thanks >> Ken >> >> >> >> On Thu, Feb 18, 2016 at 10:14 AM, Fernando Nellmeldin < >> f.nellmeldin at open-engineering.com> wrote: >> >>> Hello friends. >>> >>> In our application, we want to allow the user to alternate between a >>> flat and a smooth shading of the colors in an actor. To do this, we have a >>> option that allows the user to call setInterpolationToFlat() or >>> setInterpolationToPhong() in the property of the vtkactor. >>> >>> The problem is that the call to set flat is not working, there is no >>> change and the actor is always rendered smooth. >>> >>> I've tried with VTK 6.3.0 and VTK 7.0.0 under OpenGL2 backend. In VTK >>> 5.10 (using the old opengl), this works as expected. >>> >>> And please note that in the three cases, the code is exactly the same. >>> Well, except the connection between the ugrid and the geometry filter that >>> I have the usual if: >>> #if VTK_MAJOR_VERSION <= 5 >>> geometryFilter->SetInputConnection(m_model->GetProducerPort()); >>> #else >>> geometryFilter->SetInputData(m_model); >>> #endif >>> >>> Therefore, is the support of flat interpolation dropped, or I have to >>> add something to make it work under OpenGL2 backend? >>> >>> Thank you! >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> > > > > -- > *Fernando NELLMELDIN* > Software Engineer > *_______________________________________________________________* > > *Open Engineering s.a.* > > Rue Bois Saint-Jean 15/1 > B-4102 Seraing (Belgium) > Tel: +32.4.353.30.34 > > http://www.open-engineering.com > https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym > > *_________________________________________________________________________* > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 orodenberg at gmail.com Mon Feb 22 08:42:33 2016 From: orodenberg at gmail.com (Olivier Rodenberg) Date: Mon, 22 Feb 2016 14:42:33 +0100 Subject: [vtkusers] Programmable source not visualized Message-ID: <56cb1049.88c8c20a.c0cce.ffff86e5@mx.google.com> Hi, I am trying to visualize an hexahedron in Paraview using a programmable source. The points and cells are created, however the hexahedron is not visualized. Bellow is the code of the hexahedron. Does anyone know the what is missing in the code? >From paraview import vtk numberOfVertices = 8 # Create the points points = vtk.vtkPoints() points.InsertNextPoint(0.0, 0.0, 0.0) points.InsertNextPoint(1.0, 0.0, 0.0) points.InsertNextPoint(1.0, 1.0, 0.0) points.InsertNextPoint(0.0, 1.0, 0.0) points.InsertNextPoint(0.0, 0.0, 1.0) points.InsertNextPoint(1.0, 0.0, 1.0) points.InsertNextPoint(1.0, 1.0, 1.0) points.InsertNextPoint(0.0, 1.0, 1.0) # Create a hexahedron from the points hex_ = vtk.vtkHexahedron() for i in range(0, numberOfVertices): hex_.GetPointIds().SetId(i, i) #Create scalars scalars = vtk.vtkDoubleArray() scalars.SetName('First Property') scalars.InsertNextValue(100.0) scalars.InsertNextValue(100.2) scalars.InsertNextValue(100.0) scalars.InsertNextValue(100.2) scalars.InsertNextValue(100.0) scalars.InsertNextValue(100.2) scalars.InsertNextValue(100.0) scalars.InsertNextValue(100.2) # Add the points and hexahedron to an unstructured grid uGrid = vtk.vtkUnstructuredGrid() uGrid.Allocate(1,1) uGrid.InsertNextCell(hex_.GetCellType(), hex_.GetPointIds()) uGrid.SetPoints(points) uGrid.GetPointData().SetScalars(scalars) -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Feb 22 08:44:25 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 22 Feb 2016 08:44:25 -0500 Subject: [vtkusers] Access the points of a certain region extracted by vtkPolyDataConnectivityFilter In-Reply-To: <1456132148328-5736694.post@n5.nabble.com> References: <1456016381489-5736688.post@n5.nabble.com> <1456132148328-5736694.post@n5.nabble.com> Message-ID: On Mon, Feb 22, 2016 at 4:09 AM, normanius wrote: > Hi Cory > > Strange, in the web-view of the mailing list, the code is visible. Yeah, I think folks have had some problems with attachments on nabble before - I didn't know formatting would be a problem. > I repost/rephrase my question, this time without any formatting: > > # How I use vtkPolyDataConnectivityFilter: > largest = vtk.vtkPolyDataConnectivityFilter() > largest.SetInputConnection(input.GetOutputPort()) > largest.SetExtractionModeToLargestRegion() > largest.Update() > > # How I would like to extract the points from the largest region, > # but this does not work: It gives me all the points of input > polyData = largest.GetOutput() > N = polyData.GetNumberOfPoints() > for i in range(0, N): > p = sourceData.GetPoint(i) > > # What I currently do to extract those points: > lines = largest.GetOutput().GetLines() # cell array > lines.InitTraversal() > idList = vtk.vtkIdList() > I = set() > while lines.GetNextCell(idList): > for i in range(0, idList.GetNumberOfIds()): > index = idList.GetId(i) > if index not in I: > p = sourceData.GetPoint(index) > I.add(index) > > # Is there a more direct way of extracting only the connected region > # of interest? Hmm, I seem to remember there is a way to remove unused points in a poly data, but the class name escapes me. You could use such a class after the connectivity filter to do this. Otherwise, if you just need the points and not the cells, you could try vtkThresholdPoints and give the threshold value in terms of the region whose points you want to keep. HTH, Cory -- Cory Quammen R&D Engineer Kitware, Inc. From cory.quammen at kitware.com Mon Feb 22 08:45:48 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 22 Feb 2016 08:45:48 -0500 Subject: [vtkusers] vtk.org down? In-Reply-To: References: Message-ID: Elvis, Sorry for the inconvenience. Everything seems to be up and running now. Thanks, Cory On Mon, Feb 22, 2016 at 3:18 AM, Elvis Stansvik wrote: > Hi, > > vtk.org seems down at the moment: > > http://www.downforeveryoneorjustme.com/vtk.org > > Anyone know if it's a planned outage, and if so, when it's roughly planned > to go up again? > > Cheers, > Elvis > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. From cory.quammen at kitware.com Mon Feb 22 08:50:59 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 22 Feb 2016 08:50:59 -0500 Subject: [vtkusers] Convert volume to .obj file In-Reply-To: <1456142143776-5736695.post@n5.nabble.com> References: <1456142143776-5736695.post@n5.nabble.com> Message-ID: Yassmin, No, it is not possible. To clarify, the vtkOpenGLGPUVolumeRayCastMapper generates 2D images from volume data - it doesn't generate volume data. The .obj file format stores polygonal meshes and is not able to store volume data. Best, Cory On Mon, Feb 22, 2016 at 6:55 AM, YassminAbdallah wrote: > Hello, > > i was asking how to convert the volume generated from > "vtkOpenGLGPUVolumeRayCastMapper" to .obj file ?? > and if this possible or not ? > > > Note: > i use VTK for iOS. > > Thanks a lot for your time, > > Yassmin > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Convert-volume-to-obj-file-tp5736695.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. From dave.demarle at kitware.com Mon Feb 22 09:13:06 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 22 Feb 2016 09:13:06 -0500 Subject: [vtkusers] Error warning when I install the VTK In-Reply-To: References: Message-ID: Hi Andrew, When cmake is configuring the build for the example it doesn't know where to find VTK. In cmake-gui, you can tell it where to look by filling in the VTK_DIR variable. Alternatively you can build the INSTALL target of the VTK solution, which will put the VTK headers and libraries into a standard location where the example should find it automatically. hth David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Mon, Feb 15, 2016 at 11:24 PM, Nie, Andrew (MU-Student) < znhc5 at mail.missouri.edu> wrote: > Hi there, > > > This is Andrew Nie, a Ph.D student at University of Missouri. I have to > use the VTK to reconstruct the 3D model. Now I am installing the VTK. But > there is an error when I test an example that the website provides. > > > My OS is Windows 7 Ultimate, and VS version is VS 2015. First of all, I > downloaded the VTK 7.0.0 and CMake 3.5.0. I used CMake to build the > binaries. It was no errors. After then I used VS 2015 to build them > successfully. It seems like I have installed the VTK 7.0.0. Finally, when I > compile examples, there was an error warning. It is shown in below: > > > CMake Error at CMakeLists.txt:6 (find_package): > By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has > asked CMake to find a package configuration file provided by "VTK", but > CMake did not find one. > > Could not find a package configuration file provided by "VTK" with any of > the following names: > > VTKConfig.cmake > vtk-config.cmake > > Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set > "VTK_DIR" > to a directory containing one of the above files. If "VTK" provides a > separate development package or SDK, be sure it has been installed. > > > How can I deal with that? > > Thank you very much. > > > *Nie, Zhengwei Andrew* > *Ph.D Candidate* > *Mechanical & Aerospace Engineering* > *University of Missouri* > *573-239-6981 <573-239-6981>* > znhc5 at mail.missouri.edu > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Mon Feb 22 09:20:35 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 22 Feb 2016 09:20:35 -0500 Subject: [vtkusers] Convert volume to .obj file In-Reply-To: References: <1456142143776-5736695.post@n5.nabble.com> Message-ID: Yassmin, What you are trying to do? - Aashsih On Mon, Feb 22, 2016 at 8:50 AM, Cory Quammen wrote: > Yassmin, > > No, it is not possible. To clarify, the > vtkOpenGLGPUVolumeRayCastMapper generates 2D images from volume data - > it doesn't generate volume data. The .obj file format stores polygonal > meshes and is not able to store volume data. > > Best, > Cory > > On Mon, Feb 22, 2016 at 6:55 AM, YassminAbdallah > wrote: > > Hello, > > > > i was asking how to convert the volume generated from > > "vtkOpenGLGPUVolumeRayCastMapper" to .obj file ?? > > and if this possible or not ? > > > > > > Note: > > i use VTK for iOS. > > > > Thanks a lot for your time, > > > > Yassmin > > > > > > > > -- > > View this message in context: > http://vtk.1045678.n5.nabble.com/Convert-volume-to-obj-file-tp5736695.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 > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.nellmeldin at open-engineering.com Mon Feb 22 09:21:48 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Mon, 22 Feb 2016 15:21:48 +0100 Subject: [vtkusers] Flat interpolation under OpenGL2 backend In-Reply-To: References: Message-ID: Hi, thank you for your response Simon. I tried your suggestions. Adding SetScalarModeToUseCellData didn't solve the problem :( (still I'm seeing all the model in white) I saved my results to load them in ParaView and indeed I can see a new Cell Data named "TEMP" with the values of the Point Data as I wish. Thus, I think that the point2celldata is working properly, and I have only a problem of configuring something to see it, but where? Any thoughs? Thank you. 2016-02-22 14:28 GMT+01:00 Simon ESNEAULT : > Hello, > > Not sure, but maybe a call to > SetScalarModeToUseCellData() > is needed on the mapper ? > You should try to save/load the dataset in paraview after it is processed > to see what's going on with the cell/point data :) > > Good luck > Simon > > > > 2016-02-22 13:23 GMT+01:00 Fernando Nellmeldin < > f.nellmeldin at open-engineering.com>: > >> Hello again. >> Yes, you understood the issue perfectly. And I understand the reason as >> of why is not working anymore, thank you for the great explanation. >> >> After your advise, I tried using vtkPointDataToCellData, but without >> success. >> Here is one small example I wrote. If I activate the line #define >> USE_P2C, I can't see any color (everything is light gray). If that line is >> commented, everything works as expected. >> Do you know what I am missing? >> >> >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> int main() >> { >> // Read the grid >> std::string filename = "D:/model.vtu"; >> std::string fieldname = "TEMP"; >> vtkSmartPointer reader = >> vtkSmartPointer::New(); >> reader->SetFileName(filename.c_str()); >> reader->Update(); >> vtkSmartPointer model = reader->GetOutput(); >> >> vtkSmartPointer colorMapper = >> vtkSmartPointer::New(); >> vtkSmartPointer colorActor = vtkSmartPointer::New(); >> vtkSmartPointer geometryFilter = >> vtkSmartPointer::New(); >> >> //============ BEGIN OF SECTION OF INTEREST >> // Convert point to cell data >> vtkSmartPointer point2CellData = >> vtkSmartPointer::New(); >> point2CellData->PassPointDataOn(); >> point2CellData->SetInputData(model); >> point2CellData->Update(); >> >> #define USE_P2C >> #ifdef USE_P2C >> // Neither of these "setActiveScalars" makes any difference >> //model->GetCellData()->SetActiveScalars(fieldname.c_str()); >> //model->GetPointData()->SetActiveScalars(fieldname.c_str()); >> geometryFilter->SetInputData(point2CellData->GetOutput()); >> geometryFilter->SetInputArrayToProcess(0, 0, 0, >> vtkDataObject::FIELD_ASSOCIATION_CELLS, fieldname.c_str()); // cells >> because I transfered the data >> #else >> model->GetPointData()->SetActiveScalars(fieldname.c_str()); >> geometryFilter->SetInputData(model); >> geometryFilter->SetInputArrayToProcess(0, 0, 0, >> vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldname.c_str()); >> #endif >> >> colorMapper->SetInputConnection(geometryFilter->GetOutputPort()); >> >> //============ END OF SECTION OF INTEREST >> >> colorMapper->SetScalarRange(297, 637); //hardcoded to reduce code length >> colorActor->SetMapper(colorMapper); >> colorMapper->ScalarVisibilityOn(); >> >> // Usual rendering stuff, nothing of interest from here onwards >> //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(colorActor); >> renderer->SetBackground(.3, .6, .3); // Background color green >> //Render and interact >> renderWindow->Render(); >> renderWindowInteractor->Start(); >> return EXIT_SUCCESS; >> } >> >> >> Thank you!. >> >> 2016-02-18 17:05 GMT+01:00 Ken Martin : >> >>> Hello Fernando, >>> >>> Making sure that I understand the issue. Essentially you have defined >>> scalars/colors on the points of a triangle. With phong shading the colors >>> interpolate across the triangle. With flat shading on the old backend, the >>> system takes the color of the first point and uses that for the entire >>> triangle. On the new backend the colors are still interpolated across the >>> triangle. Is that the issue you see? >>> >>> If so, then the issue is that on the new backend I am interpreting >>> shading to only mean lighting and normal calculations while in the old >>> backend it seems to include vertex color properties (but not other >>> properties such as tcoords, hmm wonder what happens with flat shading and >>> texture based coloring) In modern OpenGL (version 3.2 ) you can specify >>> flat versus smooth interpolation by attribute. So normals could be flat >>> while colors are smooth. Without requiring OpenGL 3.2 we would need to >>> rebuild the VBO each time you switch between flat and smooth, basically >>> treating flat shading as if you had cell colors instead of point colors. >>> >>> If backward compatibility was not an issue :-) I would suggest moving to >>> require OpenGL 3.2 and then modifying vtkProperty so that people can >>> independently specify if they want normals/colors/etc to be >>> flat/smooth/perspective. >>> >>> One stopgap, you could use vtkPointDataToCellData to essentially >>> accomplish what you want in either back end. >>> >>> Thanks >>> Ken >>> >>> >>> >>> On Thu, Feb 18, 2016 at 10:14 AM, Fernando Nellmeldin < >>> f.nellmeldin at open-engineering.com> wrote: >>> >>>> Hello friends. >>>> >>>> In our application, we want to allow the user to alternate between a >>>> flat and a smooth shading of the colors in an actor. To do this, we have a >>>> option that allows the user to call setInterpolationToFlat() or >>>> setInterpolationToPhong() in the property of the vtkactor. >>>> >>>> The problem is that the call to set flat is not working, there is no >>>> change and the actor is always rendered smooth. >>>> >>>> I've tried with VTK 6.3.0 and VTK 7.0.0 under OpenGL2 backend. In VTK >>>> 5.10 (using the old opengl), this works as expected. >>>> >>>> And please note that in the three cases, the code is exactly the same. >>>> Well, except the connection between the ugrid and the geometry filter that >>>> I have the usual if: >>>> #if VTK_MAJOR_VERSION <= 5 >>>> geometryFilter->SetInputConnection(m_model->GetProducerPort()); >>>> #else >>>> geometryFilter->SetInputData(m_model); >>>> #endif >>>> >>>> Therefore, is the support of flat interpolation dropped, or I have to >>>> add something to make it work under OpenGL2 backend? >>>> >>>> Thank you! >>>> >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> This communication, including all attachments, contains confidential and >>> legally privileged information, and it is intended only for the use of the >>> addressee. Access to this email by anyone else is unauthorized. If you are >>> not the intended recipient, any disclosure, copying, distribution or any >>> action taken in reliance on it is prohibited and may be unlawful. If you >>> received this communication in error please notify us immediately and >>> destroy the original message. Thank you. >>> >> >> >> >> -- >> *Fernando NELLMELDIN* >> Software Engineer >> *_______________________________________________________________* >> >> *Open Engineering s.a.* >> >> Rue Bois Saint-Jean 15/1 >> B-4102 Seraing (Belgium) >> Tel: +32.4.353.30.34 >> >> http://www.open-engineering.com >> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >> >> >> *_________________________________________________________________________* >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 simon.esneault at gmail.com Mon Feb 22 09:51:16 2016 From: simon.esneault at gmail.com (Simon ESNEAULT) Date: Mon, 22 Feb 2016 15:51:16 +0100 Subject: [vtkusers] Flat interpolation under OpenGL2 backend In-Reply-To: References: Message-ID: Hello, If the data is in there, a combination of : SetScalarModeToUseCellData() GetCellData()->SetActiveScalars( "TEMP" ); should probably do the trick The SetActiveScalars( "TEMP" ) should be called on the output of the geometryFIlter which -I think- is not the case in the code that was posted: Maybe something like this : ************************************* geometryFilter->Update(); vtkPolyData* polydata = geometryFilter->GetOutput(); polydata->GetCellData()->SetActiveScalars( "TEMP" ); colorMapper->SetInputData( polydata ); colorMapper->ScalarVisibilityOn(); colorMapper->SetScalarModeToUseCellData(); colorMapper->SetScalarRange(297, 637); ************************************** ? Simon 2016-02-22 15:21 GMT+01:00 Fernando Nellmeldin < f.nellmeldin at open-engineering.com>: > Hi, thank you for your response Simon. > I tried your suggestions. Adding SetScalarModeToUseCellData didn't solve > the problem :( (still I'm seeing all the model in white) > I saved my results to load them in ParaView and indeed I can see a new > Cell Data named "TEMP" with the values of the Point Data as I wish. > Thus, I think that the point2celldata is working properly, and I have only > a problem of configuring something to see it, but where? > > Any thoughs? > > Thank you. > > 2016-02-22 14:28 GMT+01:00 Simon ESNEAULT : > >> Hello, >> >> Not sure, but maybe a call to >> SetScalarModeToUseCellData() >> is needed on the mapper ? >> You should try to save/load the dataset in paraview after it is processed >> to see what's going on with the cell/point data :) >> >> Good luck >> Simon >> >> >> >> 2016-02-22 13:23 GMT+01:00 Fernando Nellmeldin < >> f.nellmeldin at open-engineering.com>: >> >>> Hello again. >>> Yes, you understood the issue perfectly. And I understand the reason as >>> of why is not working anymore, thank you for the great explanation. >>> >>> After your advise, I tried using vtkPointDataToCellData, but without >>> success. >>> Here is one small example I wrote. If I activate the line #define >>> USE_P2C, I can't see any color (everything is light gray). If that line is >>> commented, everything works as expected. >>> Do you know what I am missing? >>> >>> >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> int main() >>> { >>> // Read the grid >>> std::string filename = "D:/model.vtu"; >>> std::string fieldname = "TEMP"; >>> vtkSmartPointer reader = >>> vtkSmartPointer::New(); >>> reader->SetFileName(filename.c_str()); >>> reader->Update(); >>> vtkSmartPointer model = reader->GetOutput(); >>> >>> vtkSmartPointer colorMapper = >>> vtkSmartPointer::New(); >>> vtkSmartPointer colorActor = vtkSmartPointer::New(); >>> vtkSmartPointer geometryFilter = >>> vtkSmartPointer::New(); >>> >>> //============ BEGIN OF SECTION OF INTEREST >>> // Convert point to cell data >>> vtkSmartPointer point2CellData = >>> vtkSmartPointer::New(); >>> point2CellData->PassPointDataOn(); >>> point2CellData->SetInputData(model); >>> point2CellData->Update(); >>> >>> #define USE_P2C >>> #ifdef USE_P2C >>> // Neither of these "setActiveScalars" makes any difference >>> //model->GetCellData()->SetActiveScalars(fieldname.c_str()); >>> //model->GetPointData()->SetActiveScalars(fieldname.c_str()); >>> geometryFilter->SetInputData(point2CellData->GetOutput()); >>> geometryFilter->SetInputArrayToProcess(0, 0, 0, >>> vtkDataObject::FIELD_ASSOCIATION_CELLS, fieldname.c_str()); // cells >>> because I transfered the data >>> #else >>> model->GetPointData()->SetActiveScalars(fieldname.c_str()); >>> geometryFilter->SetInputData(model); >>> geometryFilter->SetInputArrayToProcess(0, 0, 0, >>> vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldname.c_str()); >>> #endif >>> >>> colorMapper->SetInputConnection(geometryFilter->GetOutputPort()); >>> >>> //============ END OF SECTION OF INTEREST >>> >>> colorMapper->SetScalarRange(297, 637); //hardcoded to reduce code length >>> colorActor->SetMapper(colorMapper); >>> colorMapper->ScalarVisibilityOn(); >>> >>> // Usual rendering stuff, nothing of interest from here onwards >>> //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(colorActor); >>> renderer->SetBackground(.3, .6, .3); // Background color green >>> //Render and interact >>> renderWindow->Render(); >>> renderWindowInteractor->Start(); >>> return EXIT_SUCCESS; >>> } >>> >>> >>> Thank you!. >>> >>> 2016-02-18 17:05 GMT+01:00 Ken Martin : >>> >>>> Hello Fernando, >>>> >>>> Making sure that I understand the issue. Essentially you have defined >>>> scalars/colors on the points of a triangle. With phong shading the colors >>>> interpolate across the triangle. With flat shading on the old backend, the >>>> system takes the color of the first point and uses that for the entire >>>> triangle. On the new backend the colors are still interpolated across the >>>> triangle. Is that the issue you see? >>>> >>>> If so, then the issue is that on the new backend I am interpreting >>>> shading to only mean lighting and normal calculations while in the old >>>> backend it seems to include vertex color properties (but not other >>>> properties such as tcoords, hmm wonder what happens with flat shading and >>>> texture based coloring) In modern OpenGL (version 3.2 ) you can specify >>>> flat versus smooth interpolation by attribute. So normals could be flat >>>> while colors are smooth. Without requiring OpenGL 3.2 we would need to >>>> rebuild the VBO each time you switch between flat and smooth, basically >>>> treating flat shading as if you had cell colors instead of point colors. >>>> >>>> If backward compatibility was not an issue :-) I would suggest moving >>>> to require OpenGL 3.2 and then modifying vtkProperty so that people can >>>> independently specify if they want normals/colors/etc to be >>>> flat/smooth/perspective. >>>> >>>> One stopgap, you could use vtkPointDataToCellData to essentially >>>> accomplish what you want in either back end. >>>> >>>> Thanks >>>> Ken >>>> >>>> >>>> >>>> On Thu, Feb 18, 2016 at 10:14 AM, Fernando Nellmeldin < >>>> f.nellmeldin at open-engineering.com> wrote: >>>> >>>>> Hello friends. >>>>> >>>>> In our application, we want to allow the user to alternate between a >>>>> flat and a smooth shading of the colors in an actor. To do this, we have a >>>>> option that allows the user to call setInterpolationToFlat() or >>>>> setInterpolationToPhong() in the property of the vtkactor. >>>>> >>>>> The problem is that the call to set flat is not working, there is no >>>>> change and the actor is always rendered smooth. >>>>> >>>>> I've tried with VTK 6.3.0 and VTK 7.0.0 under OpenGL2 backend. In VTK >>>>> 5.10 (using the old opengl), this works as expected. >>>>> >>>>> And please note that in the three cases, the code is exactly the same. >>>>> Well, except the connection between the ugrid and the geometry filter that >>>>> I have the usual if: >>>>> #if VTK_MAJOR_VERSION <= 5 >>>>> geometryFilter->SetInputConnection(m_model->GetProducerPort()); >>>>> #else >>>>> geometryFilter->SetInputData(m_model); >>>>> #endif >>>>> >>>>> Therefore, is the support of flat interpolation dropped, or I have to >>>>> add something to make it work under OpenGL2 backend? >>>>> >>>>> Thank you! >>>>> >>>>> >>>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>> >>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> >>>> >>>> >>>> -- >>>> Ken Martin PhD >>>> Chairman & CFO >>>> Kitware Inc. >>>> 28 Corporate Drive >>>> Clifton Park NY 12065 >>>> 518 371 3971 >>>> >>>> This communication, including all attachments, contains confidential >>>> and legally privileged information, and it is intended only for the use of >>>> the addressee. Access to this email by anyone else is unauthorized. If you >>>> are not the intended recipient, any disclosure, copying, distribution or >>>> any action taken in reliance on it is prohibited and may be unlawful. If >>>> you received this communication in error please notify us immediately and >>>> destroy the original message. Thank you. >>>> >>> >>> >>> >>> -- >>> *Fernando NELLMELDIN* >>> Software Engineer >>> *_______________________________________________________________* >>> >>> *Open Engineering s.a.* >>> >>> Rue Bois Saint-Jean 15/1 >>> B-4102 Seraing (Belgium) >>> Tel: +32.4.353.30.34 >>> >>> http://www.open-engineering.com >>> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >>> >>> >>> *_________________________________________________________________________* >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> 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 >> ------------------------------------------------------------------ >> > -- ------------------------------------------------------------------ Simon Esneault Rennes, France ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.jacquenot at gmail.com Mon Feb 22 11:06:15 2016 From: guillaume.jacquenot at gmail.com (Guillaume Jacquenot) Date: Mon, 22 Feb 2016 17:06:15 +0100 Subject: [vtkusers] Saving multiple time steps in a vtkXMLStructuredGrid file ... Message-ID: Hello everyone, I am wondering if the post had any answer. http://www.itk.org/pipermail/vtkusers/2015-July/091641.html I am facing the same problem, where : - I can not set the timestep value in the exported XML file (All TimeStep values are 0) - Paraview does not use the attribute TimeValues when reading XML VTK file Below is the mail from Bernard Meehan, who reported this problem. I?ve looked all over the wiki, and all of the books that I have, and I just can?t figure this out. Was vtkXMLStructuredGrid just plain not designed to handle time? In the vts file, I can see that the time steps are saved: 0.0, 0.1, 0.2, just like I wrote them, but when I load them into ParaView, they show up as 0, 1, 2. In the file it seems to record three separate time steps, but it calls them all TimeStep=?0? I get the feeling that I am leaving something simple out, any help would be appreciated. On 7/8/15, 8:02 AM, "Meehan, Bernard" > wrote: >*I was hoping to be able to write a scalar field that changed over time to *>*a vtkXMLStructuredGridFile, following the example on this thread: *>*http://public.kitware.com/pipermail/vtkusers/2012-November/077262.html *>>*But when I examined my ?*vts? file, the scalar function wasn?t written to *>*a different time step. I?d be happy to turn this into an example on the *>*wiki if I could get it to work ? *>>*import vtk *>>*NX = 10 *>*NY = 10 *>*NZ = 10 *>>*#-------------------------------Create your *>*Grid-------------------------------# *>*pts = vtk.vtkPoints() *>*for i in range(NX): *>* for j in range(NY): *>* for k in range(NZ): *>* pts.InsertNextPoint(i, j, k) *>>*sg = vtk.vtkStructuredGrid() *>*sg.SetDimensions(NX, NY, NZ) *>*sg.SetPoints(pts) *>>*f1 = vtk.vtkDoubleArray() *>*f1.SetName("Function 1") *>*for i in range(NX): *>* for j in range(NY): *>* for k in range(NZ): *>* f1.InsertNextValue(i+j+k) *>*sg.GetPointData().AddArray(f1) *>>*#----------------------------------Save *>*File-----------------------------------# *>*w = vtk.vtkXMLStructuredGridWriter() *>*w.SetFileName("test.vts") *>*w.SetInputData(sg) *>*w.SetDataModeToAscii() *>*w.SetCompressorTypeToNone() *>*w.SetNumberOfTimeSteps(3) *>>*w.Start() *>*w.WriteNextTime(0.0) *>*w.WriteNextTime(0.1) *>>*# I wanted to see if I could change "Function 1" at the third time step, *>*but *>*# when I look at the file that is written, the time step for this never *>*seems *>*# to change? *>>*f1 = vtk.vtkDoubleArray() *>*f1.SetName("Function 1") *>*for i in range(NX): *>* for j in range(NY): *>* for k in range(NZ): *>* f1.InsertNextValue(-(i+j+k)) *>*sg.GetPointData().AddArray(f1) *>*sg.Modified() *>>*w.WriteNextTime(0.2) *>*w.Stop() *> -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Feb 22 11:24:41 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 22 Feb 2016 09:24:41 -0700 (MST) Subject: [vtkusers] How to rotate the outline of the vtkImplicitPlaneWidget2 ? In-Reply-To: References: Message-ID: <1456158281598-5736713.post@n5.nabble.com> Did you actually figure it out. Looking for a solution to that problem as well. Thanks in advance -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-rotate-the-outline-of-the-vtkImplicitPlaneWidget2-tp5727807p5736713.html Sent from the VTK - Users mailing list archive at Nabble.com. From jfavre at cscs.ch Mon Feb 22 11:39:07 2016 From: jfavre at cscs.ch (Favre Jean) Date: Mon, 22 Feb 2016 16:39:07 +0000 Subject: [vtkusers] Programmable source not visualized In-Reply-To: <56cb1049.88c8c20a.c0cce.ffff86e5@mx.google.com> References: <56cb1049.88c8c20a.c0cce.ffff86e5@mx.google.com> Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F6843583D1A@MBX211.d.ethz.ch> you are pretty close to the solution. Remember to set the "output dataset type" to vtkUnstructuredGrid (at the top of the ProgrammaableSource panel, and substitute your code # Add the points and hexahedron to an unstructured grid uGrid = vtk.vtkUnstructuredGrid() uGrid.Allocate(1,1) uGrid.InsertNextCell(hex_.GetCellType(), hex_.GetPointIds()) uGrid.SetPoints(points) uGrid.GetPointData().SetScalars(scalars) with this code, which makes use of the predefined object called 'output" output.Allocate(1,1) output.InsertNextCell(hex_.GetCellType(), hex_.GetPointIds()) output.Points = points output.PointData.SetScalars(scalars) ----------------- Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From MEEHANBT at nv.doe.gov Mon Feb 22 11:48:27 2016 From: MEEHANBT at nv.doe.gov (Meehan, Bernard) Date: Mon, 22 Feb 2016 16:48:27 +0000 Subject: [vtkusers] Saving multiple time steps in a vtkXMLStructuredGrid file ... In-Reply-To: <201602221606.u1MG6Xk7018033-u1MG6XkA018033@mta-1.nv.doe.gov> References: <201602221606.u1MG6Xk7018033-u1MG6XkA018033@mta-1.nv.doe.gov> Message-ID: I ended up solving the problem by using a ?PVD? file (http://www.paraview.org/Wiki/ParaView/Data_formats#PVD_File_Format). Note, that in the link, the example file has ?? at the top, but it will work fine without it. From: Guillaume Jacquenot > Date: Monday, February 22, 2016 at 8:06 AM To: "vtkusers at vtk.org" >, Tim Meehan > Subject: [vtkusers] Saving multiple time steps in a vtkXMLStructuredGrid file ... Hello everyone, I am wondering if the post had any answer. http://www.itk.org/pipermail/vtkusers/2015-July/091641.html I am facing the same problem, where : - I can not set the timestep value in the exported XML file (All TimeStep values are 0) - Paraview does not use the attribute TimeValues when reading XML VTK file Below is the mail from Bernard Meehan, who reported this problem. I?ve looked all over the wiki, and all of the books that I have, and I just can?t figure this out. Was vtkXMLStructuredGrid just plain not designed to handle time? In the vts file, I can see that the time steps are saved: 0.0, 0.1, 0.2, just like I wrote them, but when I load them into ParaView, they show up as 0, 1, 2. In the file it seems to record three separate time steps, but it calls them all TimeStep=?0? I get the feeling that I am leaving something simple out, any help would be appreciated. On 7/8/15, 8:02 AM, "Meehan, Bernard" > wrote: >I was hoping to be able to write a scalar field that changed over time to >a vtkXMLStructuredGridFile, following the example on this thread: >http://public.kitware.com/pipermail/vtkusers/2012-November/077262.html>>But when I examined my ?*vts? file, the scalar function wasn?t written to >a different time step. I?d be happy to turn this into an example on the >wiki if I could get it to work ? >>import vtk >>NX = 10 >NY = 10 >NZ = 10 >>#-------------------------------Create your >Grid-------------------------------# >pts = vtk.vtkPoints() >for i in range(NX): > for j in range(NY): > for k in range(NZ): > pts.InsertNextPoint(i, j, k) >>sg = vtk.vtkStructuredGrid() >sg.SetDimensions(NX, NY, NZ) >sg.SetPoints(pts) >>f1 = vtk.vtkDoubleArray() >f1.SetName("Function 1") >for i in range(NX): > for j in range(NY): > for k in range(NZ): > f1.InsertNextValue(i+j+k) >sg.GetPointData().AddArray(f1) >>#----------------------------------Save >File-----------------------------------# >w = vtk.vtkXMLStructuredGridWriter() >w.SetFileName("test.vts") >w.SetInputData(sg) >w.SetDataModeToAscii() >w.SetCompressorTypeToNone() >w.SetNumberOfTimeSteps(3) >>w.Start() >w.WriteNextTime(0.0) >w.WriteNextTime(0.1) >># I wanted to see if I could change "Function 1" at the third time step, >but ># when I look at the file that is written, the time step for this never >seems ># to change? >>f1 = vtk.vtkDoubleArray() >f1.SetName("Function 1") >for i in range(NX): > for j in range(NY): > for k in range(NZ): > f1.InsertNextValue(-(i+j+k)) >sg.GetPointData().AddArray(f1) >sg.Modified() >>w.WriteNextTime(0.2) >w.Stop() > -------------- next part -------------- An HTML attachment was scrubbed... URL: From enzo.ferlin at micromar.com Mon Feb 22 12:32:59 2016 From: enzo.ferlin at micromar.com (Enzo Ferlin) Date: Mon, 22 Feb 2016 14:32:59 -0300 Subject: [vtkusers] Add sphere to current slice (vtkImageReslice) Message-ID: Hello, I'm trying to add a sphere to the current slice of a rendered DICOM volume. Basically, I'm using this code: http://web.mit.edu/16.225/dv/VTK/Examples/ImageProcessing/Cxx/ImageSlicing.cxx The only difference being that I use MouseWheelForwardEvent/MouseWheelBackwardEvent to reslice and I intercept left button press on my custom interactor (vtkInteractorStyleImage) to add a sphere on that position. The sphere is added in the correct position (as an addition, I can already measure the correct distance (mm) between 2 added spheres). My problem is that when I scroll to go back/forward another slice, these spheres stays in front of the volume. I want those spheres appear only when I pass through that particular slice that they were added. How could I accomplish that? Thank in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From orodenberg at gmail.com Mon Feb 22 13:18:38 2016 From: orodenberg at gmail.com (Olivier Rodenberg) Date: Mon, 22 Feb 2016 19:18:38 +0100 Subject: [vtkusers] programmable source multiple hexahedrons in unstructured grid Message-ID: <56cb50fd.016b1c0a.b4558.507f@mx.google.com> Hi all, I am trying to create a programmable filter where multiple(>1000) cubes(hexahedrons) are stored in an unstructured grid. Each of the cubes has an own attribute value which will be used for colouring. The centre points, the edge lenth and the attribute value of the cubes are extracted from a PostgreSQL database via the python extension psycopg2. I am able to create a single hexahedron. However I am not able to add more geometries to an unstructured grid. The code that I am using is described bellow. When running the code I get the error ?TypeError: 'vtkCommonDataModelPython.vtkUnstructuredGrid' object is not iterable?. I am not sure how to proceed. Is it even possible to create a unstructured grid? And does anyone know how I could store multiple geometries in an unstructured grid? import psycopg2 def connectDBMS(): conn = psycopg2.connect("host='localhost' dbname='thesis' user='postgres' password='Supermen1'") cur = conn.cursor() cur.execute('SELECT * FROM emptyspace limit 10;') return cur.fetchall() def DBMSToGeom(octree): numberOfVertices = 8 # create the unstructured grid octree = vtk.vtkUnstructuredGrid() # Create the points for materialpath, x , y , z , leafsize in octree: # create the coordinates for the points l = .5*leafsize xL = int(x)-l xR = int(x)+l yL = int(y)-l yR = int(y)+l zL = int(z)-l zR = int(z)+l # create the points points = vtk.vtkPoints() points.InsertNextPoint(xL, yL, zL) points.InsertNextPoint(xR, yL, zL) points.InsertNextPoint(xR, yR, zL) points.InsertNextPoint(xL, yR, zL) points.InsertNextPoint(xL, yL, zR) points.InsertNextPoint(xR, yL, zR) points.InsertNextPoint(xR, yR, zR) points.InsertNextPoint(xL, yR, zR) # Create a hexahedron from the points hex_ = vtk.vtkHexahedron() for i in range(0, numberOfVertices): hex_.GetPointIds().SetId(i, i) #Create the attribute NodeLength = vtk.vtkDoubleArray() NodeLength.SetName('Node lenght') NodeLength.InsertNextValue(leafsize) # Add the geometry to the unstructured grid octree.InsertNextCell(hex_.GetCellType(), hex_.GetPointIds()) # Add the points and hexahedron to an unstructured grid output.Allocate(1,1) output.octree output.Points = points output.CellData.SetScalars(NodeLength) if (__name__ == "__main__"): DBMSToGeom(connectDBMS()) -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Feb 22 13:20:35 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 22 Feb 2016 11:20:35 -0700 Subject: [vtkusers] Add sphere to current slice (vtkImageReslice) In-Reply-To: References: Message-ID: Hi Enzo, As a general solution, you can add a callback for the renderer's StartEvent. The renderer emits this event immediately before it renders the scene, so a StartEvent callback can be used to compute the distance of each sphere from the slice plane, and can then call VisibilityOn() for all sphere actors that are close to the slice, and VisibilityOff() for all actors that are far from the slice. I've found the StartEvent to be incredibly useful for manipulating annotations like spheres, arrows, text, and whatnot. - David On Mon, Feb 22, 2016 at 10:32 AM, Enzo Ferlin wrote: > Hello, > > I'm trying to add a sphere to the current slice of a rendered DICOM volume. > > Basically, I'm using this code: > > > http://web.mit.edu/16.225/dv/VTK/Examples/ImageProcessing/Cxx/ImageSlicing.cxx > > The only difference being that I use > MouseWheelForwardEvent/MouseWheelBackwardEvent to reslice and I intercept > left button press on my custom interactor (vtkInteractorStyleImage) to add > a sphere on that position. > > The sphere is added in the correct position (as an addition, I can already > measure the correct distance (mm) between 2 added spheres). > My problem is that when I scroll to go back/forward another slice, these > spheres stays in front of the volume. > > I want those spheres appear only when I pass through that particular slice > that they were added. > > How could I accomplish that? > > > Thank in advance. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthias at blaicher.com Mon Feb 22 13:30:24 2016 From: matthias at blaicher.com (Matthias Blaicher) Date: Mon, 22 Feb 2016 19:30:24 +0100 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 Message-ID: <56CB53C0.4030607@blaicher.com> Hi all, I've build VTK 7.0 for Python 3.5 and non-visual stuff works great. However, as soon as I want to open an OpenGL context, I get errors. This is on an Intel Graphics card. I do also have VTK 6.3 by Anaconda on Python 2 an there everything works great. Some screenshots are attached. The first error message is > FvtkWin32OpenGLRenderWindow: failed to get valid pixel format. Does anybody have an idea what I'm doing wrong? Best, Matthias -------------- next part -------------- A non-text attachment was scrubbed... Name: crash.PNG Type: image/png Size: 59150 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: opengl.PNG Type: image/png Size: 112236 bytes Desc: not available URL: From david.gobbi at gmail.com Mon Feb 22 14:21:08 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 22 Feb 2016 12:21:08 -0700 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 In-Reply-To: <56CB53C0.4030607@blaicher.com> References: <56CB53C0.4030607@blaicher.com> Message-ID: Might be a compatibility issue, see the following discussion: http://public.kitware.com/pipermail/vtk-developers/2016-February/033168.html - David On Mon, Feb 22, 2016 at 11:30 AM, Matthias Blaicher wrote: > Hi all, > > I've build VTK 7.0 for Python 3.5 and non-visual stuff works great. > However, as soon as I want to open an OpenGL context, I get errors. This > is on an Intel Graphics card. I do also have VTK 6.3 by Anaconda on > Python 2 an there everything works great. > > Some screenshots are attached. The first error message is > > FvtkWin32OpenGLRenderWindow: failed to get valid pixel format. > > Does anybody have an idea what I'm doing wrong? > > Best, > Matthias > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthias at blaicher.com Mon Feb 22 14:33:38 2016 From: matthias at blaicher.com (Matthias Blaicher) Date: Mon, 22 Feb 2016 20:33:38 +0100 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 In-Reply-To: References: <56CB53C0.4030607@blaicher.com> Message-ID: <56CB6292.7040201@blaicher.com> Hi David, I guess you are right, it looks like this is the issue. According to OpenGL Extensions Viewer, the card exposes OpenGL 4. If I understood it correctly, the problem seems to be that gpu_shader4 is not exposed in the 2.1 context. And 3.2 is tested but fails (have to check that for my card). Is there any patch, which would try a 3.1 context too? I've seen some commits in master (e.g. ca65662fa "Merge topic 'try_more_recent_opengl_add_getversion'"). I'll give the master branch a spin and report back. Best, Matthias On 02/22/2016 08:21 PM, David Gobbi wrote: > Might be a compatibility issue, see the following discussion: > http://public.kitware.com/pipermail/vtk-developers/2016-February/033168.html > > - David > > On Mon, Feb 22, 2016 at 11:30 AM, Matthias Blaicher > > wrote: > > Hi all, > > I've build VTK 7.0 for Python 3.5 and non-visual stuff works great. > However, as soon as I want to open an OpenGL context, I get errors. This > is on an Intel Graphics card. I do also have VTK 6.3 by Anaconda on > Python 2 an there everything works great. > > Some screenshots are attached. The first error message is > > FvtkWin32OpenGLRenderWindow: failed to get valid pixel format. > > Does anybody have an idea what I'm doing wrong? > > Best, > Matthias > From yassminabdallah at gmail.com Mon Feb 22 14:38:52 2016 From: yassminabdallah at gmail.com (YassminAbdallah) Date: Mon, 22 Feb 2016 12:38:52 -0700 (MST) Subject: [vtkusers] Convert volume to .obj file In-Reply-To: References: <1456142143776-5736695.post@n5.nabble.com> Message-ID: <0397A40E-EDEE-4A51-9F19-AC39D9C8A40F@gmail.com> Hello, Thanks cory for clarification. Aashish, i was thinking if i can save the volume to a file then use Metal to render the object on screen. i don?t know if this is a bad idea or not. Thanks a lot , Yassmin > On Feb 22, 2016, at 4:20 PM, Aashish Chaudhary-2 [via VTK] wrote: > > Yassmin, > > What you are trying to do? > > - Aashsih > > On Mon, Feb 22, 2016 at 8:50 AM, Cory Quammen <[hidden email] > wrote: > Yassmin, > > No, it is not possible. To clarify, the > vtkOpenGLGPUVolumeRayCastMapper generates 2D images from volume data - > it doesn't generate volume data. The .obj file format stores polygonal > meshes and is not able to store volume data. > > Best, > Cory > > On Mon, Feb 22, 2016 at 6:55 AM, YassminAbdallah > <[hidden email] > wrote: > > Hello, > > > > i was asking how to convert the volume generated from > > "vtkOpenGLGPUVolumeRayCastMapper" to .obj file ?? > > and if this possible or not ? > > > > > > Note: > > i use VTK for iOS. > > > > Thanks a lot for your time, > > > > Yassmin > > > > > > > > -- > > View this message in context: http://vtk.1045678.n5.nabble.com/Convert-volume-to-obj-file-tp5736695.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 > > > > -- > | Aashish Chaudhary > | Technical Leader > | Kitware Inc. > | http://www.kitware.com/company/team/chaudhary.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > If you reply to this email, your message will be added to the discussion below: > http://vtk.1045678.n5.nabble.com/Convert-volume-to-obj-file-tp5736695p5736709.html > To unsubscribe from Convert volume to .obj file, click here . > NAML -- View this message in context: http://vtk.1045678.n5.nabble.com/Convert-volume-to-obj-file-tp5736695p5736726.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Feb 22 15:03:34 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 22 Feb 2016 13:03:34 -0700 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 In-Reply-To: <56CB6292.7040201@blaicher.com> References: <56CB53C0.4030607@blaicher.com> <56CB6292.7040201@blaicher.com> Message-ID: If you get the master branch, it includes this patch which might be related: https://gitlab.kitware.com/vtk/vtk/commit/8d0daf13 On Mon, Feb 22, 2016 at 12:33 PM, Matthias Blaicher wrote: > Hi David, > > I guess you are right, it looks like this is the issue. According to > OpenGL Extensions Viewer, the card exposes OpenGL 4. > > If I understood it correctly, the problem seems to be that gpu_shader4 > is not exposed in the 2.1 context. And 3.2 is tested but fails (have to > check that for my card). > > Is there any patch, which would try a 3.1 context too? I've seen some > commits in master (e.g. ca65662fa "Merge topic > 'try_more_recent_opengl_add_getversion'"). I'll give the master branch a > spin and report back. > > Best, > > Matthias > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Mon Feb 22 15:49:15 2016 From: jfavre at cscs.ch (Favre Jean) Date: Mon, 22 Feb 2016 20:49:15 +0000 Subject: [vtkusers] programmable source multiple hexahedrons in unstructured grid In-Reply-To: <56cb50fd.016b1c0a.b4558.507f@mx.google.com> References: <56cb50fd.016b1c0a.b4558.507f@mx.google.com> Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F6843583ED5@MBX211.d.ethz.ch> I don't know the details of your app, but you should follow the following schema I'll assume for simplicity, that the hexahedra do not share any vertices with any other hexahedra if they do, then you need to figure out how to avoid replicating points. # use "output", as the pre-defined vtkUnstructuredGrid created for you # create a single vtkPoints and add all vertices to it # if you have N hexahedra, you'll add 8xN points # create a single vtkDoubleArray of size N # offset the indices of each hexahedra by 8 points = vtk.vtkPoints() #Create the attribute NodeLength = vtk.vtkDoubleArray() NodeLength.SetName('Node lenght') I=0 for materialpath, x , y , z , leafsize in octree: # create the coordinates for the points l = .5*leafsize xL = int(x)-l xR = int(x)+l yL = int(y)-l yR = int(y)+l zL = int(z)-l zR = int(z)+l points.InsertNextPoint(xL, yL, zL) points.InsertNextPoint(xR, yL, zL) points.InsertNextPoint(xR, yR, zL) points.InsertNextPoint(xL, yR, zL) points.InsertNextPoint(xL, yL, zR) points.InsertNextPoint(xR, yL, zR) points.InsertNextPoint(xR, yR, zR) points.InsertNextPoint(xL, yR, zR) # Create a hexahedron from the points hex_ = vtk.vtkHexahedron() for i in range(0, numberOfVertices): hex_.GetPointIds().SetId(i, 8*I+i) NodeLength.InsertNextValue(leafsize) # Add the geometry to the unstructured grid output.InsertNextCell(hex_.GetCellType(), hex_.GetPointIds()) I = I +1 # Add the points and hexahedron to an unstructured grid output.Points = points output.CellData.SetScalars(NodeLength) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ns451 at srcf.net Mon Feb 22 16:04:35 2016 From: ns451 at srcf.net (Nishad Sohoni) Date: Mon, 22 Feb 2016 21:04:35 +0000 Subject: [vtkusers] programmable source multiple hexahedrons in unstructured grid In-Reply-To: <56cb50fd.016b1c0a.b4558.507f@mx.google.com> References: <56cb50fd.016b1c0a.b4558.507f@mx.google.com> Message-ID: <56CB77E3.8060902@srcf.net> The TypeError seems to be because you use 'octree' as the input to DBMSToGeom, but also as the new unstructured grid. Perhaps you should do: def DBMSToGeom(octree_in): numberOfVertices = 8 # create the unstructured grid octree_out = vtk.vtkUnstructuredGrid() # Create the points for materialpath, x , y , z , leafsize in octree_in: # Rest of loop # # Rest of function # On 22/02/16 18:18, Olivier Rodenberg wrote: > > Hi all, > > I am trying to create a programmable filter where multiple(>1000) > cubes(hexahedrons) are stored in an unstructured grid. > > Each of the cubes has an own attribute value which will be used for > colouring. > > The centre points, the edge lenth and the attribute value of the cubes > are extracted from a PostgreSQL database via the python extension > psycopg2. I am able to create a single hexahedron. However I am not > able to add more geometries to an unstructured grid. The code that I > am using is described bellow. When running the code I get the error > ?TypeError: 'vtkCommonDataModelPython.vtkUnstructuredGrid' object is > not iterable?. I am not sure how to proceed. Is it even possible to > create a unstructured grid? And does anyone know how I could store > multiple geometries in an unstructured grid? > > /import psycopg2/ > > // > > /def connectDBMS():/ > > /conn = psycopg2.connect("host='localhost' dbname='thesis' > user='postgres' password='Supermen1'")/ > > /cur = conn.cursor() / > > / cur.execute('SELECT * FROM emptyspace limit 10;') / > > / return cur.fetchall()/ > > // > > /def DBMSToGeom(octree):/ > > /numberOfVertices = 8/ > > // > > /# create the unstructured grid/ > > /octree = vtk.vtkUnstructuredGrid()/ > > // > > /# Create the points/ > > /for materialpath, x , y , z , leafsize in octree:/ > > // > > /# create the coordinates for the points/ > > /l = .5*leafsize/ > > /xL = int(x)-l/ > > /xR = int(x)+l / > > / yL = int(y)-l/ > > /yR = int(y)+l / > > / zL = int(z)-l/ > > /zR = int(z)+l/ > > // > > /# create the points/ > > / points = vtk.vtkPoints()/ > > /points.InsertNextPoint(xL, yL, zL)/ > > /points.InsertNextPoint(xR, yL, zL)/ > > /points.InsertNextPoint(xR, yR, zL)/ > > /points.InsertNextPoint(xL, yR, zL)/ > > /points.InsertNextPoint(xL, yL, zR)/ > > /points.InsertNextPoint(xR, yL, zR)/ > > /points.InsertNextPoint(xR, yR, zR)/ > > /points.InsertNextPoint(xL, yR, zR)/ > > // > > /# Create a hexahedron from the points/ > > /hex_ = vtk.vtkHexahedron()/ > > /for i in range(0, numberOfVertices):/ > > /hex_.GetPointIds().SetId(i, i)/ > > // > > /#Create the attribute/ > > /NodeLength = vtk.vtkDoubleArray()/ > > /NodeLength.SetName('Node lenght')/ > > /NodeLength.InsertNextValue(leafsize)/ > > // > > /# Add the geometry to the unstructured grid/ > > /octree.InsertNextCell(hex_.GetCellType(), hex_.GetPointIds())/ > > // > > /# Add the points and hexahedron to an unstructured grid/ > > /output.Allocate(1,1)/ > > /output.octree/ > > /output.Points = points/ > > /output.CellData.SetScalars(NodeLength)/ > > // > > /if (__name__ == "__main__"):/ > > /DBMSToGeom(connectDBMS())/ > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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 dmitrievko at gmail.com Mon Feb 22 18:50:16 2016 From: dmitrievko at gmail.com (Konstantin) Date: Mon, 22 Feb 2016 16:50:16 -0700 (MST) Subject: [vtkusers] vtkSeedWidget for vtkResliceImageViewer Message-ID: <1456185016932-5736731.post@n5.nabble.com> I saw a few posts about this, but non of them has a newbie-friendly solution or any solution at all. I have a vtkResliceImageViewer where I display some DICOM data. I also managed to add vtkPointHandleRepresentation3D+vtkSeedRepresentation+vtkSeedWidget to place some seeds, but the problem is that I cannot add seeds to any slice expect for Z=0 slice. When I scroll up and try to add new seeds, they still appear on Z=0 slice. Here is my code: ... resliceImageViewer[i] = vtkSmartPointer< vtkResliceImageViewer >::New(); ... /interactorTrueSeed = vtkSmartPointer::New(); handleRepTrue = vtkSmartPointer::New(); widgetRepTrue = vtkSmartPointer::New(); seedWidgetTrue = vtkSmartPointer::New(); interactorTrueSeed->SetRenderWindow( resliceImageViewer[2]->GetRenderWindow() ); handleRepTrue->GetProperty()->SetColor( 1, 0, 0 ); widgetRepTrue->SetHandleRepresentation( handleRepTrue ); seedWidgetTrue->SetInteractor( interactorTrueSeed ); seedWidgetTrue->SetRepresentation( widgetRepTrue ); seedWidgetTrue->On(); interactorTrueSeed->Start();/ I don't have any custom interactors. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkSeedWidget-for-vtkResliceImageViewer-tp5736731.html Sent from the VTK - Users mailing list archive at Nabble.com. From rickfrank at me.com Mon Feb 22 18:50:23 2016 From: rickfrank at me.com (Richard Frank) Date: Mon, 22 Feb 2016 18:50:23 -0500 Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 Message-ID: Hi, I get the following errors ( and my fairly complex polygon mesh fails to render ) when using VTK 7.0. ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 OpenGL errors detected 0 : (1282) Invalid operation ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors detected 0 : (1285) Out of memory This is code is " works " fine in 6.3.0. I'm using an NVidia quadro K5200 with 8G. Any tips on how to debug this? Thanks Rick Sent from my iPad From ken.martin at kitware.com Mon Feb 22 21:44:56 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 22 Feb 2016 21:44:56 -0500 Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 In-Reply-To: References: Message-ID: Out of memory is an unusual one. Maybe the mesh is too big to load all at once in the new backend. How big is the mesh you are trying to render (number of points, number of triangles) and does it use cell colors or cell normals? That would help me get a feel if it is really just exceeding what the card can handle. Thanks Ken On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank wrote: > Hi, > > I get the following errors ( and my fairly complex polygon mesh fails to > render ) when using VTK 7.0. > ERROR: In > > \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 > vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 > OpenGL errors detected > 0 : (1282) Invalid operation > > > > ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 > vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors > detected > 0 : (1285) Out of memory > > > This is code is " works " fine in 6.3.0. > > I'm using an NVidia quadro K5200 with 8G. > > Any tips on how to debug this? > Thanks > > Rick > > > Sent from my iPad > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Feb 22 21:59:47 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 22 Feb 2016 21:59:47 -0500 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 In-Reply-To: References: <56CB53C0.4030607@blaicher.com> <56CB6292.7040201@blaicher.com> Message-ID: If your card supports OpenGL 4 then I would think it would also provide a 3.2 context. I'm not aware of cards that support 4.0 but would not return a 3.2 context when requested. If you check out and build VTK master you could try running ctest -R VBOPLY -VV and ctest -R Apple -VV the output of those two tests can be helpful in debugging these issues. Also maybe your system has two GPUs? Like intel on chip plus a dedicated GPU and somehow you are not getting the dedicated GPU maybe? Just some ideas. On Mon, Feb 22, 2016 at 3:03 PM, David Gobbi wrote: > If you get the master branch, it includes this patch which might be > related: > https://gitlab.kitware.com/vtk/vtk/commit/8d0daf13 > > On Mon, Feb 22, 2016 at 12:33 PM, Matthias Blaicher > wrote: > >> Hi David, >> >> I guess you are right, it looks like this is the issue. According to >> OpenGL Extensions Viewer, the card exposes OpenGL 4. >> >> If I understood it correctly, the problem seems to be that gpu_shader4 >> is not exposed in the 2.1 context. And 3.2 is tested but fails (have to >> check that for my card). >> >> Is there any patch, which would try a 3.1 context too? I've seen some >> commits in master (e.g. ca65662fa "Merge topic >> 'try_more_recent_opengl_add_getversion'"). I'll give the master branch a >> spin and report back. >> >> Best, >> >> Matthias >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Feb 22 22:04:40 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 22 Feb 2016 22:04:40 -0500 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 In-Reply-To: References: <56CB53C0.4030607@blaicher.com> <56CB6292.7040201@blaicher.com> Message-ID: Ahh I just saw your screenshots indicating Intel 2500. Maybe the master changes will work on that. I believe we have been having some hiccups with the older intel GPUs. I'd like to get them iron out. Ken On Mon, Feb 22, 2016 at 9:59 PM, Ken Martin wrote: > If your card supports OpenGL 4 then I would think it would also provide a > 3.2 context. I'm not aware of cards that support 4.0 but would not return a > 3.2 context when requested. If you check out and build VTK master you could > try running > > ctest -R VBOPLY -VV > > and > > ctest -R Apple -VV > > the output of those two tests can be helpful in debugging these issues. > Also maybe your system has two GPUs? Like intel on chip plus a dedicated > GPU and somehow you are not getting the dedicated GPU maybe? Just some > ideas. > > > > > On Mon, Feb 22, 2016 at 3:03 PM, David Gobbi > wrote: > >> If you get the master branch, it includes this patch which might be >> related: >> https://gitlab.kitware.com/vtk/vtk/commit/8d0daf13 >> >> On Mon, Feb 22, 2016 at 12:33 PM, Matthias Blaicher < >> matthias at blaicher.com> wrote: >> >>> Hi David, >>> >>> I guess you are right, it looks like this is the issue. According to >>> OpenGL Extensions Viewer, the card exposes OpenGL 4. >>> >>> If I understood it correctly, the problem seems to be that gpu_shader4 >>> is not exposed in the 2.1 context. And 3.2 is tested but fails (have to >>> check that for my card). >>> >>> Is there any patch, which would try a 3.1 context too? I've seen some >>> commits in master (e.g. ca65662fa "Merge topic >>> 'try_more_recent_opengl_add_getversion'"). I'll give the master branch a >>> spin and report back. >>> >>> Best, >>> >>> Matthias >>> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Feb 23 02:37:16 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 23 Feb 2016 08:37:16 +0100 Subject: [vtkusers] Examples/Python/Widgets/EmbedPyQt segfault on Ubuntu In-Reply-To: References: Message-ID: Den 22 feb 2016 1:15 em skrev "Elvis Stansvik" : > > Hi all, > > Trying the > > http://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt > > example on Ubuntu with python-vtk6 (6.2.0+dfsg1-4ubuntu5) and python-qt4 (4.11.4+dfsg-1build3) installed, I get a strange segmentation fault on startup: > > > > estan at newton:~/orexplore/dev/gui-demo$ gdb python > GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 > Copyright (C) 2015 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > . > Find the GDB manual and other documentation resources online at: > . > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from python...Reading symbols from /usr/lib/debug//usr/bin/python2.7...done. > done. > (gdb) run test2.py > Starting program: /usr/bin/python test2.py > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > [New Thread 0x7fffb1bb8700 (LWP 3113)] > [New Thread 0x7fffb13b7700 (LWP 3114)] > [New Thread 0x7fffacbb6700 (LWP 3115)] > > Program received signal SIGSEGV, Segmentation fault. > 0x00007fff97a2885e in _GLOBAL__sub_I_qpycore_classinfo.cpp () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so > (gdb) bt > #0 0x00007fff97a2885e in _GLOBAL__sub_I_qpycore_classinfo.cpp () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so > #1 0x00007ffff7de960a in call_init (l=, argc=argc at entry=2, argv=argv at entry=0x7fffffffddf8, env=env at entry=0x7fffffffde10) at dl-init.c:72 > #2 0x00007ffff7de971b in call_init (env=, argv=, argc=, l=) at dl-init.c:30 > #3 _dl_init (main_map=main_map at entry=0x9e8d10, argc=2, argv=0x7fffffffddf8, env=0x7fffffffde10) at dl-init.c:120 > #4 0x00007ffff7dee5d7 in dl_open_worker (a=a at entry=0x7fffffffd1d8) at dl-open.c:579 > #5 0x00007ffff7de94b4 in _dl_catch_error (objname=objname at entry=0x7fffffffd1c8, errstring=errstring at entry=0x7fffffffd1d0, mallocedp=mallocedp at entry=0x7fffffffd1c7, operate=operate at entry=0x7ffff7dee0f0 , args=args at entry=0x7fffffffd1d8) at dl-error.c:187 > #6 0x00007ffff7ded9f3 in _dl_open (file=0xee42e0 "/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so", mode=-2147483646, caller_dlopen=0x51a359 <_PyImport_GetDynLoadFunc+233>, nsid=-2, argc=, argv=, env=0x7fffffffde10) at dl-open.c:663 > #7 0x00007ffff75edfc9 in dlopen_doit (a=a at entry=0x7fffffffd3f0) at dlopen.c:66 > #8 0x00007ffff7de94b4 in _dl_catch_error (objname=0x9a1650, errstring=0x9a1658, mallocedp=0x9a1648, operate=0x7ffff75edf70 , args=0x7fffffffd3f0) at dl-error.c:187 > #9 0x00007ffff75ee62d in _dlerror_run (operate=operate at entry=0x7ffff75edf70 , args=args at entry=0x7fffffffd3f0) at dlerror.c:163 > #10 0x00007ffff75ee061 in __dlopen (file=, mode=) at dlopen.c:87 > #11 0x000000000051a359 in _PyImport_GetDynLoadFunc () at ../Python/dynload_shlib.c:140 > #12 0x0000000000519eb4 in _PyImport_LoadDynamicModule () at ../Python/importdl.c:42 > #13 0x00000000004a2891 in import_submodule () at ../Python/import.c:2704 > #14 0x00000000004a7545 in ensure_fromlist () at ../Python/import.c:2610 > #15 0x00000000004a1cc8 in import_module_level.isra.3 (level=-1, fromlist=('QtCore', 'QtGui'), globals=, name=) at ../Python/import.c:2273 > #16 PyImport_ImportModuleLevel () at ../Python/import.c:2292 > #17 0x00000000004a4834 in builtin___import__ () at ../Python/bltinmodule.c:49 > #18 0x00000000004a45de in PyObject_Call () at ../Objects/abstract.c:2529 > #19 0x00000000004c3e40 in PyEval_CallObjectWithKeywords () at ../Python/ceval.c:4225 > #20 0x00000000004c2a38 in PyEval_EvalFrameEx () at ../Python/ceval.c:2628 > #21 0x00000000004b7986 in PyEval_EvalCodeEx () at ../Python/ceval.c:3588 > #22 0x00000000004e8f3f in PyEval_EvalCode (locals={'vtk': , '__builtins__': , '__file__': 'test2.py', '__package__': None, 'sys': , '__name__': '__main__', '__doc__': None}, > globals={'vtk': , '__builtins__': , '__file__': 'test2.py', '__package__': None, 'sys': , '__name__': '__main__', '__doc__': None}, co=0x7ffff7ee8db0) at ../Python/ceval.c:669 > #23 run_mod.lto_priv () at ../Python/pythonrun.c:1370 > #24 0x00000000004e3b02 in PyRun_FileExFlags () at ../Python/pythonrun.c:1356 > #25 0x00000000004e22e6 in PyRun_SimpleFileExFlags () at ../Python/pythonrun.c:948 > #26 0x0000000000490fe1 in Py_Main () at ../Modules/main.c:640 > #27 0x00007ffff7811a40 in __libc_start_main (main=0x4909f0
, argc=2, argv=0x7fffffffddf8, init=, fini=, rtld_fini=, stack_end=0x7fffffffdde8) at libc-start.c:289 > #28 0x0000000000490919 in _start () > Warning: the current language does not match this frame. > (gdb) > > > > Has anyone seen this before? I'm a little perplexed, as even a very simple program like: > > from PyQt4.QtGui import QApplication, QMainWindow > > from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor > > import sys > > app = QApplication(sys.argv) > > gives a segmentation fault, though in this case, the crash occurs when dlopen()ing /usr/lib/libkdecore.so.5 instead: Sorry, I meant breeze.so, the Qt 4 style library from KDE. In any case, I can reproduce a segfault with the tiny example above in a clean Ubuntu Docker container, using the packages I mentioned. I'll post the instructions + Dockerfile to do so as soon as I'm at work. Has really no one seen this before? Surely someone has used VTK 6.2 + PyQt4 on Ubuntu? Elvis > > > #0 0x00007fff93d9bd4e in ?? () from /usr/lib/libkdecore.so.5 > #1 0x00007ffff7de960a in call_init (l=, argc=argc at entry=2, argv=argv at entry=0x7fffffffddf8, env=env at entry=0x7fffffffde10) at dl-init.c:72 > #2 0x00007ffff7de971b in call_init (env=, argv=, argc=, l=) at dl-init.c:30 > #3 _dl_init (main_map=main_map at entry=0x10c4470, argc=2, argv=0x7fffffffddf8, env=0x7fffffffde10) at dl-init.c:120 > #4 0x00007ffff7dee5d7 in dl_open_worker (a=a at entry=0x7fffffffc508) at dl-open.c:579 > #5 0x00007ffff7de94b4 in _dl_catch_error (objname=objname at entry=0x7fffffffc4f8, errstring=errstring at entry=0x7fffffffc500, mallocedp=mallocedp at entry=0x7fffffffc4f7, operate=operate at entry=0x7ffff7dee0f0 , args=args at entry=0x7fffffffc508) at dl-error.c:187 > #6 0x00007ffff7ded9f3 in _dl_open (file=0x10d6638 "/usr/lib/kde4/plugins/styles/breeze.so", mode=-2147483647, caller_dlopen=0x7ffff4f08cd6, nsid=-2, argc=, argv=, env=0x7fffffffde10) at dl-open.c:663 > #7 0x00007ffff75edfc9 in dlopen_doit (a=a at entry=0x7fffffffc720) at dlopen.c:66 > #8 0x00007ffff7de94b4 in _dl_catch_error (objname=0x98b920, errstring=0x98b928, mallocedp=0x98b918, operate=0x7ffff75edf70 , args=0x7fffffffc720) at dl-error.c:187 > #9 0x00007ffff75ee62d in _dlerror_run (operate=operate at entry=0x7ffff75edf70 , args=args at entry=0x7fffffffc720) at dlerror.c:163 > #10 0x00007ffff75ee061 in __dlopen (file=, mode=) at dlopen.c:87 > #11 0x00007ffff4f08cd6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > #12 0x00007ffff4f0307d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > #13 0x00007ffff4f0370b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > #14 0x00007ffff4efc066 in QFactoryLoader::instance(QString const&) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > #15 0x00007ffff575317d in QStyleFactory::create(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #16 0x00007ffff54479ce in QApplication::style() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #17 0x00007ffff54b910a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #18 0x00007ffff54bcc83 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #19 0x00007ffff5447fa2 in QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #20 0x00007ffff544824f in QApplication::QApplication(int&, char**, int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #21 0x00007ffff64fbfae in sipQApplication::sipQApplication (this=0xba80d0, a0=, a1=) at sipQtGuipart9.cpp:36106 > #22 0x00007ffff64fc196 in init_type_QApplication (sipSelf=0x7ffff1136938, sipArgs=, sipKwds=0x0, sipUnused=, sipParseErr=) at /build/python-qt4-DPZMhZ/python-qt4-4.11.4+dfsg/sip/QtGui/qapplication.sip:901 > #23 0x00007ffff16901cb in sipSimpleWrapper_init (self=0x7ffff1136938, args=(['test.py'],), kwds=0x0) at siplib.c:9702 > #24 0x00000000004a9efb in type_call.lto_priv () at ../Objects/typeobject.c:745 > #25 0x00000000004bf3cc in PyObject_Call (kw=0x0, arg=(['test.py'],), func=) at ../Objects/abstract.c:2529 > #26 do_call (nk=, na=, pp_stack=0x7fffffffd9b0, func=) at ../Python/ceval.c:4574 > #27 call_function (oparg=, pp_stack=0x7fffffffd9b0) at ../Python/ceval.c:4379 > #28 PyEval_EvalFrameEx () at ../Python/ceval.c:2993 > #29 0x00000000004b7986 in PyEval_EvalCodeEx () at ../Python/ceval.c:3588 > #30 0x00000000004e8f3f in PyEval_EvalCode ( > locals={'QMainWindow': , 'QVTKRenderWindowInteractor': , '__builtins__': , '__file__': 'test.py', 'QApplication': , '__package__': None, 'sys': , '__name__': '__main__', '__doc__': None}, > globals={'QMainWindow': , 'QVTKRenderWindowInteractor': , '__builtins__': , '__file__': 'test.py', 'QApplication': , '__package__': None, 'sys': , '__name__': '__main__', '__doc__': None}, co=0x7ffff7edfe30) at ../Python/ceval.c:669 > #31 run_mod.lto_priv () at ../Python/pythonrun.c:1370 > #32 0x00000000004e3b02 in PyRun_FileExFlags () at ../Python/pythonrun.c:1356 > #33 0x00000000004e22e6 in PyRun_SimpleFileExFlags () at ../Python/pythonrun.c:948 > #34 0x0000000000490fe1 in Py_Main () at ../Modules/main.c:640 > #35 0x00007ffff7811a40 in __libc_start_main (main=0x4909f0
, argc=2, argv=0x7fffffffddf8, init=, fini=, rtld_fini=, stack_end=0x7fffffffdde8) at libc-start.c:289 > #36 0x0000000000490919 in _start () > > > Just removing the > > from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor > > from the above minimal test and the segmentation fault goes away. > > So something seems quite broken :/ > > I'm surprised, as I've had VTK + PyQt4 programs working fine before. > > Thankful for any advice / ideas. > > Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.kozlovsky at fr.thalesgroup.com Tue Feb 23 03:38:01 2016 From: nicolas.kozlovsky at fr.thalesgroup.com (KOZLOVSKY Nicolas) Date: Tue, 23 Feb 2016 09:38:01 +0100 Subject: [vtkusers] Error at runtime using qmake for building project (vtkContextDevice2D) In-Reply-To: References: <7A18A422C44BE34E947C1F96625E60BD08965128@EXDAG0-A1.intra.cea.fr> Message-ID: <98469506-528a-45df-9e20-17c95cb694c9@THSONEA01HUB02P.one.grp> Hello All I just find the line that saves my project from being compiled with cmake ;-) in a mail from D. E. DeMarle (thanks a lot) For vtk < 7.0 : #define vtkRenderingContext2D_AUTOINIT 1(vtkRenderingContextOpenGL) For vtk >= 7.0 : #define vtkRenderingContext2D_AUTOINIT 1(vtkRenderingContextOpenGL2) De : vtkusers [mailto:vtkusers-bounces at vtk.org] De la part de KOZLOVSKY Nicolas Envoy? : vendredi 29 janvier 2016 08:47 ? : vtkusers at vtk.org Objet : Re: [vtkusers] Error at runtime using qmake for building project (vtkContextDevice2D) Hi all Just to be sure, I tried with VTK 6.1.0 and it worked perfectly well with qmake compilation. I have tried also with VTK7.0 rc2, but same results as with VTK 6.3 ==> runtime error De : KOZLOVSKY Nicolas Envoy? : mardi 26 janvier 2016 09:21 ? : vtkusers at vtk.org Objet : RE: Error at runtime using qmake for building project (vtkContextDevice2D) Hi Thanks for the files, I looked to the files and I saw that we did the same things for openglRenderer initialization. The difference I saw is the use of the render : QVTKWidget *vtkWidget = new QVTKWidget; setCentralWidget(vtkWidget); vtkSmartPointer contextView = vtkSmartPointer::New(); contextView.Get()->SetRenderWindow(vtkWidget->GetRenderWindow()); contextView->GetRenderWindow()->SetSize(800, 800); this->resize(800, 800); In fact when in debug mode, the run stops in file vtkContextActor.cxx in function RenderOverlay this->Context->GetDevice()->SetViewportSize(vtkVector2i(size)); It seems that the context is not initialized. De : MOUSSAUD David 244079 [mailto:David.MOUSSAUD at cea.fr] Envoy? : lundi 25 janvier 2016 14:18 ? : KOZLOVSKY Nicolas; vtkusers at vtk.org Objet : RE:Error at runtime using qmake for building project (vtkContextDevice2D) Hi Nicolas, A couple weeks ago, i have joined my qmake project to an other thread (http://public.kitware.com/pipermail/vtkusers/2016-January/093650.html) Here it is again attached in this email. I'm using also vtk 6.3. Regards, David. ________________________________ De : vtkusers [vtkusers-bounces at vtk.org] de la part de KOZLOVSKY Nicolas [nicolas.kozlovsky at fr.thalesgroup.com] Envoy? : lundi 25 janvier 2016 12:57 ? : vtkusers at vtk.org Objet : [vtkusers] Error at runtime using qmake for building project (vtkContextDevice2D) Hi all I try to use QVTKWidget in a big project using qmake for building. Each time I run my code, I got this error under Linux Ubuntu 1510) and VTK 6.3 : In VTK-6.3.0/Rendering/Context2D/vtkContextDevice2D.cxx, line 27 Error: no override found for 'vtkContextDevice2D'. I read a lot about this and put in the main.cpp : #include VTK_MODULE_INIT(vtkRenderingOpenGL) VTK_MODULE_INIT(vtkInteractionStyle) I have always the same error at runtime. I try also to add this directive to .pro file: DEFINES += "\"vtkRenderingCore_AUTOINIT=1 (vtkRenderingOpenGL)\"" But again same error at runtime. If now I build the project with cmake, I have no problem everything is running fine. How can I build with qmake ??? Thanks for any clues Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: M Nicolas KOZLOVSKY.vcf Type: text/x-vcard Size: 1589 bytes Desc: M Nicolas KOZLOVSKY.vcf URL: From orodenberg at gmail.com Tue Feb 23 03:52:26 2016 From: orodenberg at gmail.com (Olivier Rodenberg) Date: Tue, 23 Feb 2016 09:52:26 +0100 Subject: [vtkusers] programmable source multiple hexahedrons in unstructured grid - cell data not stored in paraview In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F6843583ED5@MBX211.d.ethz.ch> References: <56cb50fd.016b1c0a.b4558.507f@mx.google.com> <0EB9B6375711A04B820E6B6F5CCA9F6843583ED5@MBX211.d.ethz.ch> Message-ID: <56cc1dcc.e6bbc20a.d2a3a.ffff8b11@mx.google.com> Hi all, I am trying to create a programmable filter where multiple(>1000) cubes(hexahedrons) are stored in an unstructured grid. Each of the cubes has an own attribute value which will be used for colouring. The centre points, the edge length and the attribute value of each cubes is extracted from a PostgreSQL database via the python extension psycopg2. In the code I created all writes all points and attributes to paraview, but the actual cell data is not. Each time I try to view the cell data in the spreadsheetview Paraview stops working. To store the hexahedron data I create a vtkUnstructuredGrid and write all cell data to this grid. Finally I use the output.vtkUnstructuredGrid to writethe grid in the output. The code I use is described bellow. Does anyone know why my cell data is not stored and why paraview keeps stalling? Thanks in advance. def DBMSToGeom(octree): n=0 #Create the attribute NodeLength = vtk.vtkDoubleArray() NodeLength.SetName('Node length') #create vtkpoints and vtkUnstructuredGrid() points = vtk.vtkPoints() octree_output = vtk.vtkUnstructuredGrid() for materialpath, x , y , z , leafsize in octree: # create the coordinates for the points l = .5*leafsize xL = int(x)-l xR = int(x)+l yL = int(y)-l yR = int(y)+l zL = int(z)-l zR = int(z)+l # create the points points.InsertNextPoint(xL, yL, zL) points.InsertNextPoint(xR, yL, zL) points.InsertNextPoint(xR, yR, zL) points.InsertNextPoint(xL, yR, zL) points.InsertNextPoint(xL, yL, zR) points.InsertNextPoint(xR, yL, zR) points.InsertNextPoint(xR, yR, zR) points.InsertNextPoint(xL, yR, zR) # Create a hexahedron from the points octant = vtk.vtkHexahedron() for i in range(0, len(octree)): octant.GetPointIds().SetId(i, n+i) NodeLength.InsertNextValue(leafsize) # Add the geometry to the unstructured grid octree_output.InsertNextCell(octant.GetCellType(), octant.GetPointIds()) n+=8 # output all data output.vtkUnstructuredGrid = octree_output output.Allocate(len(octree),1) output.Points = points output.CellData.SetScalars(NodeLength) if (__name__ == "__main__"): DBMSToGeom(connectDBMS()) From: Favre Jean Sent: maandag 22 februari 2016 21:49 To: Olivier Rodenberg; vtkusers at vtk.org Subject: RE: [vtkusers] programmable source multiple hexahedrons inunstructured grid I don't know the details of your app, but you should follow the following schema I'll assume for simplicity, that the hexahedra do not share any vertices with any other hexahedra if they do, then you need to figure out how to avoid replicating points. # use "output", as the pre-defined vtkUnstructuredGrid created for you # create a single vtkPoints and add all vertices to it # if you have N hexahedra, you'll add 8xN points # create a single vtkDoubleArray of size N # offset the indices of each hexahedra by 8 ??? points = vtk.vtkPoints() ??? #Create the attribute ??? NodeLength = vtk.vtkDoubleArray() ??? NodeLength.SetName('Node lenght') ??? I=0 ??? for? materialpath, x , y , z , leafsize in octree: ??????? # create the coordinates for the points ??????? l = .5*leafsize ??????? xL = int(x)-l ??????? xR = int(x)+l??????? ????????yL = int(y)-l ??????? yR = int(y)+l??????? ????????zL = int(z)-l ??????? zR = int(z)+l ? ??????? points.InsertNextPoint(xL, yL, zL) ??????? points.InsertNextPoint(xR, yL, zL) ??????? points.InsertNextPoint(xR, yR, zL) ??????? points.InsertNextPoint(xL, yR, zL) ??????? points.InsertNextPoint(xL, yL, zR) ??????? points.InsertNextPoint(xR, yL, zR) ??????? points.InsertNextPoint(xR, yR, zR) ??????? points.InsertNextPoint(xL, yR, zR) ? ??????? # Create a hexahedron from the points ??????? hex_ = vtk.vtkHexahedron() ??????? for i in range(0, numberOfVertices): ??????????? hex_.GetPointIds().SetId(i, 8*I+i) ? ??????? NodeLength.InsertNextValue(leafsize) ? ??????? # Add the geometry to the unstructured grid ??????? output.InsertNextCell(hex_.GetCellType(), hex_.GetPointIds()) ??????? I = I +1 ??? # Add the points and hexahedron to an unstructured grid ??? output.Points = points ??? output.CellData.SetScalars(NodeLength) ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.nellmeldin at open-engineering.com Tue Feb 23 03:59:21 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Tue, 23 Feb 2016 09:59:21 +0100 Subject: [vtkusers] Flat interpolation under OpenGL2 backend In-Reply-To: References: Message-ID: Hello again! Adding those lines of code solved the issue, thank you! I was missing the call to setactivescalar after the geometry filter, what a dumb error! The issue is solved and now I can do what I wanted. Thank you all again. Fernando. 2016-02-22 15:51 GMT+01:00 Simon ESNEAULT : > Hello, > > If the data is in there, a combination of : > SetScalarModeToUseCellData() > GetCellData()->SetActiveScalars( "TEMP" ); > should probably do the trick > > The SetActiveScalars( "TEMP" ) should be called on the output of the > geometryFIlter which -I think- is not the case in the code that was posted: > > Maybe something like this : > > ************************************* > geometryFilter->Update(); > vtkPolyData* polydata = geometryFilter->GetOutput(); > polydata->GetCellData()->SetActiveScalars( "TEMP" ); > colorMapper->SetInputData( polydata ); > colorMapper->ScalarVisibilityOn(); > colorMapper->SetScalarModeToUseCellData(); > colorMapper->SetScalarRange(297, 637); > ************************************** > ? > > Simon > > > > > > > > 2016-02-22 15:21 GMT+01:00 Fernando Nellmeldin < > f.nellmeldin at open-engineering.com>: > >> Hi, thank you for your response Simon. >> I tried your suggestions. Adding SetScalarModeToUseCellData didn't solve >> the problem :( (still I'm seeing all the model in white) >> I saved my results to load them in ParaView and indeed I can see a new >> Cell Data named "TEMP" with the values of the Point Data as I wish. >> Thus, I think that the point2celldata is working properly, and I have >> only a problem of configuring something to see it, but where? >> >> Any thoughs? >> >> Thank you. >> >> 2016-02-22 14:28 GMT+01:00 Simon ESNEAULT : >> >>> Hello, >>> >>> Not sure, but maybe a call to >>> SetScalarModeToUseCellData() >>> is needed on the mapper ? >>> You should try to save/load the dataset in paraview after it is >>> processed to see what's going on with the cell/point data :) >>> >>> Good luck >>> Simon >>> >>> >>> >>> 2016-02-22 13:23 GMT+01:00 Fernando Nellmeldin < >>> f.nellmeldin at open-engineering.com>: >>> >>>> Hello again. >>>> Yes, you understood the issue perfectly. And I understand the reason as >>>> of why is not working anymore, thank you for the great explanation. >>>> >>>> After your advise, I tried using vtkPointDataToCellData, but without >>>> success. >>>> Here is one small example I wrote. If I activate the line #define >>>> USE_P2C, I can't see any color (everything is light gray). If that line is >>>> commented, everything works as expected. >>>> Do you know what I am missing? >>>> >>>> >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> #include >>>> int main() >>>> { >>>> // Read the grid >>>> std::string filename = "D:/model.vtu"; >>>> std::string fieldname = "TEMP"; >>>> vtkSmartPointer reader = >>>> vtkSmartPointer::New(); >>>> reader->SetFileName(filename.c_str()); >>>> reader->Update(); >>>> vtkSmartPointer model = reader->GetOutput(); >>>> >>>> vtkSmartPointer colorMapper = >>>> vtkSmartPointer::New(); >>>> vtkSmartPointer colorActor = vtkSmartPointer::New(); >>>> vtkSmartPointer geometryFilter = >>>> vtkSmartPointer::New(); >>>> >>>> //============ BEGIN OF SECTION OF INTEREST >>>> // Convert point to cell data >>>> vtkSmartPointer point2CellData = >>>> vtkSmartPointer::New(); >>>> point2CellData->PassPointDataOn(); >>>> point2CellData->SetInputData(model); >>>> point2CellData->Update(); >>>> >>>> #define USE_P2C >>>> #ifdef USE_P2C >>>> // Neither of these "setActiveScalars" makes any difference >>>> //model->GetCellData()->SetActiveScalars(fieldname.c_str()); >>>> //model->GetPointData()->SetActiveScalars(fieldname.c_str()); >>>> geometryFilter->SetInputData(point2CellData->GetOutput()); >>>> geometryFilter->SetInputArrayToProcess(0, 0, 0, >>>> vtkDataObject::FIELD_ASSOCIATION_CELLS, fieldname.c_str()); // cells >>>> because I transfered the data >>>> #else >>>> model->GetPointData()->SetActiveScalars(fieldname.c_str()); >>>> geometryFilter->SetInputData(model); >>>> geometryFilter->SetInputArrayToProcess(0, 0, 0, >>>> vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldname.c_str()); >>>> #endif >>>> >>>> colorMapper->SetInputConnection(geometryFilter->GetOutputPort()); >>>> >>>> //============ END OF SECTION OF INTEREST >>>> >>>> colorMapper->SetScalarRange(297, 637); //hardcoded to reduce code length >>>> colorActor->SetMapper(colorMapper); >>>> colorMapper->ScalarVisibilityOn(); >>>> >>>> // Usual rendering stuff, nothing of interest from here onwards >>>> //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(colorActor); >>>> renderer->SetBackground(.3, .6, .3); // Background color green >>>> //Render and interact >>>> renderWindow->Render(); >>>> renderWindowInteractor->Start(); >>>> return EXIT_SUCCESS; >>>> } >>>> >>>> >>>> Thank you!. >>>> >>>> 2016-02-18 17:05 GMT+01:00 Ken Martin : >>>> >>>>> Hello Fernando, >>>>> >>>>> Making sure that I understand the issue. Essentially you have defined >>>>> scalars/colors on the points of a triangle. With phong shading the colors >>>>> interpolate across the triangle. With flat shading on the old backend, the >>>>> system takes the color of the first point and uses that for the entire >>>>> triangle. On the new backend the colors are still interpolated across the >>>>> triangle. Is that the issue you see? >>>>> >>>>> If so, then the issue is that on the new backend I am interpreting >>>>> shading to only mean lighting and normal calculations while in the old >>>>> backend it seems to include vertex color properties (but not other >>>>> properties such as tcoords, hmm wonder what happens with flat shading and >>>>> texture based coloring) In modern OpenGL (version 3.2 ) you can specify >>>>> flat versus smooth interpolation by attribute. So normals could be flat >>>>> while colors are smooth. Without requiring OpenGL 3.2 we would need to >>>>> rebuild the VBO each time you switch between flat and smooth, basically >>>>> treating flat shading as if you had cell colors instead of point colors. >>>>> >>>>> If backward compatibility was not an issue :-) I would suggest moving >>>>> to require OpenGL 3.2 and then modifying vtkProperty so that people can >>>>> independently specify if they want normals/colors/etc to be >>>>> flat/smooth/perspective. >>>>> >>>>> One stopgap, you could use vtkPointDataToCellData to essentially >>>>> accomplish what you want in either back end. >>>>> >>>>> Thanks >>>>> Ken >>>>> >>>>> >>>>> >>>>> On Thu, Feb 18, 2016 at 10:14 AM, Fernando Nellmeldin < >>>>> f.nellmeldin at open-engineering.com> wrote: >>>>> >>>>>> Hello friends. >>>>>> >>>>>> In our application, we want to allow the user to alternate between a >>>>>> flat and a smooth shading of the colors in an actor. To do this, we have a >>>>>> option that allows the user to call setInterpolationToFlat() or >>>>>> setInterpolationToPhong() in the property of the vtkactor. >>>>>> >>>>>> The problem is that the call to set flat is not working, there is no >>>>>> change and the actor is always rendered smooth. >>>>>> >>>>>> I've tried with VTK 6.3.0 and VTK 7.0.0 under OpenGL2 backend. In VTK >>>>>> 5.10 (using the old opengl), this works as expected. >>>>>> >>>>>> And please note that in the three cases, the code is exactly the >>>>>> same. Well, except the connection between the ugrid and the geometry filter >>>>>> that I have the usual if: >>>>>> #if VTK_MAJOR_VERSION <= 5 >>>>>> geometryFilter->SetInputConnection(m_model->GetProducerPort()); >>>>>> #else >>>>>> geometryFilter->SetInputData(m_model); >>>>>> #endif >>>>>> >>>>>> Therefore, is the support of flat interpolation dropped, or I have to >>>>>> add something to make it work under OpenGL2 backend? >>>>>> >>>>>> Thank you! >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Powered by www.kitware.com >>>>>> >>>>>> Visit other Kitware open-source projects at >>>>>> http://www.kitware.com/opensource/opensource.html >>>>>> >>>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>>> >>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Ken Martin PhD >>>>> Chairman & CFO >>>>> Kitware Inc. >>>>> 28 Corporate Drive >>>>> Clifton Park NY 12065 >>>>> 518 371 3971 >>>>> >>>>> This communication, including all attachments, contains confidential >>>>> and legally privileged information, and it is intended only for the use of >>>>> the addressee. Access to this email by anyone else is unauthorized. If you >>>>> are not the intended recipient, any disclosure, copying, distribution or >>>>> any action taken in reliance on it is prohibited and may be unlawful. If >>>>> you received this communication in error please notify us immediately and >>>>> destroy the original message. Thank you. >>>>> >>>> >>>> >>>> >>>> -- >>>> *Fernando NELLMELDIN* >>>> Software Engineer >>>> *_______________________________________________________________* >>>> >>>> *Open Engineering s.a.* >>>> >>>> Rue Bois Saint-Jean 15/1 >>>> B-4102 Seraing (Belgium) >>>> Tel: +32.4.353.30.34 >>>> >>>> http://www.open-engineering.com >>>> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >>>> >>>> >>>> *_________________________________________________________________________* >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> 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 >>> ------------------------------------------------------------------ >>> >> > > > -- > ------------------------------------------------------------------ > Simon Esneault > Rennes, France > ------------------------------------------------------------------ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Tue Feb 23 04:11:53 2016 From: jfavre at cscs.ch (Favre Jean) Date: Tue, 23 Feb 2016 09:11:53 +0000 Subject: [vtkusers] programmable source multiple hexahedrons in unstructured grid - cell data not stored in paraview In-Reply-To: <56cc1dcc.e6bbc20a.d2a3a.ffff8b11@mx.google.com> References: <56cb50fd.016b1c0a.b4558.507f@mx.google.com> <0EB9B6375711A04B820E6B6F5CCA9F6843583ED5@MBX211.d.ethz.ch>, <56cc1dcc.e6bbc20a.d2a3a.ffff8b11@mx.google.com> Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F6843584134@MBX211.d.ethz.ch> try this and follow the model. ----------------- Jean /CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.py Type: text/x-python-script Size: 957 bytes Desc: test.py URL: From softplanner at gmail.com Tue Feb 23 04:16:19 2016 From: softplanner at gmail.com (Muhammad Jawad) Date: Tue, 23 Feb 2016 10:16:19 +0100 Subject: [vtkusers] vtkRenderWindowInteracotr does not return Message-ID: Dear all, I am using Qt 5.4 with vtk 6.2 on windows. I am facing some problem using QVtkWidget with vtkRenderWindowInteractor, It never returns once vtkrenderwindowinteractor->start() call. When I close the QVtkWidget or main application but it still running in background. my code is: vtkImageViewer2 *imageViewer = vtkImageViewer2::New(); imageViewer->SetInputData(reader->GetOutput()); vtkRenderWindowInteractor *renderWindowInteractor = vtkRenderWindowInteractor::New(); imageViewer->SetupInteractor(renderWindowInteractor); QVtkWidget *engine = new QVtkWidget(); engine->SetRenderWindow(imageViewer->GetRenderWindow()); // make the link between VTK and QT renderWindowInteractor->SetRenderWindow(imageViewer->GetRenderWindow()); engine->show(); imageViewer->GetRenderWindow()->Render (); //renderWindowInteractor->Initialize(); engine->GetRenderWindow()->GetInteractor()->Start(); //renderWindowInteractor->Start(); cerr<<"exit"; How I can return from vtkRenderWindowInteractor->Start() function ? Thanks. -- Muhammad Jawad -------------- next part -------------- An HTML attachment was scrubbed... URL: From orodenberg at gmail.com Tue Feb 23 04:59:32 2016 From: orodenberg at gmail.com (Olivier Rodenberg) Date: Tue, 23 Feb 2016 10:59:32 +0100 Subject: [vtkusers] programmable source multiple hexahedrons in unstructured grid -cell data not stored in paraview In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F6843584134@MBX211.d.ethz.ch> References: <56cb50fd.016b1c0a.b4558.507f@mx.google.com> <0EB9B6375711A04B820E6B6F5CCA9F6843583ED5@MBX211.d.ethz.ch>, <56cc1dcc.e6bbc20a.d2a3a.ffff8b11@mx.google.com> <0EB9B6375711A04B820E6B6F5CCA9F6843584134@MBX211.d.ethz.ch> Message-ID: <56cc2d85.9a6f1c0a.977b5.ffffb5f4@mx.google.com> Yes It works now. Thank you so much! With kind regards, Olivier From: Favre Jean Sent: dinsdag 23 februari 2016 10:11 To: Olivier Rodenberg; vtkusers at vtk.org Subject: RE: programmable source multiple hexahedrons in unstructured grid -cell data not stored in paraview try this and follow the model. ----------------- Jean /CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From Aude.CHENET-ext at galderma.com Tue Feb 23 04:59:41 2016 From: Aude.CHENET-ext at galderma.com (CHENET Aude (External)) Date: Tue, 23 Feb 2016 09:59:41 +0000 Subject: [vtkusers] Vtk Python Widgets In-Reply-To: References: <512AA6AA7E7E224A874888677C6CB2FB558D38@WWEURMBX03.galderma.com> Message-ID: <512AA6AA7E7E224A874888677C6CB2FB55E191@WWEURMBX03.galderma.com> Hello, I?ve built VTK from sources with Tk Components. I can find in my path D:\VTK\bin\vtkRenderingPythonTkWidgets-6.3.dll I don?t have any more the error I had before. But when I run OrthogonalPlanesWithTkPhoto.py it stops without reason. I tried to debug, and find the problem is in vtkLoadPythonTkWidgets.py, at the end of the script. It tries to load the dll (and it doesn?t work?) and the program is terminated with exit value -1073741819? Does someone have an idea? Aude De : David Gobbi [mailto:david.gobbi at gmail.com] Envoy? : lundi 15 f?vrier 2016 17:29 ? : CHENET Aude (External) Cc : vtkusers at public.kitware.com Objet : Re: [vtkusers] Vtk Python Widgets Yes. As far as I understand, that is the situation. On Mon, Feb 15, 2016 at 9:19 AM, CHENET Aude (External) > wrote: Thanks for your answer. It means it is not possible to get vtk with pip ? It?s mandatory to build vtk from sources to have acces to TkWidgets? De : David Gobbi [mailto:david.gobbi at gmail.com] Envoy? : lundi 15 f?vrier 2016 16:57 ? : CHENET Aude (External) Cc : vtkusers at public.kitware.com Objet : Re: [vtkusers] Vtk Python Widgets Hi Aude, This means that your vtk package was built without the Tk components. I don't know of any binary packages that provide the DLL that you need, you might have to build your own vtk with VTK_Group_Tk:BOOL=ON. - David On Mon, Feb 15, 2016 at 8:13 AM, Aude > wrote: Hello, I?m trying to use vtk with Python 27. I?ve installed vtk 6.2 with pip. When I execute OrthogonalPlanesWithTkPhoto.py example, I?ve an error : Traceback (most recent call last): File "C:\Users\chenet- ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 156, in S = SampleViewer() File "C:\Users\chenet- ext\workspace\OCT\src\OrthogonalPlanesWithTkPhoto.py", line 57, in __init__ tphoto = self.tphoto = vtkTkPhotoImage () File "C:\Python27\lib\site-packages\vtk\tk\vtkTkPhotoImage.py", line 20, in __init__ vtkLoadPythonTkWidgets ( self.tk ) File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", line 81, in vtkLoadPythonTkWidgets interp.call('load', filename, pkgname) _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets- 6.2.dll": this library or a dependent library could not be found in library path I?ve made a research on my computer and I can?t find vtkRenderingPythonTkWidgets. Can someone help me to use this example? Aude -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Feb 23 06:01:13 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 23 Feb 2016 12:01:13 +0100 Subject: [vtkusers] Examples/Python/Widgets/EmbedPyQt segfault on Ubuntu In-Reply-To: References: Message-ID: 2016-02-23 8:37 GMT+01:00 Elvis Stansvik : > Den 22 feb 2016 1:15 em skrev "Elvis Stansvik" < > elvis.stansvik at orexplore.com>: > > > > Hi all, > > > > Trying the > > > > http://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt > > > > example on Ubuntu with python-vtk6 (6.2.0+dfsg1-4ubuntu5) and python-qt4 > (4.11.4+dfsg-1build3) installed, I get a strange segmentation fault on > startup: > > > > > > > > estan at newton:~/orexplore/dev/gui-demo$ gdb python > > GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 > > Copyright (C) 2015 Free Software Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later < > http://gnu.org/licenses/gpl.html> > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > > and "show warranty" for details. > > This GDB was configured as "x86_64-linux-gnu". > > Type "show configuration" for configuration details. > > For bug reporting instructions, please see: > > . > > Find the GDB manual and other documentation resources online at: > > . > > For help, type "help". > > Type "apropos word" to search for commands related to "word"... > > Reading symbols from python...Reading symbols from > /usr/lib/debug//usr/bin/python2.7...done. > > done. > > (gdb) run test2.py > > Starting program: /usr/bin/python test2.py > > [Thread debugging using libthread_db enabled] > > Using host libthread_db library > "/lib/x86_64-linux-gnu/libthread_db.so.1". > > [New Thread 0x7fffb1bb8700 (LWP 3113)] > > [New Thread 0x7fffb13b7700 (LWP 3114)] > > [New Thread 0x7fffacbb6700 (LWP 3115)] > > > > Program received signal SIGSEGV, Segmentation fault. > > 0x00007fff97a2885e in _GLOBAL__sub_I_qpycore_classinfo.cpp () from > /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so > > (gdb) bt > > #0 0x00007fff97a2885e in _GLOBAL__sub_I_qpycore_classinfo.cpp () from > /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so > > #1 0x00007ffff7de960a in call_init (l=, argc=argc at entry=2, > argv=argv at entry=0x7fffffffddf8, env=env at entry=0x7fffffffde10) at > dl-init.c:72 > > #2 0x00007ffff7de971b in call_init (env=, > argv=, argc=, l=) at > dl-init.c:30 > > #3 _dl_init (main_map=main_map at entry=0x9e8d10, argc=2, > argv=0x7fffffffddf8, env=0x7fffffffde10) at dl-init.c:120 > > #4 0x00007ffff7dee5d7 in dl_open_worker (a=a at entry=0x7fffffffd1d8) at > dl-open.c:579 > > #5 0x00007ffff7de94b4 in _dl_catch_error (objname=objname at entry=0x7fffffffd1c8, > errstring=errstring at entry=0x7fffffffd1d0, mallocedp=mallocedp at entry=0x7fffffffd1c7, > operate=operate at entry=0x7ffff7dee0f0 , args=args at entry=0x7fffffffd1d8) > at dl-error.c:187 > > #6 0x00007ffff7ded9f3 in _dl_open (file=0xee42e0 > "/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so", mode=-2147483646, > caller_dlopen=0x51a359 <_PyImport_GetDynLoadFunc+233>, nsid=-2, > argc=, argv=, env=0x7fffffffde10) at > dl-open.c:663 > > #7 0x00007ffff75edfc9 in dlopen_doit (a=a at entry=0x7fffffffd3f0) at > dlopen.c:66 > > #8 0x00007ffff7de94b4 in _dl_catch_error (objname=0x9a1650, > errstring=0x9a1658, mallocedp=0x9a1648, operate=0x7ffff75edf70 > , args=0x7fffffffd3f0) at dl-error.c:187 > > #9 0x00007ffff75ee62d in _dlerror_run (operate=operate at entry=0x7ffff75edf70 > , args=args at entry=0x7fffffffd3f0) at dlerror.c:163 > > #10 0x00007ffff75ee061 in __dlopen (file=, > mode=) at dlopen.c:87 > > #11 0x000000000051a359 in _PyImport_GetDynLoadFunc () at > ../Python/dynload_shlib.c:140 > > #12 0x0000000000519eb4 in _PyImport_LoadDynamicModule () at > ../Python/importdl.c:42 > > #13 0x00000000004a2891 in import_submodule () at ../Python/import.c:2704 > > #14 0x00000000004a7545 in ensure_fromlist () at ../Python/import.c:2610 > > #15 0x00000000004a1cc8 in import_module_level.isra.3 (level=-1, > fromlist=('QtCore', 'QtGui'), globals=, name= out>) at ../Python/import.c:2273 > > #16 PyImport_ImportModuleLevel () at ../Python/import.c:2292 > > #17 0x00000000004a4834 in builtin___import__ () at > ../Python/bltinmodule.c:49 > > #18 0x00000000004a45de in PyObject_Call () at ../Objects/abstract.c:2529 > > #19 0x00000000004c3e40 in PyEval_CallObjectWithKeywords () at > ../Python/ceval.c:4225 > > #20 0x00000000004c2a38 in PyEval_EvalFrameEx () at ../Python/ceval.c:2628 > > #21 0x00000000004b7986 in PyEval_EvalCodeEx () at ../Python/ceval.c:3588 > > #22 0x00000000004e8f3f in PyEval_EvalCode (locals={'vtk': remote 0x7ffff7eb70f8>, '__builtins__': , > '__file__': 'test2.py', '__package__': None, 'sys': 0x7ffff7f79bb0>, '__name__': '__main__', '__doc__': None}, > > globals={'vtk': , '__builtins__': > , '__file__': 'test2.py', '__package__': > None, 'sys': , '__name__': '__main__', > '__doc__': None}, co=0x7ffff7ee8db0) at ../Python/ceval.c:669 > > #23 run_mod.lto_priv () at ../Python/pythonrun.c:1370 > > #24 0x00000000004e3b02 in PyRun_FileExFlags () at > ../Python/pythonrun.c:1356 > > #25 0x00000000004e22e6 in PyRun_SimpleFileExFlags () at > ../Python/pythonrun.c:948 > > #26 0x0000000000490fe1 in Py_Main () at ../Modules/main.c:640 > > #27 0x00007ffff7811a40 in __libc_start_main (main=0x4909f0
, > argc=2, argv=0x7fffffffddf8, init=, fini=, > rtld_fini=, stack_end=0x7fffffffdde8) at libc-start.c:289 > > #28 0x0000000000490919 in _start () > > Warning: the current language does not match this frame. > > (gdb) > > > > > > > > Has anyone seen this before? I'm a little perplexed, as even a very > simple program like: > > > > from PyQt4.QtGui import QApplication, QMainWindow > > > > from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor > > > > import sys > > > > app = QApplication(sys.argv) > > > > gives a segmentation fault, though in this case, the crash occurs when > dlopen()ing /usr/lib/libkdecore.so.5 instead: > > Sorry, I meant breeze.so, the Qt 4 style library from KDE. > > In any case, I can reproduce a segfault with the tiny example above in a > clean Ubuntu Docker container, using the packages I mentioned. I'll post > the instructions + Dockerfile to do so as soon as I'm at work. > I've now filed an issue with precise instructions for reproducing: http://www.vtk.org/Bug/view.php?id=16009 Elvis Has really no one seen this before? Surely someone has used VTK 6.2 + PyQt4 > on Ubuntu? > > Elvis > > > > > > > #0 0x00007fff93d9bd4e in ?? () from /usr/lib/libkdecore.so.5 > > #1 0x00007ffff7de960a in call_init (l=, argc=argc at entry=2, > argv=argv at entry=0x7fffffffddf8, env=env at entry=0x7fffffffde10) at > dl-init.c:72 > > #2 0x00007ffff7de971b in call_init (env=, > argv=, argc=, l=) at > dl-init.c:30 > > #3 _dl_init (main_map=main_map at entry=0x10c4470, argc=2, > argv=0x7fffffffddf8, env=0x7fffffffde10) at dl-init.c:120 > > #4 0x00007ffff7dee5d7 in dl_open_worker (a=a at entry=0x7fffffffc508) at > dl-open.c:579 > > #5 0x00007ffff7de94b4 in _dl_catch_error (objname=objname at entry=0x7fffffffc4f8, > errstring=errstring at entry=0x7fffffffc500, mallocedp=mallocedp at entry=0x7fffffffc4f7, > operate=operate at entry=0x7ffff7dee0f0 , args=args at entry=0x7fffffffc508) > at dl-error.c:187 > > #6 0x00007ffff7ded9f3 in _dl_open (file=0x10d6638 > "/usr/lib/kde4/plugins/styles/breeze.so", mode=-2147483647, > caller_dlopen=0x7ffff4f08cd6, nsid=-2, argc=, > argv=, env=0x7fffffffde10) at dl-open.c:663 > > #7 0x00007ffff75edfc9 in dlopen_doit (a=a at entry=0x7fffffffc720) at > dlopen.c:66 > > #8 0x00007ffff7de94b4 in _dl_catch_error (objname=0x98b920, > errstring=0x98b928, mallocedp=0x98b918, operate=0x7ffff75edf70 > , args=0x7fffffffc720) at dl-error.c:187 > > #9 0x00007ffff75ee62d in _dlerror_run (operate=operate at entry=0x7ffff75edf70 > , args=args at entry=0x7fffffffc720) at dlerror.c:163 > > #10 0x00007ffff75ee061 in __dlopen (file=, > mode=) at dlopen.c:87 > > #11 0x00007ffff4f08cd6 in ?? () from > /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > > #12 0x00007ffff4f0307d in ?? () from > /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > > #13 0x00007ffff4f0370b in ?? () from > /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > > #14 0x00007ffff4efc066 in QFactoryLoader::instance(QString const&) const > () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > > #15 0x00007ffff575317d in QStyleFactory::create(QString const&) () from > /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > > #16 0x00007ffff54479ce in QApplication::style() () from > /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > > #17 0x00007ffff54b910a in ?? () from > /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > > #18 0x00007ffff54bcc83 in ?? () from > /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > > #19 0x00007ffff5447fa2 in QApplicationPrivate::construct(_XDisplay*, > unsigned long, unsigned long) () from > /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > > #20 0x00007ffff544824f in QApplication::QApplication(int&, char**, int) > () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > > #21 0x00007ffff64fbfae in sipQApplication::sipQApplication > (this=0xba80d0, a0=, a1=) at > sipQtGuipart9.cpp:36106 > > #22 0x00007ffff64fc196 in init_type_QApplication > (sipSelf=0x7ffff1136938, sipArgs=, sipKwds=0x0, > sipUnused=, sipParseErr=) at > /build/python-qt4-DPZMhZ/python-qt4-4.11.4+dfsg/sip/QtGui/qapplication.sip:901 > > #23 0x00007ffff16901cb in sipSimpleWrapper_init (self=0x7ffff1136938, > args=(['test.py'],), kwds=0x0) at siplib.c:9702 > > #24 0x00000000004a9efb in type_call.lto_priv () at > ../Objects/typeobject.c:745 > > #25 0x00000000004bf3cc in PyObject_Call (kw=0x0, arg=(['test.py'],), > func=) at > ../Objects/abstract.c:2529 > > #26 do_call (nk=, na=, > pp_stack=0x7fffffffd9b0, func= 0xac4880>) at ../Python/ceval.c:4574 > > #27 call_function (oparg=, pp_stack=0x7fffffffd9b0) at > ../Python/ceval.c:4379 > > #28 PyEval_EvalFrameEx () at ../Python/ceval.c:2993 > > #29 0x00000000004b7986 in PyEval_EvalCodeEx () at ../Python/ceval.c:3588 > > #30 0x00000000004e8f3f in PyEval_EvalCode ( > > locals={'QMainWindow': 0xb0d900>, 'QVTKRenderWindowInteractor': remote 0xba7cc0>, '__builtins__': , > '__file__': 'test.py', 'QApplication': remote 0xac4880>, '__package__': None, 'sys': 0x7ffff7f79bb0>, '__name__': '__main__', '__doc__': None}, > > globals={'QMainWindow': 0xb0d900>, 'QVTKRenderWindowInteractor': remote 0xba7cc0>, '__builtins__': , > '__file__': 'test.py', 'QApplication': remote 0xac4880>, '__package__': None, 'sys': 0x7ffff7f79bb0>, '__name__': '__main__', '__doc__': None}, > co=0x7ffff7edfe30) at ../Python/ceval.c:669 > > #31 run_mod.lto_priv () at ../Python/pythonrun.c:1370 > > #32 0x00000000004e3b02 in PyRun_FileExFlags () at > ../Python/pythonrun.c:1356 > > #33 0x00000000004e22e6 in PyRun_SimpleFileExFlags () at > ../Python/pythonrun.c:948 > > #34 0x0000000000490fe1 in Py_Main () at ../Modules/main.c:640 > > #35 0x00007ffff7811a40 in __libc_start_main (main=0x4909f0
, > argc=2, argv=0x7fffffffddf8, init=, fini=, > rtld_fini=, stack_end=0x7fffffffdde8) at libc-start.c:289 > > #36 0x0000000000490919 in _start () > > > > > > Just removing the > > > > from vtk.qt4.QVTKRenderWindowInteractor import > QVTKRenderWindowInteractor > > > > from the above minimal test and the segmentation fault goes away. > > > > So something seems quite broken :/ > > > > I'm surprised, as I've had VTK + PyQt4 programs working fine before. > > > > Thankful for any advice / ideas. > > > > Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From emredeniz18 at hotmail.com Tue Feb 23 08:28:27 2016 From: emredeniz18 at hotmail.com (emredeniz) Date: Tue, 23 Feb 2016 06:28:27 -0700 (MST) Subject: [vtkusers] vtk dicom module Message-ID: <1456234107968-5736745.post@n5.nabble.com> Hi all, ?'have downloaded and cloned vtk dicom module but could not entegrate in my project. I'm using vtk 6.3 on windows, what should ? do to use remoote module in vtk and how should ? install this module in cmake. thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtk-dicom-module-tp5736745.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Tue Feb 23 08:53:37 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Feb 2016 06:53:37 -0700 Subject: [vtkusers] vtk dicom module In-Reply-To: <1456234107968-5736745.post@n5.nabble.com> References: <1456234107968-5736745.post@n5.nabble.com> Message-ID: To build vtk-dicom as a remote module, you can do this: 1) Rename vtk-dicom to vtkDICOM and move it into the "Remote" directory in the VTK source tree. (It must be the VTK source tree. Do not move it into the VTK build tree.) 2) Edit the file Remote/vtkDICOM.remote.cmake in the VTK source tree, and replace it with this text: vtk_fetch_module(vtkDICOM "Dicom classes and utilities" GIT_REPOSITORY https://github.com/dgobbi/vtk-dicom GIT_TAG 59be8005b676e5ad27ca9001289438e242dc0ea3 ) 3) Run cmake on VTK, with "Module_vtkDICOM:BOOL=ON" 4) Re-build VTK On Tue, Feb 23, 2016 at 6:28 AM, emredeniz wrote: > Hi all, ?'have downloaded and cloned vtk dicom module but could not > entegrate > in my project. > I'm using vtk 6.3 on windows, what should ? do to use remoote module in vtk > and how should ? install this module in cmake. > thanks. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From enzo.ferlin at micromar.com Tue Feb 23 08:58:04 2016 From: enzo.ferlin at micromar.com (Enzo Matsumiya) Date: Tue, 23 Feb 2016 10:58:04 -0300 Subject: [vtkusers] Add sphere to current slice (vtkImageReslice) In-Reply-To: References: Message-ID: Hello David, Thanks for your reply. Although your answer really helped me on something I would eventually struggle, my problem seems to be deeper. This is the position for 6 random clicks: x: 147.573 y: 22.5072 z: 6.81678 x: 197.866 y: 83.5424 z: -2.80355e-05 x: 85.5616 y: 83.0541 z: 6.81678 x: 137.808 y: 116.257 z: -2.80355e-05 x: 87.0264 y: -15.5787 z: 6.81678 x: 103.628 y: 31.2963 z: -2.80355e-05 Clearly Z is wrong and I can't figure how to get it correctly (I'm using vtkPropPicker for now). Rearranging my thoughts, now I think my previous problem was that the spheres were being added way too far from my volume. Any help with that? Thanks, -- Enzo Ferlin Matsumiya System Analyst Skype: enzo.ferlin Phone: +55 11 4057-5722 +55 48 9130-2478 www.micromar.com > On Feb 22, 2016, at 15:20, David Gobbi wrote: > > Hi Enzo, > > As a general solution, you can add a callback for the renderer's StartEvent. The renderer emits this event immediately before it renders the scene, so a StartEvent callback can be used to compute the distance of each sphere from the slice plane, and can then call VisibilityOn() for all sphere actors that are close to the slice, and VisibilityOff() for all actors that are far from the slice. > > I've found the StartEvent to be incredibly useful for manipulating annotations like spheres, arrows, text, and whatnot. > > - David > > > On Mon, Feb 22, 2016 at 10:32 AM, Enzo Ferlin > wrote: > Hello, > > I'm trying to add a sphere to the current slice of a rendered DICOM volume. > > Basically, I'm using this code: > > http://web.mit.edu/16.225/dv/VTK/Examples/ImageProcessing/Cxx/ImageSlicing.cxx > > The only difference being that I use MouseWheelForwardEvent/MouseWheelBackwardEvent to reslice and I intercept left button press on my custom interactor (vtkInteractorStyleImage) to add a sphere on that position. > > The sphere is added in the correct position (as an addition, I can already measure the correct distance (mm) between 2 added spheres). > My problem is that when I scroll to go back/forward another slice, these spheres stays in front of the volume. > > I want those spheres appear only when I pass through that particular slice that they were added. > > How could I accomplish that? > > > Thank in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Feb 23 09:08:14 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Feb 2016 07:08:14 -0700 Subject: [vtkusers] Add sphere to current slice (vtkImageReslice) In-Reply-To: References: Message-ID: Hi Enzo, Maybe try some non-random clicks? If you click in the same place twice, is z the same for both clicks? If you click on the image, is z the same as when you click off the image? What z value are you expecting? Does the image have any transparent pixels? If you switch to a different picker (e.g. vtkCellPicker) does it give the same results? - David On Tue, Feb 23, 2016 at 6:58 AM, Enzo Matsumiya wrote: > Hello David, > > Thanks for your reply. > > Although your answer really helped me on something I would eventually > struggle, my problem seems to be deeper. > > This is the position for 6 random clicks: > > x: 147.573 y: 22.5072 z: 6.81678 > x: 197.866 y: 83.5424 z: -2.80355e-05 > x: 85.5616 y: 83.0541 z: 6.81678 > x: 137.808 y: 116.257 z: -2.80355e-05 > x: 87.0264 y: -15.5787 z: 6.81678 > x: 103.628 y: 31.2963 z: -2.80355e-05 > > Clearly Z is wrong and I can't figure how to get it correctly (I'm using > vtkPropPicker for now). > > Rearranging my thoughts, now I think my previous problem was that the > spheres were being added way too far from my volume. > > Any help with that? > > > Thanks, > > -- > Enzo Ferlin Matsumiya > *System Analyst* > > *Skype:* enzo.ferlin > *Phone:* +55 11 4057-5722 > +55 48 9130-2478 > > www.micromar.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clinton at elemtech.com Tue Feb 23 09:09:29 2016 From: clinton at elemtech.com (clinton at elemtech.com) Date: Tue, 23 Feb 2016 07:09:29 -0700 (MST) Subject: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS In-Reply-To: References: Message-ID: <31614281.22788932.1456236569250.JavaMail.zimbra@elemtech.com> This problem also occurs if I swap out the QVTKWidget for a QGLWidget. I would suggest you send a bug report to the Qt developers with a QGLWidget based example. Clint ----- On Feb 17, 2016, at 5:15 PM, rakesh patil wrote: > Hi, > So apart from changing the versions, there is no other work around for this > problem. ? > Thanks > On Wednesday, February 17, 2016, Fetzer, Andreas < a.fetzer at dkfz-heidelberg.de > > wrote: >> Hi, >> VTK 6.2 and Qt 4.8.6 works fine. >> If we use Qt 5.x it doesn't work. >> We narrowed it down to the QVTKWidget's c'tor: >> If we uncomment the Qt::MSWindowsOwnDC flag it partially solves our problem. >> There are still cases where our Views do not react :-/ >> Cheers, >> Andreas >> Von: rakesh patil < prakeshofficial at gmail.com > >> >> Datum: Wednesday 17 February 2016 18:22 >> An: Andreas Fetzer < a.fetzer at dkfz-heidelberg.de > a.fetzer at dkfz-heidelberg.de >> >> Cc: VTK Users < vtkusers at vtk.org > >> Betreff: Re: QVTKWidget + Dock/Undocking + MAC OS >> Hi, >> You mean to say, vtk 6.3 + Qt 4.8.6 works fine. ? There won't be any flickering >> hapenning on MAC. ? >> On Wednesday, February 17, 2016, Fetzer, Andreas < a.fetzer at dkfz-heidelberg.de >> > wrote: >> Hi, >> we are facing a similar problem on Mac OS X 10.9+ with VTK 6.2 and Qt 5.x. >> (Strangely with Qt 4.8.6 everything works fine) >> We write our own Plugins that add new GUI components to our Application. >> If we add a QVTKWidget to a plugin, all it's widgets do not react to mouse >> clicks anymore. >> This happens even if we just instantiate the QVTKWidget without adding it to the >> plugin. >> Currently we suspect that the QVTKWidget or VTKInteractors consume some Qt >> events >> or do not forward these events. But we do not have a solution yet. >> We would be glad about any hints. >> Best regards, >> Andreas >> Von: vtkusers < vtkusers-bounces at vtk.org > vtkusers-bounces at vtk.org >> on behalf of rakesh patil < >> prakeshofficial at gmail.com > >> >> Datum: Tuesday 16 February 2016 17:33 >> An: VTK Users < vtkusers at vtk.org > >> >> Betreff: Re: [vtkusers] QVTKWidget + Dock/Undocking + MAC OS >> Hi, >> Since, I got no reply for this, I have prepared a small test case. It is a >> dock/undock example from Qt and I have just added QVTKWidget to it. Atleast the >> flickering should be disabled somehow. Can some experts help me? >> I am using Qt 5.5 and vtk 6.3. This happens only on MAC (tested on OS X Yosemite >> & OS X El Capitan). >> On Sun, Feb 7, 2016 at 8:17 PM, rakesh patil < prakeshofficial at gmail.com >> >> wrote: >> Hello, >> I am facing a very strange issue with Dock/Undocking when one of the docked >> widget is QVTKWidget. I have a centralWidget which contains four tabs. Each tab >> is an inherited from QWidget. Among these, one widget is QVTKWidget. The issue >> what I am facing is when I click on the bar and try to undock, the mouse events >> are lost. I release the mouse button and move the mouse, QVTKWidget keeps >> moving along with the mouse. I need to click once again on the tab and then it >> gets undocked fully. Some times while undocking or docking, I observed >> flickering effect on the renderwindow. >> It gives feeling like QDockWidget is passing some information/signal to its >> widgets, which QVTKWidget is not able to process, and other QWidgets are able >> to process. Has anyone come across this type of scenario? >> Thanks in advance > _______________________________________________ > Powered by www.kitware.com > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Search the list archives at: http://markmail.org/search/?q=vtkusers > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From inglis.dl at gmail.com Tue Feb 23 09:17:38 2016 From: inglis.dl at gmail.com (DL I) Date: Tue, 23 Feb 2016 09:17:38 -0500 Subject: [vtkusers] vtkRenderWindowInteracotr does not return In-Reply-To: References: Message-ID: Hi Muhammad, QVTKWidget uses its own sub-classed vtkRenderWindowInteractor (QVTKInteractor) for proper control of the Qt event loop. When you set up your vtkImageViewer2 in your QApplication, try the following: vtkRenderWindow* renwin = engine->GetRenderWindow(); imageViewer->SetRenderWindow( renwin); imageViewer->SetupInteractor( renwin->GetInteractor() ); // make the link between Qt and vtkImageViewer imageViewer->SetInput( reader->GetOutput() ); renwin->Render(); there is no need to call Start() on the interactor: QApplication will initialize the event loop. best regards, Dean On Tue, Feb 23, 2016 at 4:16 AM, Muhammad Jawad wrote: > Dear all, > > I am using Qt 5.4 with vtk 6.2 on windows. I am facing some problem using > QVtkWidget with vtkRenderWindowInteractor, It never returns once > vtkrenderwindowinteractor->start() call. > > When I close the QVtkWidget or main application but it still running in > background. > > my code is: > > > vtkImageViewer2 *imageViewer = vtkImageViewer2::New(); > > > imageViewer->SetInputData(reader->GetOutput()); > > > vtkRenderWindowInteractor *renderWindowInteractor = vtkRenderWindowInteractor::New(); > > > imageViewer->SetupInteractor(renderWindowInteractor); > > QVtkWidget *engine = new QVtkWidget(); > > engine->SetRenderWindow(imageViewer->GetRenderWindow()); // make the link between VTK and QT > > renderWindowInteractor->SetRenderWindow(imageViewer->GetRenderWindow()); > > engine->show(); > > imageViewer->GetRenderWindow()->Render (); > > > //renderWindowInteractor->Initialize(); > > engine->GetRenderWindow()->GetInteractor()->Start(); > > //renderWindowInteractor->Start(); > > > cerr<<"exit"; > > > How I can return from vtkRenderWindowInteractor->Start() function ? > > > > Thanks. > > > > -- > > Muhammad Jawad > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 enzo.ferlin at micromar.com Tue Feb 23 09:51:35 2016 From: enzo.ferlin at micromar.com (Enzo Matsumiya) Date: Tue, 23 Feb 2016 11:51:35 -0300 Subject: [vtkusers] Add sphere to current slice (vtkImageReslice) In-Reply-To: References: Message-ID: <5FEF406F-4A23-4214-9424-AEE0C0FC024F@micromar.com> David, If I click the same place several times, Z remains the same. If I click off the image, XYZ are 0. Actually I wasn't expecting a specific Z value. The image has transparent pixels, yes. If I use vtkCellPicker, Z is always 0 due to my setup, I believe (picker->Pick(click[0], click[1], 0, ren)). Another test I just made is if I set my vtkImageReslicer output dimensionality to 3, instead of 2, *the image won't render correctly*, but this sphere annotation will work the way I want (I can scroll through the volume and see the spheres on the correct place I added them). Thanks, -- Enzo Ferlin Matsumiya System Analyst Skype: enzo.ferlin Phone: +55 11 4057-5722 +55 48 9130-2478 www.micromar.com > On Feb 23, 2016, at 11:08, David Gobbi wrote: > > Hi Enzo, > > Maybe try some non-random clicks? > > If you click in the same place twice, is z the same for both clicks? > > If you click on the image, is z the same as when you click off the image? > > What z value are you expecting? > > Does the image have any transparent pixels? > > If you switch to a different picker (e.g. vtkCellPicker) does it give the same results? > > - David > > > On Tue, Feb 23, 2016 at 6:58 AM, Enzo Matsumiya > wrote: > Hello David, > > Thanks for your reply. > > Although your answer really helped me on something I would eventually struggle, my problem seems to be deeper. > > This is the position for 6 random clicks: > > x: 147.573 y: 22.5072 z: 6.81678 > x: 197.866 y: 83.5424 z: -2.80355e-05 > x: 85.5616 y: 83.0541 z: 6.81678 > x: 137.808 y: 116.257 z: -2.80355e-05 > x: 87.0264 y: -15.5787 z: 6.81678 > x: 103.628 y: 31.2963 z: -2.80355e-05 > > Clearly Z is wrong and I can't figure how to get it correctly (I'm using vtkPropPicker for now). > > Rearranging my thoughts, now I think my previous problem was that the spheres were being added way too far from my volume. > > Any help with that? > > > Thanks, > > -- > Enzo Ferlin Matsumiya > System Analyst > > Skype: enzo.ferlin > Phone: +55 11 4057-5722 > +55 48 9130-2478 > > www.micromar.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From softplanner at gmail.com Tue Feb 23 09:58:06 2016 From: softplanner at gmail.com (Muhammad Jawad) Date: Tue, 23 Feb 2016 15:58:06 +0100 Subject: [vtkusers] vtkRenderWindowInteracotr does not return In-Reply-To: References: Message-ID: Hi Dean, Thanks for the suggestions. I did the same as you mentioned it's working. But the problem is that, it immediately close the window. What do you say ? -- Muhammad Jawad On 23 February 2016 at 15:17, DL I wrote: > Hi Muhammad, > > QVTKWidget uses its own sub-classed vtkRenderWindowInteractor > (QVTKInteractor) for proper control of the Qt event loop. When you > set up your vtkImageViewer2 in your QApplication, try the following: > > vtkRenderWindow* renwin = engine->GetRenderWindow(); > imageViewer->SetRenderWindow( renwin); > imageViewer->SetupInteractor( renwin->GetInteractor() ); // make the link > between Qt and vtkImageViewer > imageViewer->SetInput( reader->GetOutput() ); > renwin->Render(); > > there is no need to call Start() on the interactor: QApplication will > initialize the event loop. > > best regards, > Dean > > > On Tue, Feb 23, 2016 at 4:16 AM, Muhammad Jawad > wrote: > >> Dear all, >> >> I am using Qt 5.4 with vtk 6.2 on windows. I am facing some problem using >> QVtkWidget with vtkRenderWindowInteractor, It never returns once >> vtkrenderwindowinteractor->start() call. >> >> When I close the QVtkWidget or main application but it still running in >> background. >> >> my code is: >> >> >> vtkImageViewer2 *imageViewer = vtkImageViewer2::New(); >> >> >> imageViewer->SetInputData(reader->GetOutput()); >> >> >> vtkRenderWindowInteractor *renderWindowInteractor = vtkRenderWindowInteractor::New(); >> >> >> imageViewer->SetupInteractor(renderWindowInteractor); >> >> QVtkWidget *engine = new QVtkWidget(); >> >> engine->SetRenderWindow(imageViewer->GetRenderWindow()); // make the link between VTK and QT >> >> renderWindowInteractor->SetRenderWindow(imageViewer->GetRenderWindow()); >> >> engine->show(); >> >> imageViewer->GetRenderWindow()->Render (); >> >> >> //renderWindowInteractor->Initialize(); >> >> engine->GetRenderWindow()->GetInteractor()->Start(); >> >> //renderWindowInteractor->Start(); >> >> >> cerr<<"exit"; >> >> >> How I can return from vtkRenderWindowInteractor->Start() function ? >> >> >> >> Thanks. >> >> >> >> -- >> >> Muhammad Jawad >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 pedrommcs at hotmail.com Tue Feb 23 10:37:56 2016 From: pedrommcs at hotmail.com (pedrommcs) Date: Tue, 23 Feb 2016 08:37:56 -0700 (MST) Subject: [vtkusers] Obtain single contour line from vtkStripper Message-ID: <1456241876615-5736755.post@n5.nabble.com> Hi everyone, I'm having trouble extracting a specific line from a vtkStripper. For example, for an isovalue = 90 I have 3 contour lines, which I can check in *numberOfContourLines *variable. And I can get the lines in *cells* variable. But how do I define a specific line to be the input for a vtkPolyData? For example, how do I get the first line? Something similar to cells[0] (this doesn't work)? Here is my code: file_path = " path to some .vti file" reader = vtk.vtkXMLImageDataReader() reader.SetFileName(file_path) reader.GetOutput().SetUpdateExtentToWholeExtent() reader.Update() flipYFilter = vtk.vtkImageFlip() flipYFilter.SetFilteredAxis(1) flipYFilter.SetInput(reader.GetOutput()) flipYFilter.Update() image = flipYFilter.GetOutput() extractSlice = vtk.vtkExtractVOI() extractSlice.SetInput(image) extractSlice.SetVOI(image.GetExtent()[0], image.GetExtent()[1], \ image.GetExtent()[2], image.GetExtent()[3], \ 5, 5) extractSlice.SetSampleRate(1, 1, 1) extractSlice.Update() contour = vtk.vtkContourFilter() contour.SetInputConnection(extractSlice.GetOutputPort()) contour.SetValue(1,90) contourStripper = vtk.vtkStripper() contourStripper.SetInputConnection(contour.GetOutputPort()) contourStripper.Update() numberOfContourLines = contourStripper.GetOutput().GetNumberOfLines() cells = contourStripper.GetOutput().GetLines() cutPoly=vtk.vtkPolyData() cutPoly.SetPolys(cells[0]) #I want to change this to get first line, cells[0] doesn't work, how to do it? Thanks in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/Obtain-single-contour-line-from-vtkStripper-tp5736755.html Sent from the VTK - Users mailing list archive at Nabble.com. From softplanner at gmail.com Tue Feb 23 10:38:43 2016 From: softplanner at gmail.com (Muhammad Jawad) Date: Tue, 23 Feb 2016 16:38:43 +0100 Subject: [vtkusers] vtkRenderWindowInteracotr does not return In-Reply-To: References: Message-ID: I figured it out, engine->show() solved the problem. The next problem with vtkInteractorStyleImage. I'm using custom vtkInteractorStyleImage that I got from this link: http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadDICOMSeries Problem is that, when I move slice forward or backward, program goes crash. Have you any idea ? -- Muhammad Jawad On 23 February 2016 at 15:58, Muhammad Jawad wrote: > Hi Dean, > > Thanks for the suggestions. I did the same as you mentioned it's working. > But the problem is that, it immediately close the window. > > What do you say ? > > > > -- > Muhammad Jawad > > On 23 February 2016 at 15:17, DL I wrote: > >> Hi Muhammad, >> >> QVTKWidget uses its own sub-classed vtkRenderWindowInteractor >> (QVTKInteractor) for proper control of the Qt event loop. When you >> set up your vtkImageViewer2 in your QApplication, try the following: >> >> vtkRenderWindow* renwin = engine->GetRenderWindow(); >> imageViewer->SetRenderWindow( renwin); >> imageViewer->SetupInteractor( renwin->GetInteractor() ); // make the >> link between Qt and vtkImageViewer >> imageViewer->SetInput( reader->GetOutput() ); >> renwin->Render(); >> >> there is no need to call Start() on the interactor: QApplication will >> initialize the event loop. >> >> best regards, >> Dean >> >> >> On Tue, Feb 23, 2016 at 4:16 AM, Muhammad Jawad >> wrote: >> >>> Dear all, >>> >>> I am using Qt 5.4 with vtk 6.2 on windows. I am facing some problem >>> using QVtkWidget with vtkRenderWindowInteractor, It never returns once >>> vtkrenderwindowinteractor->start() call. >>> >>> When I close the QVtkWidget or main application but it still running in >>> background. >>> >>> my code is: >>> >>> >>> vtkImageViewer2 *imageViewer = vtkImageViewer2::New(); >>> >>> >>> imageViewer->SetInputData(reader->GetOutput()); >>> >>> >>> vtkRenderWindowInteractor *renderWindowInteractor = vtkRenderWindowInteractor::New(); >>> >>> >>> imageViewer->SetupInteractor(renderWindowInteractor); >>> >>> QVtkWidget *engine = new QVtkWidget(); >>> >>> engine->SetRenderWindow(imageViewer->GetRenderWindow()); // make the link between VTK and QT >>> >>> renderWindowInteractor->SetRenderWindow(imageViewer->GetRenderWindow()); >>> >>> engine->show(); >>> >>> imageViewer->GetRenderWindow()->Render (); >>> >>> >>> //renderWindowInteractor->Initialize(); >>> >>> engine->GetRenderWindow()->GetInteractor()->Start(); >>> >>> //renderWindowInteractor->Start(); >>> >>> >>> cerr<<"exit"; >>> >>> >>> How I can return from vtkRenderWindowInteractor->Start() function ? >>> >>> >>> >>> Thanks. >>> >>> >>> >>> -- >>> >>> Muhammad Jawad >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickfrank at me.com Tue Feb 23 11:37:41 2016 From: rickfrank at me.com (Richard Frank) Date: Tue, 23 Feb 2016 16:37:41 +0000 (GMT) Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 Message-ID: <359267cf-f13d-4e90-a414-0f2c5cd7aac2@me.com> There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 and?there are four of these models - 1 in each renderview - ?(Sagital, Axial, Coronal, etc). Each model is composed of surfaces created with triangle strips. Each model contains a number of actors for each surface, (variable, depends on anatomy) put together into an assembly. It's a medical application. Works fine in VTK 6.3.0? NVidia quadro K5200 Graphics Card should be beefy enough. Rick On Feb 22, 2016, at 09:44 PM, Ken Martin wrote: Out of memory is an unusual one. Maybe the mesh is too big to load all at once in the new backend. How big is the mesh you are trying to render (number of points, number of triangles) and does it use cell colors or cell normals?? That would help me get a feel if it is really just exceeding what the card can handle. Thanks Ken On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank wrote: Hi, I get the following errors ( and my fairly complex polygon mesh fails to render ) when using VTK 7.0. ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 OpenGL errors detected 0 : (1282) Invalid operation ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors detected 0 : (1285) Out of memory This is code is " works " fine in 6.3.0. I'm using an NVidia quadro K5200 with 8G. Any tips on how to debug this? Thanks Rick Sent from my iPad _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.? Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Tue Feb 23 11:43:45 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 23 Feb 2016 11:43:45 -0500 Subject: [vtkusers] Volume rendering update Message-ID: Hi all, We have made some significant improvements to volume rendering since our last update (Ref: https://blog.kitware.com/volume-rendering-enhancements-in-vtk/, https://blog.kitware.com/volume-rendering-on-ios-and-android/). Below is a list of tasks that are either nearly completed and or are in VTK master as of today. - Features/updates - Big volume support - Fixing failing tests. The idea is to split volume into smaller volumes and render them piecewise. - 3x-5x clipping plane performance - For the same parameters, clipping is much faster now, the trick is to skip voxels that are clipped by planes. - Depth and color data capture - User can use RenderToImage to render to a FBO and get depth and color texture which then could be utilized for other operations. - Bugs - Fixed gradient opacity not working for more than one components - Fixed clipping plane location is wrong in certain cases. - Fixed volume rendering invalid or bad for cell data - Fixed edges issue when rendering in multiple pieces (hard edges) - Fixed volume rendering not working in remote rendering mode with image reduction factor > 1 - Fixed volume rendering not working in client-server mode - Fixed volume disappears when changing parameters - Fixed volume rendering not using the correct sampling distance -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Feb 23 11:58:18 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 23 Feb 2016 11:58:18 -0500 Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 In-Reply-To: <359267cf-f13d-4e90-a414-0f2c5cd7aac2@me.com> References: <359267cf-f13d-4e90-a414-0f2c5cd7aac2@me.com> Message-ID: Hmm something is really odd there. 16600 points/normals is trivially small. Even if you had 100 actors each with 16600 points that would be small. There are a couple ways to debug something like this. One is to go old school and sprinkle vtkOpenGLCheckErrorMacro("failed after something"); throughout the code to see where the issue is. Another option on windows is to use https://github.com/dtrebilco/glintercept which produces a log showing the specific call that caused the problem and when run in the debugger it will break on opengl errors. There are other tools with similar capabilities available as well. If you can boil it down to something smaller I could try it out, my dev systems are all Qt4 though... Ken On Tue, Feb 23, 2016 at 11:37 AM, Richard Frank wrote: > There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 > and there are four of these models - 1 in each renderview - (Sagital, > Axial, Coronal, etc). Each model is composed of surfaces created with > triangle strips. > > Each model contains a number of actors for each surface, (variable, > depends on anatomy) put together into an assembly. > > It's a medical application. Works fine in VTK 6.3.0 > > NVidia quadro K5200 > Graphics Card should be beefy enough. > > Rick > > > On Feb 22, 2016, at 09:44 PM, Ken Martin wrote: > > Out of memory is an unusual one. Maybe the mesh is too big to load all at > once in the new backend. How big is the mesh you are trying to render > (number of points, number of triangles) and does it use cell colors or cell > normals? That would help me get a feel if it is really just exceeding what > the card can handle. > > Thanks > Ken > > > On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank wrote: > >> Hi, >> >> I get the following errors ( and my fairly complex polygon mesh fails to >> render ) when using VTK 7.0. >> ERROR: In >> >> \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 >> vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 >> OpenGL errors detected >> 0 : (1282) Invalid operation >> >> >> >> ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 >> vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors >> detected >> 0 : (1285) Out of memory >> >> >> This is code is " works " fine in 6.3.0. >> >> I'm using an NVidia quadro K5200 with 8G. >> >> Any tips on how to debug this? >> Thanks >> >> Rick >> >> >> Sent from my iPad >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Tue Feb 23 12:13:22 2016 From: tjlp at netease.com (Liu_tj) Date: Wed, 24 Feb 2016 01:13:22 +0800 (CST) Subject: [vtkusers] How to zoom and disable rotating the Dicom image with vtkImagePlaneWidget Message-ID: <570e3df.2.1530f1efee7.Coremail.tjlp@netease.com> Hi, vtk experts, I am a newbie of VTK. Now I try to use vtkImagePlaneWidget to display the sagittal view of DICOM series. How to zoom the image and disable rotating the image? Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Feb 23 12:47:08 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Feb 2016 10:47:08 -0700 Subject: [vtkusers] Cell locator : find closest point computation details In-Reply-To: <56cc9669.0d1e1c0a.eae65.ffffb487SMTPIN_ADDED_BROKEN@mx.google.com> References: <56c77341.512b6b0a.e0e6c.4f23SMTPIN_ADDED_BROKEN@mx.google.com> <56cc9669.0d1e1c0a.eae65.ffffb487SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: Hi Jean-Michel, I don't think that the locator uses "cell center" for any of its computations. Your best resource is the code itself. Take a look at the code to see how vtkCellLocator::FindCell() is implemented. - David On Tue, Feb 23, 2016 at 10:27 AM, Jean-Michel Lucas wrote: > Thank you for your answer David. > > I referred to neighbour cells because I wanted to know how the closest > cell is identified (I assumed it was based on the distance). > > My problem is to know, given a point that is in a large cell but actually > closer to the center of a neighbour smaller cell, which of the two is > identified as the closest cell. > > > > Jean-Michel > > > > *De :* David Gobbi [mailto:david.gobbi at gmail.com] > *Envoy? :* vendredi 19 f?vrier 2016 21:01 > *? :* Jean-Michel Lucas > *Cc :* VTK Users > *Objet :* Re: [vtkusers] Cell locator : find closest point computation > details > > > > On Fri, Feb 19, 2016 at 10:05 AM, Jean-Michel Lucas > wrote: > > Dear all, > > > > Could someone explain me how the vtkCellLocator::FindClosestPoint method > works ? More specifically I would like to know how the distance is computed > from a given point: is it measured with respect to the center of the > neighbour cells ? > > > > If used on vtkPolyData, it gives the perpendicular distance to the closest > surface. I'm pretty sure that the neighbour cells are not part the > computation. > > > > - David > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Tue Feb 23 13:11:02 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 23 Feb 2016 11:11:02 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor Message-ID: <1456251062543-5736763.post@n5.nabble.com> Hello everyone, I'm facing a weird issue. I've followed the vtkPicker example given here to suit my needs. I have a scene, with one renderer and two actors. One of them is removed from the scene at some point (it's a volume) so it does not count when I'm using the picker. The other one is a vtkActor containing a plane. Now I'm using android and based on the VolumeRender code, I added a small chunk of code to the onMotionEvent native function (called when fingers are placed on the screen of the device). In case you don't want to browse through the examples and the code, here is what the native function does: /JNIEXPORT void JNICALL Java_com_kitware_VolumeRender_VolumeRenderLib_onMotionEvent(JNIEnv * env, jobject obj, jlong udp, jint action, jint eventPointer, jint numPtrs, jfloatArray xPos, jfloatArray yPos, jintArray ids, jint metaState) { struct userData *foo = (userData *)(udp); int xPtr[VTKI_MAX_POINTERS]; int yPtr[VTKI_MAX_POINTERS]; int idPtr[VTKI_MAX_POINTERS]; /*vtkSmartPointer t = vtkSmartPointer::New(); double * origin = foo->plane->GetOrigin(); origin[2] += 0.3 ; foo->plane->SetOrigin(origin);*/ // only allow VTKI_MAX_POINTERS touches right now if (numPtrs > VTKI_MAX_POINTERS) { numPtrs = VTKI_MAX_POINTERS; } // fill in the arrays jfloat *xJPtr = env->GetFloatArrayElements(xPos, 0); jfloat *yJPtr = env->GetFloatArrayElements(yPos, 0); jint *idJPtr = env->GetIntArrayElements(ids, 0); for (int i = 0; i < numPtrs; ++i) { xPtr[i] = (int)xJPtr[i]; yPtr[i] = (int)yJPtr[i]; idPtr[i] = idJPtr[i]; }/ So I just added this small piece of code to try and detect when the user is placing his/her finger on my planeActor: /vtkSmartPointer picker =vtkSmartPointer::New(); int* clickPos = foo->Interactor->GetEventPosition(); picker->Pick(xPtr[0], yPtr[0], 0, foo->Renderer); if(picker->GetActor() == foo->planeActor){ LOGW("Plane Picked ********************"); // Case of the seeding point positionning } else{ LOGW("#################### Outside of plane"); }/ Now when I check my logcat while having my finger on the plane I get something like: /W/NativeVTK(29678): Plane Picked ******************** W/NativeVTK(29678): #################### Outside of plane W/NativeVTK(29678): #################### Outside of plane W/NativeVTK(29678): #################### Outside of plane W/NativeVTK(29678): Plane Picked ********************/ When my finger is not located on my plane, this is correctly detected, but it's on it would appear to trigger both events. Would you mind giving me some explanations on that matter? Thanks in advance -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Tue Feb 23 13:17:05 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Feb 2016 11:17:05 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456251062543-5736763.post@n5.nabble.com> References: <1456251062543-5736763.post@n5.nabble.com> Message-ID: Seems strange. When you do the picks, log xPtr[0] and yPtr[0] to make sure that the picks are occurring at the expected location. On Tue, Feb 23, 2016 at 11:11 AM, Lonni Besan?on wrote: > Hello everyone, > > I'm facing a weird issue. > I've followed the vtkPicker example given here > to suit > my > needs. > > I have a scene, with one renderer and two actors. > One of them is removed from the scene at some point (it's a volume) so it > does not count when I'm using the picker. > The other one is a vtkActor containing a plane. > > Now I'm using android and based on the VolumeRender code, I added a small > chunk of code to the onMotionEvent native function (called when fingers are > placed on the screen of the device). > > In case you don't want to browse through the examples and the code, here is > what the native function does: > > /JNIEXPORT void JNICALL > Java_com_kitware_VolumeRender_VolumeRenderLib_onMotionEvent(JNIEnv * env, > jobject obj, jlong udp, > jint action, > jint eventPointer, > jint numPtrs, > jfloatArray xPos, jfloatArray yPos, > jintArray ids, jint metaState) > { > struct userData *foo = (userData *)(udp); > > int xPtr[VTKI_MAX_POINTERS]; > int yPtr[VTKI_MAX_POINTERS]; > int idPtr[VTKI_MAX_POINTERS]; > > /*vtkSmartPointer t = vtkSmartPointer::New(); > double * origin = foo->plane->GetOrigin(); > origin[2] += 0.3 ; > foo->plane->SetOrigin(origin);*/ > > // only allow VTKI_MAX_POINTERS touches right now > if (numPtrs > VTKI_MAX_POINTERS) > { > numPtrs = VTKI_MAX_POINTERS; > } > > // fill in the arrays > jfloat *xJPtr = env->GetFloatArrayElements(xPos, 0); > jfloat *yJPtr = env->GetFloatArrayElements(yPos, 0); > jint *idJPtr = env->GetIntArrayElements(ids, 0); > for (int i = 0; i < numPtrs; ++i) > { > xPtr[i] = (int)xJPtr[i]; > yPtr[i] = (int)yJPtr[i]; > idPtr[i] = idJPtr[i]; > }/ > > So I just added this small piece of code to try and detect when the user is > placing his/her finger on my planeActor: > > /vtkSmartPointer picker > =vtkSmartPointer::New(); > int* clickPos = foo->Interactor->GetEventPosition(); > picker->Pick(xPtr[0], yPtr[0], 0, foo->Renderer); > > if(picker->GetActor() == foo->planeActor){ > LOGW("Plane Picked ********************"); > // Case of the seeding point positionning > } > else{ > LOGW("#################### Outside of plane"); > }/ > > Now when I check my logcat while having my finger on the plane I get > something like: > /W/NativeVTK(29678): Plane Picked ******************** > W/NativeVTK(29678): #################### Outside of plane > W/NativeVTK(29678): #################### Outside of plane > W/NativeVTK(29678): #################### Outside of plane > W/NativeVTK(29678): Plane Picked ********************/ > > When my finger is not located on my plane, this is correctly detected, but > it's on it would appear to trigger both events. > > Would you mind giving me some explanations on that matter? > > Thanks in advance > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richuitnl at gmail.com Tue Feb 23 14:18:34 2016 From: richuitnl at gmail.com (rich) Date: Tue, 23 Feb 2016 12:18:34 -0700 (MST) Subject: [vtkusers] EDL on VTK7 Message-ID: <1456255114593-5736766.post@n5.nabble.com> Hi All, I have upgraded VTK 6.1 to VTK 7/OpengL2, my app draws a basic point cloud. Iam using a vtkSliderWidget/ vtkSliderRepresentation2D* to change the point size interactively. This works ok, both on 6 and 7. Now I was playing with the vtkEDLShading and this works fine as long as I hide the Slider. As soon as I show the slider it crashes in vtkEDLShading.cxx around line 400. double bb[6]; vtkMath::UninitializeBounds(bb); for(int i=0; iGetBounds(); <<<========= HERE if(i==0) { ..... So what happens is that the SliderRepresentation shows up as a prop(? sorry for the noob language) here but this has no bounds, so it crashes on the nullptr. So I tried to call SetUseBounds(false) but this did not matter, still crashes. So then I recompiled the vtkEDLShading.cxx to: // FIX for crash on Slider Widgets int nBBCount = 0; for (int i = 0; i < s.GetPropArrayCount(); i++) { if (s.GetPropArray()[i]->GetUseBounds()) { double* bounds = s.GetPropArray()[i]->GetBounds(); if (bounds != 0) { if (nBBCount == 0) { bb[0] = bounds[0]; bb[1] = bounds[1]; bb[2] = bounds[2]; bb[3] = bounds[3]; bb[4] = bounds[4]; bb[5] = bounds[5]; } else { bb[0] = (bb[0] < bounds[0] ? bb[0] : bounds[0]); bb[1] = (bb[1] > bounds[1] ? bb[1] : bounds[1]); bb[2] = (bb[2] < bounds[2] ? bb[2] : bounds[2]); bb[3] = (bb[3] > bounds[3] ? bb[3] : bounds[3]); bb[4] = (bb[4] < bounds[4] ? bb[4] : bounds[4]); bb[5] = (bb[5] > bounds[5] ? bb[5] : bounds[5]); } nBBCount++; } } } And this fixed the crash but now the slider widget is also EDL shaded. Is there something I overlooked? thanks, RIch. -- View this message in context: http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Tue Feb 23 14:52:29 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 23 Feb 2016 14:52:29 -0500 Subject: [vtkusers] EDL on VTK7 In-Reply-To: <1456255114593-5736766.post@n5.nabble.com> References: <1456255114593-5736766.post@n5.nabble.com> Message-ID: The TestEDLPass example renders all the passes with EDL. I think the solution for you is to change up the render passes. Specifically something like camerapass { - sequence pass { - EDLPass { - sequence pass { - camera pass - lights pass - opaque pass - translucent pass (if needed) } } - OverlayPass } } Each indent is a delegate of the pass above it. That way the geometry is still has EDL applied to it, but the 2D overlay would not. We probably could use a class to help put this all together as these types of putting-passes-together can be a bit lengthy in code. Ken On Tue, Feb 23, 2016 at 2:18 PM, rich wrote: > Hi All, > I have upgraded VTK 6.1 to VTK 7/OpengL2, my app draws a basic point cloud. > Iam using a vtkSliderWidget/ vtkSliderRepresentation2D* to change the > point > size interactively. This works ok, both on 6 and 7. Now I was playing with > the vtkEDLShading and this works fine as long as I hide the Slider. As soon > as I show the slider it crashes in vtkEDLShading.cxx around line 400. > > double bb[6]; > vtkMath::UninitializeBounds(bb); > for(int i=0; i { > double* bounds = s.GetPropArray()[i]->GetBounds(); <<<========= HERE > if(i==0) > { > ..... > > > So what happens is that the SliderRepresentation shows up as a prop(? sorry > for the noob language) here but this has no bounds, so it crashes on the > nullptr. So I tried to call > SetUseBounds(false) but this did not matter, still crashes. > > So then I recompiled the vtkEDLShading.cxx to: > > // FIX for crash on Slider Widgets > int nBBCount = 0; > for (int i = 0; i < s.GetPropArrayCount(); i++) > { > if (s.GetPropArray()[i]->GetUseBounds()) > { > double* bounds = s.GetPropArray()[i]->GetBounds(); > > if (bounds != 0) > { > if (nBBCount == 0) > { > bb[0] = bounds[0]; > bb[1] = bounds[1]; > bb[2] = bounds[2]; > bb[3] = bounds[3]; > bb[4] = bounds[4]; > bb[5] = bounds[5]; > } > else > { > bb[0] = (bb[0] < bounds[0] ? bb[0] : > bounds[0]); > bb[1] = (bb[1] > bounds[1] ? bb[1] : > bounds[1]); > bb[2] = (bb[2] < bounds[2] ? bb[2] : > bounds[2]); > bb[3] = (bb[3] > bounds[3] ? bb[3] : > bounds[3]); > bb[4] = (bb[4] < bounds[4] ? bb[4] : > bounds[4]); > bb[5] = (bb[5] > bounds[5] ? bb[5] : > bounds[5]); > } > > nBBCount++; > } > } > } > > And this fixed the crash but now the slider widget is also EDL shaded. > Is there something I overlooked? > > thanks, > RIch. > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jm.lucas at gantha.com Tue Feb 23 12:27:01 2016 From: jm.lucas at gantha.com (Jean-Michel Lucas) Date: Tue, 23 Feb 2016 18:27:01 +0100 Subject: [vtkusers] Cell locator : find closest point computation details In-Reply-To: References: <56c77341.512b6b0a.e0e6c.4f23SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <000301d16e5f$684cb0e0$38e612a0$@lucas@gantha.com> Thank you for your answer David. I referred to neighbour cells because I wanted to know how the closest cell is identified (I assumed it was based on the distance). My problem is to know, given a point that is in a large cell but actually closer to the center of a neighbour smaller cell, which of the two is identified as the closest cell. Jean-Michel De : David Gobbi [mailto:david.gobbi at gmail.com] Envoy? : vendredi 19 f?vrier 2016 21:01 ? : Jean-Michel Lucas Cc : VTK Users Objet : Re: [vtkusers] Cell locator : find closest point computation details On Fri, Feb 19, 2016 at 10:05 AM, Jean-Michel Lucas wrote: Dear all, Could someone explain me how the vtkCellLocator::FindClosestPoint method works ? More specifically I would like to know how the distance is computed from a given point: is it measured with respect to the center of the neighbour cells ? If used on vtkPolyData, it gives the perpendicular distance to the closest surface. I'm pretty sure that the neighbour cells are not part the computation. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From richuitnl at gmail.com Tue Feb 23 15:57:06 2016 From: richuitnl at gmail.com (rich) Date: Tue, 23 Feb 2016 13:57:06 -0700 (MST) Subject: [vtkusers] EDL on VTK7 In-Reply-To: References: <1456255114593-5736766.post@n5.nabble.com> Message-ID: <1456261026337-5736769.post@n5.nabble.com> Ok Ken, Thanks for your hint. I indeed duplicated most code from TestEDLPass ;-). I will have a look at http://www.vtk.org/Wiki/VTK/MultiPass_Rendering#Attach_a_vtkRenderPass_to_a_vtkRenderer kind regards. -- View this message in context: http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736769.html Sent from the VTK - Users mailing list archive at Nabble.com. From rubenvanstaden at gmail.com Tue Feb 23 17:21:41 2016 From: rubenvanstaden at gmail.com (Ruben van Staden) Date: Wed, 24 Feb 2016 00:21:41 +0200 Subject: [vtkusers] Write Vector Field to VTK File Message-ID: Hey all I'm pritty new to VTK. How do I add a vector field to a .vts or .vtk file using the VTK library? I did this example and simple want to add a vector field to this file: http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/XMLStructuredGridWriter Thanx in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From richuitnl at gmail.com Tue Feb 23 17:25:53 2016 From: richuitnl at gmail.com (rich) Date: Tue, 23 Feb 2016 15:25:53 -0700 (MST) Subject: [vtkusers] EDL on VTK7 In-Reply-To: References: <1456255114593-5736766.post@n5.nabble.com> Message-ID: <1456266353450-5736772.post@n5.nabble.com> Ok, I have given it a shot. It is not complaining but the slider is drawn, although a bit small and the view becomes black. This is my code: // The elementary passes. auto lights = vtkSmartPointer::New(); auto opa = vtkSmartPointer::New(); auto tran = vtkSmartPointer::New(); auto volu = vtkSmartPointer< vtkVolumetricPass>::New(); // Put them in a sequence. vtkRenderPassCollection *passes = vtkRenderPassCollection::New(); passes->AddItem(lights); passes->AddItem(opa); passes->AddItem(tran); passes->AddItem(volu); auto seq1 = vtkSmartPointer::New(); seq1->SetPasses(passes); edl = vtkSmartPointer::New(); edl->SetDelegatePass(seq1); auto passes2 = vtkRenderPassCollection::New(); passes2->AddItem(edl); auto ova = vtkSmartPointer::New(); passes2->AddItem(ova); auto seq2 = vtkSmartPointer::New(); seq2->SetPasses(passes2); // Make the sequence the delegate of a camera pass. auto cameraP = vtkSmartPointer::New(); cameraP->SetDelegatePass(seq2); // tell the renderer to use our render pass pipeline vtkOpenGLRenderer *glrenderer = vtkOpenGLRenderer::SafeDownCast(renderer); if (glrenderer != nullptr) { glrenderer->SetPass(cameraP.Get()); } There should probably be another camera pass. In the inner sequence you proposed a camera pass. Buti this failed because the error message said it had no delegate assigned to it. I tried to add it to a sequence but that is not allowed. Please have a look and help me out? thanks!! -- View this message in context: http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736772.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Tue Feb 23 17:40:28 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 23 Feb 2016 15:40:28 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456251062543-5736763.post@n5.nabble.com> Message-ID: <1456267228838-5736773.post@n5.nabble.com> Hi David, Thanks for the help. So here is the added LOG: /W/NativeVTK( 8366): xPtr[0] = 1360 ;; yPtdr[0] = 475 W/NativeVTK( 8366): Plane Picked ******************** W/NativeVTK( 8366): xPtr[0] = 1362 ;; yPtdr[0] = 476 W/NativeVTK( 8366): #################### Outside of plane W/NativeVTK( 8366): xPtr[0] = 1367 ;; yPtdr[0] = 477 W/NativeVTK( 8366): Plane Picked ******************** W/NativeVTK( 8366): xPtr[0] = 1373 ;; yPtdr[0] = 479 W/NativeVTK( 8366): #################### Outside of plane W/NativeVTK( 8366): xPtr[0] = 1377 ;; yPtdr[0] = 479 W/NativeVTK( 8366): Plane Picked ******************** W/NativeVTK( 8366): xPtr[0] = 1387 ;; yPtdr[0] = 480 W/NativeVTK( 8366): #################### Outside of plane / Starting from y = 480 i'm on on the plane anymore so I just get the log staying that I'm outside of it. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736773.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Tue Feb 23 18:06:28 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Feb 2016 16:06:28 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456267228838-5736773.post@n5.nabble.com> References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> Message-ID: Hmm... it definitely seems to alternate between picking the plane, and not picking the plane. I wonder if the picking issue might be related to the rendering somehow. Can you try using vtkCellPicker instead? On Tue, Feb 23, 2016 at 3:40 PM, Lonni Besan?on wrote: > Hi David, > > Thanks for the help. > > So here is the added LOG: > > /W/NativeVTK( 8366): xPtr[0] = 1360 ;; yPtdr[0] = 475 > W/NativeVTK( 8366): Plane Picked ******************** > W/NativeVTK( 8366): xPtr[0] = 1362 ;; yPtdr[0] = 476 > W/NativeVTK( 8366): #################### Outside of plane > W/NativeVTK( 8366): xPtr[0] = 1367 ;; yPtdr[0] = 477 > W/NativeVTK( 8366): Plane Picked ******************** > W/NativeVTK( 8366): xPtr[0] = 1373 ;; yPtdr[0] = 479 > W/NativeVTK( 8366): #################### Outside of plane > W/NativeVTK( 8366): xPtr[0] = 1377 ;; yPtdr[0] = 479 > W/NativeVTK( 8366): Plane Picked ******************** > W/NativeVTK( 8366): xPtr[0] = 1387 ;; yPtdr[0] = 480 > W/NativeVTK( 8366): #################### Outside of plane > / > > Starting from y = 480 i'm on on the plane anymore so I just get the log > staying that I'm outside of it. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Tue Feb 23 18:27:14 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 23 Feb 2016 16:27:14 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> Message-ID: <1456270034902-5736775.post@n5.nabble.com> I tried the the CellPicker and it apparently works (pretty late here already so I did not fully test it, but I have the feeling it's working just fine). Would you happen to know why this picker is working while the default one was not (or at least not completely)? Thanks again for the help :) -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736775.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Tue Feb 23 19:25:33 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Feb 2016 17:25:33 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456270034902-5736775.post@n5.nabble.com> References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> Message-ID: The vtkPropPicker is a hardware picker. When you pick with it, the GPU renders the scene into a hidden buffer, where each Prop in the scene is rendered as a different color and with no shading. So the pick simply reads this "pick" buffer to see what Prop is under the cursor, and then it reads the depth buffer to get the depth coordinate. The vtkCellPicker is a software picker. It goes through the list of props that are attached to the renderer, and inspects the data for each prop. It essentially shoots a view ray from the camera position, and checks to see what props are intersected by that ray. I like the vtkCellPicker because it returns a very precise depth coordinate (it can do so because it doesn't rely on the depth buffer). Some people like the vtkPropPicker because it gives pixel-perfect accuracy, since the picking exactly matches the rendering. Some people also insist that the vtkPropPicker is faster, but that depends on what is in the scene. - David On Tue, Feb 23, 2016 at 4:27 PM, Lonni Besan?on wrote: > I tried the the CellPicker and it apparently works (pretty late here > already > so I did not fully test it, but I have the feeling it's working just fine). > Would you happen to know why this picker is working while the default one > was not (or at least not completely)? > > Thanks again for the help :) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Tue Feb 23 19:37:35 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 23 Feb 2016 17:37:35 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> Message-ID: <1456274255575-5736777.post@n5.nabble.com> While reading your answer I was about to ask about speed and performance of both but you actually gave me the answer in the end :). One more quick question about the pickers then. So my vtkPlane is actually a slice of a bigger dataset (imageReslice). My question is, with the help of the pickers, is it possible to go from my screen coordinates to my dataset coordinates? For instance if I wanted to get on which point X,Y,Z my finger is placed when I'm touching the slice? Thanks again for the additional information and the initial help you have provided. Lonni -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736777.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Tue Feb 23 19:55:32 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Feb 2016 17:55:32 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456274255575-5736777.post@n5.nabble.com> References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> Message-ID: If you want to interrogate your data, then the vtkCellPicker is the way to go. It provides tons of information about the pick point, such as: The (x,y,z) pick coordinate in world coords and in data coords (use the method GetMapperPosition() to get the point in data coords). The PointId, CellId, and SubId, and PCoords for any data set that was picked. For images, it provides the CellIJK indices and the PointIJK indices (you want the latter if you want to know what voxel was picked). This works regardless of whether you render the image as slices, or as a volume rendering, or if the image is a texture on a vtkPolyData. It even has a method called GetDataSet() so that you can directly get the image data that was picked (you'll have to use vtkImageData::SafeDownCast() to verify that the data is actually image data). - David On Tue, Feb 23, 2016 at 5:37 PM, Lonni Besan?on wrote: > While reading your answer I was about to ask about speed and performance of > both but you actually gave me the answer in the end :). > > One more quick question about the pickers then. So my vtkPlane is actually > a > slice of a bigger dataset (imageReslice). My question is, with the help of > the pickers, is it possible to go from my screen coordinates to my dataset > coordinates? For instance if I wanted to get on which point X,Y,Z my finger > is placed when I'm touching the slice? > > Thanks again for the additional information and the initial help you have > provided. > > Lonni > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richuitnl at gmail.com Wed Feb 24 00:19:58 2016 From: richuitnl at gmail.com (rich) Date: Tue, 23 Feb 2016 22:19:58 -0700 (MST) Subject: [vtkusers] EDL on VTK7 In-Reply-To: References: <1456255114593-5736766.post@n5.nabble.com> Message-ID: <1456291198512-5736779.post@n5.nabble.com> More testing around, The following code still crashes in the EDL - although i do not define on Overlay pass at all it still crashes on the slider widget as soon as i turn it on. // The elementary passes. auto lights = vtkLightsPass::New(); auto opa = vtkOpaquePass::New(); auto tran = vtkTranslucentPass::New(); auto volu = vtkVolumetricPass::New(); //auto ova = vtkOverlayPass::New(); // Put them in a sequence. vtkRenderPassCollection *passes = vtkRenderPassCollection::New(); passes->AddItem(lights); passes->AddItem(opa); passes->AddItem(tran); passes->AddItem(volu); // IGNORE OVERLAY PASS //passes->AddItem(ova); auto seq1 = vtkSequencePass::New(); seq1->SetPasses(passes); auto cameraP = vtkCameraPass::New(); cameraP->SetDelegatePass(seq1); auto edl = vtkEDLShading::New(); edl->SetDelegatePass(cameraP); // tell the renderer to use our render pass pipeline vtkOpenGLRenderer *glrenderer = vtkOpenGLRenderer::SafeDownCast(renderer); if (glrenderer != nullptr) { glrenderer->SetPass(edl); } If anyone could help me out, thanks! rich -- View this message in context: http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736779.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Wed Feb 24 04:46:05 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 10:46:05 +0100 Subject: [vtkusers] When must I be weary of Python garbage collection? Message-ID: Hi all, Sorry if this is an obvious question, but I could only find a few mails in the archive about Python memory management and VTK. My question is when I need to be weary of the Python garbage collector when setting up a VTK pipeline. Consider the cone example from QVTKRenderWindowInteractor: def QVTKRenderWidgetConeExample(): """A simple example that uses the QVTKRenderWindowInteractor class.""" # every QT app needs an app app = QApplication(['QVTKRenderWindowInteractor']) # create the widget widget = QVTKRenderWindowInteractor() widget.Initialize() widget.Start() # if you dont want the 'q' key to exit comment this. widget.AddObserver("ExitEvent", lambda o, e, a=app: a.quit()) ren = vtk.vtkRenderer() widget.GetRenderWindow().AddRenderer(ren) cone = vtk.vtkConeSource() cone.SetResolution(8) coneMapper = vtk.vtkPolyDataMapper() coneMapper.SetInputConnection(cone.GetOutputPort()) coneActor = vtk.vtkActor() coneActor.SetMapper(coneMapper) ren.AddActor(coneActor) # show the widget widget.show() # start event processing app.exec_() In this example, the program will block on the app.exec_() call, while still inside the QVTKRenderWidgetConeExample() and with all the created variables thus "alive". So no fear of them being garbage collected. But what if I instead moved this pipeline setup code into the __init__ of a QVTKRenderWindowInteractor subclass, like this: class MyWidget(QVTKRenderWindowInteractor): def __init__(self, *args, **kwargs): super(MyWidget, self).__init__(*args, **kwargs) self.Initialize() self.Start() ren = vtkRenderer() self.GetRenderWindow().AddRenderer(ren) cone = vtkConeSource() cone.SetResolution(8) coneMapper = vtkPolyDataMapper() coneMapper.SetInputConnection(cone.GetOutputPort()) coneActor = vtkActor() coneActor.SetMapper(coneMapper) ren.AddActor(coneActor) This works, Python is not performing garbage collection of anything, despite me not keeping the involved variables (renderer, source, mapper, actor) as fields of my class. I suppose this is because a reference to the renderer is kept in the render window, which is kept in the base class, and the renderer holds the actor, which hoids the mapper, which holds the output port of the source. So nothing is eligible for garbage collection. So my question is, can I always rely on this behavior when working with pipelines through the Python wrappers? Or are there cases where VTK will do things in C++ "behind the back" of the Python garbage collector? The ultra-safe way is of course to keep explicit references to everything: class MyWidget(QVTKRenderWindowInteractor): def __init__(self, *args, **kwargs): super(MyWidget, self).__init__(*args, **kwargs) self.Initialize() self.Start() self.ren = vtkRenderer() self.GetRenderWindow().AddRenderer(self.ren) self.cone = vtkConeSource() self.cone.SetResolution(8) self.coneMapper = vtkPolyDataMapper() self.coneMapper.SetInputConnection(self.cone.GetOutputPort()) self.coneActor = vtkActor() self.coneActor.SetMapper(self.coneMapper) self.ren.AddActor(self.coneActor) And in fact, most of the time you probably want to keep references to a lot of things, to be able to reconfigure the pipeline. I'm just wondering if there are any gotchas to watch out for wrt to garbage collection when not keeping references. If there are any "best practices" so to speak. Thanks in advance, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From longbowzhangchina at gmail.com Wed Feb 24 05:37:05 2016 From: longbowzhangchina at gmail.com (longbowzhang) Date: Wed, 24 Feb 2016 03:37:05 -0700 (MST) Subject: [vtkusers] Share graphical resources (e.g., VBOs) between multiple vtkRenderWindows Message-ID: <1456310225981-5736784.post@n5.nabble.com> Dear vtkUsers, I have a question about sharing VBOs across multiple vtkRenderWindows. The motivation for this is: The data I want to render is quite large, and I plan to use multiple renderwindows (each has its own OpenGL context) to show the several aspects of the data. I googled, and found wglShareLists could be potential friend to achieve this? Does anyone know how to use this function within VTK context? Or do you have a better idea to achieve this? Thanks so much in advance. Best regards, Changgong Zhang Ph.D student in Computer Graphics and Visualization section Dept. Intelligent Systems EWI TU Delft -- View this message in context: http://vtk.1045678.n5.nabble.com/Share-graphical-resources-e-g-VBOs-between-multiple-vtkRenderWindows-tp5736784.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 24 07:41:59 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 13:41:59 +0100 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing Message-ID: Hi all, In reading a MINC (1.0) image, I get errors printed: ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760 vtkMINCImageAttributes (0x1e5c010): The attribute zspace:step was not found. ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760 vtkMINCImageAttributes (0x1e5c010): The attribute zspace:start was not found. ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760 vtkMINCImageAttributes (0x1e5c010): The attribute yspace:step was not found. ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760 vtkMINCImageAttributes (0x1e5c010): The attribute yspace:start was not found. ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760 vtkMINCImageAttributes (0x1e5c010): The attribute xspace:step was not found. ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760 vtkMINCImageAttributes (0x1e5c010): The attribute xspace:start was not found. But these attributes are optional (and the reader correctly assumes 0 for the start attributes, and 1.0 for the step attributes). But it seems the function vtkMINCImageAttributes::GetAttributeValueAsDouble (which is used by the reader) unconditionally prints an error with vtkErrorMacro if the requested attribute does not exist :/ Is there any way (from Python, VTK 6.2) that I can selectively suppress this somehow? I'd rather not have stuff printed on stderr for things that are harmless. Cheers, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Feb 24 08:12:25 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 24 Feb 2016 06:12:25 -0700 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing In-Reply-To: References: Message-ID: Hi Elvis, You can silence all errors by adding an observer for the ErrorEvent. def observer(obj, event): pass reader.AddObserver(vtk.vtkCommand.ErrorEvent, observer) This will cause all errors to be redirected to the observer. - David On Wed, Feb 24, 2016 at 5:41 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > Hi all, > > In reading a MINC (1.0) image, I get errors printed: > > ERROR: In > /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, > line 760 > vtkMINCImageAttributes (0x1e5c010): The attribute zspace:step was not > found. > > ERROR: In > /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, > line 760 > vtkMINCImageAttributes (0x1e5c010): The attribute zspace:start was not > found. > > ERROR: In > /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, > line 760 > vtkMINCImageAttributes (0x1e5c010): The attribute yspace:step was not > found. > > ERROR: In > /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, > line 760 > vtkMINCImageAttributes (0x1e5c010): The attribute yspace:start was not > found. > > ERROR: In > /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, > line 760 > vtkMINCImageAttributes (0x1e5c010): The attribute xspace:step was not > found. > > ERROR: In > /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, > line 760 > vtkMINCImageAttributes (0x1e5c010): The attribute xspace:start was not > found. > > But these attributes are optional (and the reader correctly assumes 0 for > the start attributes, and 1.0 for the step attributes). But it seems the > function > > vtkMINCImageAttributes::GetAttributeValueAsDouble > > (which is used by the reader) unconditionally prints an error with > vtkErrorMacro if the requested attribute does not exist :/ > > Is there any way (from Python, VTK 6.2) that I can selectively suppress > this somehow? I'd rather not have stuff printed on stderr for things that > are harmless. > > Cheers, > Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Feb 24 08:38:44 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 24 Feb 2016 06:38:44 -0700 Subject: [vtkusers] When must I be weary of Python garbage collection? In-Reply-To: References: Message-ID: On Wed, Feb 24, 2016 at 2:46 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > > > So my question is, can I always rely on this behavior when working with > pipelines through the Python wrappers? Or are there cases where VTK will do > things in C++ "behind the back" of the Python garbage collector? > Yes, you can rely on this behavior. As expected, the vtkRenderWindow C++ object holds a reference to the renderer, which holds references, to the actors, etc. The Python wrappers provide a python "wrapper" object for each C++ object that is exposed to python. At the end of the scope, the reference count of the python object is decref'd. If this causes the python object to destruct, then the reference count of the underlying C++ object is decref'd. The underlying C++ object destructs if its reference count reaches zero. > And in fact, most of the time you probably want to keep references to a > lot of things, to be able to reconfigure the pipeline. I'm just wondering > if there are any gotchas to watch out for wrt to garbage collection when > not keeping references. If there are any "best practices" so to speak. > There are no best practices, because garbage collection is something that most users are not supposed to worry about. Because garbage collection is done via reference counting, sometimes gc is delayed due to reference cycles. But both VTK and Python have cycle detection in their garbage collectors. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 24 08:44:41 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 14:44:41 +0100 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing In-Reply-To: References: Message-ID: 2016-02-24 14:12 GMT+01:00 David Gobbi : > Hi Elvis, > > You can silence all errors by adding an observer for the ErrorEvent. > > def observer(obj, event): > pass > > reader.AddObserver(vtk.vtkCommand.ErrorEvent, observer) > > This will cause all errors to be redirected to the observer. > Excellent. Thanks! Elvis > > - David > > > On Wed, Feb 24, 2016 at 5:41 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> Hi all, >> >> In reading a MINC (1.0) image, I get errors printed: >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute zspace:step was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute zspace:start was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute yspace:step was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute yspace:start was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute xspace:step was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute xspace:start was not >> found. >> >> But these attributes are optional (and the reader correctly assumes 0 for >> the start attributes, and 1.0 for the step attributes). But it seems the >> function >> >> vtkMINCImageAttributes::GetAttributeValueAsDouble >> >> (which is used by the reader) unconditionally prints an error with >> vtkErrorMacro if the requested attribute does not exist :/ >> >> Is there any way (from Python, VTK 6.2) that I can selectively suppress >> this somehow? I'd rather not have stuff printed on stderr for things that >> are harmless. >> >> Cheers, >> Elvis >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tonio.guillen at gmail.com Wed Feb 24 08:46:58 2016 From: tonio.guillen at gmail.com (galera) Date: Wed, 24 Feb 2016 06:46:58 -0700 (MST) Subject: [vtkusers] 2D Mesh and polygons Message-ID: <1456321618790-5736792.post@n5.nabble.com> I have a 2D mesh coming from a Delaunay process, and I have polygons represented by their border on the mesh. I want to extract the mesh representing each polygon. I have tried different stuff (boolean operations, clipping) and no sucess. Some body can help me. Thanks a lot -- View this message in context: http://vtk.1045678.n5.nabble.com/2D-Mesh-and-polygons-tp5736792.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Wed Feb 24 08:51:38 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 14:51:38 +0100 Subject: [vtkusers] When must I be weary of Python garbage collection? In-Reply-To: References: Message-ID: 2016-02-24 14:38 GMT+01:00 David Gobbi : > On Wed, Feb 24, 2016 at 2:46 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: >> >> >> So my question is, can I always rely on this behavior when working with >> pipelines through the Python wrappers? Or are there cases where VTK will do >> things in C++ "behind the back" of the Python garbage collector? >> > > Yes, you can rely on this behavior. As expected, the vtkRenderWindow C++ > object holds a reference to the renderer, which holds references, to the > actors, etc. > > The Python wrappers provide a python "wrapper" object for each C++ object > that is exposed to python. At the end of the scope, the reference count of > the python object is decref'd. If this causes the python object to > destruct, then the reference count of the underlying C++ object is > decref'd. The underlying C++ object destructs if its reference count > reaches zero. > > > >> And in fact, most of the time you probably want to keep references to a >> lot of things, to be able to reconfigure the pipeline. I'm just wondering >> if there are any gotchas to watch out for wrt to garbage collection when >> not keeping references. If there are any "best practices" so to speak. >> > > There are no best practices, because garbage collection is something that > most users are not supposed to worry about. > Thanks a lot for the clarifications. The reason I was asking was because I was working with some VTK Python code that looked like it was being very careful to keep a reference to certain objects. But I realize now that this was probably mostly an artifact of how the code was structured. > Because garbage collection is done via reference counting, sometimes gc is > delayed due to reference cycles. But both VTK and Python have cycle > detection in their garbage collectors. > Ah yes, I remember reading that observers can give rise to reference cycles. Elvis > - David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Feb 24 09:04:36 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 24 Feb 2016 07:04:36 -0700 Subject: [vtkusers] When must I be weary of Python garbage collection? In-Reply-To: References: Message-ID: On Wed, Feb 24, 2016 at 6:51 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2016-02-24 14:38 GMT+01:00 David Gobbi : >> >> Because garbage collection is done via reference counting, sometimes gc >> is delayed due to reference cycles. But both VTK and Python have cycle >> detection in their garbage collectors. >> > > Ah yes, I remember reading that observers can give rise to reference > cycles. > Weakrefs can be used to avoid reference cycles in some situations. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 24 09:16:39 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 15:16:39 +0100 Subject: [vtkusers] When must I be weary of Python garbage collection? In-Reply-To: References: Message-ID: 2016-02-24 15:04 GMT+01:00 David Gobbi : > On Wed, Feb 24, 2016 at 6:51 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> 2016-02-24 14:38 GMT+01:00 David Gobbi : >>> >>> Because garbage collection is done via reference counting, sometimes gc >>> is delayed due to reference cycles. But both VTK and Python have cycle >>> detection in their garbage collectors. >>> >> >> Ah yes, I remember reading that observers can give rise to reference >> cycles. >> > > Weakrefs can be used to avoid reference cycles in some situations. > Alright. Pretty sure I don't have any cycles at the moment, but good to know. Elvis > > - David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 24 09:31:41 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 15:31:41 +0100 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing In-Reply-To: References: Message-ID: 2016-02-24 14:12 GMT+01:00 David Gobbi : > Hi Elvis, > > You can silence all errors by adding an observer for the ErrorEvent. > > def observer(obj, event): > pass > > reader.AddObserver(vtk.vtkCommand.ErrorEvent, observer) > > This will cause all errors to be redirected to the observer. > Hm, I gave this a shot with def _handleMINCError(obj, event): pass at module level and then self.reader = vtkMINCImageReader() self.reader.AddObserver(vtkCommand.ErrorEvent, _handleMINCError) ... where I create the reader, but I'm still getting the errors printed. I also tried with the string variant, using 'ErrorEvent' instead of vtkCommand.ErrorEvent, and also giving a higher priority than the default 0.0. Do things printed with vtkErrorMacro (like in vtkMINCImageAttributes) really pass through this observer mechanism? Thanks again for the help. Elvis > - David > > > On Wed, Feb 24, 2016 at 5:41 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> Hi all, >> >> In reading a MINC (1.0) image, I get errors printed: >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute zspace:step was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute zspace:start was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute yspace:step was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute yspace:start was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute xspace:step was not >> found. >> >> ERROR: In >> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >> line 760 >> vtkMINCImageAttributes (0x1e5c010): The attribute xspace:start was not >> found. >> >> But these attributes are optional (and the reader correctly assumes 0 for >> the start attributes, and 1.0 for the step attributes). But it seems the >> function >> >> vtkMINCImageAttributes::GetAttributeValueAsDouble >> >> (which is used by the reader) unconditionally prints an error with >> vtkErrorMacro if the requested attribute does not exist :/ >> >> Is there any way (from Python, VTK 6.2) that I can selectively suppress >> this somehow? I'd rather not have stuff printed on stderr for things that >> are harmless. >> >> Cheers, >> Elvis >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.manata.oliveira at gmail.com Wed Feb 24 09:38:30 2016 From: bruno.manata.oliveira at gmail.com (Bruno Oliveira) Date: Wed, 24 Feb 2016 14:38:30 +0000 Subject: [vtkusers] Render an OBJ with texture Message-ID: Hello, I am using VTK 7.0 and I have an .OBJ file with a .mtl file definining multiple textures. I can render this with textures if I use a vtkOBJImporter and using setTextureFilename(). However, I can't render textures if I use a vtkOBJReader: I see the object but it is rendered as white only. My problem is that I want to render multiple OBJ models, each one with independent position and attitude in world coordinates, and for that I think I need to use a vtkOBJReader. Or can I use a vtkOBJImporter? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 24 09:40:01 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 15:40:01 +0100 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing In-Reply-To: References: Message-ID: 2016-02-24 15:31 GMT+01:00 Elvis Stansvik : > 2016-02-24 14:12 GMT+01:00 David Gobbi : > >> Hi Elvis, >> >> You can silence all errors by adding an observer for the ErrorEvent. >> >> def observer(obj, event): >> pass >> >> reader.AddObserver(vtk.vtkCommand.ErrorEvent, observer) >> >> This will cause all errors to be redirected to the observer. >> > > Hm, I gave this a shot with > > def _handleMINCError(obj, event): > pass > > at module level and then > > self.reader = vtkMINCImageReader() > self.reader.AddObserver(vtkCommand.ErrorEvent, _handleMINCError) > ... > > where I create the reader, but I'm still getting the errors printed. > > I also tried with the string variant, using 'ErrorEvent' instead of > vtkCommand.ErrorEvent, and also giving a higher priority than the default > 0.0. > > Do things printed with vtkErrorMacro (like in vtkMINCImageAttributes) > really pass through this observer mechanism? > Looking at the code, it seems that it should. So something else is fishy. Grateful for any ideas. Elvis > > Thanks again for the help. > > Elvis > > >> - David >> >> >> On Wed, Feb 24, 2016 at 5:41 AM, Elvis Stansvik < >> elvis.stansvik at orexplore.com> wrote: >> >>> Hi all, >>> >>> In reading a MINC (1.0) image, I get errors printed: >>> >>> ERROR: In >>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>> line 760 >>> vtkMINCImageAttributes (0x1e5c010): The attribute zspace:step was not >>> found. >>> >>> ERROR: In >>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>> line 760 >>> vtkMINCImageAttributes (0x1e5c010): The attribute zspace:start was not >>> found. >>> >>> ERROR: In >>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>> line 760 >>> vtkMINCImageAttributes (0x1e5c010): The attribute yspace:step was not >>> found. >>> >>> ERROR: In >>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>> line 760 >>> vtkMINCImageAttributes (0x1e5c010): The attribute yspace:start was not >>> found. >>> >>> ERROR: In >>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>> line 760 >>> vtkMINCImageAttributes (0x1e5c010): The attribute xspace:step was not >>> found. >>> >>> ERROR: In >>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>> line 760 >>> vtkMINCImageAttributes (0x1e5c010): The attribute xspace:start was not >>> found. >>> >>> But these attributes are optional (and the reader correctly assumes 0 >>> for the start attributes, and 1.0 for the step attributes). But it seems >>> the function >>> >>> vtkMINCImageAttributes::GetAttributeValueAsDouble >>> >>> (which is used by the reader) unconditionally prints an error with >>> vtkErrorMacro if the requested attribute does not exist :/ >>> >>> Is there any way (from Python, VTK 6.2) that I can selectively suppress >>> this somehow? I'd rather not have stuff printed on stderr for things that >>> are harmless. >>> >>> Cheers, >>> Elvis >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 24 09:46:53 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 15:46:53 +0100 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing In-Reply-To: References: Message-ID: 2016-02-24 15:40 GMT+01:00 Elvis Stansvik : > 2016-02-24 15:31 GMT+01:00 Elvis Stansvik : > >> 2016-02-24 14:12 GMT+01:00 David Gobbi : >> >>> Hi Elvis, >>> >>> You can silence all errors by adding an observer for the ErrorEvent. >>> >>> def observer(obj, event): >>> pass >>> >>> reader.AddObserver(vtk.vtkCommand.ErrorEvent, observer) >>> >>> This will cause all errors to be redirected to the observer. >>> >> >> Hm, I gave this a shot with >> >> def _handleMINCError(obj, event): >> pass >> >> at module level and then >> >> self.reader = vtkMINCImageReader() >> self.reader.AddObserver(vtkCommand.ErrorEvent, _handleMINCError) >> ... >> >> where I create the reader, but I'm still getting the errors printed. >> >> I also tried with the string variant, using 'ErrorEvent' instead of >> vtkCommand.ErrorEvent, and also giving a higher priority than the default >> 0.0. >> >> Do things printed with vtkErrorMacro (like in vtkMINCImageAttributes) >> really pass through this observer mechanism? >> > > Looking at the code, it seems that it should. So something else is fishy. > It's quite strange, because if I do: def _handleMINCError(obj, event): print('Test') and then self.reader = vtkMINCImageReader() self.reader.AddObserver(vtkCommand.ErrorEvent, _handleMINCError) self.reader.InvokeEvent('ErrorEvent', 'test') to manually invoke the event, as a test, it works fine and "Test" is printed. But the errors coming from the reader are still printed to stderr. Elvis > > Grateful for any ideas. > > Elvis > > >> >> Thanks again for the help. >> >> Elvis >> >> >>> - David >>> >>> >>> On Wed, Feb 24, 2016 at 5:41 AM, Elvis Stansvik < >>> elvis.stansvik at orexplore.com> wrote: >>> >>>> Hi all, >>>> >>>> In reading a MINC (1.0) image, I get errors printed: >>>> >>>> ERROR: In >>>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>>> line 760 >>>> vtkMINCImageAttributes (0x1e5c010): The attribute zspace:step was not >>>> found. >>>> >>>> ERROR: In >>>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>>> line 760 >>>> vtkMINCImageAttributes (0x1e5c010): The attribute zspace:start was not >>>> found. >>>> >>>> ERROR: In >>>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>>> line 760 >>>> vtkMINCImageAttributes (0x1e5c010): The attribute yspace:step was not >>>> found. >>>> >>>> ERROR: In >>>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>>> line 760 >>>> vtkMINCImageAttributes (0x1e5c010): The attribute yspace:start was not >>>> found. >>>> >>>> ERROR: In >>>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>>> line 760 >>>> vtkMINCImageAttributes (0x1e5c010): The attribute xspace:step was not >>>> found. >>>> >>>> ERROR: In >>>> /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, >>>> line 760 >>>> vtkMINCImageAttributes (0x1e5c010): The attribute xspace:start was not >>>> found. >>>> >>>> But these attributes are optional (and the reader correctly assumes 0 >>>> for the start attributes, and 1.0 for the step attributes). But it seems >>>> the function >>>> >>>> vtkMINCImageAttributes::GetAttributeValueAsDouble >>>> >>>> (which is used by the reader) unconditionally prints an error with >>>> vtkErrorMacro if the requested attribute does not exist :/ >>>> >>>> Is there any way (from Python, VTK 6.2) that I can selectively suppress >>>> this somehow? I'd rather not have stuff printed on stderr for things that >>>> are harmless. >>>> >>>> Cheers, >>>> Elvis >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Feb 24 09:57:08 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 24 Feb 2016 07:57:08 -0700 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing In-Reply-To: References: Message-ID: On Wed, Feb 24, 2016 at 7:31 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > > Do things printed with vtkErrorMacro (like in vtkMINCImageAttributes) > really pass through this observer mechanism? > Yes, they do. But it looks like the error is generated by the vtkMINCImageAttributes object, so that's the object that needs to be observed. I'm not sure it can be accessed, but give it a try. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 24 09:59:23 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 15:59:23 +0100 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing In-Reply-To: References: Message-ID: 2016-02-24 15:57 GMT+01:00 David Gobbi : > On Wed, Feb 24, 2016 at 7:31 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: >> >> Do things printed with vtkErrorMacro (like in vtkMINCImageAttributes) >> really pass through this observer mechanism? >> > > Yes, they do. But it looks like the error is generated by the > vtkMINCImageAttributes object, so that's the object that needs to be > observed. I'm not sure it can be accessed, but give it a try. > Ah, *facepalm*. Of course. I'll see if it can be done, otherwise I'll have to live with it. Thanks, Elvis > > - David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Feb 24 10:06:04 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 24 Feb 2016 16:06:04 +0100 Subject: [vtkusers] Noisy errors from vtkMINCImageReader when optional dimension attributes are missing In-Reply-To: References: Message-ID: 2016-02-24 15:59 GMT+01:00 Elvis Stansvik : > 2016-02-24 15:57 GMT+01:00 David Gobbi : > >> On Wed, Feb 24, 2016 at 7:31 AM, Elvis Stansvik < >> elvis.stansvik at orexplore.com> wrote: >>> >>> Do things printed with vtkErrorMacro (like in vtkMINCImageAttributes) >>> really pass through this observer mechanism? >>> >> >> Yes, they do. But it looks like the error is generated by the >> vtkMINCImageAttributes object, so that's the object that needs to be >> observed. I'm not sure it can be accessed, but give it a try. >> > > Ah, *facepalm*. Of course. I'll see if it can be done, otherwise I'll have > to live with it. > This worked fine: def _handleMINCImageAttributesError(self, attributes, event): pass and then self.reader = vtkMINCImageReader() self.reader.GetImageAttributes().AddObserver( vtkCommand.ErrorEvent, self._handleMINCImageAttributesError) Good thing that the attributes object is available before the image has been loaded. I'll try to filter out just those bogus errors with some string matching. Elvis > Thanks, > Elvis > > >> >> - David >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.manata.oliveira at gmail.com Wed Feb 24 10:36:35 2016 From: bruno.manata.oliveira at gmail.com (Bruno Oliveira) Date: Wed, 24 Feb 2016 15:36:35 +0000 Subject: [vtkusers] Get Actor of vtkImporter Message-ID: Hello, what is the easiest way of fetching a specific importer's actor? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.manata.oliveira at gmail.com Wed Feb 24 10:37:45 2016 From: bruno.manata.oliveira at gmail.com (Bruno Oliveira) Date: Wed, 24 Feb 2016 15:37:45 +0000 Subject: [vtkusers] Get actor from vtkImporter Message-ID: Hello, what is the easiest way of fetching the actor corresponding to a vtkImporter? -------------- next part -------------- An HTML attachment was scrubbed... URL: From richuitnl at gmail.com Wed Feb 24 11:21:26 2016 From: richuitnl at gmail.com (rich) Date: Wed, 24 Feb 2016 09:21:26 -0700 (MST) Subject: [vtkusers] EDL on VTK7 In-Reply-To: References: <1456255114593-5736766.post@n5.nabble.com> Message-ID: <1456330886064-5736809.post@n5.nabble.com> Ok Last update, after many hours of playing around, searching forums, google etc and testing I began to suspect that there is no way to make the EDL renderpass ignore the overlay items. Even When I do not include an overlay pass in my render passes EDL crashes on my Slider. If somebody has any more comments that would be great... Kind Regards, Richard. -- View this message in context: http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736809.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.chen at gmail.com Wed Feb 24 11:28:55 2016 From: elvis.chen at gmail.com (Elvis Chen) Date: Wed, 24 Feb 2016 11:28:55 -0500 Subject: [vtkusers] VTK7 and VS 2015 compatibility? Message-ID: Greetings, Trying to compile VTK 7 using Visual Studio 2015 (Enterprise) and got the following error. Can anyone confirm if compatibility is a problem? 1>------ Build started: Project: vtkhdf5, Configuration: Debug Win32 ------ 2>------ Build started: Project: vtkIOImport, Configuration: Debug Win32 ------ 3>------ Build started: Project: vtkIOLSDyna, Configuration: Debug Win32 ------ 4>------ Skipped Build: Project: vtkCompileTools, Configuration: Debug Win32 ------ 4>Project not selected to build for this solution configuration 1> vtkhdf5.vcxproj -> G:\works\bin\vtk-7.0.0\bin\Debug\vtkhdf5-7.0.dll 3> vtkLSDynaPart.cxx 2> vtkVRMLImporter.cxx 5>------ Build started: Project: vtkNetCDF, Configuration: Debug Win32 ------ 3>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc 2>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 3> vtkLSDynaPartCollection.cxx 3>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 3> vtkLSDynaReader.cxx 3>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 3> vtkLSDynaSummaryParser.cxx 3>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 3> LSDynaFamily.cxx 3>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 3> LSDynaMetaData.cxx 3>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc 3>g:\works\src\vtk\vtk-7.0.0\io\lsdyna\private\LSDynaFamily.h(46): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 3> Generating Code... 5> lookup3.c 2>g:\works\src\vtk\vtk-7.0.0\io\import\vtkVRMLImporter_Yacc.h(1708): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 5>G:\works\src\vtk\VTK-7.0.0\ThirdParty\netcdf\vtknetcdf\libsrc\lookup3.c(58): fatal error C1083: Cannot open include file: 'sys/param.h': No such file or directory 5> error4.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> nc4attr.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> nc4dim.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> nc4file.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> nc4grp.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> nc4type.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> nc4var.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> ncfunc.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> nc4internal.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5> nc4hdf.c 5>g:\works\src\vtk\vtk-7.0.0\thirdparty\hdf5\vtkhdf5\src\H5public.h(157): error C2632: 'int' followed by 'int' is illegal 5>G:\works\src\vtk\VTK-7.0.0\ThirdParty\netcdf\vtknetcdf\libsrc4\nc4hdf.c(3666): error C2177: constant too big 5> Generating Code... 6>------ Build started: Project: vtkNetCDF_cxx, Configuration: Debug Win32 ------ 6>LINK : fatal error LNK1104: cannot open file '..\..\..\lib\Debug\vtkNetCDF-7.0.lib' 7>------ Build started: Project: vtkIONetCDF, Configuration: Debug Win32 ------ 8>------ Build started: Project: vtkexoIIc, Configuration: Debug Win32 ------ 9>------ Build started: Project: vtkIOMINC, Configuration: Debug Win32 ------ 8>LINK : fatal error LNK1104: cannot open file '..\..\..\lib\Debug\vtkNetCDF_cxx-7.0.lib' 10>------ Build started: Project: vtkIOExodus, Configuration: Debug Win32 ------ 7>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\vtkNetCDF_cxx-7.0.lib' 11>------ Build started: Project: vtkIOParallel, Configuration: Debug Win32 ------ 9>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\vtkNetCDF_cxx-7.0.lib' 10>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\vtkexoIIc-7.0.lib' 11>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\vtkIONetCDF-7.0.lib' 12>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------ 12>Project not selected to build for this solution configuration ========== Build: 1 succeeded, 9 failed, 104 up-to-date, 2 skipped ==========Description Project File Line Suppression State -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickfrank at me.com Wed Feb 24 12:04:10 2016 From: rickfrank at me.com (Richard Frank) Date: Wed, 24 Feb 2016 17:04:10 +0000 (GMT) Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 Message-ID: <0f4f8207-40f6-4c3d-9205-87f254c7479b@me.com> I traced through the VTK code and then added a vtkOpenGLCheckErrorMacro : vtkOpenGLPolyDataMapper::UpdateShaders( vtkOpenGLHelper &cellBO, vtkRenderer* ren, vtkActor *actor) { vtkOpenGLRenderWindow *renWin = vtkOpenGLRenderWindow::SafeDownCast(ren->GetRenderWindow()); cellBO.VAO->Bind(); vtkOpenGLCheckErrorMacro("failed after cellBO.VAO->Bind()"); ERROR: In vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1390 vtkOpenGLPolyDataMapper (0000025BBD546CB0): failed after cellBO.VAO->Bind() 1 OpenGL errors detected 0 : (1282) Invalid operation and the gl log has GL ERROR - Function glBindVertexArray generated error GL_INVALID_OPERATION GL ERROR - Function glDrawRangeElements generated error GL_OUT_OF_MEMORY I'm guessing the glBindVertexArray is generating the error? Any ideas what might cause that? The 6.3.0 code seemed to not use any shaders when rendering my model - when I launched the Shader Editor using 6.3.0 it was blank. When I launched the 7.0.0 code there were ?a bunch of shaders being used..... Thanks Rick On Feb 23, 2016, at 11:58 AM, Ken Martin wrote: Hmm something is really odd there. ?16600 points/normals is trivially small. Even if you had 100 actors each with 16600 points that would be small. There are a couple ways to debug something like this. One is to go old school and sprinkle ? vtkOpenGLCheckErrorMacro("failed after something"); throughout the code to see where the issue is. Another option on windows is to use? https://github.com/dtrebilco/glintercept which produces a log showing the specific call that caused the problem and when run in the debugger it will break on opengl errors. There are other tools with similar capabilities available as well.? If you can boil it down to something smaller I could try it out, my dev systems are all Qt4 though... Ken On Tue, Feb 23, 2016 at 11:37 AM, Richard Frank wrote: There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 and?there are four of these models - 1 in each renderview - ?(Sagital, Axial, Coronal, etc). Each model is composed of surfaces created with triangle strips. Each model contains a number of actors for each surface, (variable, depends on anatomy) put together into an assembly. It's a medical application. Works fine in VTK 6.3.0? NVidia quadro K5200 Graphics Card should be beefy enough. Rick On Feb 22, 2016, at 09:44 PM, Ken Martin wrote: Out of memory is an unusual one. Maybe the mesh is too big to load all at once in the new backend. How big is the mesh you are trying to render (number of points, number of triangles) and does it use cell colors or cell normals?? That would help me get a feel if it is really just exceeding what the card can handle. Thanks Ken On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank wrote: Hi, I get the following errors ( and my fairly complex polygon mesh fails to render ) when using VTK 7.0. ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 OpenGL errors detected 0 : (1282) Invalid operation ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors detected 0 : (1285) Out of memory This is code is " works " fine in 6.3.0. I'm using an NVidia quadro K5200 with 8G. Any tips on how to debug this? Thanks Rick Sent from my iPad _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.? Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.? Thank you. -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.? Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From znhc5 at mail.missouri.edu Wed Feb 24 12:07:30 2016 From: znhc5 at mail.missouri.edu (Nie, Andrew (MU-Student)) Date: Wed, 24 Feb 2016 17:07:30 +0000 Subject: [vtkusers] Error warning when I install the VTK In-Reply-To: <1932657979.1874355.1456331109756.JavaMail.yahoo@mail.yahoo.com> References: , <1932657979.1874355.1456331109756.JavaMail.yahoo@mail.yahoo.com> Message-ID: Joe, Yes, I got it. But the new problem I found is that, in my vtk build, the D:\*\*\bin\lib\cmake\vtk-7.0\Modules folder does not have FindVTK.cmake, does not have vtk-config.cmake, and does not have VTKConfig. cmake. Is this situation normal? I built vtk-7.0.0 with VS 2013. Thank you very much. Nie, Zhengwei Andrew Ph.D Candidate Mechanical & Aerospace Engineering University of Missouri 573-239-6981 znhc5 at mail.missouri.edu ________________________________ From: cfd new Sent: Wednesday, February 24, 2016 10:25 To: Nie, Andrew (MU-Student) Subject: Re: [vtkusers] Error warning when I install the VTK I do not use it. After you find where the file is, go to your example folder and edit CMakeFile.txt and look at the setting: something like: Set(VTK_DIR, ***** ) put the the folder name of the file you find at the place ******. Then do cmake. If you do not know VS well, try your examples on Linux. It is simpler. Joe On Tuesday, February 23, 2016 7:50 PM, "Nie, Andrew (MU-Student)" wrote: Hi Joe, Thank you very much. I found the folder you said. But I cannot find where I can set VTK_DIR. I searched it on google. Most of them said that one can set VTK_DIR on cmake-gui. But I cannot find it out. My cmake-gui is shown below: where can I assign VTK_DIR to that folder? I really appreciate it. I hope I can use VTK as soon as possible. [cid:3368def8-41af-4d31-b8b1-1a6b95de3dae] Nie, Zhengwei Andrew Ph.D Candidate Mechanical & Aerospace Engineering University of Missouri 573-239-6981 znhc5 at mail.missouri.edu ________________________________ From: cfd new Sent: Tuesday, February 23, 2016 20:27 To: Nie, Andrew (MU-Student) Subject: Re: [vtkusers] Error warning when I install the VTK if your vtk build is in C:\*\*\VTK-7-release you can find these files in VTK-7-release\lib\cmake\vtk-7.0 now you can assign VTK_DIR to this folder good luck. On Tuesday, February 23, 2016 4:36 PM, "Nie, Andrew (MU-Student)" wrote: Hi Joe, Thanks for your replying. But could you tell me how I can set the VTK_DIR variable? I am a newbie of such stuffs absolutely. More details are much better for me. I really appreciate it! I hope I can use VTK as soon as possible. Thanks, Nie, Zhengwei Andrew Ph.D Candidate Mechanical & Aerospace Engineering University of Missouri 573-239-6981 znhc5 at mail.missouri.edu ________________________________ From: cfd new Sent: Saturday, February 20, 2016 20:21 To: Nie, Andrew (MU-Student) Subject: Re: [vtkusers] Error warning when I install the VTK after VTK is installed, you do not need cmake anymore. Simply use visual studio to build your project. cmake is only used to make a VS project for you to compile VTK. Joe On Monday, February 15, 2016 10:57 PM, "Nie, Andrew (MU-Student)" wrote: Hi there, This is Andrew Nie, a Ph.D student at University of Missouri. I have to use the VTK to reconstruct the 3D model. Now I am installing the VTK. But there is an error when I test an example that the website provides. My OS is Windows 7 Ultimate, and VS version is VS 2015. First of all, I downloaded the VTK 7.0.0 and CMake 3.5.0. I used CMake to build the binaries. It was no errors. After then I used VS 2015 to build them successfully. It seems like I have installed the VTK 7.0.0. Finally, when I compile examples, there was an error warning. It is shown in below: CMake Error at CMakeLists.txt:6 (find_package): By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VTK", but CMake did not find one. Could not find a package configuration file provided by "VTK" with any of the following names: VTKConfig.cmake vtk-config.cmake Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" to a directory containing one of the above files. If "VTK" provides a separate development package or SDK, be sure it has been installed. How can I deal with that? Thank you very much. Nie, Zhengwei Andrew Ph.D Candidate Mechanical & Aerospace Engineering University of Missouri 573-239-6981 znhc5 at mail.missouri.edu _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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: pastedImage.png Type: image/png Size: 77199 bytes Desc: pastedImage.png URL: From ken.martin at kitware.com Wed Feb 24 12:11:25 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 24 Feb 2016 12:11:25 -0500 Subject: [vtkusers] EDL on VTK7 In-Reply-To: <1456330886064-5736809.post@n5.nabble.com> References: <1456255114593-5736766.post@n5.nabble.com> <1456330886064-5736809.post@n5.nabble.com> Message-ID: Not including the overlay pass should make it so that the slider does not get the shading. But the segfault part is due to double* bounds = s.GetPropArray()[i]->GetBounds(); and your earlier fix is good for that. The EDL pass grabs all the prop bounds (including overlay/volumes/etc) to compute a shading metric. I will try to create a topic to get your fix into the EDLPass. Does that make sense? Thanks Ken On Wed, Feb 24, 2016 at 11:21 AM, rich wrote: > Ok Last update, after many hours of playing around, searching forums, > google > etc and testing I began to suspect that there is no way to make the EDL > renderpass ignore the overlay items. Even When I do not include an overlay > pass in my render passes EDL crashes on my Slider. > > If somebody has any more comments that would be great... > > Kind Regards, > Richard. > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736809.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Feb 24 12:16:29 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 24 Feb 2016 12:16:29 -0500 Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 In-Reply-To: <0f4f8207-40f6-4c3d-9205-87f254c7479b@me.com> References: <0f4f8207-40f6-4c3d-9205-87f254c7479b@me.com> Message-ID: Thanks that helps. I am starting to wonder if the issue is related to multiple render windows. With multiple windows it is important to not share actors or mappers in the new OpenGL backend. Each window needs its own mappers and actors. They can share the same data source/readers but not the opengl pieces like actors/mappers. Does the problem still exist if you only have one renderWindow? Thanks Ken On Wed, Feb 24, 2016 at 12:04 PM, Richard Frank wrote: > I traced through the VTK code and then added a vtkOpenGLCheckErrorMacro : > > > vtkOpenGLPolyDataMapper::UpdateShaders( > vtkOpenGLHelper &cellBO, vtkRenderer* ren, vtkActor *actor) > { > vtkOpenGLRenderWindow *renWin = > vtkOpenGLRenderWindow::SafeDownCast(ren->GetRenderWindow()); > > cellBO.VAO->Bind(); > vtkOpenGLCheckErrorMacro("failed after cellBO.VAO->Bind()"); > > > > ERROR: In vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1390 > vtkOpenGLPolyDataMapper (0000025BBD546CB0): failed after > cellBO.VAO->Bind() 1 OpenGL errors detected > 0 : (1282) Invalid operation > > and the gl log has > > GL ERROR - Function glBindVertexArray generated error GL_INVALID_OPERATION > GL ERROR - Function glDrawRangeElements generated error GL_OUT_OF_MEMORY > > I'm guessing the glBindVertexArray is generating the error? Any ideas what > might cause that? > > The 6.3.0 code seemed to not use any shaders when rendering my model - > when I launched the Shader Editor using 6.3.0 it was blank. When I launched > the 7.0.0 code there were a bunch of shaders being used..... > > > Thanks > > Rick > > > On Feb 23, 2016, at 11:58 AM, Ken Martin wrote: > > Hmm something is really odd there. 16600 points/normals is trivially > small. Even if you had 100 actors each with 16600 points that would be > small. There are a couple ways to debug something like this. One is to go > old school and sprinkle > > vtkOpenGLCheckErrorMacro("failed after something"); > > throughout the code to see where the issue is. Another option on windows > is to use > > https://github.com/dtrebilco/glintercept > > which produces a log showing the specific call that caused the problem and > when run in the debugger it will break on opengl errors. There are other > tools with similar capabilities available as well. > > If you can boil it down to something smaller I could try it out, my dev > systems are all Qt4 though... > > Ken > > > > > > > On Tue, Feb 23, 2016 at 11:37 AM, Richard Frank wrote: > >> There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 >> and there are four of these models - 1 in each renderview - (Sagital, >> Axial, Coronal, etc). Each model is composed of surfaces created with >> triangle strips. >> >> Each model contains a number of actors for each surface, (variable, >> depends on anatomy) put together into an assembly. >> >> It's a medical application. Works fine in VTK 6.3.0 >> >> NVidia quadro K5200 >> Graphics Card should be beefy enough. >> >> Rick >> >> >> On Feb 22, 2016, at 09:44 PM, Ken Martin wrote: >> >> Out of memory is an unusual one. Maybe the mesh is too big to load all at >> once in the new backend. How big is the mesh you are trying to render >> (number of points, number of triangles) and does it use cell colors or cell >> normals? That would help me get a feel if it is really just exceeding what >> the card can handle. >> >> Thanks >> Ken >> >> >> On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank wrote: >> >>> Hi, >>> >>> I get the following errors ( and my fairly complex polygon mesh fails to >>> render ) when using VTK 7.0. >>> ERROR: In >>> >>> \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 >>> vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 >>> OpenGL errors detected >>> 0 : (1282) Invalid operation >>> >>> >>> >>> ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 >>> vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors >>> detected >>> 0 : (1285) Out of memory >>> >>> >>> This is code is " works " fine in 6.3.0. >>> >>> I'm using an NVidia quadro K5200 with 8G. >>> >>> Any tips on how to debug this? >>> Thanks >>> >>> Rick >>> >>> >>> Sent from my iPad >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richuitnl at gmail.com Wed Feb 24 12:17:18 2016 From: richuitnl at gmail.com (rich) Date: Wed, 24 Feb 2016 10:17:18 -0700 (MST) Subject: [vtkusers] EDL on VTK7 In-Reply-To: References: <1456255114593-5736766.post@n5.nabble.com> <1456330886064-5736809.post@n5.nabble.com> Message-ID: <1456334238168-5736817.post@n5.nabble.com> That would be great Ken. But Even after my fix the EDL affects the slider no matter what passes I create. But that will be for another day ;-). Kind Regards, Richard. -- View this message in context: http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736817.html Sent from the VTK - Users mailing list archive at Nabble.com. From rickfrank at me.com Wed Feb 24 13:03:56 2016 From: rickfrank at me.com (Richard Frank) Date: Wed, 24 Feb 2016 13:03:56 -0500 Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 In-Reply-To: References: <0f4f8207-40f6-4c3d-9205-87f254c7479b@me.com> Message-ID: <8B0C1547-DC38-4E74-9BBE-C5783B63F069@me.com> It would be hard to change to one render window at this point, but, we?re "pretty sure? each render window has its own actors/mappers, because we ran into trouble with that in 6.3.0 - I can write some test code to verify?.I?ve added some more vtkOpenGLCheckErrorMacro and I am rebuilding 7.0.0 now... Thanks Rick > On Feb 24, 2016, at 12:16 PM, Ken Martin wrote: > > Thanks that helps. I am starting to wonder if the issue is related to multiple render windows. With multiple windows it is important to not share actors or mappers in the new OpenGL backend. Each window needs its own mappers and actors. They can share the same data source/readers but not the opengl pieces like actors/mappers. Does the problem still exist if you only have one renderWindow? > > Thanks > Ken > > On Wed, Feb 24, 2016 at 12:04 PM, Richard Frank > wrote: > I traced through the VTK code and then added a vtkOpenGLCheckErrorMacro : > > > vtkOpenGLPolyDataMapper::UpdateShaders( > vtkOpenGLHelper &cellBO, vtkRenderer* ren, vtkActor *actor) > { > vtkOpenGLRenderWindow *renWin = vtkOpenGLRenderWindow::SafeDownCast(ren->GetRenderWindow()); > > cellBO.VAO->Bind(); > vtkOpenGLCheckErrorMacro("failed after cellBO.VAO->Bind()"); > > > > ERROR: In vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1390 > vtkOpenGLPolyDataMapper (0000025BBD546CB0): failed after cellBO.VAO->Bind() 1 OpenGL errors detected > 0 : (1282) Invalid operation > > and the gl log has > > GL ERROR - Function glBindVertexArray generated error GL_INVALID_OPERATION > GL ERROR - Function glDrawRangeElements generated error GL_OUT_OF_MEMORY > > I'm guessing the glBindVertexArray is generating the error? Any ideas what might cause that? > > The 6.3.0 code seemed to not use any shaders when rendering my model - when I launched the Shader Editor using 6.3.0 it was blank. When I launched the 7.0.0 code there were a bunch of shaders being used..... > > > Thanks > > Rick > > > On Feb 23, 2016, at 11:58 AM, Ken Martin > wrote: > >> Hmm something is really odd there. 16600 points/normals is trivially small. Even if you had 100 actors each with 16600 points that would be small. There are a couple ways to debug something like this. One is to go old school and sprinkle >> >> vtkOpenGLCheckErrorMacro("failed after something"); >> >> throughout the code to see where the issue is. Another option on windows is to use >> >> https://github.com/dtrebilco/glintercept >> >> which produces a log showing the specific call that caused the problem and when run in the debugger it will break on opengl errors. There are other tools with similar capabilities available as well. >> >> If you can boil it down to something smaller I could try it out, my dev systems are all Qt4 though... >> >> Ken >> >> >> >> >> >> >> On Tue, Feb 23, 2016 at 11:37 AM, Richard Frank > wrote: >> There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 and there are four of these models - 1 in each renderview - (Sagital, Axial, Coronal, etc). Each model is composed of surfaces created with triangle strips. >> >> Each model contains a number of actors for each surface, (variable, depends on anatomy) put together into an assembly. >> >> It's a medical application. Works fine in VTK 6.3.0 >> >> NVidia quadro K5200 >> Graphics Card should be beefy enough. >> >> Rick >> >> >> On Feb 22, 2016, at 09:44 PM, Ken Martin > wrote: >> >>> Out of memory is an unusual one. Maybe the mesh is too big to load all at once in the new backend. How big is the mesh you are trying to render (number of points, number of triangles) and does it use cell colors or cell normals? That would help me get a feel if it is really just exceeding what the card can handle. >>> >>> Thanks >>> Ken >>> >>> >>> On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank > wrote: >>> Hi, >>> >>> I get the following errors ( and my fairly complex polygon mesh fails to render ) when using VTK 7.0. >>> ERROR: In >>> >>> \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 >>> vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 OpenGL errors detected >>> 0 : (1282) Invalid operation >>> >>> >>> >>> ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 >>> vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors detected >>> 0 : (1285) Out of memory >>> >>> >>> This is code is " works " fine in 6.3.0. >>> >>> I'm using an NVidia quadro K5200 with 8G. >>> >>> Any tips on how to debug this? >>> Thanks >>> >>> Rick >>> >>> >>> Sent from my iPad >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 <> >>> >>> This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From maitaoriana at gmail.com Wed Feb 24 15:37:37 2016 From: maitaoriana at gmail.com (MaitaOriana) Date: Wed, 24 Feb 2016 13:37:37 -0700 (MST) Subject: [vtkusers] Activez 6.2 Kitware.mummy.Runtime.dll Message-ID: <1456346257771-5736821.post@n5.nabble.com> Hi, I'm trying to compile activiz 6.2. But I have an error when compiling with Visual Studio's mummy, it does not generate Kitware.mummy.Runtime.dll. I produced the following error: Building C # library 'Kitware.mummy.Runtime' ... 11> Microsoft (R) Visual C # Compiler version 4.6.1055.0 11> for C # 5 11> Copyright (C) Microsoft Corporation. All rights reserved. 11> This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C # 5, Which is no longer the latest version. That compilers support for newer versions of the C # programming language, see http://go.microsoft.com/fwlink/?LinkID=533240 11> Error CS1577: Failed to build the assembly - The valid assembly can not have a specific processor module 'Kitware.mummy.Runtime.Unmanaged.dll' 11> Project: error PRJ0019: A tool returned an error code of "Building C # library 'Kitware.mummy.Runtime' ..." 11> The build log was saved at "file: // c: \ VTK 6.2 \ Activiz \ mummy-build \ Runtime \ Kitware.mummy.Runtime.dir \ Release \ BuildLog.htm" 11> Kitware.mummy.Runtime - 1 errors, 0 warnings Thank you -- View this message in context: http://vtk.1045678.n5.nabble.com/Activez-6-2-Kitware-mummy-Runtime-dll-tp5736821.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Wed Feb 24 15:39:37 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 24 Feb 2016 15:39:37 -0500 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 In-Reply-To: References: <56CB53C0.4030607@blaicher.com> <56CB6292.7040201@blaicher.com> Message-ID: Did vtk master end up solving your issues on the intel 2500? Just want to see if the recent changes fixed that because I think the 2500 should work. Thanks Ken On Mon, Feb 22, 2016 at 10:04 PM, Ken Martin wrote: > Ahh I just saw your screenshots indicating Intel 2500. Maybe the master > changes will work on that. I believe we have been having some hiccups with > the older intel GPUs. I'd like to get them iron out. > > Ken > > On Mon, Feb 22, 2016 at 9:59 PM, Ken Martin > wrote: > >> If your card supports OpenGL 4 then I would think it would also provide a >> 3.2 context. I'm not aware of cards that support 4.0 but would not return a >> 3.2 context when requested. If you check out and build VTK master you could >> try running >> >> ctest -R VBOPLY -VV >> >> and >> >> ctest -R Apple -VV >> >> the output of those two tests can be helpful in debugging these issues. >> Also maybe your system has two GPUs? Like intel on chip plus a dedicated >> GPU and somehow you are not getting the dedicated GPU maybe? Just some >> ideas. >> >> >> >> >> On Mon, Feb 22, 2016 at 3:03 PM, David Gobbi >> wrote: >> >>> If you get the master branch, it includes this patch which might be >>> related: >>> https://gitlab.kitware.com/vtk/vtk/commit/8d0daf13 >>> >>> On Mon, Feb 22, 2016 at 12:33 PM, Matthias Blaicher < >>> matthias at blaicher.com> wrote: >>> >>>> Hi David, >>>> >>>> I guess you are right, it looks like this is the issue. According to >>>> OpenGL Extensions Viewer, the card exposes OpenGL 4. >>>> >>>> If I understood it correctly, the problem seems to be that gpu_shader4 >>>> is not exposed in the 2.1 context. And 3.2 is tested but fails (have to >>>> check that for my card). >>>> >>>> Is there any patch, which would try a 3.1 context too? I've seen some >>>> commits in master (e.g. ca65662fa "Merge topic >>>> 'try_more_recent_opengl_add_getversion'"). I'll give the master branch a >>>> spin and report back. >>>> >>>> Best, >>>> >>>> Matthias >>>> >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From garyfallidis at gmail.com Wed Feb 24 16:48:27 2016 From: garyfallidis at gmail.com (Eleftherios Garyfallidis) Date: Wed, 24 Feb 2016 16:48:27 -0500 Subject: [vtkusers] DIPY 0.11.0 is now available for download Message-ID: Dear all, We are excited to announce a new public release of Diffusion Imaging in Python (DIPY). The 0.11 release follows closely on the heels of the 0.10 release, resolving issues that existed in that release on the Windows 64 bit platform. New features of the 0.11 and 0.10 release cycles include many additional fixes and new frameworks. Here are some of the highlights: DIPY 0.11.0 (Monday, 21 February 2016): - New framework for contextual enhancement of ODFs. - Compatibility with new version of numpy (1.11). - Compatibility with VTK 7.0 which supports Python 3.x. - Faster PIESNO for noise estimation. - Reorient gradient directions according to motion correction parameters. - Supporting Python 3.3+ but not 3.2. - Reduced memory usage in DTI prediction. - DSI now can use datasets with multiple b0s. - Fixed different issues with Windows 64bit and Python 3.5. DIPY 0.10.1 (Friday, 4 December 2015): - Compatibility with new versions of scipy (0.16) and numpy (1.10). - New cleaner visualization API, including compatibility with VTK 6, and functions to create your own interactive visualizations. - Diffusion Kurtosis Imaging (DKI): Google Summer of Code work by Rafael Henriques. - Mean Apparent Propagator (MAP) MRI for tissue microstructure estimation. - Anisotropic Power Maps from spherical harmonic coefficients. - A new framework for affine registration of images. Detailed release notes can be found here: http://dipy.org/release0.11.html http://dipy.org/release0.10.html To upgrade, run the following command in your terminal: pip install --upgrade dipy For the complete installation guide look here: http://dipy.org/installation.html For any questions go to http://dipy.org, or https://neurostars.org or send an e-mail to neuroimaging at python.org We also have a new instant messaging service and chat room available at https://gitter.im/nipy/dipy On behalf of the DIPY developers, Eleftherios Garyfallidis & Ariel Rokem http://dipy.org/developers.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From maxheinrich1988 at gmail.com Wed Feb 24 17:07:47 2016 From: maxheinrich1988 at gmail.com (Max-Heinrich Laves) Date: Wed, 24 Feb 2016 23:07:47 +0100 Subject: [vtkusers] HiDPI Support for vtkRenderWindow Message-ID: <6F42C88D-DEB7-492A-BBFB-4013D3C6C2DC@gmail.com> Hello List, I am using VTK 7.0 on OS X 10.11 on a MacBook Pro with HiDPI resolution (Retina). When creating a vtkRenderWindow, everything looks blurry and pixelated due to hidpi upscaling. However, I saw screenshots of users with full retina support (e.g. http://stackoverflow.com/questions/22441782/vtk-camera-pose-from-opencvs-estimated-pose-from-solvepnp ). I compiled VTK with the following CMake command: cmake -G "Unix Makefiles" -DVTK_USE_COCOA:BOOL=ON -DCMAKE_INSTALL_PREFIX=/opt/vtk -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_PREFIX_PATH:PATH=/Users/max/Qt/5.5/clang_64/ -DVTK_USE_SYSTEM_ZLIB:BOOL=ON -DVTK_Group_Qt:BOOL=ON -DVTK_QT_VERSION:STRING=5 .. How can I get VTK windows with HiDPI support? I couldn?t figure it out, but it?s obviously possible. Thanks in advance! Max From garyfallidis at gmail.com Wed Feb 24 17:15:01 2016 From: garyfallidis at gmail.com (Eleftherios Garyfallidis) Date: Wed, 24 Feb 2016 17:15:01 -0500 Subject: [vtkusers] Looking for advice/tutorials/examples on how to make my own futuristic widgets in Python Message-ID: Dear David and all, I am looking into developing a HUD (heads up display) using VTK in Python to be used in DIPY. I want basically that all the UI components including file dialogues, buttons, sliders and check boxes are completely written in PYTHON-VTK no Qt etc. I have looked and played with the currently available widgets but I need to create new as the existing ones have minimal functionality. I welcome any existing advices or tutorials or code examples on how to do so and how that could be efficient too. If things progress well. This may also develop to be a GSoC project. Some of the other projects are found here https://github.com/nipy/dipy/wiki/Google-Summer-of-Code-2016 If I can make a start then the other GSoC students will be able to follow my code and extend it further. I have already used some of the existing widgets but now I want to move to the next level. Let me know what you think. Best regards, Eleftherios -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Wed Feb 24 17:46:37 2016 From: sean at rogue-research.com (Sean McBride) Date: Wed, 24 Feb 2016 17:46:37 -0500 Subject: [vtkusers] HiDPI Support for vtkRenderWindow In-Reply-To: <6F42C88D-DEB7-492A-BBFB-4013D3C6C2DC@gmail.com> References: <6F42C88D-DEB7-492A-BBFB-4013D3C6C2DC@gmail.com> Message-ID: <20160224224637.1653121295@mail.rogue-research.com> On Wed, 24 Feb 2016 23:07:47 +0100, Max-Heinrich Laves said: >I am using VTK 7.0 on OS X 10.11 on a MacBook Pro with HiDPI resolution >(Retina). When creating a vtkRenderWindow, everything looks blurry and >pixelated due to hidpi upscaling. This is something I've been meaning to look at, but it never gets to the top of my todo list because I don't have a HiDPI screen. :) It will require changes to VTK. We'd probably want an API to toggle HiDPI on/off, because having 4x the number of pixels can be much slower and unnecessary for some applications. Then we'd need to follow the advice here: If you're up to it, you could hack around in VTK's Cocoa code... otherwise I might have time next week... 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 maxheinrich1988 at gmail.com Wed Feb 24 18:37:29 2016 From: maxheinrich1988 at gmail.com (Max-Heinrich Laves) Date: Thu, 25 Feb 2016 00:37:29 +0100 Subject: [vtkusers] HiDPI Support for vtkRenderWindow In-Reply-To: <20160224224637.1653121295@mail.rogue-research.com> References: <6F42C88D-DEB7-492A-BBFB-4013D3C6C2DC@gmail.com> <20160224224637.1653121295@mail.rogue-research.com> Message-ID: <3C9DFF3B-1AB0-448B-86D4-B302ADA15EC1@gmail.com> Am 24.02.2016 um 23:46 schrieb Sean McBride : > It will require changes to VTK. We'd probably want an API to toggle HiDPI on/off, because having 4x the number of pixels can be much slower and unnecessary for some applications. It?s not only the OpenGL content, but also the window decorations (title bar, close button, etc.), that look blurry. As you can see in the previous linked StackOverflow question, the user somehow managed to get a high resolution window (click on the screenshot to enlarge). Max From sean at rogue-research.com Wed Feb 24 19:07:49 2016 From: sean at rogue-research.com (Sean McBride) Date: Wed, 24 Feb 2016 19:07:49 -0500 Subject: [vtkusers] HiDPI Support for vtkRenderWindow In-Reply-To: <3C9DFF3B-1AB0-448B-86D4-B302ADA15EC1@gmail.com> References: <6F42C88D-DEB7-492A-BBFB-4013D3C6C2DC@gmail.com> <20160224224637.1653121295@mail.rogue-research.com> <3C9DFF3B-1AB0-448B-86D4-B302ADA15EC1@gmail.com> Message-ID: <20160225000749.123743015@mail.rogue-research.com> On Thu, 25 Feb 2016 00:37:29 +0100, Max-Heinrich Laves said: >Am 24.02.2016 um 23:46 schrieb Sean McBride : > >> It will require changes to VTK. We'd probably want an API to toggle >HiDPI on/off, because having 4x the number of pixels can be much slower >and unnecessary for some applications. > >It?s not only the OpenGL content, but also the window decorations (title >bar, close button, etc.), that look blurry. As you can see in the >previous linked StackOverflow question, the user somehow managed to get >a high resolution window (click on the screenshot to enlarge). Actually, I don't see that. Care to elaborate? In any case, VTK has no control over how the OS draws the window decorations. 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 emredeniz18 at hotmail.com Thu Feb 25 04:31:49 2016 From: emredeniz18 at hotmail.com (emredeniz) Date: Thu, 25 Feb 2016 02:31:49 -0700 (MST) Subject: [vtkusers] Select a region of interest Message-ID: <1456392709248-5736829.post@n5.nabble.com> Hi, I would like to draw a region and select it with mouse and display on another widget. I can select the region with vtkROIStencisSource but ? cant draw with this I can draw with vtkImageTracerWidget but can not select the region that ? draw ?s tehere another way to draw a region of interest in vtk or itk thanks for any ideas.. -- View this message in context: http://vtk.1045678.n5.nabble.com/Select-a-region-of-interest-tp5736829.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Thu Feb 25 05:02:14 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 25 Feb 2016 11:02:14 +0100 Subject: [vtkusers] Question about vtkInteractorStyleUser Message-ID: Hi, I found this old thread about vtkInteractorStyleUser: http://www.vtk.org/pipermail/vtkusers/2010-September/062584.html In it, David Gobbi explained: > The vtkInteractorStyleUser is still the correct way to write a fully > customized vtkInteractorStyle in the wrapper languages. It isn't the > only option, i.e. you can add observers to the other interactor > styles, but it is different from the rest because it doesn't define > any "default" interaction of its own. Is this still true? In my case, I have a large, roughly cylindrical volume (tomography of a drill core), where the camera should only ever see the cylinder from the side, with the line of sight perpendicular to the center line of the core. Rotation of the camera should also be limited to rotation around the center line of the core (z axis), with no possibility of roll, and I think I want to support this rotation only through a Qt slider, not by mouse interaction in the VTK window. Movement of the camera (and focal point) up and down the core should be through a Qt scrollbar. The last camera operation I want to support is zooming, and just like with rotation, I'd like this to be done through a Qt slider. Apart from that, I only want to selectively add certain interactions in the VTK window, to allow the user to annotate the core visually by adding markers of various kinds through mouse clicks and click-drags. It's because the set of interactions I want to support in the VTK window are so few, and quite specialized, I was looking at vtkInteractorStyleUser. Does it seems reasonable to use this interactor style in my case, or are there other approaches I should consider? The only example I can find of vtkInteractorStyleUser usage is this C++ example: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/InteractorStyleUser But it seems this example just sets the vtkInteractorStyleUser on the interactor, not really making use of it (e.g. overriding its virtual On* methods)? Instead it adds observers to the interactor itself. Or is setting a vtkInteractorStyleUser on the interactor a prerequisite to be able to observe those events in this way? Thankful for any advice / clarifications on how vtkInteractorStyleUser is meant to be used. Cheers, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Feb 25 05:13:54 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 25 Feb 2016 11:13:54 +0100 Subject: [vtkusers] Question about vtkInteractorStyleUser In-Reply-To: References: Message-ID: 2016-02-25 11:02 GMT+01:00 Elvis Stansvik : > Hi, > > I found this old thread about vtkInteractorStyleUser: > > http://www.vtk.org/pipermail/vtkusers/2010-September/062584.html > > In it, David Gobbi explained: > > > The vtkInteractorStyleUser is still the correct way to write a fully > > customized vtkInteractorStyle in the wrapper languages. It isn't the > > only option, i.e. you can add observers to the other interactor > > styles, but it is different from the rest because it doesn't define > > any "default" interaction of its own. > > Is this still true? > > In my case, I have a large, roughly cylindrical volume (tomography of a > drill core), where the camera should only ever see the cylinder from the > side, with the line of sight perpendicular to the center line of the core. > Rotation of the camera should also be limited to rotation around the center > line of the core (z axis), with no possibility of roll, and I think I want > to support this rotation only through a Qt slider, not by mouse interaction > in the VTK window. Movement of the camera (and focal point) up and down the > core should be through a Qt scrollbar. The last camera operation I want to > support is zooming, and just like with rotation, I'd like this to be done > through a Qt slider. > > Apart from that, I only want to selectively add certain interactions in > the VTK window, to allow the user to annotate the core visually by adding > markers of various kinds through mouse clicks and click-drags. > > It's because the set of interactions I want to support in the VTK window > are so few, and quite specialized, I was looking at vtkInteractorStyleUser. > Does it seems reasonable to use this interactor style in my case, or are > there other approaches I should consider? > > The only example I can find of vtkInteractorStyleUser usage is this C++ > example: > > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/InteractorStyleUser > > But it seems this example just sets the vtkInteractorStyleUser on the > interactor, not really making use of it (e.g. overriding its virtual On* > methods)? Instead it adds observers to the interactor itself. Or is setting > a vtkInteractorStyleUser on the interactor a prerequisite to be able to > observe those events in this way? > > Thankful for any advice / clarifications on how vtkInteractorStyleUser is > meant to be used. > An additional question: As a test, I just tried setting a vtkInteractorStyleUser as the style my vtkGenericRenderWindowInteractor (I'm using the QVTKRenderWindowInteractor from Python), instead of the vtkInteractorStyleImage I was using before (I'm mapping a slice of the core with a vtkImageResliceMapper), and with the vtkInteractorStyleUser set, the window does not render anything when I call Render() and Start() the interactor. Is this to be expected when using the vtkInteractorStyleUser? The interactor shouldn't affect rendering, should it? How can I get back rendering when using vtkInteractorStyleUser? Elvis > Cheers, > Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Feb 25 05:19:27 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 25 Feb 2016 11:19:27 +0100 Subject: [vtkusers] Question about vtkInteractorStyleUser In-Reply-To: References: Message-ID: 2016-02-25 11:13 GMT+01:00 Elvis Stansvik : > 2016-02-25 11:02 GMT+01:00 Elvis Stansvik : > >> Hi, >> >> I found this old thread about vtkInteractorStyleUser: >> >> http://www.vtk.org/pipermail/vtkusers/2010-September/062584.html >> >> In it, David Gobbi explained: >> >> > The vtkInteractorStyleUser is still the correct way to write a fully >> > customized vtkInteractorStyle in the wrapper languages. It isn't the >> > only option, i.e. you can add observers to the other interactor >> > styles, but it is different from the rest because it doesn't define >> > any "default" interaction of its own. >> >> Is this still true? >> >> In my case, I have a large, roughly cylindrical volume (tomography of a >> drill core), where the camera should only ever see the cylinder from the >> side, with the line of sight perpendicular to the center line of the core. >> Rotation of the camera should also be limited to rotation around the center >> line of the core (z axis), with no possibility of roll, and I think I want >> to support this rotation only through a Qt slider, not by mouse interaction >> in the VTK window. Movement of the camera (and focal point) up and down the >> core should be through a Qt scrollbar. The last camera operation I want to >> support is zooming, and just like with rotation, I'd like this to be done >> through a Qt slider. >> >> Apart from that, I only want to selectively add certain interactions in >> the VTK window, to allow the user to annotate the core visually by adding >> markers of various kinds through mouse clicks and click-drags. >> >> It's because the set of interactions I want to support in the VTK window >> are so few, and quite specialized, I was looking at vtkInteractorStyleUser. >> Does it seems reasonable to use this interactor style in my case, or are >> there other approaches I should consider? >> >> The only example I can find of vtkInteractorStyleUser usage is this C++ >> example: >> >> >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/InteractorStyleUser >> >> But it seems this example just sets the vtkInteractorStyleUser on the >> interactor, not really making use of it (e.g. overriding its virtual On* >> methods)? Instead it adds observers to the interactor itself. Or is setting >> a vtkInteractorStyleUser on the interactor a prerequisite to be able to >> observe those events in this way? >> >> Thankful for any advice / clarifications on how vtkInteractorStyleUser is >> meant to be used. >> > > An additional question: As a test, I just tried setting a > vtkInteractorStyleUser as the style my vtkGenericRenderWindowInteractor > (I'm using the QVTKRenderWindowInteractor from Python), instead of the > vtkInteractorStyleImage I was using before (I'm mapping a slice of the core > with a vtkImageResliceMapper), and with the vtkInteractorStyleUser set, the > window does not render anything when I call Render() and Start() the > interactor. > Sorry, this was a PEBCAK. I had a stray Disable() call left in from some testing. Elvis > > Is this to be expected when using the vtkInteractorStyleUser? The > interactor shouldn't affect rendering, should it? How can I get back > rendering when using vtkInteractorStyleUser? > > Elvis > > >> Cheers, >> Elvis >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthias at blaicher.com Thu Feb 25 05:32:58 2016 From: matthias at blaicher.com (Matthias Blaicher) Date: Thu, 25 Feb 2016 11:32:58 +0100 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 In-Reply-To: References: <56CB53C0.4030607@blaicher.com> <56CB6292.7040201@blaicher.com> Message-ID: <56CED85A.4060907@blaicher.com> Hi Ken, I've just built the most recent master branch (ae38393d) and I still have troubles. A basic pure VTK python example such as the Cylinder [1] works, but mayavi still fails with the error message shown in the previous mail. I know that python 3 mayavi is still experimental, but it works flawlessly under Linux. Also, since mayavi has so many abstraction layers I fail to follow the path which actually leads to constructing a vtk widget. Any ideas how I should precede? Best, Matthias [1] http://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder On 02/24/2016 09:39 PM, Ken Martin wrote: > Did vtk master end up solving your issues on the intel 2500? Just want > to see if the recent changes fixed that because I think the 2500 should > work. > > Thanks > Ken > > On Mon, Feb 22, 2016 at 10:04 PM, Ken Martin > wrote: > > Ahh I just saw your screenshots indicating Intel 2500. Maybe the > master changes will work on that. I believe we have been having some > hiccups with the older intel GPUs. I'd like to get them iron out. > > Ken > > On Mon, Feb 22, 2016 at 9:59 PM, Ken Martin > wrote: > > If your card supports OpenGL 4 then I would think it would also > provide a 3.2 context. I'm not aware of cards that support 4.0 > but would not return a 3.2 context when requested. If you check > out and build VTK master you could try running > > ctest -R VBOPLY -VV > > and > > ctest -R Apple -VV > > the output of those two tests can be helpful in debugging these > issues. Also maybe your system has two GPUs? Like intel on chip > plus a dedicated GPU and somehow you are not getting the > dedicated GPU maybe? Just some ideas. > > > > > On Mon, Feb 22, 2016 at 3:03 PM, David Gobbi > > wrote: > > If you get the master branch, it includes this patch which > might be related: > https://gitlab.kitware.com/vtk/vtk/commit/8d0daf13 > > On Mon, Feb 22, 2016 at 12:33 PM, Matthias Blaicher > > wrote: > > Hi David, > > I guess you are right, it looks like this is the issue. > According to > OpenGL Extensions Viewer, the card exposes OpenGL 4. > > If I understood it correctly, the problem seems to be > that gpu_shader4 > is not exposed in the 2.1 context. And 3.2 is tested but > fails (have to > check that for my card). > > Is there any patch, which would try a 3.1 context too? > I've seen some > commits in master (e.g. ca65662fa "Merge topic > 'try_more_recent_opengl_add_getversion'"). I'll give the > master branch a > spin and report back. > > Best, > > Matthias > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: > http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains > confidential and legally privileged information, and it is > intended only for the use of the addressee. Access to this > email by anyone else is unauthorized. If you are not the > intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be > unlawful. If you received this communication in error please > notify us immediately and destroy the original message. Thank you. > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential > and legally privileged information, and it is intended only for the > use of the addressee. Access to this email by anyone else is > unauthorized. If you are not the intended recipient, any disclosure, > copying, distribution or any action taken in reliance on it is > prohibited and may be unlawful. If you received this communication > in error please notify us immediately and destroy the original > message. Thank you. > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of > the addressee. Access to this email by anyone else is unauthorized. If > you are not the intended recipient, any disclosure, copying, > distribution or any action taken in reliance on it is prohibited and may > be unlawful. If you received this communication in error please notify > us immediately and destroy the original message. Thank you. From matthias at blaicher.com Thu Feb 25 07:00:38 2016 From: matthias at blaicher.com (Matthias Blaicher) Date: Thu, 25 Feb 2016 13:00:38 +0100 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 In-Reply-To: <56CED85A.4060907@blaicher.com> References: <56CB53C0.4030607@blaicher.com> <56CB6292.7040201@blaicher.com> <56CED85A.4060907@blaicher.com> Message-ID: <56CEECE6.8090304@blaicher.com> Hi all, as a further data point, I can reproduce my original error message with the tvtk QVTKRenderWindowInteractor, just be running the QVTKRenderWidgetConeExample. [1] Just from a brief glance, I do not see anything obviously wrong with that code and it uses vtk.vtkRenderWindow just as the Qt example on the vtk wiki [2]. The error occurs in the call to Initialize() in line 509, which is forwarded vtk.vtkGenericRenderWindowInteractor.Initialize() Does that help? Very best, Matthias [1] https://github.com/enthought/mayavi/blob/master/tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py [2] http://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt On 02/25/2016 11:32 AM, Matthias Blaicher wrote: > Hi Ken, > > I've just built the most recent master branch (ae38393d) and I still > have troubles. A basic pure VTK python example such as the Cylinder [1] > works, but mayavi still fails with the error message shown in the > previous mail. > > I know that python 3 mayavi is still experimental, but it works > flawlessly under Linux. Also, since mayavi has so many abstraction > layers I fail to follow the path which actually leads to constructing a > vtk widget. Any ideas how I should precede? > > Best, > Matthias > > [1] http://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder > > On 02/24/2016 09:39 PM, Ken Martin wrote: >> Did vtk master end up solving your issues on the intel 2500? Just want >> to see if the recent changes fixed that because I think the 2500 should >> work. >> >> Thanks >> Ken >> >> On Mon, Feb 22, 2016 at 10:04 PM, Ken Martin > > wrote: >> >> Ahh I just saw your screenshots indicating Intel 2500. Maybe the >> master changes will work on that. I believe we have been having some >> hiccups with the older intel GPUs. I'd like to get them iron out. >> >> Ken >> >> On Mon, Feb 22, 2016 at 9:59 PM, Ken Martin > > wrote: >> >> If your card supports OpenGL 4 then I would think it would also >> provide a 3.2 context. I'm not aware of cards that support 4.0 >> but would not return a 3.2 context when requested. If you check >> out and build VTK master you could try running >> >> ctest -R VBOPLY -VV >> >> and >> >> ctest -R Apple -VV >> >> the output of those two tests can be helpful in debugging these >> issues. Also maybe your system has two GPUs? Like intel on chip >> plus a dedicated GPU and somehow you are not getting the >> dedicated GPU maybe? Just some ideas. >> >> >> >> >> On Mon, Feb 22, 2016 at 3:03 PM, David Gobbi >> > wrote: >> >> If you get the master branch, it includes this patch which >> might be related: >> https://gitlab.kitware.com/vtk/vtk/commit/8d0daf13 >> >> On Mon, Feb 22, 2016 at 12:33 PM, Matthias Blaicher >> > wrote: >> >> Hi David, >> >> I guess you are right, it looks like this is the issue. >> According to >> OpenGL Extensions Viewer, the card exposes OpenGL 4. >> >> If I understood it correctly, the problem seems to be >> that gpu_shader4 >> is not exposed in the 2.1 context. And 3.2 is tested but >> fails (have to >> check that for my card). >> >> Is there any patch, which would try a 3.1 context too? >> I've seen some >> commits in master (e.g. ca65662fa "Merge topic >> 'try_more_recent_opengl_add_getversion'"). I'll give the >> master branch a >> spin and report back. >> >> Best, >> >> Matthias >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: >> http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains >> confidential and legally privileged information, and it is >> intended only for the use of the addressee. Access to this >> email by anyone else is unauthorized. If you are not the >> intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be >> unlawful. If you received this communication in error please >> notify us immediately and destroy the original message. Thank you. >> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential >> and legally privileged information, and it is intended only for the >> use of the addressee. Access to this email by anyone else is >> unauthorized. If you are not the intended recipient, any disclosure, >> copying, distribution or any action taken in reliance on it is >> prohibited and may be unlawful. If you received this communication >> in error please notify us immediately and destroy the original >> message. Thank you. >> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of >> the addressee. Access to this email by anyone else is unauthorized. If >> you are not the intended recipient, any disclosure, copying, >> distribution or any action taken in reliance on it is prohibited and may >> be unlawful. If you received this communication in error please notify >> us immediately and destroy the original message. Thank you. From andinet.enqu at kitware.com Thu Feb 25 07:50:19 2016 From: andinet.enqu at kitware.com (Andinet Enquobahrie) Date: Thu, 25 Feb 2016 07:50:19 -0500 Subject: [vtkusers] ANN: Medical Computing Group at Kitware is hiring R&D engineers and technical leads in image analysis and visualization Message-ID: Apologies for duplicate postings. =================== Hi folks, We are looking to hire talented individuals for image guided intervention and image analysis and visualization application development in our Medical Computing group. We have four job opportunities Technical Lead in Biomedical Image Analysis and Visualization http://tinyurl.com/jx3cgnc Image-Guided Intervention Applications Research and Development Engineer http://tinyurl.com/zxlpyyj Biomechanical Modeling and Surgical Simulation Research and Development Engineer http://tinyurl.com/jtsnf2y Research and Development Involving Machine Learning and Medical Image Analysis http://tinyurl.com/hy58kq8 For other job openings at Kitware, please check http://jobs.kitware.com/opportunities.html -- Andinet Enquobahrie, Ph.D., MBA Assistant Director of Medical Computing Kitware, Inc. http://www.kitware.com (919) 969-6990 x311 From matthias at blaicher.com Thu Feb 25 08:04:55 2016 From: matthias at blaicher.com (Matthias Blaicher) Date: Thu, 25 Feb 2016 14:04:55 +0100 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 - solved In-Reply-To: <56CEECE6.8090304@blaicher.com> References: <56CB53C0.4030607@blaicher.com> <56CB6292.7040201@blaicher.com> <56CED85A.4060907@blaicher.com> <56CEECE6.8090304@blaicher.com> Message-ID: <56CEFBF7.2000507@blaicher.com> Ok I solved it! QVTKRenderWindowInteractor exists in VTK and in tvtk supplied by Mayavi. The tvtk is a bit nicer, but has a bug: The tvtk.QVTKRenderWindowInteractor._get_win_id() [1] gets a sip.voidpointer and casts it to str, which will result in a string like "" and not an string with an integer as expected. Casting it to int and then to str as the VTK version does makes everything work... That was rather tricky to find.... Very best, Matthias [1] https://github.com/enthought/mayavi/blob/master/tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py#L269 [2] https://gitlab.kitware.com/vtk/vtk/blob/master/Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py#L267 On 02/25/2016 01:00 PM, Matthias Blaicher wrote: > Hi all, > > as a further data point, I can reproduce my original error message with > the tvtk QVTKRenderWindowInteractor, just be running the > QVTKRenderWidgetConeExample. [1] > > Just from a brief glance, I do not see anything obviously wrong with > that code and it uses vtk.vtkRenderWindow just as the Qt example on the > vtk wiki [2]. > > The error occurs in the call to Initialize() in line 509, which is > forwarded vtk.vtkGenericRenderWindowInteractor.Initialize() > > Does that help? > > Very best, > Matthias > > [1] > https://github.com/enthought/mayavi/blob/master/tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py > > [2] http://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt > > On 02/25/2016 11:32 AM, Matthias Blaicher wrote: >> Hi Ken, >> >> I've just built the most recent master branch (ae38393d) and I still >> have troubles. A basic pure VTK python example such as the Cylinder [1] >> works, but mayavi still fails with the error message shown in the >> previous mail. >> >> I know that python 3 mayavi is still experimental, but it works >> flawlessly under Linux. Also, since mayavi has so many abstraction >> layers I fail to follow the path which actually leads to constructing a >> vtk widget. Any ideas how I should precede? >> >> Best, >> Matthias >> >> [1] http://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder >> >> On 02/24/2016 09:39 PM, Ken Martin wrote: >>> Did vtk master end up solving your issues on the intel 2500? Just want >>> to see if the recent changes fixed that because I think the 2500 should >>> work. >>> >>> Thanks >>> Ken >>> >>> On Mon, Feb 22, 2016 at 10:04 PM, Ken Martin >> > wrote: >>> >>> Ahh I just saw your screenshots indicating Intel 2500. Maybe the >>> master changes will work on that. I believe we have been having some >>> hiccups with the older intel GPUs. I'd like to get them iron out. >>> >>> Ken >>> >>> On Mon, Feb 22, 2016 at 9:59 PM, Ken Martin >> > wrote: >>> >>> If your card supports OpenGL 4 then I would think it would also >>> provide a 3.2 context. I'm not aware of cards that support 4.0 >>> but would not return a 3.2 context when requested. If you check >>> out and build VTK master you could try running >>> >>> ctest -R VBOPLY -VV >>> >>> and >>> >>> ctest -R Apple -VV >>> >>> the output of those two tests can be helpful in debugging these >>> issues. Also maybe your system has two GPUs? Like intel on chip >>> plus a dedicated GPU and somehow you are not getting the >>> dedicated GPU maybe? Just some ideas. >>> >>> >>> >>> >>> On Mon, Feb 22, 2016 at 3:03 PM, David Gobbi >>> > wrote: >>> >>> If you get the master branch, it includes this patch which >>> might be related: >>> https://gitlab.kitware.com/vtk/vtk/commit/8d0daf13 >>> >>> On Mon, Feb 22, 2016 at 12:33 PM, Matthias Blaicher >>> > wrote: >>> >>> Hi David, >>> >>> I guess you are right, it looks like this is the issue. >>> According to >>> OpenGL Extensions Viewer, the card exposes OpenGL 4. >>> >>> If I understood it correctly, the problem seems to be >>> that gpu_shader4 >>> is not exposed in the 2.1 context. And 3.2 is tested but >>> fails (have to >>> check that for my card). >>> >>> Is there any patch, which would try a 3.1 context too? >>> I've seen some >>> commits in master (e.g. ca65662fa "Merge topic >>> 'try_more_recent_opengl_add_getversion'"). I'll give the >>> master branch a >>> spin and report back. >>> >>> Best, >>> >>> Matthias >>> >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: >>> http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> This communication, including all attachments, contains >>> confidential and legally privileged information, and it is >>> intended only for the use of the addressee. Access to this >>> email by anyone else is unauthorized. If you are not the >>> intended recipient, any disclosure, copying, distribution or any >>> action taken in reliance on it is prohibited and may be >>> unlawful. If you received this communication in error please >>> notify us immediately and destroy the original message. Thank you. >>> >>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> This communication, including all attachments, contains confidential >>> and legally privileged information, and it is intended only for the >>> use of the addressee. Access to this email by anyone else is >>> unauthorized. If you are not the intended recipient, any disclosure, >>> copying, distribution or any action taken in reliance on it is >>> prohibited and may be unlawful. If you received this communication >>> in error please notify us immediately and destroy the original >>> message. Thank you. >>> >>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> This communication, including all attachments, contains confidential and >>> legally privileged information, and it is intended only for the use of >>> the addressee. Access to this email by anyone else is unauthorized. If >>> you are not the intended recipient, any disclosure, copying, >>> distribution or any action taken in reliance on it is prohibited and may >>> be unlawful. If you received this communication in error please notify >>> us immediately and destroy the original message. Thank you. From ken.martin at kitware.com Thu Feb 25 08:10:10 2016 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 25 Feb 2016 08:10:10 -0500 Subject: [vtkusers] OpenGL fails to initialize for Windows 7, VTK 7.0 - solved In-Reply-To: <56CEFBF7.2000507@blaicher.com> References: <56CB53C0.4030607@blaicher.com> <56CB6292.7040201@blaicher.com> <56CED85A.4060907@blaicher.com> <56CEECE6.8090304@blaicher.com> <56CEFBF7.2000507@blaicher.com> Message-ID: Awesome! Good catch! On Thu, Feb 25, 2016 at 8:04 AM, Matthias Blaicher wrote: > Ok I solved it! > > QVTKRenderWindowInteractor exists in VTK and in tvtk > supplied by Mayavi. The tvtk is a bit nicer, but has a bug: > > The tvtk.QVTKRenderWindowInteractor._get_win_id() [1] gets a > sip.voidpointer and casts it to str, which will result in a string like > "" and not an string with an integer as > expected. Casting it to int and then to str as the VTK version does > makes everything work... > > That was rather tricky to find.... > > Very best, > Matthias > > > [1] > > https://github.com/enthought/mayavi/blob/master/tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py#L269 > > [2] > > https://gitlab.kitware.com/vtk/vtk/blob/master/Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py#L267 > > > On 02/25/2016 01:00 PM, Matthias Blaicher wrote: > > Hi all, > > > > as a further data point, I can reproduce my original error message with > > the tvtk QVTKRenderWindowInteractor, just be running the > > QVTKRenderWidgetConeExample. [1] > > > > Just from a brief glance, I do not see anything obviously wrong with > > that code and it uses vtk.vtkRenderWindow just as the Qt example on the > > vtk wiki [2]. > > > > The error occurs in the call to Initialize() in line 509, which is > > forwarded vtk.vtkGenericRenderWindowInteractor.Initialize() > > > > Does that help? > > > > Very best, > > Matthias > > > > [1] > > > https://github.com/enthought/mayavi/blob/master/tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py > > > > [2] http://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt > > > > On 02/25/2016 11:32 AM, Matthias Blaicher wrote: > >> Hi Ken, > >> > >> I've just built the most recent master branch (ae38393d) and I still > >> have troubles. A basic pure VTK python example such as the Cylinder [1] > >> works, but mayavi still fails with the error message shown in the > >> previous mail. > >> > >> I know that python 3 mayavi is still experimental, but it works > >> flawlessly under Linux. Also, since mayavi has so many abstraction > >> layers I fail to follow the path which actually leads to constructing a > >> vtk widget. Any ideas how I should precede? > >> > >> Best, > >> Matthias > >> > >> [1] http://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder > >> > >> On 02/24/2016 09:39 PM, Ken Martin wrote: > >>> Did vtk master end up solving your issues on the intel 2500? Just want > >>> to see if the recent changes fixed that because I think the 2500 should > >>> work. > >>> > >>> Thanks > >>> Ken > >>> > >>> On Mon, Feb 22, 2016 at 10:04 PM, Ken Martin >>> > wrote: > >>> > >>> Ahh I just saw your screenshots indicating Intel 2500. Maybe the > >>> master changes will work on that. I believe we have been having > some > >>> hiccups with the older intel GPUs. I'd like to get them iron out. > >>> > >>> Ken > >>> > >>> On Mon, Feb 22, 2016 at 9:59 PM, Ken Martin < > ken.martin at kitware.com > >>> > wrote: > >>> > >>> If your card supports OpenGL 4 then I would think it would also > >>> provide a 3.2 context. I'm not aware of cards that support 4.0 > >>> but would not return a 3.2 context when requested. If you check > >>> out and build VTK master you could try running > >>> > >>> ctest -R VBOPLY -VV > >>> > >>> and > >>> > >>> ctest -R Apple -VV > >>> > >>> the output of those two tests can be helpful in debugging these > >>> issues. Also maybe your system has two GPUs? Like intel on > chip > >>> plus a dedicated GPU and somehow you are not getting the > >>> dedicated GPU maybe? Just some ideas. > >>> > >>> > >>> > >>> > >>> On Mon, Feb 22, 2016 at 3:03 PM, David Gobbi > >>> > wrote: > >>> > >>> If you get the master branch, it includes this patch which > >>> might be related: > >>> https://gitlab.kitware.com/vtk/vtk/commit/8d0daf13 > >>> > >>> On Mon, Feb 22, 2016 at 12:33 PM, Matthias Blaicher > >>> > > wrote: > >>> > >>> Hi David, > >>> > >>> I guess you are right, it looks like this is the issue. > >>> According to > >>> OpenGL Extensions Viewer, the card exposes OpenGL 4. > >>> > >>> If I understood it correctly, the problem seems to be > >>> that gpu_shader4 > >>> is not exposed in the 2.1 context. And 3.2 is tested > but > >>> fails (have to > >>> check that for my card). > >>> > >>> Is there any patch, which would try a 3.1 context too? > >>> I've seen some > >>> commits in master (e.g. ca65662fa "Merge topic > >>> 'try_more_recent_opengl_add_getversion'"). I'll give > the > >>> master branch a > >>> spin and report back. > >>> > >>> Best, > >>> > >>> Matthias > >>> > >>> > >>> > >>> _______________________________________________ > >>> Powered by www.kitware.com > >>> > >>> Visit other Kitware open-source projects at > >>> http://www.kitware.com/opensource/opensource.html > >>> > >>> Please keep messages on-topic and check the VTK FAQ at: > >>> http://www.vtk.org/Wiki/VTK_FAQ > >>> > >>> Search the list archives at: > >>> http://markmail.org/search/?q=vtkusers > >>> > >>> Follow this link to subscribe/unsubscribe: > >>> http://public.kitware.com/mailman/listinfo/vtkusers > >>> > >>> > >>> > >>> > >>> -- > >>> Ken Martin PhD > >>> Chairman & CFO > >>> Kitware Inc. > >>> 28 Corporate Drive > >>> Clifton Park NY 12065 > >>> 518 371 3971 > >>> > >>> This communication, including all attachments, contains > >>> confidential and legally privileged information, and it is > >>> intended only for the use of the addressee. Access to this > >>> email by anyone else is unauthorized. If you are not the > >>> intended recipient, any disclosure, copying, distribution or > any > >>> action taken in reliance on it is prohibited and may be > >>> unlawful. If you received this communication in error please > >>> notify us immediately and destroy the original message. Thank > you. > >>> > >>> > >>> > >>> > >>> -- > >>> Ken Martin PhD > >>> Chairman & CFO > >>> Kitware Inc. > >>> 28 Corporate Drive > >>> Clifton Park NY 12065 > >>> 518 371 3971 > >>> > >>> This communication, including all attachments, contains > confidential > >>> and legally privileged information, and it is intended only for the > >>> use of the addressee. Access to this email by anyone else is > >>> unauthorized. If you are not the intended recipient, any > disclosure, > >>> copying, distribution or any action taken in reliance on it is > >>> prohibited and may be unlawful. If you received this communication > >>> in error please notify us immediately and destroy the original > >>> message. Thank you. > >>> > >>> > >>> > >>> > >>> -- > >>> Ken Martin PhD > >>> Chairman & CFO > >>> Kitware Inc. > >>> 28 Corporate Drive > >>> Clifton Park NY 12065 > >>> 518 371 3971 > >>> > >>> This communication, including all attachments, contains confidential > and > >>> legally privileged information, and it is intended only for the use of > >>> the addressee. Access to this email by anyone else is unauthorized. If > >>> you are not the intended recipient, any disclosure, copying, > >>> distribution or any action taken in reliance on it is prohibited and > may > >>> be unlawful. If you received this communication in error please notify > >>> us immediately and destroy the original message. Thank you. > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From maitaoriana at gmail.com Thu Feb 25 08:21:46 2016 From: maitaoriana at gmail.com (MaitaOriana) Date: Thu, 25 Feb 2016 06:21:46 -0700 (MST) 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: <1456406506166-5736838.post@n5.nabble.com> Hello Oscar. I wonder how you manage to generate Kitware.mummy.Runtime.dll. I tried everything but I have the following error: CS1577 Error: Failed to build the assembly - The valid assembly can not have a specific processor module 'Kitware.mummy.Runtime.Unmanaged.dll' -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5736838.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Thu Feb 25 08:43:01 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 25 Feb 2016 06:43:01 -0700 (MST) Subject: [vtkusers] Show whole volume under a slice Message-ID: <1456407781958-5736839.post@n5.nabble.com> Hello, I set up all the code to make a cutting plane move the way I want it and I can actually get in an other image the actual slice that I'm looking at. However, what I'm trying to achieve now is different. Say my slice is in the middle of my volume I would to see half of that volume on my screen. I actually managed to do it a while ago with the simple BUNNY example and vtkPolyData but it does not work at all with my volume. Here is my code (skippin irrelevant parts to simplify reading): / Renderer = vtkRenderer::New(); Renderer->SetBackground(.3, .6, .3); RenderWindow->AddRenderer(Renderer.Get()); reader = vtkSmartPointer::New(); reader->SetFileName(filename.c_str()); reader->Update(); imageData = vtkSmartPointer::New(); imageData->ShallowCopy(reader->GetOutput()); vtkSmartPointer volumeMapper = vtkOpenGLGPUVolumeRayCastMapper::New(); volumeMapper->SetInputData(imageData); vtkSmartPointer volume = vtkSmartPointer::New(); volume->SetMapper(volumeMapper); volume->SetProperty(volumeProperty); mainActor = volume ; //mainActor is a Prop3D Renderer->AddViewProp(mainActor); Renderer->ResetCamera(); .... plane = vtkSmartPointer::New(); plane->SetTransform(vtkTransform::New()); plane->SetNormal(0,0,1); plane->SetOrigin(0,0,20); clipper = vtkSmartPointer::New(); clipper->SetInputConnection(reader->GetOutputPort()); clipper->SetClipFunction(plane); clipper->InsideOutOn(); mapperSliceData = vtkSmartPointer::New(); mapperSliceData->SetInputConnection(clipper->GetOutputPort()); slicedActor = vtkSmartPointer::New(); slicedActor->SetMapper(mapperSliceData); Renderer->AddActor(slicedActor); ctxView->Render(); / Not only this piece of code does show me what I'd like to see, but above all it is extremely slow. Would you mind taking a look at the code and help me solve this problem? Thanks in advance -- View this message in context: http://vtk.1045678.n5.nabble.com/Show-whole-volume-under-a-slice-tp5736839.html Sent from the VTK - Users mailing list archive at Nabble.com. From oscar.cainelli at smarthydrosol.com Thu Feb 25 09:09:22 2016 From: oscar.cainelli at smarthydrosol.com (oscarafone77) Date: Thu, 25 Feb 2016 07:09:22 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <1456406506166-5736838.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> <1456406506166-5736838.post@n5.nabble.com> Message-ID: Dear Oriana, I am also still stuck on that error there, waiting that someone finds a suitable solution. I am wondering if it is a 64 bit OS problem, but I haven't a computer with 32 bit system at hand. Maybe someone that could compile the Activiz 6.2 libs can share the resulting binaries. Sorry for not being helpful. Oscar 2016-02-25 14:21 GMT+01:00 MaitaOriana [via VTK] < ml-node+s1045678n5736838h74 at n5.nabble.com>: > Hello Oscar. I wonder how you manage to generate > Kitware.mummy.Runtime.dll. I tried everything but I have the following > error: > > CS1577 Error: Failed to build the assembly - The valid assembly can not > have a specific processor module 'Kitware.mummy.Runtime.Unmanaged.dll' > > ------------------------------ > 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-tp5733889p5736838.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-tp5733889p5736840.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Feb 25 09:16:08 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 25 Feb 2016 07:16:08 -0700 Subject: [vtkusers] Show whole volume under a slice In-Reply-To: <1456407781958-5736839.post@n5.nabble.com> References: <1456407781958-5736839.post@n5.nabble.com> Message-ID: Hi Lonni, Every mapper has a method called SetClippingPlanes() that you can use to clip the data. This will clip the data on the GPU while the data is being rendered. - David On Thu, Feb 25, 2016 at 6:43 AM, Lonni Besan?on wrote: > Hello, > > I set up all the code to make a cutting plane move the way I want it and I > can actually get in an other image the actual slice that I'm looking at. > However, what I'm trying to achieve now is different. Say my slice is in > the > middle of my volume I would to see half of that volume on my screen. I > actually managed to do it a while ago with the simple BUNNY example and > vtkPolyData but it does not work at all with my volume. > > Here is my code (skippin irrelevant parts to simplify reading): > > / Renderer = vtkRenderer::New(); > Renderer->SetBackground(.3, .6, .3); > RenderWindow->AddRenderer(Renderer.Get()); > > reader = vtkSmartPointer::New(); > reader->SetFileName(filename.c_str()); > reader->Update(); > imageData = vtkSmartPointer::New(); > imageData->ShallowCopy(reader->GetOutput()); > vtkSmartPointer volumeMapper = > vtkOpenGLGPUVolumeRayCastMapper::New(); > volumeMapper->SetInputData(imageData); > > vtkSmartPointer volume = > vtkSmartPointer::New(); > volume->SetMapper(volumeMapper); > volume->SetProperty(volumeProperty); > mainActor = volume ; //mainActor is a Prop3D > Renderer->AddViewProp(mainActor); > Renderer->ResetCamera(); > > .... > > plane = vtkSmartPointer::New(); > plane->SetTransform(vtkTransform::New()); > plane->SetNormal(0,0,1); > plane->SetOrigin(0,0,20); > > clipper = vtkSmartPointer::New(); > clipper->SetInputConnection(reader->GetOutputPort()); > clipper->SetClipFunction(plane); > clipper->InsideOutOn(); > > mapperSliceData = vtkSmartPointer::New(); > mapperSliceData->SetInputConnection(clipper->GetOutputPort()); > > slicedActor = vtkSmartPointer::New(); > slicedActor->SetMapper(mapperSliceData); > > > Renderer->AddActor(slicedActor); > ctxView->Render(); > / > > Not only this piece of code does show me what I'd like to see, but above > all > it is extremely slow. > Would you mind taking a look at the code and help me solve this problem? > > Thanks in advance > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 25 09:44:47 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 25 Feb 2016 07:44:47 -0700 (MST) Subject: [vtkusers] Show whole volume under a slice In-Reply-To: References: <1456407781958-5736839.post@n5.nabble.com> Message-ID: <1456411487201-5736842.post@n5.nabble.com> I knew about this method but thought this was not relevant as it takes a combination of planes, which I haven't. I just have a single plane to slice my data. Should I still use it? -- View this message in context: http://vtk.1045678.n5.nabble.com/Show-whole-volume-under-a-slice-tp5736839p5736842.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Feb 25 09:48:53 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 25 Feb 2016 07:48:53 -0700 Subject: [vtkusers] Show whole volume under a slice In-Reply-To: <1456411487201-5736842.post@n5.nabble.com> References: <1456407781958-5736839.post@n5.nabble.com> <1456411487201-5736842.post@n5.nabble.com> Message-ID: On Thu, Feb 25, 2016 at 7:44 AM, Lonni Besan?on wrote: > I knew about this method but thought this was not relevant as it takes a > combination of planes, which I haven't. I just have a single plane to slice > my data. Should I still use it? > Yes, you should use it. It works fine with one plane, and it will be much, much faster than what you're doing now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 25 10:31:59 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 25 Feb 2016 08:31:59 -0700 (MST) Subject: [vtkusers] Show whole volume under a slice In-Reply-To: References: <1456407781958-5736839.post@n5.nabble.com> <1456411487201-5736842.post@n5.nabble.com> Message-ID: <1456414319374-5736845.post@n5.nabble.com> Ok thanks for the advice. So here is what I have tried: / vtkSmartPointer planes = vtkSmartPointer::New(); vtkSmartPointer origins = vtkSmartPointer::New(); origins->SetNumberOfPoints(1); origins->InsertNextPoint(plane->GetOrigin()); vtkSmartPointer normalsArray = vtkSmartPointer::New(); normalsArray->SetNumberOfComponents(3); normalsArray->SetNumberOfTuples(1); normalsArray->SetComponent(0,0,plane->GetNormal()[0]); normalsArray->SetComponent(0,1,plane->GetNormal()[1]); normalsArray->SetComponent(0,2,plane->GetNormal()[2]); planes->SetPoints(origins); planes->SetNormals(normalsArray); mainMapper->SetClippingPlanes(planes);/ But this gives me a memory access error when reaching the last line. According to the debuger, the error is located in the for loop of the SetClippingPlanes() method which is in turn in the call to: /void vtkAbstractMapper::RemoveAllClippingPlanes(){if ( this->ClippingPlanes ) //.../ Would you happen to know what's wrong with what I've done there. I can't really understand where the error comes from -- View this message in context: http://vtk.1045678.n5.nabble.com/Show-whole-volume-under-a-slice-tp5736839p5736845.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Feb 25 10:38:39 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 25 Feb 2016 08:38:39 -0700 Subject: [vtkusers] Show whole volume under a slice In-Reply-To: <1456414319374-5736845.post@n5.nabble.com> References: <1456407781958-5736839.post@n5.nabble.com> <1456411487201-5736842.post@n5.nabble.com> <1456414319374-5736845.post@n5.nabble.com> Message-ID: Don't do that, use a vtkPlaneCollection instead. On Thu, Feb 25, 2016 at 8:31 AM, Lonni Besan?on wrote: > Ok thanks for the advice. > > So here is what I have tried: > > / vtkSmartPointer planes = > vtkSmartPointer::New(); > vtkSmartPointer origins = > vtkSmartPointer::New(); > origins->SetNumberOfPoints(1); > origins->InsertNextPoint(plane->GetOrigin()); > vtkSmartPointer normalsArray = > vtkSmartPointer::New(); > normalsArray->SetNumberOfComponents(3); > normalsArray->SetNumberOfTuples(1); > normalsArray->SetComponent(0,0,plane->GetNormal()[0]); > normalsArray->SetComponent(0,1,plane->GetNormal()[1]); > normalsArray->SetComponent(0,2,plane->GetNormal()[2]); > planes->SetPoints(origins); > planes->SetNormals(normalsArray); > mainMapper->SetClippingPlanes(planes);/ > > But this gives me a memory access error when reaching the last line. > According to the debuger, the error is located in the for loop of the > SetClippingPlanes() method which is in turn in the call to: > /void vtkAbstractMapper::RemoveAllClippingPlanes(){if ( > this->ClippingPlanes > ) //.../ > > Would you happen to know what's wrong with what I've done there. I can't > really understand where the error comes from > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Feb 25 11:10:40 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 25 Feb 2016 17:10:40 +0100 Subject: [vtkusers] Requirements for multiple volumes in one render window Message-ID: Hi, >From searching around, I think I've gathered that to render multiple volumes in a single window, each volume must have its own mapper and volume property. They can't share mapper or property. My question is whether I must use separate renderers for each volume as well, or if I can use the same renderer for them all? Also, I did read something in an old post about problems with rendering multiple volumes that intersect (share a voxel). Is this still a problem? I'm using VTK 6.2 and the vtkVolumeRayCastMapper. Thanks in advance! Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 25 11:18:15 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 25 Feb 2016 09:18:15 -0700 (MST) Subject: [vtkusers] Show whole volume under a slice In-Reply-To: References: <1456407781958-5736839.post@n5.nabble.com> <1456411487201-5736842.post@n5.nabble.com> <1456414319374-5736845.post@n5.nabble.com> Message-ID: <1456417095997-5736848.post@n5.nabble.com> Ok I solved the memory issue, It was just one pointer being freed later on in the code. However I don't see how to use the vtkPlaneCollection here. I can easily create it with: /vtkSmartPointer coll = vtkSmartPointer::New(); coll->AddItem(plane);/ Yet I don't know how to then set the collection (of just one but collection anyway I guess :D) to the vtkPlanes. Also the code I wrote so far compiles and run but I don't see the expected output, there's no clipping at all even though I do think that I can clearly see my plane move "through" my data -- View this message in context: http://vtk.1045678.n5.nabble.com/Show-whole-volume-under-a-slice-tp5736839p5736848.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Feb 25 11:23:52 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 25 Feb 2016 09:23:52 -0700 Subject: [vtkusers] Show whole volume under a slice In-Reply-To: <1456417095997-5736848.post@n5.nabble.com> References: <1456407781958-5736839.post@n5.nabble.com> <1456411487201-5736842.post@n5.nabble.com> <1456414319374-5736845.post@n5.nabble.com> <1456417095997-5736848.post@n5.nabble.com> Message-ID: You don't add the vtkPlaneCollection to the vtkPlanes. Don't use vtkPlanes at all, is what I was trying to say. mapper->SetClippingPlanes(vtkPlaneCollection) Forget that vtkPlanes even exists, please! That will make my life and your life a little bit easier, I think. - David On Thu, Feb 25, 2016 at 9:18 AM, Lonni Besan?on wrote: > Ok I solved the memory issue, It was just one pointer being freed later on > in > the code. > > However I don't see how to use the vtkPlaneCollection here. I can easily > create it with: > /vtkSmartPointer coll = > vtkSmartPointer::New(); > coll->AddItem(plane);/ > > Yet I don't know how to then set the collection (of just one but collection > anyway I guess :D) to the vtkPlanes. > Also the code I wrote so far compiles and run but I don't see the expected > output, there's no clipping at all even though I do think that I can > clearly > see my plane move "through" my data > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 25 11:38:03 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 25 Feb 2016 09:38:03 -0700 (MST) Subject: [vtkusers] Show whole volume under a slice In-Reply-To: References: <1456407781958-5736839.post@n5.nabble.com> <1456411487201-5736842.post@n5.nabble.com> <1456414319374-5736845.post@n5.nabble.com> <1456417095997-5736848.post@n5.nabble.com> Message-ID: <1456418283179-5736850.post@n5.nabble.com> My bad, I misunderstood you. It now works like a charm. Thanks for bearing with me :D. You've been as helpful as usual :) -- View this message in context: http://vtk.1045678.n5.nabble.com/Show-whole-volume-under-a-slice-tp5736839p5736850.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Feb 25 11:39:32 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 25 Feb 2016 09:39:32 -0700 Subject: [vtkusers] Show whole volume under a slice In-Reply-To: <1456418283179-5736850.post@n5.nabble.com> References: <1456407781958-5736839.post@n5.nabble.com> <1456411487201-5736842.post@n5.nabble.com> <1456414319374-5736845.post@n5.nabble.com> <1456417095997-5736848.post@n5.nabble.com> <1456418283179-5736850.post@n5.nabble.com> Message-ID: On Thu, Feb 25, 2016 at 9:38 AM, Lonni Besan?on wrote: > My bad, I misunderstood you. It now works like a charm. Thanks for bearing > with me :D. > And much faster too, right? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Thu Feb 25 11:41:37 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 25 Feb 2016 09:41:37 -0700 (MST) Subject: [vtkusers] Show whole volume under a slice In-Reply-To: References: <1456407781958-5736839.post@n5.nabble.com> <1456411487201-5736842.post@n5.nabble.com> <1456414319374-5736845.post@n5.nabble.com> <1456417095997-5736848.post@n5.nabble.com> <1456418283179-5736850.post@n5.nabble.com> Message-ID: <1456418497408-5736852.post@n5.nabble.com> Indeed, much faster :). Really the way to go. Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/Show-whole-volume-under-a-slice-tp5736839p5736852.html Sent from the VTK - Users mailing list archive at Nabble.com. From longbowzhangchina at gmail.com Thu Feb 25 11:44:26 2016 From: longbowzhangchina at gmail.com (longbowzhang) Date: Thu, 25 Feb 2016 09:44:26 -0700 (MST) Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: Message-ID: <1456418666540-5736853.post@n5.nabble.com> Hi, 1 vtkRenderer is like a container, so you can put several volumes (as vtkVolume) into it. No problem. 2 I think (not 100% sure) it would be a problem if those volumes are intersecting with each other. You can test it easily. Just put two vtkVolumes into the scene, and then check the results. -- View this message in context: http://vtk.1045678.n5.nabble.com/Requirements-for-multiple-volumes-in-one-render-window-tp5736847p5736853.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Thu Feb 25 12:04:49 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 25 Feb 2016 12:04:49 -0500 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: <1456418666540-5736853.post@n5.nabble.com> References: <1456418666540-5736853.post@n5.nabble.com> Message-ID: On Thu, Feb 25, 2016 at 11:44 AM, longbowzhang wrote: > Hi, > > 1 vtkRenderer is like a container, so you can put several volumes (as > vtkVolume) into it. No problem. Yes, > > 2 I think (not 100% sure) it would be a problem if those volumes are > intersecting with each other. You can test it easily. > Just put two vtkVolumes into the scene, and then check the results. Intersecting volume would a be problem but having multiple volume would be fine. You will have to sort them (tell VTK to sort them). - Aashish > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Requirements-for-multiple-volumes-in-one-render-window-tp5736847p5736853.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 From jm.lucas at gantha.com Thu Feb 25 12:20:35 2016 From: jm.lucas at gantha.com (Jean-Michel Lucas) Date: Thu, 25 Feb 2016 18:20:35 +0100 Subject: [vtkusers] Cell locator : find closest point computation details In-Reply-To: References: <56c77341.512b6b0a.e0e6c.4f23SMTPIN_ADDED_BROKEN@mx.google.com> <56cc9669.0d1e1c0a.eae65.ffffb487SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <004401d16ff0$d73a4750$85aed5f0$@lucas@gantha.com> Thank you for your answer David, I'll try and have a look at the code. Jean-Michel De : David Gobbi [mailto:david.gobbi at gmail.com] Envoy? : mardi 23 f?vrier 2016 18:47 ? : Jean-Michel Lucas Cc : VTK Users Objet : Re: [vtkusers] Cell locator : find closest point computation details Hi Jean-Michel, I don't think that the locator uses "cell center" for any of its computations. Your best resource is the code itself. Take a look at the code to see how vtkCellLocator::FindCell() is implemented. - David On Tue, Feb 23, 2016 at 10:27 AM, Jean-Michel Lucas wrote: Thank you for your answer David. I referred to neighbour cells because I wanted to know how the closest cell is identified (I assumed it was based on the distance). My problem is to know, given a point that is in a large cell but actually closer to the center of a neighbour smaller cell, which of the two is identified as the closest cell. Jean-Michel De : David Gobbi [mailto:david.gobbi at gmail.com] Envoy? : vendredi 19 f?vrier 2016 21:01 ? : Jean-Michel Lucas Cc : VTK Users Objet : Re: [vtkusers] Cell locator : find closest point computation details On Fri, Feb 19, 2016 at 10:05 AM, Jean-Michel Lucas wrote: Dear all, Could someone explain me how the vtkCellLocator::FindClosestPoint method works ? More specifically I would like to know how the distance is computed from a given point: is it measured with respect to the center of the neighbour cells ? If used on vtkPolyData, it gives the perpendicular distance to the closest surface. I'm pretty sure that the neighbour cells are not part the computation. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Feb 25 14:03:28 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 25 Feb 2016 20:03:28 +0100 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: <1456418666540-5736853.post@n5.nabble.com> Message-ID: 2016-02-25 18:04 GMT+01:00 Aashish Chaudhary : > On Thu, Feb 25, 2016 at 11:44 AM, longbowzhang > wrote: > > Hi, > > > > 1 vtkRenderer is like a container, so you can put several volumes (as > > vtkVolume) into it. No problem. > > Yes, > Alright, good to know. > > > > > 2 I think (not 100% sure) it would be a problem if those volumes are > > intersecting with each other. You can test it easily. > > Just put two vtkVolumes into the scene, and then check the results. > > Intersecting volume would a be problem but having multiple volume > would be fine. You will have to sort them (tell VTK to sort them). > With sort them, you mean set the z order such that they are rendered on top of each other? This would be a real problem for us. We are doing x-ray tomography of drill cores. The core breaks into pieces during drilling, so think of each volume I'm speaking of as one of the pieces in the attached photo. Our software will do some algorithmic "puzzling" to align the volumes (pieces) after scanning, but we need to have an interactive way for the user to manually align the pieces as well, for the cases where automatic alignment fails (which it will in some hard/hopeless cases). If VTK can't properly render intersecting volumes, then I'm afraid it will be really hard to make such a tool for manual alignment intuitive to use. The user must be able to see the pieces while rotating them when they are close together, which invariably means they will intersect now and then as he/she tries to fit them together. Is this limitation of VTK present also in 7.0? I've been thinking of compiling a custom VTK 7.0, since I saw it has many improvements to volume rendering, and if it can do composite rendering of intersecting volumes, then we'll definitely do that. Elvis > > - Aashish > > > > > > > > > > > -- > > View this message in context: > http://vtk.1045678.n5.nabble.com/Requirements-for-multiple-volumes-in-one-render-window-tp5736847p5736853.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 > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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: core_box.jpg Type: image/jpeg Size: 182524 bytes Desc: not available URL: From longbowzhangchina at gmail.com Thu Feb 25 14:17:21 2016 From: longbowzhangchina at gmail.com (longbowzhang) Date: Thu, 25 Feb 2016 12:17:21 -0700 (MST) Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: <1456418666540-5736853.post@n5.nabble.com> Message-ID: <1456427841399-5736857.post@n5.nabble.com> Hi, >>>Is this limitation of VTK present also in 7.0? No idea at all. But if I am not mistaken, I know there is an open source prototype called RegistrationShop (https://github.com/berendkleinhaneveld/Registrationshop). It does volume rendering for two intersecting CT datasets which are to be interactively aligned/registered. Hope this can help you somehow. Otherwise, you have to customize the related vtk ray casting mappers. Longbow -- View this message in context: http://vtk.1045678.n5.nabble.com/Requirements-for-multiple-volumes-in-one-render-window-tp5736847p5736857.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Thu Feb 25 14:26:20 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 25 Feb 2016 20:26:20 +0100 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: <1456427841399-5736857.post@n5.nabble.com> References: <1456418666540-5736853.post@n5.nabble.com> <1456427841399-5736857.post@n5.nabble.com> Message-ID: 2016-02-25 20:17 GMT+01:00 longbowzhang : > Hi, > > >>>Is this limitation of VTK present also in 7.0? > No idea at all. > But if I am not mistaken, I know there is an open source prototype called > RegistrationShop (https://github.com/berendkleinhaneveld/Registrationshop > ). > It does volume rendering for two intersecting CT datasets which are to be > interactively aligned/registered. > Hope this can help you somehow. Otherwise, you have to customize the > related > vtk ray casting mappers. > Thanks for the tip. Another approach I just thought of, if it's really not possible to do rendering of intersecting volumes, is to first do isosurface extraction, and let the user work with the extracted surfaces (which I assume VTK can render intersected) while doing the manual alignment. That should be possible, if not ideal. Elvis > > Longbow > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Requirements-for-multiple-volumes-in-one-render-window-tp5736847p5736857.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 elvis.stansvik at orexplore.com Thu Feb 25 14:30:14 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 25 Feb 2016 20:30:14 +0100 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: <1456418666540-5736853.post@n5.nabble.com> <1456427841399-5736857.post@n5.nabble.com> Message-ID: 2016-02-25 20:26 GMT+01:00 Elvis Stansvik : > 2016-02-25 20:17 GMT+01:00 longbowzhang : > >> Hi, >> >> >>>Is this limitation of VTK present also in 7.0? >> No idea at all. >> But if I am not mistaken, I know there is an open source prototype called >> RegistrationShop (https://github.com/berendkleinhaneveld/Registrationshop >> ). >> It does volume rendering for two intersecting CT datasets which are to be >> interactively aligned/registered. >> Hope this can help you somehow. Otherwise, you have to customize the >> related >> vtk ray casting mappers. >> > > Thanks for the tip. Another approach I just thought of, if it's really not > possible to do rendering of intersecting volumes, is to first do isosurface > extraction, and let the user work with the extracted surfaces (which I > assume VTK can render intersected) while doing the manual alignment. That > should be possible, if not ideal. > I should clarify: Not ideal because sometimes it's the very fact that the user can see inside the structures inside the rock that makes it possible for him/her to piece the parts together. If the contact areas between the two pieces is very regular and offers little guidance on how they fit together, the density variations in the rock may be the best or even the only guidance. Elvis > > Elvis > > >> >> Longbow >> >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Requirements-for-multiple-volumes-in-one-render-window-tp5736847p5736857.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 guanw at rhpcs.mcmaster.ca Thu Feb 25 15:51:22 2016 From: guanw at rhpcs.mcmaster.ca (Weiguang guan) Date: Thu, 25 Feb 2016 15:51:22 -0500 Subject: [vtkusers] create and delete vtkActor and vtk3DWidget In-Reply-To: References: <1456095130621-5736691.post@n5.nabble.com> Message-ID: <56CF694A.4010101@rhpcs.mcmaster.ca> Hello, In my program (C++), a user can create/remove an object (cone, cylinder, ...) or a widget (vtkBoxWidget, ...). What's the right way of doing so without causing memory leaking or trashing? In "Examples/Tutorial/Step6/Cxx/Cone6.cxx", I see the last section of code doing clean-up at the end as follows: 170 cone->Delete(); 171 coneMapper->Delete(); 172 coneActor->Delete(); 173 callback->Delete(); 174 boxWidget->Delete(); 175 ren1->Delete(); 176 renWin->Delete(); 177 iren->Delete(); 178 style->Delete(); when it exits. Lines 170-172 won't delete coneActor because ren1 still use it 99 ren1->AddActor( coneActor ). This example works fine as it delete ren1, renWin, and iren as well at exit point. Shall I do ren1-RemoveActor(coneActor) in addtion to coneActor->Delete()? I just want to "undo" the creation as if cone had never been created. How about the widget boxWidget? It may be trickier. In addition to boxWidget->Delete(), do I need to do something like boxWidget->SetInteractor(NULL); boxWidget->UnRegister(iren); ? Weiguang From newcfd at yahoo.com Thu Feb 25 21:37:53 2016 From: newcfd at yahoo.com (cfd new) Date: Fri, 26 Feb 2016 02:37:53 +0000 (UTC) Subject: [vtkusers] Error warning when I install the VTK In-Reply-To: References: Message-ID: <564528810.2684571.1456454273652.JavaMail.yahoo@mail.yahoo.com> Gotcha.? cmake files in your example folder is for Linux. You simply add paths of VTK include and VTK library and library namesin your VS. You use VS to create a C++ project and load(add) your example files to the project. Then add all VTK settings.Note that create a qt project if you use qt(add qt plugin) at the same time. On Wednesday, February 24, 2016 10:07 AM, "Nie, Andrew (MU-Student)" wrote: #yiv3530367453 #yiv3530367453 -- P {margin-top:0;margin-bottom:0;}#yiv3530367453 Joe,? Yes, I got it. But the new problem I found is that, in my vtk build,?the D:\*\*\bin\lib\cmake\vtk-7.0\Modules folder?does not have FindVTK.cmake, does not have vtk-config.cmake, and does not have VTKConfig. cmake. Is this situation normal? I built vtk-7.0.0 with VS 2013. Thank you very much. Nie, Zhengwei AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri 573-239-6981znhc5 at mail.missouri.edu From: cfd new Sent: Wednesday, February 24, 2016 10:25 To: Nie, Andrew (MU-Student) Subject: Re: [vtkusers] Error warning when I install the VTK?I do not use it. After you find where the file is, go to your example folder and edit CMakeFile.txt? and look at the setting:?? something like: Set(VTK_DIR, ***** )? put the the folder name of the file you find at the place ******.Then do cmake. If you do not know VS well, try your examples on Linux. It is simpler. ?? Joe On Tuesday, February 23, 2016 7:50 PM, "Nie, Andrew (MU-Student)" wrote: Hi Joe,? Thank you very much. I found the?folder you said. But I cannot find where I can set VTK_DIR. I searched it on google. Most of them said that one can set??VTK_DIR on cmake-gui. But I cannot find it out.?My cmake-gui is shown below: where can I assign VTK_DIR to that folder? I really appreciate it. I hope I can use VTK as soon?as possible.? Nie, Zhengwei AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri 573-239-6981znhc5 at mail.missouri.edu From: cfd new Sent: Tuesday, February 23, 2016 20:27 To: Nie, Andrew (MU-Student) Subject: Re: [vtkusers] Error warning when I install the VTK?if your vtk build is in C:\*\*\VTK-7-releaseyou can find these files in?VTK-7-release\lib\cmake\vtk-7.0 now you can assign VTK_DIR to this folder good luck. On Tuesday, February 23, 2016 4:36 PM, "Nie, Andrew (MU-Student)" wrote: Hi Joe, Thanks for your replying. But could you tell me how I can set the VTK_DIR variable??I am a newbie of such stuffs absolutely. More details are much better for me. I really appreciate it! I hope I can use VTK as soon as possible. Thanks,? Nie, Zhengwei AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri 573-239-6981znhc5 at mail.missouri.edu From: cfd new Sent: Saturday, February 20, 2016 20:21 To: Nie, Andrew (MU-Student) Subject: Re: [vtkusers] Error warning when I install the VTK?after VTK is installed, you do not need cmake anymore. Simply use visual studio to build your project.cmake is only used to make a VS project for you to compile VTK. ?? Joe On Monday, February 15, 2016 10:57 PM, "Nie, Andrew (MU-Student)" wrote: Hi there,? This is Andrew Nie, a Ph.D student at University of Missouri.?I have to use the VTK to reconstruct the 3D model. Now I am installing the VTK. But there is an?error when I test?an example that the?website provides.? My OS is Windows 7 Ultimate, and VS version is VS 2015.?First of all, I downloaded the VTK 7.0.0 and CMake 3.5.0.?I used CMake?to build the binaries. It was no errors. After then I used VS 2015 to build them successfully. It seems like I have installed the VTK 7.0.0. Finally, when I compile examples, there was an error warning. It is shown in below:? CMake Error at CMakeLists.txt:6 (find_package): ? By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has ? asked CMake to find a package configuration file provided by "VTK", but ? CMake did not find one.? Could not find a package configuration file provided by "VTK" with any of ? the following names:? ? VTKConfig.cmake ? ? vtk-config.cmake? Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" ? to a directory containing one of the above files. ?If "VTK" provides a ? separate development package or SDK, be sure it has been installed. How can I deal with that??Thank you very much.? Nie, Zhengwei AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri 573-239-6981znhc5 at mail.missouri.edu _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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: pastedImage.png Type: image/png Size: 77199 bytes Desc: not available URL: From sotoglzz at gmail.com Fri Feb 26 02:27:08 2016 From: sotoglzz at gmail.com (Jose Soto) Date: Fri, 26 Feb 2016 01:27:08 -0600 Subject: [vtkusers] Export VRML to VTK ASCII format Message-ID: Dear VTK users. Hello, I'm using the kinect for scan vegetation and currently I'm working with kinfu_remake, however this code export 3D models to a VRML file for the Visualization Toolkit, I've never work with VTK and is very much easier work with a .ply format or .pcd. So, I'm trying to export this VRML file to a VTK ASCII format and then with PCL to a .ply. I'm follow the wiki examples but I'm getting errors during the convertion, this my code: int main(int argc, char *argv[ ]) { if(argc < 3) { std::cerr << "Required arguments: input.vrml output.vtk" << std::endl; return EXIT_FAILURE; } std::string inputFileName = argv[1]; std::string outputFileName = argv[2]; // Read the input vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(inputFileName.c_str()); reader->Update(); // Export file vtkSmartPointer writer = vtkSmartPointer::New(); writer->SetFileName(outputFileName.c_str()); writer->SetFileTypeToASCII(); writer->SetInputConnection(reader->GetOutputPort()); writer->Update(); return EXIT_SUCCESS; } So, if somebody can tell me what I'm doing wrong and give some tips or give me a hand, that would be great Thanks, in advance Jos? Soto -------------- next part -------------- An HTML attachment was scrubbed... URL: From rakesh.p at tataelxsi.co.in Fri Feb 26 05:49:32 2016 From: rakesh.p at tataelxsi.co.in (Rakesh Patil) Date: Fri, 26 Feb 2016 10:49:32 +0000 Subject: [vtkusers] Read OBJ files from QResource file Message-ID: Dear users, I am trying to display a 3D object from OBJ file. I make use of vtkOBJReader to read the file. This works fine if I give the file name with absolute path. I am using QT as a GUI, and all my images/icons are stored in a resource (QResource(*.qrc)) file. I am able to read the images and icon from the resource file. But I am not able to read the OBJ file. Here is the code snippet to read image file from qrc file QImage *image = new QImage(":/images/testImage.png"); On the similar lines, I want to get OBJ file, here is what I do: QFile file(":/images/testObj.obj"); vtkOBJReader *reader = vtkOBJReader::New(); reader->SetFileName(file.fileName().toStdString().c_str()); reader->Update(); While reader is calling Update function, it throws error message saying ":/images/testObj.obj" file not found. I would like to know, how to read an OBJ file from a resource file using vtkOBJReader. Thanks in advance Warm Regards Rakesh Patil Consultant Tata Elxsi Hoody, ITPB Road, Whitefield, Bangalore 560048 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rbirkus at gmail.com Fri Feb 26 07:10:39 2016 From: rbirkus at gmail.com (Birky22) Date: Fri, 26 Feb 2016 05:10:39 -0700 (MST) Subject: [vtkusers] Move camera in vtkGraphLayoutView Message-ID: <1456488639057-5736864.post@n5.nabble.com> Hello experts, I am a newbie in VTK. I was trying the CreateTree.cxx example where I am able to zoom in or zoom out the tree, select verteces and edges, but I would like to move the camera (left, right, up, down). Is it somehow possible? How can enable moving the camera for the vtkGraphLayoutView (exact code would be the best). I was searching on google and also in the vtk documentation, but without success. Thank you. Regards, Robert -- View this message in context: http://vtk.1045678.n5.nabble.com/Move-camera-in-vtkGraphLayoutView-tp5736864.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Fri Feb 26 08:43:42 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 26 Feb 2016 14:43:42 +0100 Subject: [vtkusers] Read OBJ files from QResource file In-Reply-To: References: Message-ID: Hi Rakesh, 2016-02-26 11:49 GMT+01:00 Rakesh Patil : > Dear users, > > I am trying to display a 3D object from OBJ file. I make use of > vtkOBJReader to read the file. This works fine if I give the file name with > absolute path. I am using QT as a GUI, and all my images/icons are stored > in a resource (QResource(*.qrc)) file. I am able to read the images and > icon from the resource file. But I am not able to read the OBJ file. Here > is the code snippet to read image file from qrc file > *QImage *image = new QImage(":/images/testImage.png");* > > On the similar lines, I want to get OBJ file, here is what I do: > *QFile file(":/images/testObj.obj");* > > *vtkOBJReader *reader = vtkOBJReader::New();* > *reader->SetFileName(file.fileName().toStdString().c_str());* > *reader->Update();* > > While reader is calling Update function, it throws error message saying > ":/images/testObj.obj" file not found. I would like to know, how to read an > OBJ file from a resource file using vtkOBJReader. > The Qt resource system (.qrc files) is a Qt specific technology. I'm pretty sure the VTK classes (such as vtkOBJReader) have no support for reading from .qrc files. Your attempt with using QFile above won't help, the call to fileName() will simply return ":/images/testObj.obj", which does not exists in the file system (only in the .qrc namespace, which is Qt only). You'll have to either save the file to a temporary location and open it from there, or write your own reader which can read from Qt resources. Hope that helps. Elvis > > Thanks in advance > > > Warm Regards > > Rakesh Patil > > > Consultant > > Tata Elxsi > > Hoody, ITPB Road, > > Whitefield, Bangalore 560048 > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 ken.martin at kitware.com Fri Feb 26 09:42:52 2016 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 26 Feb 2016 09:42:52 -0500 Subject: [vtkusers] Share graphical resources (e.g., VBOs) between multiple vtkRenderWindows In-Reply-To: <1456310225981-5736784.post@n5.nabble.com> References: <1456310225981-5736784.post@n5.nabble.com> Message-ID: We have talked about sharing buffer objects across contexts and there are definitely cases where it makes a lot of sense. We have not done anything on it yet (well maybe some CUDA/OpenGL stuff) but I have added it to my list of todos. Not sure when we will get to it but I know we want it. Thanks Ken On Wed, Feb 24, 2016 at 5:37 AM, longbowzhang wrote: > Dear vtkUsers, I have a question about sharing VBOs across multiple > vtkRenderWindows. The motivation for this is: The data I want to render is > quite large, and I plan to use multiple renderwindows (each has its own > OpenGL context) to show the several aspects of the data. I googled, and > found wglShareLists could be potential friend to achieve this? Does anyone > know how to use this function within VTK context? Or do you have a better > idea to achieve this? Thanks so much in advance. Best regards, Changgong > Zhang Ph.D student in Computer Graphics and Visualization section Dept. > Intelligent Systems EWI TU Delft > ------------------------------ > View this message in context: Share graphical resources (e.g., VBOs) > between multiple vtkRenderWindows > > Sent from the VTK - Users mailing list archive > at Nabble.com. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From longbowzhangchina at gmail.com Fri Feb 26 10:32:21 2016 From: longbowzhangchina at gmail.com (longbowzhang) Date: Fri, 26 Feb 2016 08:32:21 -0700 (MST) Subject: [vtkusers] Share graphical resources (e.g., VBOs) between multiple vtkRenderWindows In-Reply-To: References: <1456310225981-5736784.post@n5.nabble.com> Message-ID: <1456500741919-5736871.post@n5.nabble.com> Hello Ken, Thanks a lot for replying. I tried to communicate between vtkRenderWindows via low-level Windows-specific function wglShareLists function. The whole process is: Assume we have two vtkRenderWindow objects (rwA, rwB). 1: HGLRC glrcA = rwA->GetGenericDisplayId(); 2: and exactly after rwB is created, call glrcB = rwB->GetGenericDisplayId(); wglMakeCurrent(NULL, NULL); BOOL error = wglShareLists(glrcA , glrcB); ... It seems like in this way it can work. I can use VBOs, which was created under rendering context of renderWindow A, at rendering context renderWindowB. To be honest, I am not 100% sure about correctness. Based on your vtk developing experience, could you tell if what I've done make sense? Thanks again. Best regards, Changgong -- View this message in context: http://vtk.1045678.n5.nabble.com/Share-graphical-resources-e-g-VBOs-between-multiple-vtkRenderWindows-tp5736784p5736871.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Fri Feb 26 10:38:06 2016 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 26 Feb 2016 10:38:06 -0500 Subject: [vtkusers] Share graphical resources (e.g., VBOs) between multiple vtkRenderWindows In-Reply-To: <1456500741919-5736871.post@n5.nabble.com> References: <1456310225981-5736784.post@n5.nabble.com> <1456500741919-5736871.post@n5.nabble.com> Message-ID: My understanding is that what you are doing should work. After that you should be able to create VBOs in one context and access them from the other. But I've never tried it myself. Thanks Ken On Fri, Feb 26, 2016 at 10:32 AM, longbowzhang wrote: > Hello Ken, > Thanks a lot for replying. > I tried to communicate between vtkRenderWindows via low-level > Windows-specific function wglShareLists function. > > The whole process is: > Assume we have two vtkRenderWindow objects (rwA, rwB). > 1: > HGLRC glrcA = rwA->GetGenericDisplayId(); > 2: > and exactly after rwB is created, call > glrcB = rwB->GetGenericDisplayId(); > wglMakeCurrent(NULL, NULL); > BOOL error = wglShareLists(glrcA , glrcB); > ... > > It seems like in this way it can work. I can use VBOs, which was created > under rendering context of renderWindow A, at rendering context > renderWindowB. > > To be honest, I am not 100% sure about correctness. > Based on your vtk developing experience, could you tell if what I've done > make sense? > > Thanks again. > Best regards, > Changgong > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Share-graphical-resources-e-g-VBOs-between-multiple-vtkRenderWindows-tp5736784p5736871.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tluisrs at gmail.com Fri Feb 26 11:00:25 2016 From: tluisrs at gmail.com (Thales Luis Rodrigues Sabino) Date: Fri, 26 Feb 2016 13:00:25 -0300 Subject: [vtkusers] create and delete vtkActor and vtk3DWidget In-Reply-To: <56CF694A.4010101@rhpcs.mcmaster.ca> References: <1456095130621-5736691.post@n5.nabble.com> <56CF694A.4010101@rhpcs.mcmaster.ca> Message-ID: The way I'm doing things is just to remove the actors from the renderer. Since I'm sure my program doesn't hold any other reference, I do trust that the vtkSmartPointer is doing its job. On Thu, Feb 25, 2016 at 5:51 PM, Weiguang guan wrote: > Hello, > > In my program (C++), a user can create/remove an object (cone, cylinder, > ...) or a widget (vtkBoxWidget, ...). What's the right way of doing so > without causing memory leaking or trashing? > > In "Examples/Tutorial/Step6/Cxx/Cone6.cxx", I see the last section of code > doing clean-up at the end as follows: > 170 cone->Delete(); > 171 coneMapper->Delete(); > 172 coneActor->Delete(); > 173 callback->Delete(); > 174 boxWidget->Delete(); > 175 ren1->Delete(); > 176 renWin->Delete(); > 177 iren->Delete(); > 178 style->Delete(); > when it exits. > > Lines 170-172 won't delete coneActor because ren1 still use it 99 > ren1->AddActor( coneActor ). This example works fine as it delete ren1, > renWin, and iren as well at exit point. Shall I do > ren1-RemoveActor(coneActor) in addtion to coneActor->Delete()? I just want > to "undo" the creation as if cone had never been created. > > How about the widget boxWidget? It may be trickier. In addition to > boxWidget->Delete(), do I need to do something like > boxWidget->SetInteractor(NULL); > boxWidget->UnRegister(iren); > ? > > 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 > -- Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate -------------- next part -------------- An HTML attachment was scrubbed... URL: From zmanvortex at gmail.com Fri Feb 26 11:08:08 2016 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Fri, 26 Feb 2016 10:08:08 -0600 Subject: [vtkusers] Requirements for multiple volumes in one render window Message-ID: See this thread: http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-td5734685.html#a5734971 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Fri Feb 26 12:46:20 2016 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 26 Feb 2016 12:46:20 -0500 Subject: [vtkusers] EDL on VTK7 In-Reply-To: <1456334238168-5736817.post@n5.nabble.com> References: <1456255114593-5736766.post@n5.nabble.com> <1456330886064-5736809.post@n5.nabble.com> <1456334238168-5736817.post@n5.nabble.com> Message-ID: A quick update. I merged the fix for null bounds into master. So that part shoudl be fixed. Thanks Ken On Wed, Feb 24, 2016 at 12:17 PM, rich wrote: > That would be great Ken. But Even after my fix the EDL affects the slider > no > matter what passes I create. > But that will be for another day ;-). > > Kind Regards, > Richard. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736817.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Feb 26 12:51:25 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 26 Feb 2016 11:51:25 -0600 Subject: [vtkusers] Write Vector Field to VTK File In-Reply-To: References: Message-ID: Hi Ruben, You will need to create an array that holds the vector field, likely either a vtkFloatArray or vtkDoubleArray, to store your vector field. Set the number of tuples in the array to the number of elements in your vector. Then you will need to add this array to either the point or cell data in your data set as appropriate. Finally, just write out your data set with the writer. HTH, Cory On Tue, Feb 23, 2016 at 4:21 PM, Ruben van Staden wrote: > Hey all > > I'm pritty new to VTK. How do I add a vector field > to a .vts or .vtk file using the VTK library? > I did this example and simple want to add > a vector field to this file: > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/XMLStructuredGridWriter > > Thanx in advance > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgodshall at enthought.com Fri Feb 26 13:18:00 2016 From: cgodshall at enthought.com (Courtenay Godshall (Enthought)) Date: Fri, 26 Feb 2016 12:18:00 -0600 Subject: [vtkusers] ANN: SciPy (Scientific Python) 2016 Conference Call for Talk / Tutorial Proposals Open Until 3/25 Message-ID: <009201d170c2$06bd2340$143769c0$@enthought.com> **SciPy 2016 Conference (Scientific Computing with Python) Announcement** *Call for Proposals: Submit Your Tutorial and Talk Ideas by March 25, 2015 at http://scipy2016.scipy.org. SciPy 2016, the 15th annual Scientific Computing with Python conference, will be held July 11-17, 2016 in Austin, Texas. SciPy is a community dedicated to the advancement of scientific computing through open source Python software for mathematics, science, and engineering. The annual SciPy Conference brings together over 650 participants from industry, academia, and government to showcase their latest projects, learn from skilled users and developers, and collaborate on code development. The full program will consist of 2 days of tutorials (July 11-12), 3 days of talks (July 13-15), and 2 days of developer sprints (July 16-17). More info is available on the conference website at http://scipy2016.scipy.org (where you can sign up for the mailing list); or follow @scipyconf on Twitter. We hope you'll join us - early bird registration is open until May 22, 2016 at http://scipy2016.scipy.org/ehome/146062/332936/?&& We encourage you to submit tutorial or talk proposals in the categories below; please also share with others who you'd like to see participate! Submit via the conference website: http://scipy2016.scipy.org. ---------------------------------------------------------------------------- ------------------------- *SUBMIT A SCIPY 2016 TUTORIAL PROPOSAL - DUE MARCH 21, 2016* ---------------------------------------------------------------------------- ------------------------- Details and submission here: http://scipy2016.scipy.org/ehome/146062/332967/?&& These sessions provide extremely affordable access to expert training, and consistently receive fantastic feedback from participants. We're looking for submissions on topics from introductory to advanced - we'll have attendees across the gamut looking to learn. Whether you are a major contributor to a scientific Python library or an expert-level user, this is a great opportunityto share your knowledge and stipends are available. ---------------------------------------------------------------------------- --------------------------------- **SUBMIT A SCIPY 2016 TALK / POSTER PROPOSAL - DUE MARCH 25, 2016* ---------------------------------------------------------------------------- --------------------------------- Details and submission here: http://scipy2016.scipy.org/ehome/146062/332968/?&& SciPy 2016 will include 3 major topic tracks and 8 mini-symposia tracks. Major topic tracks include: - Scientific Computing in Python - Python in Data Science (Big data and not so big data) - High Performance Computing Mini-symposia will include the applications of Python in: - Earth and Space Science - Engineering - Medicine and Biology - Social Sciences - Special Purpose Databases - Case Studies in Industry - Education - Reproducibility If you have any questions or comments, feel free to contact us at: scipy-organizers at scipy.org ----------------------------------------------------------- **SCIPY 2016 REGISTRATION IS OPEN** ----------------------------------------------------------- Please register early. SciPy early bird registration until May 22, 2016! Register at http://scipy2016.scipy.org. Plus, enter our t-shirt design contest to win a free registration. (Send a vector art file to scipy at enthought.com by March 31 to enter). -------------- next part -------------- An HTML attachment was scrubbed... URL: From znhc5 at mail.missouri.edu Fri Feb 26 21:35:40 2016 From: znhc5 at mail.missouri.edu (Nie, Andrew (MU-Student)) Date: Sat, 27 Feb 2016 02:35:40 +0000 Subject: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH Message-ID: Hi there, I used CMake 3.5.0 and VS 2013 to build VTK 7.0.0. Why there is no FindVTK.cmake in C:\MyVTKProjects\VTK-7.0.0\VTK-bin\lib\cmake\vtk-7.0\Modules. All of examples of VTK cannot work because no FindVTK.cmake. CMake Error at CMakeLists.txt:6 (find_package): By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VTK", but CMake did not find one. Could not find a package configuration file provided by "VTK" with any of the following names: VTKConfig.cmake vtk-config.cmake Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" to a directory containing one of the above files. If "VTK" provides a separate development package or SDK, be sure it has been installed. How can I deal with this problem? Really appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Feb 26 22:20:45 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 26 Feb 2016 20:20:45 -0700 Subject: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH In-Reply-To: References: Message-ID: CMake needs VTK_DIR to be set (either as an environment variable, or in the CMakeCache.txt file). This will allow CMake to find VTKConfig.cmake. There is no FindVTK.cmake file. VTK_DIR=C:/MyVTKProject/VTK-7.0.0/VTK-bin Packages that have a XYZConfig.cmake file do not have a FindXYZ.cmake file. The CMake error message doesn't explain this very well, unfortunately. - David On Fri, Feb 26, 2016 at 7:35 PM, Nie, Andrew (MU-Student) < znhc5 at mail.missouri.edu> wrote: > Hi there, > > > I used CMake 3.5.0 and VS 2013 to build VTK 7.0.0. Why there is no > FindVTK.cmake > in C:\MyVTKProjects\VTK-7.0.0\VTK-bin\lib\cmake\vtk-7.0\Modules. All of > examples of VTK cannot work because no FindVTK.cmake. > > > CMake Error at CMakeLists.txt:6 (find_package): > By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has > asked CMake to find a package configuration file provided by "VTK", but > CMake did not find one. > Could not find a package configuration file provided by "VTK" with any of > the following names: > VTKConfig.cmake > vtk-config.cmake > Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set > "VTK_DIR" > to a directory containing one of the above files. If "VTK" provides a > separate development package or SDK, be sure it has been installed. > > How can I deal with this problem? Really appreciated. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Fri Feb 26 22:43:54 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Fri, 26 Feb 2016 22:43:54 -0500 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: Message-ID: Hi Donny, Is there a question here? Thanks On Fri, Feb 26, 2016 at 11:08 AM, Donny Zimmerman wrote: > See this thread: > > http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-td5734685.html#a5734971 > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 From emredeniz18 at hotmail.com Sat Feb 27 08:42:59 2016 From: emredeniz18 at hotmail.com (emredeniz) Date: Sat, 27 Feb 2016 06:42:59 -0700 (MST) Subject: [vtkusers] Histogram for dicom slice Message-ID: <1456580579846-5736883.post@n5.nabble.com> Hi all, I need to show the histogram of a dicom slice. I can show the histogram with vtkImageAccumulate but the problem is that when ? read the dicom slices wii-th vkdicomreader, ?mageaccumulate show the histogram for all slices, ? would like to show the histogram slice by slice. How to do this? any ideas? thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/Histogram-for-dicom-slice-tp5736883.html Sent from the VTK - Users mailing list archive at Nabble.com. From rickfrank at me.com Sat Feb 27 09:48:35 2016 From: rickfrank at me.com (Richard Frank) Date: Sat, 27 Feb 2016 09:48:35 -0500 Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 In-Reply-To: References: <0f4f8207-40f6-4c3d-9205-87f254c7479b@me.com> Message-ID: Hi, We found the shared mapper, which was being copied during an object assignment operator. Problem solved. Thanks for the pointers! ( no pun, well maybe a small pun, intended) Rick Sent from my iPad > On Feb 24, 2016, at 12:16 PM, Ken Martin wrote: > > Thanks that helps. I am starting to wonder if the issue is related to multiple render windows. With multiple windows it is important to not share actors or mappers in the new OpenGL backend. Each window needs its own mappers and actors. They can share the same data source/readers but not the opengl pieces like actors/mappers. Does the problem still exist if you only have one renderWindow? > > Thanks > Ken > >> On Wed, Feb 24, 2016 at 12:04 PM, Richard Frank wrote: >> I traced through the VTK code and then added a vtkOpenGLCheckErrorMacro : >> >> >> vtkOpenGLPolyDataMapper::UpdateShaders( >> vtkOpenGLHelper &cellBO, vtkRenderer* ren, vtkActor *actor) >> { >> vtkOpenGLRenderWindow *renWin = vtkOpenGLRenderWindow::SafeDownCast(ren->GetRenderWindow()); >> >> cellBO.VAO->Bind(); >> vtkOpenGLCheckErrorMacro("failed after cellBO.VAO->Bind()"); >> >> >> >> ERROR: In vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1390 >> vtkOpenGLPolyDataMapper (0000025BBD546CB0): failed after cellBO.VAO->Bind() 1 OpenGL errors detected >> 0 : (1282) Invalid operation >> >> and the gl log has >> >> GL ERROR - Function glBindVertexArray generated error GL_INVALID_OPERATION >> GL ERROR - Function glDrawRangeElements generated error GL_OUT_OF_MEMORY >> >> I'm guessing the glBindVertexArray is generating the error? Any ideas what might cause that? >> >> The 6.3.0 code seemed to not use any shaders when rendering my model - when I launched the Shader Editor using 6.3.0 it was blank. When I launched the 7.0.0 code there were a bunch of shaders being used..... >> >> >> Thanks >> >> Rick >> >> >>> On Feb 23, 2016, at 11:58 AM, Ken Martin wrote: >>> >> >>> Hmm something is really odd there. 16600 points/normals is trivially small. Even if you had 100 actors each with 16600 points that would be small. There are a couple ways to debug something like this. One is to go old school and sprinkle >>> >>> vtkOpenGLCheckErrorMacro("failed after something"); >>> >>> throughout the code to see where the issue is. Another option on windows is to use >>> >>> https://github.com/dtrebilco/glintercept >>> >>> which produces a log showing the specific call that caused the problem and when run in the debugger it will break on opengl errors. There are other tools with similar capabilities available as well. >>> >>> If you can boil it down to something smaller I could try it out, my dev systems are all Qt4 though... >>> >>> Ken >>> >>> >>> >>> >>> >>> >>>> On Tue, Feb 23, 2016 at 11:37 AM, Richard Frank wrote: >>>> There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 and there are four of these models - 1 in each renderview - (Sagital, Axial, Coronal, etc). Each model is composed of surfaces created with triangle strips. >>>> >>>> Each model contains a number of actors for each surface, (variable, depends on anatomy) put together into an assembly. >>>> >>>> It's a medical application. Works fine in VTK 6.3.0 >>>> >>>> NVidia quadro K5200 >>>> Graphics Card should be beefy enough. >>>> >>>> Rick >>>> >>>> >>>>> On Feb 22, 2016, at 09:44 PM, Ken Martin wrote: >>>>> >>>> >>>>> Out of memory is an unusual one. Maybe the mesh is too big to load all at once in the new backend. How big is the mesh you are trying to render (number of points, number of triangles) and does it use cell colors or cell normals? That would help me get a feel if it is really just exceeding what the card can handle. >>>>> >>>>> Thanks >>>>> Ken >>>>> >>>>> >>>>>> On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank wrote: >>>>>> Hi, >>>>>> >>>>>> I get the following errors ( and my fairly complex polygon mesh fails to render ) when using VTK 7.0. >>>>>> ERROR: In >>>>>> >>>>>> \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 >>>>>> vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 OpenGL errors detected >>>>>> 0 : (1282) Invalid operation >>>>>> >>>>>> >>>>>> >>>>>> ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 >>>>>> vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors detected >>>>>> 0 : (1285) Out of memory >>>>>> >>>>>> >>>>>> This is code is " works " fine in 6.3.0. >>>>>> >>>>>> I'm using an NVidia quadro K5200 with 8G. >>>>>> >>>>>> Any tips on how to debug this? >>>>>> Thanks >>>>>> >>>>>> Rick >>>>>> >>>>>> >>>>>> Sent from my iPad >>>>>> _______________________________________________ >>>>>> Powered by www.kitware.com >>>>>> >>>>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >>>>>> >>>>>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>>>>> >>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> >>>>> >>>>> -- >>>>> Ken Martin PhD >>>>> Chairman & CFO >>>>> Kitware Inc. >>>>> 28 Corporate Drive >>>>> Clifton Park NY 12065 >>>>> 518 371 3971 >>>>> >>>>> This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. >>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zmanvortex at gmail.com Sat Feb 27 10:53:47 2016 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Sat, 27 Feb 2016 09:53:47 -0600 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: Message-ID: <4B0C0F13-2E6D-4FB9-BDE0-90D1DA69F4DE@gmail.com> Sorry Aashish. I deleted The email from Elvis concerning multiple volume rendering and then remembered there was previous discussion about it. I couldn't reply to Elvis deleted email so I created a new one with the same subject line hoping it would show up as a reply. > On Feb 26, 2016, at 9:43 PM, Aashish Chaudhary wrote: > > Hi Donny, > > Is there a question here? > > Thanks > > >> On Fri, Feb 26, 2016 at 11:08 AM, Donny Zimmerman wrote: >> See this thread: >> >> http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-td5734685.html#a5734971 >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 From elvis.stansvik at orexplore.com Sat Feb 27 12:06:24 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Sat, 27 Feb 2016 18:06:24 +0100 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: Message-ID: 2016-02-25 17:10 GMT+01:00 Elvis Stansvik : > Hi, > > From searching around, I think I've gathered that to render multiple > volumes in a single window, each volume must have its own mapper and volume > property. They can't share mapper or property. > > My question is whether I must use separate renderers for each volume as > well, or if I can use the same renderer for them all? > > Also, I did read something in an old post about problems with rendering > multiple volumes that intersect (share a voxel). Is this still a problem? > I'm using VTK 6.2 and the vtkVolumeRayCastMapper. > > Thanks in advance! > Including Donny's answer here, to keep the thread intact: > See this thread: > > http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-td5734685.html#a5734971 Thanks, that clears some things up, and brings up some workarounds. That thread was from oct/nov last year, so I guess it is still the case that proper rendering of multiple volumes that share voxels in 3D space is not possible? (even with 7.0?). Elvis > Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Sat Feb 27 12:08:35 2016 From: ken.martin at kitware.com (Ken Martin) Date: Sat, 27 Feb 2016 12:08:35 -0500 Subject: [vtkusers] OpenGL errors upon move from 6.3.0 to 7.0.0 In-Reply-To: References: <0f4f8207-40f6-4c3d-9205-87f254c7479b@me.com> Message-ID: Awesome! I'll try to think about adding some sort of check for that condition. I can see it biting a number of folks. Thanks Ken On Sat, Feb 27, 2016 at 9:48 AM, Richard Frank wrote: > Hi, > > We found the shared mapper, which was being copied during an object > assignment operator. Problem solved. Thanks for the pointers! ( no pun, > well maybe a small pun, intended) > > Rick > > > > Sent from my iPad > > On Feb 24, 2016, at 12:16 PM, Ken Martin wrote: > > Thanks that helps. I am starting to wonder if the issue is related to > multiple render windows. With multiple windows it is important to not share > actors or mappers in the new OpenGL backend. Each window needs its own > mappers and actors. They can share the same data source/readers but not the > opengl pieces like actors/mappers. Does the problem still exist if you only > have one renderWindow? > > Thanks > Ken > > On Wed, Feb 24, 2016 at 12:04 PM, Richard Frank wrote: > >> I traced through the VTK code and then added a vtkOpenGLCheckErrorMacro : >> >> >> vtkOpenGLPolyDataMapper::UpdateShaders( >> vtkOpenGLHelper &cellBO, vtkRenderer* ren, vtkActor *actor) >> { >> vtkOpenGLRenderWindow *renWin = >> vtkOpenGLRenderWindow::SafeDownCast(ren->GetRenderWindow()); >> >> cellBO.VAO->Bind(); >> vtkOpenGLCheckErrorMacro("failed after cellBO.VAO->Bind()"); >> >> >> >> ERROR: In vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1390 >> vtkOpenGLPolyDataMapper (0000025BBD546CB0): failed after >> cellBO.VAO->Bind() 1 OpenGL errors detected >> 0 : (1282) Invalid operation >> >> and the gl log has >> >> GL ERROR - Function glBindVertexArray generated error GL_INVALID_OPERATION >> GL ERROR - Function glDrawRangeElements generated error GL_OUT_OF_MEMORY >> >> I'm guessing the glBindVertexArray is generating the error? Any ideas >> what might cause that? >> >> The 6.3.0 code seemed to not use any shaders when rendering my model - >> when I launched the Shader Editor using 6.3.0 it was blank. When I launched >> the 7.0.0 code there were a bunch of shaders being used..... >> >> >> Thanks >> >> Rick >> >> >> On Feb 23, 2016, at 11:58 AM, Ken Martin wrote: >> >> Hmm something is really odd there. 16600 points/normals is trivially >> small. Even if you had 100 actors each with 16600 points that would be >> small. There are a couple ways to debug something like this. One is to go >> old school and sprinkle >> >> vtkOpenGLCheckErrorMacro("failed after something"); >> >> throughout the code to see where the issue is. Another option on windows >> is to use >> >> https://github.com/dtrebilco/glintercept >> >> which produces a log showing the specific call that caused the problem >> and when run in the debugger it will break on opengl errors. There are >> other tools with similar capabilities available as well. >> >> If you can boil it down to something smaller I could try it out, my dev >> systems are all Qt4 though... >> >> Ken >> >> >> >> >> >> >> On Tue, Feb 23, 2016 at 11:37 AM, Richard Frank wrote: >> >>> There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 >>> and there are four of these models - 1 in each renderview - (Sagital, >>> Axial, Coronal, etc). Each model is composed of surfaces created with >>> triangle strips. >>> >>> Each model contains a number of actors for each surface, (variable, >>> depends on anatomy) put together into an assembly. >>> >>> It's a medical application. Works fine in VTK 6.3.0 >>> >>> NVidia quadro K5200 >>> Graphics Card should be beefy enough. >>> >>> Rick >>> >>> >>> On Feb 22, 2016, at 09:44 PM, Ken Martin wrote: >>> >>> Out of memory is an unusual one. Maybe the mesh is too big to load all >>> at once in the new backend. How big is the mesh you are trying to render >>> (number of points, number of triangles) and does it use cell colors or cell >>> normals? That would help me get a feel if it is really just exceeding what >>> the card can handle. >>> >>> Thanks >>> Ken >>> >>> >>> On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank wrote: >>> >>>> Hi, >>>> >>>> I get the following errors ( and my fairly complex polygon mesh fails >>>> to render ) when using VTK 7.0. >>>> ERROR: In >>>> >>>> \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 >>>> vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 >>>> OpenGL errors detected >>>> 0 : (1282) Invalid operation >>>> >>>> >>>> >>>> ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 >>>> vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors >>>> detected >>>> 0 : (1285) Out of memory >>>> >>>> >>>> This is code is " works " fine in 6.3.0. >>>> >>>> I'm using an NVidia quadro K5200 with 8G. >>>> >>>> Any tips on how to debug this? >>>> Thanks >>>> >>>> Rick >>>> >>>> >>>> Sent from my iPad >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> This communication, including all attachments, contains confidential and >>> legally privileged information, and it is intended only for the use of the >>> addressee. Access to this email by anyone else is unauthorized. If you are >>> not the intended recipient, any disclosure, copying, distribution or any >>> action taken in reliance on it is prohibited and may be unlawful. If you >>> received this communication in error please notify us immediately and >>> destroy the original message. Thank you. >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From znhc5 at mail.missouri.edu Sat Feb 27 14:20:53 2016 From: znhc5 at mail.missouri.edu (Nie, Andrew (MU-Student)) Date: Sat, 27 Feb 2016 19:20:53 +0000 Subject: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH In-Reply-To: References: , Message-ID: Dear David, I set VTK_DIR as you said. But it still cannot work. Please the screenshot below: [cid:30c615ee-5812-49fb-8285-fad626e80da7] [cid:3e2062c3-0215-4138-ac42-a5aee933cf6a] Nie, Zhengwei Andrew Ph.D Candidate Mechanical & Aerospace Engineering University of Missouri 573-239-6981 znhc5 at mail.missouri.edu ________________________________ From: David Gobbi Sent: Friday, February 26, 2016 21:20 To: Nie, Andrew (MU-Student) Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH CMake needs VTK_DIR to be set (either as an environment variable, or in the CMakeCache.txt file). This will allow CMake to find VTKConfig.cmake. There is no FindVTK.cmake file. VTK_DIR=C:/MyVTKProject/VTK-7.0.0/VTK-bin Packages that have a XYZConfig.cmake file do not have a FindXYZ.cmake file. The CMake error message doesn't explain this very well, unfortunately. - David On Fri, Feb 26, 2016 at 7:35 PM, Nie, Andrew (MU-Student) > wrote: Hi there, I used CMake 3.5.0 and VS 2013 to build VTK 7.0.0. Why there is no FindVTK.cmake in C:\MyVTKProjects\VTK-7.0.0\VTK-bin\lib\cmake\vtk-7.0\Modules. All of examples of VTK cannot work because no FindVTK.cmake. CMake Error at CMakeLists.txt:6 (find_package): By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VTK", but CMake did not find one. Could not find a package configuration file provided by "VTK" with any of the following names: VTKConfig.cmake vtk-config.cmake Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" to a directory containing one of the above files. If "VTK" provides a separate development package or SDK, be sure it has been installed. How can I deal with this problem? Really appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedImage.png Type: image/png Size: 87724 bytes Desc: pastedImage.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedImage.png Type: image/png Size: 116204 bytes Desc: pastedImage.png URL: From rickfrank at me.com Sat Feb 27 15:31:58 2016 From: rickfrank at me.com (Richard Frank) Date: Sat, 27 Feb 2016 20:31:58 +0000 (GMT) Subject: [vtkusers] =?utf-8?q?OpenGL_errors_upon_move_from_6=2E3=2E0_to_7?= =?utf-8?q?=2E0=2E0_-_not_out_of_the_woods_yet?= Message-ID: <7a8cb44f-5cc7-4870-8322-45f3c002649d@me.com> Hi, I'm having a different problem now related to rendering an image volume using vtkOpenGLGPUVolumeRayCastMapper. Tracing through the code I find that a shader fails to compile at line? 79 in vtkShader.cxx The failure is handled: // Handle shader compilation failures. if (!isCompiled) { GLint length(0); glGetShaderiv(handle, GL_INFO_LOG_LENGTH, &length); if (length > 1) { char *logMessage = new char[length]; glGetShaderInfoLog(handle, length, NULL, logMessage); this->Error = logMessage; delete[] logMessage; } glDeleteShader(handle); return false; and the log message is 0(169) : error C1008: undefined variable "g_aspect".0(170) : error C1008: undefined variable "g_aspect".0(171) : error C1008: undefined variable "g_aspect" later,?vtkOpenGLShaderCache::ReadyShaderProgram returns NULL: // return NULL if there is an issue vtkShaderProgram *vtkOpenGLShaderCache::ReadyShaderProgram( vtkShaderProgram *shader) { if (!shader) { return NULL; } // compile if needed if (!shader->GetCompiled() && !shader->CompileShader()) { return NULL; } the null pointer?gets passed up to vtkOpenGLGPUVolumeRayCastMapper at line 2512 and crashes because at line 2514 the null pointer is accessed. if (!this->Impl->ShaderProgram->GetCompiled()) { vtkErrorMacro("Shader failed to compile"); } I think the access of the pointer is a bug. ?However, could anything on my side result in the failure of the shader to compile? Thanks Rick Thanks Rick On Feb 27, 2016, at 12:08 PM, Ken Martin wrote: Awesome! I'll try to think about adding some sort of check for that condition. I can see it biting a number of folks. Thanks Ken On Sat, Feb 27, 2016 at 9:48 AM, Richard Frank wrote: Hi, We found the shared mapper, which was being copied during an object assignment operator. Problem solved. Thanks for the pointers! ( no pun, well maybe a small pun, intended) Rick Sent from my iPad On Feb 24, 2016, at 12:16 PM, Ken Martin wrote: Thanks that helps. I am starting to wonder if the issue is related to multiple render windows. With multiple windows it is important to not share actors or mappers in the new OpenGL backend. Each window needs its own mappers and actors. They can share the same data source/readers but not the opengl pieces like actors/mappers. Does the problem still exist if you only have one renderWindow? Thanks Ken On Wed, Feb 24, 2016 at 12:04 PM, Richard Frank wrote: I traced through the VTK code and then added a vtkOpenGLCheckErrorMacro : vtkOpenGLPolyDataMapper::UpdateShaders( vtkOpenGLHelper &cellBO, vtkRenderer* ren, vtkActor *actor) { vtkOpenGLRenderWindow *renWin = vtkOpenGLRenderWindow::SafeDownCast(ren->GetRenderWindow()); cellBO.VAO->Bind(); vtkOpenGLCheckErrorMacro("failed after cellBO.VAO->Bind()"); ERROR: In vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1390 vtkOpenGLPolyDataMapper (0000025BBD546CB0): failed after cellBO.VAO->Bind() 1 OpenGL errors detected 0 : (1282) Invalid operation and the gl log has GL ERROR - Function glBindVertexArray generated error GL_INVALID_OPERATION GL ERROR - Function glDrawRangeElements generated error GL_OUT_OF_MEMORY I'm guessing the glBindVertexArray is generating the error? Any ideas what might cause that? The 6.3.0 code seemed to not use any shaders when rendering my model - when I launched the Shader Editor using 6.3.0 it was blank. When I launched the 7.0.0 code there were ?a bunch of shaders being used..... Thanks Rick On Feb 23, 2016, at 11:58 AM, Ken Martin wrote: Hmm something is really odd there. ?16600 points/normals is trivially small. Even if you had 100 actors each with 16600 points that would be small. There are a couple ways to debug something like this. One is to go old school and sprinkle ? vtkOpenGLCheckErrorMacro("failed after something"); throughout the code to see where the issue is. Another option on windows is to use? https://github.com/dtrebilco/glintercept which produces a log showing the specific call that caused the problem and when run in the debugger it will break on opengl errors. There are other tools with similar capabilities available as well.? If you can boil it down to something smaller I could try it out, my dev systems are all Qt4 though... Ken On Tue, Feb 23, 2016 at 11:37 AM, Richard Frank wrote: There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 and?there are four of these models - 1 in each renderview - ?(Sagital, Axial, Coronal, etc). Each model is composed of surfaces created with triangle strips. Each model contains a number of actors for each surface, (variable, depends on anatomy) put together into an assembly. It's a medical application. Works fine in VTK 6.3.0? NVidia quadro K5200 Graphics Card should be beefy enough. Rick On Feb 22, 2016, at 09:44 PM, Ken Martin wrote: Out of memory is an unusual one. Maybe the mesh is too big to load all at once in the new backend. How big is the mesh you are trying to render (number of points, number of triangles) and does it use cell colors or cell normals?? That would help me get a feel if it is really just exceeding what the card can handle. Thanks Ken On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank wrote: Hi, I get the following errors ( and my fairly complex polygon mesh fails to render ) when using VTK 7.0. ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440 vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 OpenGL errors detected 0 : (1282) Invalid operation ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91 vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors detected 0 : (1285) Out of memory This is code is " works " fine in 6.3.0. I'm using an NVidia quadro K5200 with 8G. Any tips on how to debug this? Thanks Rick Sent from my iPad _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.? Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.? Thank you. -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.? Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.? Thank you. -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.? Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.? Thank you. -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.? Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From newcfd at yahoo.com Sat Feb 27 15:44:32 2016 From: newcfd at yahoo.com (cfd new) Date: Sat, 27 Feb 2016 20:44:32 +0000 (UTC) Subject: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH In-Reply-To: References: Message-ID: <1680170787.275345.1456605872549.JavaMail.yahoo@mail.yahoo.com> This is what I said. In your vtk build, these files are not there on Windows. On Linux they are available.On Windows, you do not need cmake for build the examples. I do not use cmake in my VS applications either. ?? Joe On Saturday, February 27, 2016 12:20 PM, "Nie, Andrew (MU-Student)" wrote: #yiv1315562441 #yiv1315562441 -- P {margin-top:0;margin-bottom:0;}#yiv1315562441 Dear David, I set VTK_DIR as you said. But it still cannot work. Please the screenshot below: Nie, Zhengwei AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri 573-239-6981znhc5 at mail.missouri.edu From: David Gobbi Sent: Friday, February 26, 2016 21:20 To: Nie, Andrew (MU-Student) Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH?CMake needs VTK_DIR to be set (either as an environment variable, or in the CMakeCache.txt file).? This will allow CMake to find VTKConfig.cmake.? There is no FindVTK.cmake file. VTK_DIR=C:/MyVTKProject/VTK-7.0.0/VTK-bin Packages that have a XYZConfig.cmake file do not have a FindXYZ.cmake file.? The CMake error message doesn't explain this very well, unfortunately. ?- David On Fri, Feb 26, 2016 at 7:35 PM, Nie, Andrew (MU-Student) wrote: Hi there, I used CMake 3.5.0 and VS 2013 to build VTK 7.0.0. Why there is no FindVTK.cmake in?C:\MyVTKProjects\VTK-7.0.0\VTK-bin\lib\cmake\vtk-7.0\Modules. All of examples of VTK cannot work because no FindVTK.cmake.? CMake Error at CMakeLists.txt:6 (find_package): ? By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has ? asked CMake to find a package configuration file provided by "VTK", but ? CMake did not find one.? Could not find a package configuration file provided by "VTK" with any of ? the following names:? ? VTKConfig.cmake ? ? vtk-config.cmake? Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" ? to a directory containing one of the above files.? If "VTK" provides a ? separate development package or SDK, be sure it has been installed.How can I deal with this problem? Really appreciated.? _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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: pastedImage.png Type: image/png Size: 116204 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedImage.png Type: image/png Size: 87724 bytes Desc: not available URL: From g.bogle at auckland.ac.nz Sat Feb 27 16:30:40 2016 From: g.bogle at auckland.ac.nz (Gib Bogle) Date: Sat, 27 Feb 2016 21:30:40 +0000 Subject: [vtkusers] [FORGED] Re: Why there is no FindVTK.cmake in CMAKE_MODULE_PATH In-Reply-To: <1680170787.275345.1456605872549.JavaMail.yahoo@mail.yahoo.com> References: , <1680170787.275345.1456605872549.JavaMail.yahoo@mail.yahoo.com> Message-ID: Hi Andrew, I use VTK and cmake on Windows. I have VTK installed thus: C:\VTK-VS10 C:\VTK-VS10\bin C:\VTK-VS10\include C:\VTK-VS10\lib and I have set VTK_DIR as an environment variable: C:\VTK-VS10 i.e. as the directory under which the bin, include and lib subdirectories are to be found. Setting VTK_DIR in CMakeLists.txt in my case would be SET(VTK_DIR C:/VTK-VS10) For my money, cmake is the best way to set up the VS project files. Cheers, Gib ________________________________ From: vtkusers [vtkusers-bounces at vtk.org] on behalf of cfd new via vtkusers [vtkusers at vtk.org] Sent: Sunday, 28 February 2016 9:44 a.m. To: Nie, Andrew (MU-Student); David Gobbi Cc: vtkusers at vtk.org Subject: [FORGED] Re: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH This is what I said. In your vtk build, these files are not there on Windows. On Linux they are available. On Windows, you do not need cmake for build the examples. I do not use cmake in my VS applications either. Joe On Saturday, February 27, 2016 12:20 PM, "Nie, Andrew (MU-Student)" wrote: Dear David, I set VTK_DIR as you said. But it still cannot work. Please the screenshot below: [cid:LpWkbdTe2Ysh8R37JZRR] [cid:SHWZUmizJ2wbgPOlj0og] Nie, Zhengwei Andrew Ph.D Candidate Mechanical & Aerospace Engineering University of Missouri 573-239-6981 znhc5 at mail.missouri.edu ________________________________ From: David Gobbi Sent: Friday, February 26, 2016 21:20 To: Nie, Andrew (MU-Student) Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH CMake needs VTK_DIR to be set (either as an environment variable, or in the CMakeCache.txt file). This will allow CMake to find VTKConfig.cmake. There is no FindVTK.cmake file. VTK_DIR=C:/MyVTKProject/VTK-7.0.0/VTK-bin Packages that have a XYZConfig.cmake file do not have a FindXYZ.cmake file. The CMake error message doesn't explain this very well, unfortunately. - David On Fri, Feb 26, 2016 at 7:35 PM, Nie, Andrew (MU-Student) > wrote: Hi there, I used CMake 3.5.0 and VS 2013 to build VTK 7.0.0. Why there is no FindVTK.cmake in C:\MyVTKProjects\VTK-7.0.0\VTK-bin\lib\cmake\vtk-7.0\Modules. All of examples of VTK cannot work because no FindVTK.cmake. CMake Error at CMakeLists.txt:6 (find_package): By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VTK", but CMake did not find one. Could not find a package configuration file provided by "VTK" with any of the following names: VTKConfig.cmake vtk-config.cmake Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" to a directory containing one of the above files. If "VTK" provides a separate development package or SDK, be sure it has been installed. How can I deal with this problem? Really appreciated. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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: pastedImage.png Type: image/png Size: 116204 bytes Desc: pastedImage.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedImage.png Type: image/png Size: 87724 bytes Desc: pastedImage.png URL: From ustcyyo at gmail.com Sat Feb 27 19:59:52 2016 From: ustcyyo at gmail.com (Yang Yang) Date: Sat, 27 Feb 2016 16:59:52 -0800 Subject: [vtkusers] How to generate the connectivity array? Message-ID: <67C0FCA9-170F-4D5F-9137-B0A8E404CCE2@gmail.com> Dear all, I recently want to display some 3d points data in Paraview. The data is created from code of previous group members. It is [x(1 by 10^6),y (1 by 10^6), z(1 by 10^6 ), some_physics_value(1 by 10^6 )]. The spacing between each points is not uniform. Somehow we loose the informations about the cells and connectivity array. So I cannot generate an unstructured grid VTK file based on my data. To write an unstructured grid VTK file, we need information of the cell connectivity array. But I don?t know how to generate it. Could you give me some advice? Thanks. Best wishes, Yang Yang From cory.quammen at kitware.com Sat Feb 27 22:34:46 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Sat, 27 Feb 2016 21:34:46 -0600 Subject: [vtkusers] How to generate the connectivity array? In-Reply-To: <67C0FCA9-170F-4D5F-9137-B0A8E404CCE2@gmail.com> References: <67C0FCA9-170F-4D5F-9137-B0A8E404CCE2@gmail.com> Message-ID: Hi Yang, VTK has a vtkDelaunay3D filter that may be of help: http://www.vtk.org/doc/nightly/html/classvtkDelaunay3D.html You can look at some examples of how to use it here: http://www.vtk.org/doc/nightly/html/c2_vtk_e_2.html#c2_vtk_e_vtkDelaunay3D Cory On Sat, Feb 27, 2016 at 6:59 PM, Yang Yang wrote: > Dear all, > > > I recently want to display some 3d points data in Paraview. The data is > created from code of previous group members. It is [x(1 by 10^6),y (1 by > 10^6), z(1 by 10^6 ), some_physics_value(1 by 10^6 )]. The spacing between > each points is not uniform. Somehow we loose the informations about the > cells and connectivity array. So I cannot generate an unstructured grid VTK > file based on my data. > > > To write an unstructured grid VTK file, we need information of the cell > connectivity array. But I don?t know how to generate it. > > > Could you give me some advice? > > > Thanks. > > > > Best wishes, > Yang Yang > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 tjlp at netease.com Sun Feb 28 03:17:45 2016 From: tjlp at netease.com (Liu_tj) Date: Sun, 28 Feb 2016 16:17:45 +0800 (CST) Subject: [vtkusers] System throw exceptions while interactoring window with mouse by vtkInteractorStyleImage using ActiViz.NET Message-ID: <16a0b896.2b.15326f46a1d.Coremail.tjlp@netease.com> Hi, VTK guys, At present I am ActiViz.NET 5.8.0 OpenSource Edition (x86) and Visual Studio 2015 C# to define a WPF user control for display DICOM series. I created event handlers for vtkInteractorStyleImage to handle mouse wheel forwared and mouse backward to switch the DICOM image. The application can display the image, when I forward or backward the mouse wheel, I get the system exception: Unhandled Exception: System.Exception: error: could not get registered type - mteIndex='4294967295' classNameKey='' I read the thread http://vtk.1045678.n5.nabble.com/ActiViz-NET-reports-unhandled-Exception-while-interacting-window-with-Mouse-td5720046.html, but I have no idea how to fix it. Any glue for this issue? Below is my user control class: public partial class Dicom2DViewer : UserControl { public Dicom2DViewer() { InitializeComponent(); m_renderwinctrl = this.FindName("renderCtrl") as RenderWindowControl; if (m_renderwinctrl != null) m_renderWindow = m_renderwinctrl.RenderWindow; //m_imagePlaneWidget = vtkImagePlaneWidget.New(); //m_imagePlaneWidgetFor3D = vtkImagePlaneWidget.New(); } public static readonly DependencyProperty DICOMDataProperty = DependencyProperty.Register("DICOMData", typeof(vtkAlgorithmOutput), typeof(Dicom2DViewer), new FrameworkPropertyMetadata(null, OnDICOMDataPropertyChanged)); public vtkAlgorithmOutput DICOMData { get { return (vtkAlgorithmOutput)GetValue(DICOMDataProperty); } set { SetValue(DICOMDataProperty, value); } } private static void OnDICOMDataPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { Dicom2DViewer dicomViewer = source as Dicom2DViewer; RenderWindowControl renderWindowCtrl = dicomViewer.renderCtrl; vtkAlgorithmOutput vtkDICOMOutput = (vtkAlgorithmOutput)e.NewValue; dicomViewer.Display(renderWindowCtrl.RenderWindow, vtkDICOMOutput); } private void Display(vtkRenderWindow aRenderWindow, vtkAlgorithmOutput aData) { if (aData == null) return; m_imageViewer = vtkImageViewer2.New(); m_imageViewer.SetInputConnection(aData); m_imageViewer.GetSliceRange(ref m_minSliceNumber, ref m_maxSliceNumber); //vtkInteractorStyleImage interactorStyle = vtkInteractorStyleImage.New(); //interactorStyle.MouseWheelForwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelForwardEvt); //interactorStyle.MouseWheelBackwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelBackwardEvt); //aRenderWindow.GetInteractor().SetInteractorStyle(interactorStyle); vtkInteractorStyleImage m_interactorStyle = vtkInteractorStyleImage.New(); m_interactorStyle.MouseWheelForwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelForwardEvt); m_interactorStyle.MouseWheelBackwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelBackwardEvt); aRenderWindow.GetInteractor().SetInteractorStyle(m_interactorStyle); aRenderWindow.GetRenderers().InitTraversal(); vtkRenderer ren; while ((ren = aRenderWindow.GetRenderers().GetNextItem()) != null) ren.SetBackground(0.0, 0.0, 0.0); m_imageViewer.SetRenderWindow(aRenderWindow); m_imageViewer.SetSlice(m_minSliceNumber); switch (m_sliceDirection) { case Direction.AXIAL: m_imageViewer.SetSliceOrientationToXY(); break; case Direction.CORONAL: m_imageViewer.SetSliceOrientationToYZ(); break; case Direction.SAGITTAL: m_imageViewer.SetSliceOrientationToXZ(); break; default: break; } m_imageViewer.Render(); } private void interactor_MouseWheelForwardEvt(vtkObject sender, vtkObjectEventArgs e) { MoveSlice(1); } void interactor_MouseWheelBackwardEvt(vtkObject sender, vtkObjectEventArgs e) { MoveSlice(0); } private void MoveSlice(int direction) //0: move backward; 1: move forward { if (direction == 0) { if (m_currentSlice > m_minSliceNumber) { m_currentSlice -= 1; m_imageViewer.SetSlice(m_currentSlice); m_imageViewer.Render(); } } else { if (m_currentSlice < m_maxSliceNumber) { m_currentSlice += 1; m_imageViewer.SetSlice(m_currentSlice); m_imageViewer.Render(); } } } public vtkRenderWindow GetRenderWindow() { return m_renderWindow; } public void AddRenderer(vtkRenderer renderer) { m_renderWindow.AddRenderer(renderer); } public void SetViewDirection(Direction direction) { m_sliceDirection = direction; } private RenderWindowControl m_renderwinctrl = null; private vtkRenderWindow m_renderWindow = null; private vtkImageViewer2 m_imageViewer = null; vtkInteractorStyleImage m_interactorStyle = null; private Direction m_sliceDirection; int m_currentSlice = 0; int m_minSliceNumber = 0; int m_maxSliceNumber = 0; } Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Sun Feb 28 09:27:57 2016 From: DLRdave at aol.com (David Cole) Date: Sun, 28 Feb 2016 09:27:57 -0500 Subject: [vtkusers] System throw exceptions while interactoring window with mouse by vtkInteractorStyleImage using ActiViz.NET In-Reply-To: <16a0b896.2b.15326f46a1d.Coremail.tjlp@netease.com> References: <16a0b896.2b.15326f46a1d.Coremail.tjlp@netease.com> Message-ID: <1BA4F4AB-9561-4638-AA18-206DB4D99785@aol.com> Rather than doing += new and directly adding an event handler, save a pointer to the return value of new in each case as a C# member variable (which has scope at least as long as you want to be receiving the events...), and then do += with that variable. That will keep a C# reference to it so it won't be garbage collected. That will help, although I didn't analyze your whole code snippet thoroughly, so there may be more to do after that. But that should be your first step. HTH, David C. > On Feb 28, 2016, at 3:17 AM, Liu_tj wrote: > > Hi, VTK guys, > > At present I am ActiViz.NET 5.8.0 OpenSource Edition (x86) and Visual Studio 2015 C# to define a WPF user control for display DICOM series. I created event handlers for vtkInteractorStyleImage to handle mouse wheel forwared and mouse backward to switch the DICOM image. The application can display the image, when I forward or backward the mouse wheel, I get the system exception: > > Unhandled Exception: System.Exception: error: could not get registered type - mteIndex='4294967295' classNameKey='' > > I read the thread http://vtk.1045678.n5.nabble.com/ActiViz-NET-reports-unhandled-Exception-while-interacting-window-with-Mouse-td5720046.html, but I have no idea how to fix it. > > Any glue for this issue? > > Below is my user control class: > > public partial class Dicom2DViewer : UserControl > { > public Dicom2DViewer() > { > InitializeComponent(); > m_renderwinctrl = this.FindName("renderCtrl") as RenderWindowControl; > if (m_renderwinctrl != null) > m_renderWindow = m_renderwinctrl.RenderWindow; > > //m_imagePlaneWidget = vtkImagePlaneWidget.New(); > //m_imagePlaneWidgetFor3D = vtkImagePlaneWidget.New(); > } > > public static readonly DependencyProperty DICOMDataProperty = > DependencyProperty.Register("DICOMData", typeof(vtkAlgorithmOutput), > typeof(Dicom2DViewer), new FrameworkPropertyMetadata(null, OnDICOMDataPropertyChanged)); > > public vtkAlgorithmOutput DICOMData > { > get { return (vtkAlgorithmOutput)GetValue(DICOMDataProperty); } > set { SetValue(DICOMDataProperty, value); } > } > > private static void OnDICOMDataPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) > { > Dicom2DViewer dicomViewer = source as Dicom2DViewer; > RenderWindowControl renderWindowCtrl = dicomViewer.renderCtrl; > vtkAlgorithmOutput vtkDICOMOutput = (vtkAlgorithmOutput)e.NewValue; > > dicomViewer.Display(renderWindowCtrl.RenderWindow, vtkDICOMOutput); > } > > private void Display(vtkRenderWindow aRenderWindow, vtkAlgorithmOutput aData) > { > if (aData == null) > return; > > m_imageViewer = vtkImageViewer2.New(); > m_imageViewer.SetInputConnection(aData); > m_imageViewer.GetSliceRange(ref m_minSliceNumber, ref m_maxSliceNumber); > > //vtkInteractorStyleImage interactorStyle = vtkInteractorStyleImage.New(); > //interactorStyle.MouseWheelForwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelForwardEvt); > //interactorStyle.MouseWheelBackwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelBackwardEvt); > > //aRenderWindow.GetInteractor().SetInteractorStyle(interactorStyle); > vtkInteractorStyleImage m_interactorStyle = vtkInteractorStyleImage.New(); > m_interactorStyle.MouseWheelForwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelForwardEvt); > m_interactorStyle.MouseWheelBackwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelBackwardEvt); > > aRenderWindow.GetInteractor().SetInteractorStyle(m_interactorStyle); > aRenderWindow.GetRenderers().InitTraversal(); > > vtkRenderer ren; > while ((ren = aRenderWindow.GetRenderers().GetNextItem()) != null) > ren.SetBackground(0.0, 0.0, 0.0); > > m_imageViewer.SetRenderWindow(aRenderWindow); > m_imageViewer.SetSlice(m_minSliceNumber); > > switch (m_sliceDirection) > { > case Direction.AXIAL: > m_imageViewer.SetSliceOrientationToXY(); > break; > case Direction.CORONAL: > m_imageViewer.SetSliceOrientationToYZ(); > break; > case Direction.SAGITTAL: > m_imageViewer.SetSliceOrientationToXZ(); > break; > default: > break; > } > > m_imageViewer.Render(); > } > > private void interactor_MouseWheelForwardEvt(vtkObject sender, vtkObjectEventArgs e) > { > MoveSlice(1); > } > > void interactor_MouseWheelBackwardEvt(vtkObject sender, vtkObjectEventArgs e) > { > MoveSlice(0); > } > > private void MoveSlice(int direction) //0: move backward; 1: move forward > { > if (direction == 0) > { > if (m_currentSlice > m_minSliceNumber) > { > m_currentSlice -= 1; > m_imageViewer.SetSlice(m_currentSlice); > m_imageViewer.Render(); > } > } > else > { > if (m_currentSlice < m_maxSliceNumber) > { > m_currentSlice += 1; > m_imageViewer.SetSlice(m_currentSlice); > m_imageViewer.Render(); > } > } > } > > public vtkRenderWindow GetRenderWindow() > { > return m_renderWindow; > } > > public void AddRenderer(vtkRenderer renderer) > { > m_renderWindow.AddRenderer(renderer); > } > > public void SetViewDirection(Direction direction) > { > m_sliceDirection = direction; > } > > private RenderWindowControl m_renderwinctrl = null; > private vtkRenderWindow m_renderWindow = null; > private vtkImageViewer2 m_imageViewer = null; > vtkInteractorStyleImage m_interactorStyle = null; > private Direction m_sliceDirection; > > int m_currentSlice = 0; > int m_minSliceNumber = 0; > int m_maxSliceNumber = 0; > } > > Thanks > Liu Peng > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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 tjlp at netease.com Sun Feb 28 10:06:09 2016 From: tjlp at netease.com (Liu_tj) Date: Sun, 28 Feb 2016 23:06:09 +0800 (CST) Subject: [vtkusers] System throw exceptions while interactoring window with mouse by vtkInteractorStyleImage using ActiViz.NET In-Reply-To: <1BA4F4AB-9561-4638-AA18-206DB4D99785@aol.com> References: <16a0b896.2b.15326f46a1d.Coremail.tjlp@netease.com> <1BA4F4AB-9561-4638-AA18-206DB4D99785@aol.com> Message-ID: <28cfffe5.47.153286a526e.Coremail.tjlp@netease.com> Hi, David, It seems that this issue is solved by adding a private member in the class for the vtkInteractorStyleImage instead of the event handler. BR, ?2016-02-28?"David Cole" ??? -----????----- ???:"David Cole" ????:2016?02?28? ??? ???:"Liu_tj" ??:"vtkusers" ??:Re: [vtkusers] System throw exceptions while interactoring window with mouse by vtkInteractorStyleImage using ActiViz.NET Rather than doing += new and directly adding an event handler, save a pointer to the return value of new in each case as a C# member variable (which has scope at least as long as you want to be receiving the events...), and then do += with that variable. That will keep a C# reference to it so it won't be garbage collected. That will help, although I didn't analyze your whole code snippet thoroughly, so there may be more to do after that. But that should be your first step. HTH, David C. > On Feb 28, 2016, at 3:17 AM, Liu_tj wrote: > > Hi, VTK guys, > > At present I am ActiViz.NET 5.8.0 OpenSource Edition (x86) and Visual Studio 2015 C# to define a WPF user control for display DICOM series. I created event handlers for vtkInteractorStyleImage to handle mouse wheel forwared and mouse backward to switch the DICOM image. The application can display the image, when I forward or backward the mouse wheel, I get the system exception: > > Unhandled Exception: System.Exception: error: could not get registered type - mteIndex='4294967295' classNameKey='' > > I read the thread http://vtk.1045678.n5.nabble.com/ActiViz-NET-reports-unhandled-Exception-while-interacting-window-with-Mouse-td5720046.html, but I have no idea how to fix it. > > Any glue for this issue? > > Below is my user control class: > > public partial class Dicom2DViewer : UserControl > { > public Dicom2DViewer() > { > InitializeComponent(); > m_renderwinctrl = this.FindName("renderCtrl") as RenderWindowControl; > if (m_renderwinctrl != null) > m_renderWindow = m_renderwinctrl.RenderWindow; > > //m_imagePlaneWidget = vtkImagePlaneWidget.New(); > //m_imagePlaneWidgetFor3D = vtkImagePlaneWidget.New(); > } > > public static readonly DependencyProperty DICOMDataProperty = > DependencyProperty.Register("DICOMData", typeof(vtkAlgorithmOutput), > typeof(Dicom2DViewer), new FrameworkPropertyMetadata(null, OnDICOMDataPropertyChanged)); > > public vtkAlgorithmOutput DICOMData > { > get { return (vtkAlgorithmOutput)GetValue(DICOMDataProperty); } > set { SetValue(DICOMDataProperty, value); } > } > > private static void OnDICOMDataPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) > { > Dicom2DViewer dicomViewer = source as Dicom2DViewer; > RenderWindowControl renderWindowCtrl = dicomViewer.renderCtrl; > vtkAlgorithmOutput vtkDICOMOutput = (vtkAlgorithmOutput)e.NewValue; > > dicomViewer.Display(renderWindowCtrl.RenderWindow, vtkDICOMOutput); > } > > private void Display(vtkRenderWindow aRenderWindow, vtkAlgorithmOutput aData) > { > if (aData == null) > return; > > m_imageViewer = vtkImageViewer2.New(); > m_imageViewer.SetInputConnection(aData); > m_imageViewer.GetSliceRange(ref m_minSliceNumber, ref m_maxSliceNumber); > > //vtkInteractorStyleImage interactorStyle = vtkInteractorStyleImage.New(); > //interactorStyle.MouseWheelForwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelForwardEvt); > //interactorStyle.MouseWheelBackwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelBackwardEvt); > > //aRenderWindow.GetInteractor().SetInteractorStyle(interactorStyle); > vtkInteractorStyleImage m_interactorStyle = vtkInteractorStyleImage.New(); > m_interactorStyle.MouseWheelForwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelForwardEvt); > m_interactorStyle.MouseWheelBackwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelBackwardEvt); > > aRenderWindow.GetInteractor().SetInteractorStyle(m_interactorStyle); > aRenderWindow.GetRenderers().InitTraversal(); > > vtkRenderer ren; > while ((ren = aRenderWindow.GetRenderers().GetNextItem()) != null) > ren.SetBackground(0.0, 0.0, 0.0); > > m_imageViewer.SetRenderWindow(aRenderWindow); > m_imageViewer.SetSlice(m_minSliceNumber); > > switch (m_sliceDirection) > { > case Direction.AXIAL: > m_imageViewer.SetSliceOrientationToXY(); > break; > case Direction.CORONAL: > m_imageViewer.SetSliceOrientationToYZ(); > break; > case Direction.SAGITTAL: > m_imageViewer.SetSliceOrientationToXZ(); > break; > default: > break; > } > > m_imageViewer.Render(); > } > > private void interactor_MouseWheelForwardEvt(vtkObject sender, vtkObjectEventArgs e) > { > MoveSlice(1); > } > > void interactor_MouseWheelBackwardEvt(vtkObject sender, vtkObjectEventArgs e) > { > MoveSlice(0); > } > > private void MoveSlice(int direction) //0: move backward; 1: move forward > { > if (direction == 0) > { > if (m_currentSlice > m_minSliceNumber) > { > m_currentSlice -= 1; > m_imageViewer.SetSlice(m_currentSlice); > m_imageViewer.Render(); > } > } > else > { > if (m_currentSlice < m_maxSliceNumber) > { > m_currentSlice += 1; > m_imageViewer.SetSlice(m_currentSlice); > m_imageViewer.Render(); > } > } > } > > public vtkRenderWindow GetRenderWindow() > { > return m_renderWindow; > } > > public void AddRenderer(vtkRenderer renderer) > { > m_renderWindow.AddRenderer(renderer); > } > > public void SetViewDirection(Direction direction) > { > m_sliceDirection = direction; > } > > private RenderWindowControl m_renderwinctrl = null; > private vtkRenderWindow m_renderWindow = null; > private vtkImageViewer2 m_imageViewer = null; > vtkInteractorStyleImage m_interactorStyle = null; > private Direction m_sliceDirection; > > int m_currentSlice = 0; > int m_minSliceNumber = 0; > int m_maxSliceNumber = 0; > } > > Thanks > Liu Peng > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Sun Feb 28 12:02:01 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Sun, 28 Feb 2016 10:02:01 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> Message-ID: <1456678921588-5736899.post@n5.nabble.com> Hi David, I just thought you might be able to help me again. I use the GetMapperPosition() to get the position of my finger on the slice. It gives me a x and y position comprised between -0.5 and 0.5. >From there I would like to get the position of this point in the dataset which I slice from. So basically I have a volume with 3 dimensions, and the slice on which my finger is on is just a slice of width 1 of this dataset. At anytime I know the UserMatrix of my volume and of my plane. I also know at which depth is my plane. What I initially tried is: userMatrixVolume.inverse() * matrixPlane * positionOfFinger The position of my finger is initialised thanks to GetMapperPosition() + the depth of the plane, the matrixPlane by the current matrix of the plane and the userMatrixVolume.inverse() is simply the inverse of my userMatrix of the volume. I thought this would work right away because " userMatrixVolume.inverse() * matrixPlane" is what I use to create a matrix to use in SetResliceAxes() to update my slice when the volume or the plane is moved. However, it does not seem to in that case. Would you know what I may be doing wrong here? That's more of a math issue I guess in my case than a general VTK issue though. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736899.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sun Feb 28 12:12:35 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 28 Feb 2016 10:12:35 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456678921588-5736899.post@n5.nabble.com> References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> <1456678921588-5736899.post@n5.nabble.com> Message-ID: Hi Lonni, Give me a quick overview of your pipeline, because currently your explanation doesn't quite make sense. For example, you say that GetMapperPosition() returns x,y but it should return x,y,z. What mapper are you using? I don't yet have enough info to give you an answer. - David On Sun, Feb 28, 2016 at 10:02 AM, Lonni Besan?on wrote: > Hi David, > > I just thought you might be able to help me again. > I use the GetMapperPosition() to get the position of my finger on the > slice. > It gives me a x and y position comprised between -0.5 and 0.5. > From there I would like to get the position of this point in the dataset > which I slice from. > So basically I have a volume with 3 dimensions, and the slice on which my > finger is on is just a slice of width 1 of this dataset. At anytime I know > the UserMatrix of my volume and of my plane. I also know at which depth is > my plane. > > What I initially tried is: userMatrixVolume.inverse() * matrixPlane * > positionOfFinger > > The position of my finger is initialised thanks to GetMapperPosition() + > the > depth of the plane, the matrixPlane by the current matrix of the plane and > the userMatrixVolume.inverse() is simply the inverse of my userMatrix of > the > volume. > > I thought this would work right away because " userMatrixVolume.inverse() * > matrixPlane" is what I use to create a matrix to use in SetResliceAxes() to > update my slice when the volume or the plane is moved. > However, it does not seem to in that case. > > Would you know what I may be doing wrong here? > That's more of a math issue I guess in my case than a general VTK issue > though. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Sun Feb 28 12:28:33 2016 From: tjlp at netease.com (Liu_tj) Date: Mon, 29 Feb 2016 01:28:33 +0800 (CST) Subject: [vtkusers] why the calling of vtkImagePlaneWidget::SetEnabled(1) and vtkImagePlaneWidget::On() get memory access violation? Message-ID: <55063746.1.15328ecb148.Coremail.tjlp@netease.com> Hi, VTK guys, I try to use vtkImagePlaneWidget to display DICOM series. I have a function below, and the call of vtkImagePlaneWidget::SetEnabled(1) and vtkImagePlaneWidget::On() always throw memory access violation, what steps am I missing? private void PrepareImagePlaneWidget(vtkImagePlaneWidget planeWidget, vtkImageData data, vtkRenderWindowInteractor interactor, vtkCellPicker picker, int[] dimensions, Direction direction ) { planeWidget.DebugOn(); planeWidget.SetInteractor(interactor); planeWidget.SetPicker(picker); planeWidget.RestrictPlaneToVolumeOn(); planeWidget.DisplayTextOn(); planeWidget.TextureInterpolateOff(); planeWidget.SetResliceInterpolateToLinear(); //#if VTK_MAJOR_VERSION_5 // planeWidget.SetInput //#else planeWidget.SetInput(data); //#endif switch ( direction ) { case Direction.AXIAL: planeWidget.SetKeyPressActivationValue((sbyte)'z'); planeWidget.SetPlaneOrientationToZAxes(); planeWidget.GetPlaneProperty().SetColor(0.0, 0.0, 1.0); break; case Direction.CORONAL: planeWidget.SetKeyPressActivationValue((sbyte)'x'); planeWidget.SetPlaneOrientationToXAxes(); planeWidget.GetPlaneProperty().SetColor(1.0, 0.0, 0.0); break; case Direction.SAGITTAL: planeWidget.SetKeyPressActivationValue((sbyte)'y'); planeWidget.SetPlaneOrientationToYAxes(); planeWidget.GetPlaneProperty().SetColor(0.0, 1.0, 0.0); break; } planeWidget.SetSliceIndex(dimensions[(int)direction] / 2); planeWidget.GetTexturePlaneProperty().SetOpacity(1); planeWidget.SetEnabled(1); planeWidget.On(); planeWidget.InteractionOn(); } Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Sun Feb 28 12:30:42 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Sun, 28 Feb 2016 10:30:42 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> <1456678921588-5736899.post@n5.nabble.com> Message-ID: <1456680642640-5736902.post@n5.nabble.com> Yes right sorry about the bad explanations. So I have a Volume and a slicing plane. Both of them can move and rotate in the 3D space. The slicing plane gives me a rendering the a slice of the volume according to their positions. I actually always display this slice at the same position and orientation on screen. That's why I do not use the z-value returned by GetMapperPosition() which is always 0 in my case. Indeed, in my case the mapper is the mapper of my slicing plane, which is always displayed on my screen as parallel to the screen. My screen only shows the slice of the volumetric data. The volume itself is not pickable. However I would like to know where, knowing where the slicing plane and the volume are, exactly where in the volumetric data is located the point under my finger. For instance, imagine that my dataset is in its original position (no rotation or translation applied to it), and my plane is parallel to my screen at a given depth d in my volume. Let's say pos is the vector representing the position of my finger given by GetMapperPosition(). By simply multiplying pos.x and pos.y by the dimensions of my data along the x and y axis, and then setting pos.z with the depth d, I can locate my finger's position in my volumetric data. However this is not so simple if we consider a case where both the plane and the volume have moved. Hope it's not too complicated and it got clearer now. Thanks again for the help -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736902.html Sent from the VTK - Users mailing list archive at Nabble.com. From billyaraujo at gmail.com Sun Feb 28 12:32:42 2016 From: billyaraujo at gmail.com (Billy Araujo) Date: Sun, 28 Feb 2016 17:32:42 +0000 Subject: [vtkusers] How to invert / reverse vtkbandedpolydatacontourfilter? Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Sun Feb 28 12:38:17 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 28 Feb 2016 10:38:17 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456680642640-5736902.post@n5.nabble.com> References: <1456251062543-5736763.post@n5.nabble.com> <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> <1456678921588-5736899.post@n5.nabble.com> <1456680642640-5736902.post@n5.nabble.com> Message-ID: On Sun, Feb 28, 2016 at 10:30 AM, Lonni Besan?on wrote: > Yes right sorry about the bad explanations. > > So I have a Volume and a slicing plane. I need to know what classes you are using. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Sun Feb 28 12:41:35 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Sun, 28 Feb 2016 10:41:35 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> <1456678921588-5736899.post@n5.nabble.com> <1456680642640-5736902.post@n5.nabble.com> Message-ID: <1456681295751-5736905.post@n5.nabble.com> I'm using - vtkVolume with a vtkOpenGLGPUVolumeRayCastMapper mapper - vtkImageReslice for the slicing plane -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736905.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sun Feb 28 12:52:28 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 28 Feb 2016 10:52:28 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456681295751-5736905.post@n5.nabble.com> References: <1456267228838-5736773.post@n5.nabble.com> <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> <1456678921588-5736899.post@n5.nabble.com> <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> Message-ID: On Sun, Feb 28, 2016 at 10:41 AM, Lonni Besan?on wrote: > I'm using > - vtkVolume with a vtkOpenGLGPUVolumeRayCastMapper mapper > - vtkImageReslice for the slicing plane > So if you are picking the vtkVolume, i.e. if picker->GetVolume() returns a vtkVolume, then GetMapperCoords() returns the actual data coords in the volume. For the slice, I still don't have enough info to give you an answer. You need to give me the names of all the VTK classes in your pipeline and tell me specifically how they are connected. You still haven't even told me what mapper you are using to display the slice. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Sun Feb 28 13:00:28 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Sun, 28 Feb 2016 11:00:28 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> <1456678921588-5736899.post@n5.nabble.com> <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> Message-ID: <1456682428207-5736907.post@n5.nabble.com> Problem is I am not picking the volume, I am picking only the plane. The volume is not rendered at the time when the picking happens, only the plane is rendered and represents a slice of the volume. Thus, the volume and the plane are connected, whenever one of them is moved or rotated, I compute the reslice axes necessary from the matrices of the plane actor and the volume and use SetResliceAxes(); with the computed and appropriate matrix. So the plane is a vtkActor with a vtkPolyDataMapper. The mapper uses a vtkPlaneSource as an input connection. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736907.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sun Feb 28 13:37:30 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 28 Feb 2016 11:37:30 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456682428207-5736907.post@n5.nabble.com> References: <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> <1456678921588-5736899.post@n5.nabble.com> <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> Message-ID: On Sun, Feb 28, 2016 at 11:00 AM, Lonni Besan?on wrote: > Problem is I am not picking the volume, I am picking only the plane. The > volume is not rendered at the time when the picking happens, only the plane > is rendered and represents a slice of the volume. > > Thus, the volume and the plane are connected, whenever one of them is moved > or rotated, I compute the reslice axes necessary from the matrices of the > plane actor and the volume and use SetResliceAxes(); > with the computed and appropriate matrix. > > So the plane is a vtkActor with a vtkPolyDataMapper. The mapper uses a > vtkPlaneSource as an input connection. > So you are connecting the output of vtkImageReslice to the vtkActor via a vtkTexture? As I told you, I need all the specifics of your pipeline. Don't make me guess. Also, why not just use the vtkImageResliceMapper? - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Sun Feb 28 14:07:49 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 28 Feb 2016 12:07:49 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456270034902-5736775.post@n5.nabble.com> <1456274255575-5736777.post@n5.nabble.com> <1456678921588-5736899.post@n5.nabble.com> <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> Message-ID: If you are using a vtkTexture and if you want to pick the image data for the texture, you can tell the picker to do this: picker->PickTextureDataOn(); Then GetMapperPosition() will return the data coords for the image that is the input to the vtkTexture. If the input to vtkTexture is the output from vtkImageReslice, and if you want to convert the position into the data coords for the input of vtkImageReslice, then use the ResliceAxes matrix to do this: volumePosition = axes->MultiplyPoint(mapperPosition); Do not invert the matrix. Also, do not use the actor's matrix. You would need the actor's matrix if you were getting world coords, but you aren't. Your getting mapper coords (which are data coords). If you're using the vtkImageReslice ResliceTransform, then you'll have to use it to transform the position. Hope this answers your original question. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From dakota_63124 at yahoo.com Sun Feb 28 15:08:17 2016 From: dakota_63124 at yahoo.com (kent myers) Date: Sun, 28 Feb 2016 13:08:17 -0700 (MST) Subject: [vtkusers] Changing color of point after selection Message-ID: <1456690097983-5736910.post@n5.nabble.com> Hi, I have found several posts from the last few years asking basically the same question that I am asking, and they have not gotten an answer. My application is Java, but I think the technique should be the same as for C++. I have created an actor with a vtkPolyDataMapper using output from a vtkVertexGlyphFilter using vtkPolyData of vtkPoints. I have created a vtkUnsignedCharArray with an entry for each point. Each entry in the array is a "short" color triplet of rgb values in range 0 to 255. The vtkUnsignedCharArray is assigned to the vtkPolyData object using GetPointData().SetScalars(). This renders exactly as expected. Now I want to change the color of one of the rendered points based on selection of the point. I am presently using the SetTuple3 to update the selected entry in the vtkUnsignedCharArray with a new color triplet. This has no effect. I have also tried calling the polyData.GetPointData().SetScalars() with the updated vtkUnsignedCharArray. No effect. I have verified that the array of color triplets is updated by calling GetTuple3. I also tried using double values for the colors using a range of 0 to 255 and also 0 to 1, and tried assigning a color lookup table to the mapper and SetColorModeToMapScalars instead of SetColorModeToDefault. This did not work either. Can anyone give me a suggestion about how to change the color of a point that already has a color assigned? It doesn't seem like this should be so hard to do. Thanks, Kent -- View this message in context: http://vtk.1045678.n5.nabble.com/Changing-color-of-point-after-selection-tp5736910.html Sent from the VTK - Users mailing list archive at Nabble.com. From tomoko at fc.ritsumei.ac.jp Sun Feb 28 16:26:23 2016 From: tomoko at fc.ritsumei.ac.jp (Tomoko Tateyama) Date: Mon, 29 Feb 2016 06:26:23 +0900 Subject: [vtkusers] error when install vtk6.0 on windows 7 In-Reply-To: <1404401913.669373635@f195.i.mail.ru> References: <1404401913.669373635@f195.i.mail.ru> Message-ID: Dear all. I tried to build and install vtk 6.3 on Win7 with VS2013. Unfortunately, I haven't enough result to run install vtk ver 6.3 (Release mode) on my PC. Above problem, I've already built and installed Ver.6.3 on Debug mode, then I succeed to build and install. However, on Release mode, I failed to build and install the system. Also the following e-mail, I guess the same problem. However, I'm sorry about I could not found the answer. Could you give us some advice? _------------------------------------------------------------------------------------------------------------------------------ http://public.kitware.com/pipermail/vtkusers/2014-July/084440.html 2014-07-04 0:38 GMT+09:00 ????? ?????????? : > Hallo, > > i try to build and install vtk 6.0 on windows with Microsoft Visual Studio > 2010, > but i get the following error: > > 1> CMake Error at Utilities/KWSys/vtksys/cmake_install.cmake:220 (file): > 1> file INSTALL cannot find > "C:/MyProjects/vtk-bin/bin/Debug/vtksys-6.0.dll". > 1> Call Stack (most recent call first): > 1> Utilities/KWSys/cmake_install.cmake:36 (include) > 1> cmake_install.cmake:94 (include) > 1> > 1> > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/System.h > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/Configure.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/String.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/hashtable.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/hash_fun.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/hash_map.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/hash_set.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/auto_ptr.hxx > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: Der Befehl "setlocal > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P > cmake_install.cmake > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: if %errorlevel% neq 0 goto :cmEnd > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: :cmEnd > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: :cmErrorLevel > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: exit /b %1 > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: :cmDone > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: if %errorlevel% neq 0 goto :VCEnd > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: :VCEnd" wurde mit dem Code 1 beendet. > > > What i do wrong??? > > Thanks all > > Roman > > > > -- > ????? ?????????? _------------------------------------------------------------------------------------------------------------------------------ Best regards Tomoko . 2014-07-04 0:38 GMT+09:00 ????? ?????????? : > Hallo, > > i try to build and install vtk 6.0 on windows with Microsoft Visual Studio > 2010, > but i get the following error: > > 1> CMake Error at Utilities/KWSys/vtksys/cmake_install.cmake:220 (file): > 1> file INSTALL cannot find > "C:/MyProjects/vtk-bin/bin/Debug/vtksys-6.0.dll". > 1> Call Stack (most recent call first): > 1> Utilities/KWSys/cmake_install.cmake:36 (include) > 1> cmake_install.cmake:94 (include) > 1> > 1> > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/System.h > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/Configure.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/String.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/hashtable.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/hash_fun.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/hash_map.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/hash_set.hxx > 1> -- Up-to-date: C:/Program Files/VTK/include/vtk-6.0/vtksys/auto_ptr.hxx > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: Der Befehl "setlocal > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P > cmake_install.cmake > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: if %errorlevel% neq 0 goto :cmEnd > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: :cmEnd > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: :cmErrorLevel > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: exit /b %1 > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: :cmDone > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: if %errorlevel% neq 0 goto :VCEnd > 1>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error > MSB3073: :VCEnd" wurde mit dem Code 1 beendet. > > > What i do wrong??? > > Thanks all > > Roman > > > > -- > ????? ?????????? > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From emredeniz18 at hotmail.com Mon Feb 29 03:00:20 2016 From: emredeniz18 at hotmail.com (emredeniz) Date: Mon, 29 Feb 2016 01:00:20 -0700 (MST) Subject: [vtkusers] error when install vtk6.0 on windows 7 In-Reply-To: <1404401913.669373635@f195.i.mail.ru> References: <1404401913.669373635@f195.i.mail.ru> Message-ID: <1456732820172-5736913.post@n5.nabble.com> You can install vtk6.3 on windows 7 with visual studio 2012 from this link http://blog.chasank.com/building-qt-vtk-and-itk-on-windows-7-x64/ -- View this message in context: http://vtk.1045678.n5.nabble.com/error-when-install-vtk6-0-on-windows-7-tp5727738p5736913.html Sent from the VTK - Users mailing list archive at Nabble.com. From hgbk2008 at gmail.com Mon Feb 29 05:12:57 2016 From: hgbk2008 at gmail.com (Hoang Giang Bui) Date: Mon, 29 Feb 2016 11:12:57 +0100 Subject: [vtkusers] error loading libvtkRenderingPythonTkWidgets.so Message-ID: Hello I got an error when I tried to run a VTK python example with Tkinter enabled I built VTK6.2.0 with Tcl/Tk 8.6.4 and Python 2.7.6. Executing the example python {VTK_DIR}/Examples/Modelling/Python/SpherePuzzle.py gives the error Traceback (most recent call last): File "SpherePuzzle.py", line 57, in rw = vtkTkRenderWindowInteractor(f1, width=400, height=400, rw=renWin) File "/home/hbui/opt/vtk-6.2.0/lib/python2.7/site-packages/vtk/tk/vtkTkRenderWindowInteractor.py", line 48, in __init__ vtkLoadPythonTkWidgets(master.tk) File "/home/hbui/opt/vtk-6.2.0/lib/python2.7/site-packages/vtk/tk/vtkLoadPythonTkWidgets.py", line 81, in vtkLoadPythonTkWidgets interp.call('load', filename, pkgname) _tkinter.TclError: couldn't load file "libvtkRenderingPythonTkWidgets-6.2.so": libvtkRenderingPythonTkWidgets-6.2.so: cannot open shared object file: No such file or directory The library libvtkRenderingPythonTkWidgets-6.2.so is not installed to the target folder. I have checked that this library exist in VTK-5.10.1 but somehow it is removed in VTK-6.2.0 I looked into the vtkLoadPythonTkWidgets.py and I found out that the module name is required to load still has the same name modname = 'vtkRenderingPythonTkWidgets' Which means it is not updated or some configure flags need to be set to enable libvtkRenderingPythonTkWidgets Any comments? Giang -------------- next part -------------- An HTML attachment was scrubbed... URL: From orodenberg at gmail.com Mon Feb 29 05:14:16 2016 From: orodenberg at gmail.com (Olivier Rodenberg) Date: Mon, 29 Feb 2016 11:14:16 +0100 Subject: [vtkusers] Assigning color to a point cloud Message-ID: <56d419fd.c13fc20a.046a.65a9@mx.google.com> Hi all, I am trying to load a point cloud in paraview using a programmable source. I am able to load the points but when assigning a color to each point I get the error message: ?AttributeError: 'vtkCommonCorePython.vtkUnsignedCharArray' object has no attribute 'InsertNExtTuple3'. Next is the code I am using: from paraview import vtk import psycopg2 def connectDBMS(): conn = psycopg2.connect("host='localhost' dbname='thesis' user='postgres' password='ww'") cur = conn.cursor() cur.execute('SELECT x , y , z , red, green, blue FROM pointcloud;') return cur.fetchall() def DBMSToGeom(pointcloud): # Create the points points = vtk.vtkPoints() # create output pdo = self.GetPolyDataOutput() # create color attribute colors = vtk.vtkUnsignedCharArray(); colors.SetNumberOfComponents(3); colors.SetName("Color"); # loop over the octants in the database for x , y , z , red, green, blue in pointcloud: # create the points points.InsertNextPoint(float(x), float(y), float(z)) # create the colors colors.InsertNExtTuple3(int(red), int(green), int(blue)); pdo.SetPoints(points) pdo.GetPointData().AddArray(colors) del colors if (__name__ == "__main__"): DBMSToGeom(connectDBMS()) Does anyone know what I am doing wrong? Thanks in advance, Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From tluisrs at gmail.com Mon Feb 29 07:23:00 2016 From: tluisrs at gmail.com (Thales Luis Rodrigues Sabino) Date: Mon, 29 Feb 2016 09:23:00 -0300 Subject: [vtkusers] Assigning color to a point cloud In-Reply-To: <56d419fd.c13fc20a.046a.65a9@mx.google.com> References: <56d419fd.c13fc20a.046a.65a9@mx.google.com> Message-ID: Try colors.InsertNextTupleValue([red, green, blue]) I'm not sure about the python signature of the method, I load colors in my c++ code like this: auto colors = vtkSmartPointer::New(); colors->SetNumberOfComponents(3); for(vtkIdType iIndex = 0; iIndex < numberOfPoints; ++iIndex) { unsigned char color[3] = { m_CloudData->at(iIndex).r, m_CloudData->at(iIndex).g, m_CloudData->at(iIndex).b }; colors->InsertNextTupleValue(color); } auto polyData = vtkSmartPointer::New(); polyData->SetPoints(points); polyData->SetVerts(vertices); polyData->GetCellData()->SetScalars(colors); On Mon, Feb 29, 2016 at 7:14 AM, Olivier Rodenberg wrote: > Hi all, > > > > I am trying to load a point cloud in paraview using a programmable source. > I am able to load the points but when assigning a color to each point I get > the error message: ?AttributeError: > 'vtkCommonCorePython.vtkUnsignedCharArray' object has no attribute > 'InsertNExtTuple3'. Next is the code I am using: > > > > *from paraview import vtk* > > *import psycopg2* > > > > *def connectDBMS():* > > * conn = psycopg2.connect("host='localhost' dbname='thesis' > user='postgres' password='ww'")* > > * cur = conn.cursor() * > > * cur.execute('SELECT x , y , z , red, green, blue FROM > pointcloud;') * > > * return cur.fetchall()* > > > > *def DBMSToGeom(pointcloud): * > > * # Create the points* > > * points = vtk.vtkPoints()* > > > > * # create output* > > * pdo = self.GetPolyDataOutput()* > > > > * # create color attribute* > > * colors = vtk.vtkUnsignedCharArray();* > > * colors.SetNumberOfComponents(3);* > > * colors.SetName("Color");* > > > > * # loop over the octants in the database* > > * for x , y , z , red, green, blue in pointcloud:* > > > > * # create the points* > > * points.InsertNextPoint(float(x), float(y), float(z))* > > > > * # create the colors* > > * colors.InsertNExtTuple3(int(red), int(green), int(blue));* > > > > * pdo.SetPoints(points)* > > * pdo.GetPointData().AddArray(colors)* > > * del colors* > > > > *if (__name__ == "__main__"):* > > * DBMSToGeom(connectDBMS())* > > > > Does anyone know what I am doing wrong? > > > > Thanks in advance, > > > > Olivier > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Feb 29 07:47:05 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 29 Feb 2016 06:47:05 -0600 Subject: [vtkusers] Assigning color to a point cloud In-Reply-To: <56d419fd.c13fc20a.046a.65a9@mx.google.com> References: <56d419fd.c13fc20a.046a.65a9@mx.google.com> Message-ID: It's a simple capitalization error InsertNExtTuple3 -> InsertNextTuple3 Notice the upper case 'E' in your code. The Python wrappers have improved in recent years, so you should be able to call *colors.InsertNExtTuple3([int(red), int(green), int(blue)]);* Note the arguments have been placed in a list here. I think a tuple should work, too. HTH, Cory On Mon, Feb 29, 2016 at 4:14 AM, Olivier Rodenberg wrote: > Hi all, > > > > I am trying to load a point cloud in paraview using a programmable source. > I am able to load the points but when assigning a color to each point I get > the error message: ?AttributeError: > 'vtkCommonCorePython.vtkUnsignedCharArray' object has no attribute > 'InsertNExtTuple3'. Next is the code I am using: > > > > *from paraview import vtk* > > *import psycopg2* > > > > *def connectDBMS():* > > * conn = psycopg2.connect("host='localhost' dbname='thesis' > user='postgres' password='ww'")* > > * cur = conn.cursor() * > > * cur.execute('SELECT x , y , z , red, green, blue FROM > pointcloud;') * > > * return cur.fetchall()* > > > > *def DBMSToGeom(pointcloud): * > > * # Create the points* > > * points = vtk.vtkPoints()* > > > > * # create output* > > * pdo = self.GetPolyDataOutput()* > > > > * # create color attribute* > > * colors = vtk.vtkUnsignedCharArray();* > > * colors.SetNumberOfComponents(3);* > > * colors.SetName("Color");* > > > > * # loop over the octants in the database* > > * for x , y , z , red, green, blue in pointcloud:* > > > > * # create the points* > > * points.InsertNextPoint(float(x), float(y), float(z))* > > > > * # create the colors* > > * colors.InsertNExtTuple3(int(red), int(green), int(blue));* > > > > * pdo.SetPoints(points)* > > * pdo.GetPointData().AddArray(colors)* > > * del colors* > > > > *if (__name__ == "__main__"):* > > * DBMSToGeom(connectDBMS())* > > > > Does anyone know what I am doing wrong? > > > > Thanks in advance, > > > > Olivier > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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.gobbi at gmail.com Mon Feb 29 08:15:58 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Feb 2016 06:15:58 -0700 Subject: [vtkusers] error loading libvtkRenderingPythonTkWidgets.so In-Reply-To: References: Message-ID: Hi Giang, The option VTK_Group_Tk:BOOL=ON must be set for Tkinter support. - David On Mon, Feb 29, 2016 at 3:12 AM, Hoang Giang Bui wrote: > Hello > > I got an error when I tried to run a VTK python example with Tkinter > enabled > > I built VTK6.2.0 with Tcl/Tk 8.6.4 and Python 2.7.6. Executing the example > python {VTK_DIR}/Examples/Modelling/Python/SpherePuzzle.py > > gives the error > > Traceback (most recent call last): > File "SpherePuzzle.py", line 57, in > rw = vtkTkRenderWindowInteractor(f1, width=400, height=400, rw=renWin) > File > "/home/hbui/opt/vtk-6.2.0/lib/python2.7/site-packages/vtk/tk/vtkTkRenderWindowInteractor.py", > line 48, in __init__ > vtkLoadPythonTkWidgets(master.tk) > File > "/home/hbui/opt/vtk-6.2.0/lib/python2.7/site-packages/vtk/tk/vtkLoadPythonTkWidgets.py", > line 81, in vtkLoadPythonTkWidgets > interp.call('load', filename, pkgname) > _tkinter.TclError: couldn't load file " > libvtkRenderingPythonTkWidgets-6.2.so": > libvtkRenderingPythonTkWidgets-6.2.so: cannot open shared object file: No > such file or directory > > The library libvtkRenderingPythonTkWidgets-6.2.so is not installed to the > target folder. I have checked that this library exist in VTK-5.10.1 but > somehow it is removed in VTK-6.2.0 > > I looked into the vtkLoadPythonTkWidgets.py and I found out that the > module name is required to load still has the same name > modname = 'vtkRenderingPythonTkWidgets' > > Which means it is not updated or some configure flags need to be set to > enable libvtkRenderingPythonTkWidgets > > Any comments? > > Giang > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Feb 29 08:27:50 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 29 Feb 2016 08:27:50 -0500 Subject: [vtkusers] Changing color of point after selection In-Reply-To: <1456690097983-5736910.post@n5.nabble.com> References: <1456690097983-5736910.post@n5.nabble.com> Message-ID: I suspect what is happening is that SetTuple is fast but does not mark the data as modified. So the rendering engine has no idea you changed the data. Try calling Modified() on the Scalars after changing its data. That "should" work, if it doesn't you can try calling Modified() on the PointData(). Thanks Ken On Sun, Feb 28, 2016 at 3:08 PM, kent myers via vtkusers wrote: > Hi, > > I have found several posts from the last few years asking basically the > same > question that I am asking, and they have not gotten an answer. My > application is Java, but I think the technique should be the same as for > C++. > > I have created an actor with a vtkPolyDataMapper using output from a > vtkVertexGlyphFilter using vtkPolyData of vtkPoints. I have created a > vtkUnsignedCharArray with an entry for each point. Each entry in the array > is a "short" color triplet of rgb values in range 0 to 255. The > vtkUnsignedCharArray is assigned to the vtkPolyData object using > GetPointData().SetScalars(). This renders exactly as expected. > > Now I want to change the color of one of the rendered points based on > selection of the point. I am presently using the SetTuple3 to update the > selected entry in the vtkUnsignedCharArray with a new color triplet. This > has no effect. I have also tried calling the > polyData.GetPointData().SetScalars() with the updated vtkUnsignedCharArray. > No effect. > > I have verified that the array of color triplets is updated by calling > GetTuple3. > > I also tried using double values for the colors using a range of 0 to 255 > and also 0 to 1, and tried assigning a color lookup table to the mapper and > SetColorModeToMapScalars instead of SetColorModeToDefault. This did not > work > either. > > Can anyone give me a suggestion about how to change the color of a point > that already has a color assigned? It doesn't seem like this should be so > hard to do. > > Thanks, > Kent > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Changing-color-of-point-after-selection-tp5736910.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Feb 29 09:18:27 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 07:18:27 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456678921588-5736899.post@n5.nabble.com> <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> Message-ID: <1456755507036-5736920.post@n5.nabble.com> Hello David, Sorry I omitted this detail. Indeed that's exactly what I'm doing. Here the complete pipeline: /vtkSmartPointer ima = reslice->GetOutput(); vtkSmartPointer data = ima->GetPointData()->GetScalars(); vtkSmartPointer texture = vtkSmartPointer::New(); texture->SetInputData(ima); texture->InterpolateOn(); .... vtkSmartPointer planeMapper = vtkSmartPointer::New(); planeMapper->SetInputConnection(plane->GetOutputPort()); ... vtkSmartPointer planeActor = vtkSmartPointer::New(); planeActor->SetTexture(texture); planeActor->SetMapper(planeMapper);/ I tried your solution with the following code: /if(picker->GetActor() == foo->planeActor){ picker->PickTextureDataOn(); double position[3]; picker->GetMapperPosition(position); LOGW("Point position Initial = %f ::: %f ::: %f",position[0],position[1],position[2]); double point[4]; point[0] = position[0] ; point[1] = position[1] ; point[2] = position[2] ; point[3] = 1 ; resliceAxes->MultiplyPoint(point, point); // My reslice axes matrix LOGW("Position in Volume = %f ;; %f ;; %f ;; %f",point[0],point[1],point[2],point[3] ); } / Yet the values I get are weird. I tried having the plane parallel to the screen at a given depth d, and the volume actor not moved at all. The first log is ok though, it gives me values such as: 0.125766 ::: 0.176741 ::: 0.000000 However the values I get after the multiplication do not seem so good, no matter where I trick to "click" I always get X value between 51.5 and 52.5 ( X = 51.5 is the middle of the x dimension of my data ), and Y values between 47 and 48 (similarly 47 is the middle of the y dimension of my data). The depth value I get however correspond very well to the position of my plane, so I'm guessing this value is good. Am I doing something wrong? Or maybe the pipeline description I gave you was not enough. Thanks again for your help -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736920.html Sent from the VTK - Users mailing list archive at Nabble.com. From longbowzhangchina at gmail.com Mon Feb 29 09:42:40 2016 From: longbowzhangchina at gmail.com (longbowzhang) Date: Mon, 29 Feb 2016 07:42:40 -0700 (MST) Subject: [vtkusers] Histogram for dicom slice In-Reply-To: <1456580579846-5736883.post@n5.nabble.com> References: <1456580579846-5736883.post@n5.nabble.com> Message-ID: <1456756960692-5736921.post@n5.nabble.com> Hi, The first thing come to my mind is vtkExtractVOI. If you can extract the slice(s) your are interested, then just build the histogram. -- View this message in context: http://vtk.1045678.n5.nabble.com/Histogram-for-dicom-slice-tp5736883p5736921.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Mon Feb 29 09:52:54 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Feb 2016 07:52:54 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456755507036-5736920.post@n5.nabble.com> References: <1456678921588-5736899.post@n5.nabble.com> <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> Message-ID: The PickTextureDataOn() method must be called before the Pick. On Mon, Feb 29, 2016 at 7:18 AM, Lonni Besan?on wrote: > Hello David, > > Sorry I omitted this detail. Indeed that's exactly what I'm doing. > Here the complete pipeline: > /vtkSmartPointer ima = reslice->GetOutput(); > vtkSmartPointer data = ima->GetPointData()->GetScalars(); > vtkSmartPointer texture = vtkSmartPointer::New(); > texture->SetInputData(ima); > texture->InterpolateOn(); > .... > vtkSmartPointer planeMapper = > vtkSmartPointer::New(); > planeMapper->SetInputConnection(plane->GetOutputPort()); > ... > vtkSmartPointer planeActor = vtkSmartPointer::New(); > planeActor->SetTexture(texture); > planeActor->SetMapper(planeMapper);/ > > I tried your solution with the following code: > /if(picker->GetActor() == foo->planeActor){ > picker->PickTextureDataOn(); > double position[3]; > picker->GetMapperPosition(position); > LOGW("Point position Initial = %f ::: %f ::: > %f",position[0],position[1],position[2]); > double point[4]; > point[0] = position[0] ; > point[1] = position[1] ; > point[2] = position[2] ; > point[3] = 1 ; > resliceAxes->MultiplyPoint(point, point); // My reslice axes matrix > LOGW("Position in Volume = %f ;; %f ;; %f ;; > %f",point[0],point[1],point[2],point[3] ); > > } > / > > Yet the values I get are weird. I tried having the plane parallel to the > screen at a given depth d, and the volume actor not moved at all. The first > log is ok though, it gives me values such as: > 0.125766 ::: 0.176741 ::: 0.000000 > However the values I get after the multiplication do not seem so good, no > matter where I trick to "click" I always get X value between 51.5 and 52.5 > ( > X = 51.5 is the middle of the x dimension of my data ), and Y values > between > 47 and 48 (similarly 47 is the middle of the y dimension of my data). > The depth value I get however correspond very well to the position of my > plane, so I'm guessing this value is good. > > Am I doing something wrong? Or maybe the pipeline description I gave you > was > not enough. > > Thanks again for your help > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736920.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 lonni.besancon at gmail.com Mon Feb 29 09:59:04 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 07:59:04 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> Message-ID: <1456757944070-5736923.post@n5.nabble.com> Alright changed it but I get similar values. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736923.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Mon Feb 29 10:32:11 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 29 Feb 2016 10:32:11 -0500 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: Message-ID: Hi Elvis, On Sat, Feb 27, 2016 at 12:06 PM, Elvis Stansvik wrote: > 2016-02-25 17:10 GMT+01:00 Elvis Stansvik : >> >> Hi, >> >> From searching around, I think I've gathered that to render multiple >> volumes in a single window, each volume must have its own mapper and volume >> property. They can't share mapper or property. >> >> My question is whether I must use separate renderers for each volume as >> well, or if I can use the same renderer for them all? >> >> Also, I did read something in an old post about problems with rendering >> multiple volumes that intersect (share a voxel). Is this still a problem? >> I'm using VTK 6.2 and the vtkVolumeRayCastMapper. >> >> Thanks in advance! > > > Including Donny's answer here, to keep the thread intact: > >> See this thread: >> >> >> http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-td5734685.html#a5734971 > > Thanks, that clears some things up, and brings up some workarounds. That > thread was from oct/nov last year, so I guess it is still the case that > proper rendering of multiple volumes that share voxels in 3D space is not > possible? (even with 7.0?). It depends what you define proper. If you have two volumes and they share the exact same space, you can combine them into one volume. When they share the same space but do not overlap that's when things get tricky since then the outcome depends on how do you want to handle this disparity. There could be some other ways such as you combine the volume into one. At the rendering level it could get tricky. What exactly you are trying to do. - Aashish > > Elvis > >> >> Elvis > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html From aashish.chaudhary at kitware.com Mon Feb 29 10:44:21 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 29 Feb 2016 10:44:21 -0500 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: <4B0C0F13-2E6D-4FB9-BDE0-90D1DA69F4DE@gmail.com> References: <4B0C0F13-2E6D-4FB9-BDE0-90D1DA69F4DE@gmail.com> Message-ID: No problem -:) just wanted to make sure I understand what's going on. Thanks, On Sat, Feb 27, 2016 at 10:53 AM, Donny Zimmerman wrote: > Sorry Aashish. I deleted The email from Elvis concerning multiple volume rendering and then remembered there was previous discussion about it. I couldn't reply to Elvis deleted email so I created a new one with the same subject line hoping it would show up as a reply. > > > >> On Feb 26, 2016, at 9:43 PM, Aashish Chaudhary wrote: >> >> Hi Donny, >> >> Is there a question here? >> >> Thanks >> >> >>> On Fri, Feb 26, 2016 at 11:08 AM, Donny Zimmerman wrote: >>> See this thread: >>> >>> http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-td5734685.html#a5734971 >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> -- >> | Aashish Chaudhary >> | Technical Leader >> | Kitware Inc. >> | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html From david.gobbi at gmail.com Mon Feb 29 10:50:48 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Feb 2016 08:50:48 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456757944070-5736923.post@n5.nabble.com> References: <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> Message-ID: On Mon, Feb 29, 2016 at 7:59 AM, Lonni Besan?on wrote: > Alright changed it but I get similar values. > Check to make sure it is really picking the texture: picker->GetDataSet() should be returning a vtkImageData (it should return the input to the texture). Also, call picker->GetPointIJK() to see if it returns sensible values. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.john.parker at googlemail.com Mon Feb 29 11:03:46 2016 From: andy.john.parker at googlemail.com (Andrew Parker) Date: Mon, 29 Feb 2016 16:03:46 +0000 Subject: [vtkusers] Paraview bug found in pvtu files containing polyhedrons Message-ID: <45EAF588-0B4F-45B9-B4AB-F1EC8EC656FF@googlemail.com> Dear All, I have recently been having problems reading pvtu files in paraview when those files contain arbitrary polyhedrons: this is from the output of a large scale code that runs in parallel via mpi. To show the problem, I have written a very small sample code, attached, that runs in serial but reproduces the salient issues experienced by my larger code when run in parallel. It is clear, via the toggling a boolean, that the problem happens when vtk_polyhedrons types are used. There is a short description at the top of the bug.cxx file, followed by instructions. I use stock versions of paraview here, although self compiled ones show no difference. In short compile the code, run it, and open the pvtu file in paraview. You should see 4 cells. Switch the ?bug? bool to true, recompile, re-run it, and reopen the pvtu file. The screen will be blank. The only difference is that cells are added to the unstructured grid explicitly as vtk_polyhedrons using a face-stream, rather than as hexs. I cannot do this in the real code! The rest of the code is just there to produce the ?serial? mesh, and threshold this mesh to produce two ?parallel-partition? meshes. I use the new ghost type framework as this is consistent with the real code, and this runs and compiles on OS X and gcc. Likewise it has been build against vtk 6.3 and the bug manifests itself in paraview 4.4 and 5.0. Visit 2.10 does not have this bug and can correctly open the pvtu containing polyhedrons: this is my current workaround. Can any of the developers shed light on this? Is a fix known, if so when will it be released? Do others have this problem [1, 2, 3] outside of those long reported? Does anyone else have workarounds? Any help really appreciated, Andy [1] http://public.kitware.com/pipermail/vtkusers/2015-May/090835.html [2] https://cmake.org/pipermail/paraview/2012-October/026456.html [3] https://cmake.org/pipermail/paraview/2015-January/032950.html -------------- next part -------------- A non-text attachment was scrubbed... Name: bug.cxx Type: application/octet-stream Size: 10289 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: CMakeLists.txt URL: From lonni.besancon at gmail.com Mon Feb 29 11:09:10 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 09:09:10 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> Message-ID: I just did. It does return the input to the texture and IJK seem to make sense (I values between 0 and 103 and my dimension along x is [0;103], similarly J values between 0 and 94). Best / Cordialement, > On 29 Feb 2016, at 16:51, David Gobbi [via VTK] wrote: > > On Mon, Feb 29, 2016 at 7:59 AM, Lonni Besan?on <[hidden email] > wrote: > Alright changed it but I get similar values. > > Check to make sure it is really picking the texture: picker->GetDataSet() should be returning a vtkImageData (it should return the input to the texture). Also, call picker->GetPointIJK() to see if it returns sensible values. > > - David > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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/vtkPicker-returned-actor-tp5736763p5736927.html > To unsubscribe from vtkPicker returned actor, click here . > NAML -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736929.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Feb 29 11:14:50 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 09:14:50 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456757944070-5736923.post@n5.nabble.com> References: <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> Message-ID: <1456762490236-5736930.post@n5.nabble.com> Dunno if you received my previous answer so here it is again: I just made sure that I'm really picking the texture with GetDataSet(). It does return the input to the texture and IJKPoint seem to make sense (I values between 0 and 103 and my dimension along x is [0;103], similarly J values between 0 and 94). -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736930.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Mon Feb 29 11:25:42 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Feb 2016 09:25:42 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456762490236-5736930.post@n5.nabble.com> References: <1456680642640-5736902.post@n5.nabble.com> <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> Message-ID: On Mon, Feb 29, 2016 at 9:14 AM, Lonni Besan?on wrote: > Dunno if you received my previous answer so here it is again: > I just made sure that I'm really picking the texture with GetDataSet(). > It does return the input to the texture and IJKPoint seem to make sense (I > values between 0 and 103 and my dimension along x is [0;103], similarly J > values between 0 and 94). > If the IJK makes sense, then the next step is to check if it agrees with the value returned by GetMapperPosition(), taking the origin and spacing of the data (the texture's input data) into account. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Feb 29 11:39:11 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 09:39:11 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> Message-ID: <1456763951308-5736932.post@n5.nabble.com> The spacing is 1 along the three axis. The origin is -51,-46,0. GetMapperPosition is always between -0.5 and 0.5 and therefore the computation I make afterwards as you suggested with the resliceAxesMatrix is always comprised between 50.5 and 51.5 for the X axis, and 46.5 and 47.5 for the y axis. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736932.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Mon Feb 29 11:46:34 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Mon, 29 Feb 2016 17:46:34 +0100 Subject: [vtkusers] Requirements for multiple volumes in one render window In-Reply-To: References: Message-ID: 2016-02-29 16:32 GMT+01:00 Aashish Chaudhary : > Hi Elvis, > > On Sat, Feb 27, 2016 at 12:06 PM, Elvis Stansvik > wrote: > > 2016-02-25 17:10 GMT+01:00 Elvis Stansvik >: > >> > >> Hi, > >> > >> From searching around, I think I've gathered that to render multiple > >> volumes in a single window, each volume must have its own mapper and > volume > >> property. They can't share mapper or property. > >> > >> My question is whether I must use separate renderers for each volume as > >> well, or if I can use the same renderer for them all? > >> > >> Also, I did read something in an old post about problems with rendering > >> multiple volumes that intersect (share a voxel). Is this still a > problem? > >> I'm using VTK 6.2 and the vtkVolumeRayCastMapper. > >> > >> Thanks in advance! > > > > > > Including Donny's answer here, to keep the thread intact: > > > >> See this thread: > >> > >> > >> > http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-td5734685.html#a5734971 > > > > Thanks, that clears some things up, and brings up some workarounds. That > > thread was from oct/nov last year, so I guess it is still the case that > > proper rendering of multiple volumes that share voxels in 3D space is not > > possible? (even with 7.0?). > > It depends what you define proper. If you have two volumes and they > share the exact same space, you can combine them into one volume. When > they share the same space but do not overlap that's when things get > tricky since then the outcome depends on how do you want to handle > this disparity. There could be some other ways such as you combine the > volume into one. At the rendering level it could get tricky. > > What exactly you are trying to do. > I see, what I would expect I think is composite rendering of the voxels using some composite rendering function / blending mode (perhaps configurable?). Sorry if my use case wasn't clear, I'm attaching a rough sketch I did just now which should explain it better. Each of our volumes is a piece of a drill core (see my photo previously in this thread). The pieces were scanned stacked on top of each other in a plastic tube inside our machine. During scanning, they are not necessarily aligned properly (as shown in the sketch, and also in the photo). We will do some algorithmic alignment of the volumes, but we must also allow the user to override / supplement the automatic alignment when it fails. This means the user should be able to rotate and move (along Z axis) the pieces until they align. It's like a pussle with pieces of a drill core :) While the user is doing this, the volumes may intersect (noone is perfect on the first try). This is why I'm asking about rendering multiple volumes that partially intersect in 3D space. It's very desirable that the user can see inside the volumes while doing this manual alignment, since the features (cracks, density variations, ...) inside the rocks may be what guides the user in aligning the pieces properly. That's why I don't like the idea of letting the user work with extracted isosurfaces or similar instead. Hope this clears things up a little! Elvis > - Aashish > > > > > Elvis > > > >> > >> Elvis > > > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > | Aashish Chaudhary > | Technical Leader > | Kitware Inc. > | http://www.kitware.com/company/team/chaudhary.html > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: align_core.jpg Type: image/jpeg Size: 137138 bytes Desc: not available URL: From david.gobbi at gmail.com Mon Feb 29 11:54:43 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Feb 2016 09:54:43 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456763951308-5736932.post@n5.nabble.com> References: <1456681295751-5736905.post@n5.nabble.com> <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> <1456763951308-5736932.post@n5.nabble.com> Message-ID: On Mon, Feb 29, 2016 at 9:39 AM, Lonni Besan?on wrote: > The spacing is 1 along the three axis. > The origin is -51,-46,0. > > GetMapperPosition is always between -0.5 and 0.5 and therefore the > computation I make afterwards as you suggested with the resliceAxesMatrix > is > always comprised between 50.5 and 51.5 for the X axis, and 46.5 and 47.5 > for > the y axis. > It seems to me that the value returned by GetMapperPosition() is wrong (at least, its wrong for when PickTextureDataOn()). And if that is wrong, then the result from resliceAxesMatrix->MultiplyPoint() will also be wrong. So I will look into this when I have a break from work. In the meantime, you can compute an "approximate" position from the IJK values, by multiplying by the Spacing and adding the Origin. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Feb 29 13:11:29 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 11:11:29 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> <1456763951308-5736932.post@n5.nabble.com> Message-ID: <1456769489973-5736935.post@n5.nabble.com> I just tried your workaround. It kind of works. If I do not take into account the imprecision, I have exploitable results as long as my original volume is not translated or rotated. However, whenever I rotate my original volume or my plane, the results I obtain are not usable anymore and axis get mixed up. For instance, if we take the initial volume, moving my finger to the left results in appropriate position changes along the X axis. However, if I perform a rotation of my volume by 90 degrees for instance, and move my finger to the left again, the resulting change is on the z or y axis (depending on the axis of the rotation). Is that normal? -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736935.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Mon Feb 29 13:39:30 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Feb 2016 11:39:30 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456769489973-5736935.post@n5.nabble.com> References: <1456682428207-5736907.post@n5.nabble.com> <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> <1456763951308-5736932.post@n5.nabble.com> <1456769489973-5736935.post@n5.nabble.com> Message-ID: So when you say you "rotate the volume by 90 degrees", do you mean that you use vtkImageReslice to do a 90 degree multi-planar reformat on the image data? Or do you mean that you apply a 90 degree rotation to the actor? To the camera? Give me names of classes, their inputs and outputs, and the methods that you are calling, because if I don't know these specific details, I can't help. Take your time so you're sure that I get all the information that I might need. I know that I must sound like a broken record by now. - David On Mon, Feb 29, 2016 at 11:11 AM, Lonni Besan?on wrote: > I just tried your workaround. It kind of works. > If I do not take into account the imprecision, I have exploitable results > as > long as my original volume is not translated or rotated. > However, whenever I rotate my original volume or my plane, the results I > obtain are not usable anymore and axis get mixed up. For instance, if we > take the initial volume, moving my finger to the left results in > appropriate > position changes along the X axis. However, if I perform a rotation of my > volume by 90 degrees for instance, and move my finger to the left again, > the > resulting change is on the z or y axis (depending on the axis of the > rotation). > Is that normal? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Feb 29 13:45:59 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 11:45:59 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> <1456763951308-5736932.post@n5.nabble.com> <1456769489973-5736935.post@n5.nabble.com> Message-ID: <1456771559674-5736937.post@n5.nabble.com> Don't worry, I don't mind the fact that you repeat it, since you're helping a lot I really don't mind. So when I'm talking about rotation I'm talking about performing the rotations on the vtkVolume class, not on the data. I'm guessing that is the reason why I am getting problems because the dataset itself stays the same. The rotation and/or translation that I apply are only applied to the planeActor (vtkActor) or the volume that I render (vtkVolume). I perform these by computing from my sensors in the tablet the correct transformation matrix and then using actor->SetUserMatrix(myMatrix). Of course, when I do so, I make sure tu update my reslice axes with the setResliceAxes(). The matrix I give to this method is the result of matrixVolume.inverse() * matrixPlane. The fact that I'm only transforming my actors was the reason why I was applying matrix and inverse multiplication in the first place. Overall, it's a research project and the code is kinda messy since I'm still learning how to use VTK and have to combine it with other frameworks that I'm using as well. Sorry if I forget details, it's just that I don't want to go into lengthy details about things coming from other frameworks. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736937.html Sent from the VTK - Users mailing list archive at Nabble.com. From jose.de.paula at live.com Mon Feb 29 16:56:14 2016 From: jose.de.paula at live.com (Jose Barreto) Date: Mon, 29 Feb 2016 14:56:14 -0700 (MST) Subject: [vtkusers] DICOM and vtkResliceCursorWidget In-Reply-To: <1339539336.12586.YahooMailNeo@web130206.mail.mud.yahoo.com> References: <1339539336.12586.YahooMailNeo@web130206.mail.mud.yahoo.com> Message-ID: <1456782974460-5736939.post@n5.nabble.com> I'm having the same problem. But in my case, I use Roll (180) for sagittal and coronal. Azimuth however does not work for the images all point to the same side. in mine, so this Coronal: L / R Sagial: A / P Axial: R / L however this should equal the coronal axial (R / L) when used Azimuth (180); someone managed to put them to the same side? -- View this message in context: http://vtk.1045678.n5.nabble.com/DICOM-and-vtkResliceCursorWidget-tp5713843p5736939.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Mon Feb 29 17:34:05 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 15:34:05 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456771559674-5736937.post@n5.nabble.com> References: <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> <1456763951308-5736932.post@n5.nabble.com> <1456769489973-5736935.post@n5.nabble.com> <1456771559674-5736937.post@n5.nabble.com> Message-ID: <1456785245700-5736941.post@n5.nabble.com> I'm guessing there is something to do with the actors' matrices otherwise I'm not sure the VTK pipeline would directly allow me to transform the coordinates that I get in the plane coordinate system into coordinates in the transformed volume coordinate systems. I believe I gave you enough information on the classes and methods that I use but if that's not the case please let me know. Thanks again for the help and explanations so far. Best Lonni -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736941.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Mon Feb 29 18:19:07 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Feb 2016 16:19:07 -0700 Subject: [vtkusers] vtkPicker returned actor In-Reply-To: <1456785245700-5736941.post@n5.nabble.com> References: <1456755507036-5736920.post@n5.nabble.com> <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> <1456763951308-5736932.post@n5.nabble.com> <1456769489973-5736935.post@n5.nabble.com> <1456771559674-5736937.post@n5.nabble.com> <1456785245700-5736941.post@n5.nabble.com> Message-ID: Hi Lonni, Regarding picker->PickTextureOn(), I looked through the code and the docs, and it only moves the results of GetPointIJK(), GetCellIJK(), and GetPCoords() into the vtkTexture input data space. GetMapperPoint() still returns the coord in the vtkPolyDataMapper input space. So to get the data coords in the texture's data space, you'd have to do something like this pseudocode: ix, iy, iz = picker->GetCellIJK() px, py, pz = picker->GetPCoords() x = origin[0] + (ix + px - 0.5)*spacing[0] y = origin[1] + (iy + py - 0.5)*spacing[1] z = origin[2] + (iz + pz - 0.5)*spacing[2] The above should give accurate data coords within the image space of the vtkTexture's input. Moving on to your latest email: If you are getting the position with picker->GetMapperPosition(), and if I understand your pipeline properly, then the only matrix you need to apply to that position is the ResliceAxes matrix. If that's not working, then maybe I still don't completely understand your pipeline (but I'm getting exhausted). If you were getting the position in world coordinates, with GetPickPosition(), then you would have to apply the inverse of the actor matrix to move from world coordinates to data coordinates. But rather than use GetPickPosition(), I believe it is better to instead get the data coords as I outlined above. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Feb 29 18:41:22 2016 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Feb 2016 16:41:22 -0700 (MST) Subject: [vtkusers] vtkPicker returned actor In-Reply-To: References: <1456757944070-5736923.post@n5.nabble.com> <1456762490236-5736930.post@n5.nabble.com> <1456763951308-5736932.post@n5.nabble.com> <1456769489973-5736935.post@n5.nabble.com> <1456771559674-5736937.post@n5.nabble.com> <1456785245700-5736941.post@n5.nabble.com> Message-ID: <6B296DE8-9097-42BC-87ED-6882E840B941@gmail.com> Hi David, Thanks a lot for everything. I will try that tomorrow morning. Getting kinda late here. I?ll keep you posted. Thanks again. Have a good evening(?) Best > On 01 Mar 2016, at 00:19, David Gobbi [via VTK] wrote: > > Hi Lonni, > > Regarding picker->PickTextureOn(), I looked through the code and the > docs, and it only moves the results of GetPointIJK(), GetCellIJK(), and > GetPCoords() into the vtkTexture input data space. GetMapperPoint() still > returns the coord in the vtkPolyDataMapper input space. > > So to get the data coords in the texture's data space, you'd have to do > something like this pseudocode: > > ix, iy, iz = picker->GetCellIJK() > px, py, pz = picker->GetPCoords() > x = origin[0] + (ix + px - 0.5)*spacing[0] > y = origin[1] + (iy + py - 0.5)*spacing[1] > z = origin[2] + (iz + pz - 0.5)*spacing[2] > > The above should give accurate data coords within the image space of > the vtkTexture's input. > > > Moving on to your latest email: > > If you are getting the position with picker->GetMapperPosition(), and if I > understand your pipeline properly, then the only matrix you need to apply > to that position is the ResliceAxes matrix. If that's not working, then maybe > I still don't completely understand your pipeline (but I'm getting exhausted). > > If you were getting the position in world coordinates, with GetPickPosition(), > then you would have to apply the inverse of the actor matrix to move from > world coordinates to data coordinates. But rather than use GetPickPosition(), > I believe it is better to instead get the data coords as I outlined above. > > - David > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > 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/vtkPicker-returned-actor-tp5736763p5736943.html > To unsubscribe from vtkPicker returned actor, click here . > NAML -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736944.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: