From wei_yang520 at hotmail.com Tue Jun 4 01:51:00 2019 From: wei_yang520 at hotmail.com (StephenWei) Date: Mon, 3 Jun 2019 22:51:00 -0700 (MST) Subject: [vtkusers] Copy/duplicate vtkActor In-Reply-To: References: Message-ID: <1559627460764-0.post@n5.nabble.com> It seems there is no DeepCopy interface in class vtkActor. We can create our own DeepCopy refers to `void vtkActor::ShallowCopy(vtkProp *prop)`: Create independent mapper, Property, Texture and etc for the new vtkActor object. And set origin, position, Orientation and UserTransform for it. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From andrewkeeling at hotmail.com Thu Jun 6 12:28:18 2019 From: andrewkeeling at hotmail.com (andyjk) Date: Thu, 6 Jun 2019 09:28:18 -0700 (MST) Subject: [vtkusers] Merge boundary edges filter/method? Message-ID: <1559838498897-0.post@n5.nabble.com> I am subdividing part of a mesh by extracting those cells, subdividing, then using AppendPolyData filter to patch it back in exactly to the hole it left. However, this leaves boundary edges as shown below in green (even after CleanPolyData filter), where there is obviously a mismatch in triangulation. Is there any filter that can merge edges which are on top of eachother (just as cleanpolydata does for points) ? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From inglis.dl at gmail.com Thu Jun 6 13:50:10 2019 From: inglis.dl at gmail.com (Dean Inglis) Date: Thu, 6 Jun 2019 13:50:10 -0400 Subject: [vtkusers] Merge boundary edges filter/method? In-Reply-To: <1559838498897-0.post@n5.nabble.com> References: <1559838498897-0.post@n5.nabble.com> Message-ID: Hi Andy, it looks like the only way you could merge is to subdivide a larger triangle in a "fan" so that its long adjacent edge is subdivided to match the smaller triangles. - Dean On Thu, Jun 6, 2019 at 12:28 PM andyjk wrote: > I am subdividing part of a mesh by extracting those cells, subdividing, > then > using AppendPolyData filter to patch it back in exactly to the hole it > left. > However, this leaves boundary edges as shown below in green (even after > CleanPolyData filter), where there is obviously a mismatch in > triangulation. > > Is there any filter that can merge edges which are on top of eachother > (just > as cleanpolydata does for points) ? > > > > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewkeeling at hotmail.com Thu Jun 6 16:57:06 2019 From: andrewkeeling at hotmail.com (andyjk) Date: Thu, 6 Jun 2019 13:57:06 -0700 (MST) Subject: [vtkusers] Merge boundary edges filter/method? In-Reply-To: References: <1559838498897-0.post@n5.nabble.com> Message-ID: <1559854626665-0.post@n5.nabble.com> Thanks Dean I feared as much. I may encounter an issue of creating some weird triangles when I have twpo edges to merge (like one of the triangles in my picture). I could fan the first edge out like you suggest, but then the second edge might end up with some disproportionately small triangles. I was hoping for a magic vtk solution! I tried filling holes but it doesn't consistently detect the 'holes' ( ie the overlaid edges). I wondered if I could do something with ribbon filter or similar but cannot seem to work it out. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From andrewkeeling at hotmail.com Thu Jun 13 15:57:19 2019 From: andrewkeeling at hotmail.com (andyjk) Date: Thu, 13 Jun 2019 12:57:19 -0700 (MST) Subject: [vtkusers] Can we add a check to see if we have at least 2 nodes when vtkContourWidget is in Manipulate state? In-Reply-To: References: Message-ID: <1560455839694-0.post@n5.nabble.com> I have the same problem. I can only add one point (the first) and even then, the interactor crashes if I try to do more. Simple example below - basically from https://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolygonalSurfaceContourLineInterpolator with a few lines added. Any reason why I cannot add nodes programatically ? Thanks ! #include #include "vtkSmartPointer.h" #include "vtkActor.h" #include "vtkCamera.h" #include "vtkCellArray.h" #include "vtkImageDataGeometryFilter.h" #include "vtkPoints.h" #include "vtkPolyData.h" #include "vtkPolyDataCollection.h" #include "vtkPolyDataMapper.h" #include "vtkProperty.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkRenderer.h" #include "vtkSphereSource.h" #include "vtkTriangleFilter.h" #include "vtkXMLPolyDataReader.h" #include "vtkContourWidget.h" #include "vtkOrientedGlyphContourRepresentation.h" #include "vtkPolygonalSurfacePointPlacer.h" #include "vtkPolygonalSurfaceContourLineInterpolator.h" int main(int argc, char *argv[]) { vtkSmartPointer polyData; if (argc < 2) { vtkSmartPointer sphereSource = vtkSmartPointer::New(); sphereSource->SetThetaResolution(40); sphereSource->SetPhiResolution(20); sphereSource->Update(); polyData = sphereSource->GetOutput(); } else { vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(argv[1]); reader->Update(); polyData = reader->GetOutput(); } // The Dijkistra interpolator will not accept cells that aren't triangles vtkSmartPointer triangleFilter = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 triangleFilter->SetInput( polyData ); #else triangleFilter->SetInputData( polyData ); #endif triangleFilter->Update(); vtkSmartPointer pd = triangleFilter->GetOutput(); //Create a mapper and actor vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputConnection(triangleFilter->GetOutputPort()); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); actor->GetProperty()->SetInterpolationToFlat(); // Create the render window, renderer and interactor. vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer interactor = vtkSmartPointer::New(); interactor->SetRenderWindow(renderWindow); // Add the actors to the renderer, set the background and size renderer->AddActor(actor); renderer->SetBackground (.3, .4, .5); // Here comes the contour widget stuff... vtkSmartPointer contourWidget = vtkSmartPointer::New(); contourWidget->SetInteractor(interactor); vtkSmartPointer rep = vtkOrientedGlyphContourRepresentation::SafeDownCast( contourWidget->GetRepresentation()); rep->GetLinesProperty()->SetColor(1, 0.2, 0); rep->GetLinesProperty()->SetLineWidth(3.0); vtkSmartPointer pointPlacer = vtkSmartPointer::New(); pointPlacer->AddProp(actor); pointPlacer->GetPolys()->AddItem( pd ); rep->SetPointPlacer(pointPlacer); vtkSmartPointer interpolator = vtkSmartPointer::New(); interpolator->GetPolys()->AddItem( pd ); rep->SetLineInterpolator(interpolator); renderWindow->Render(); interactor->Initialize(); contourWidget->EnabledOn(); contourWidget->Initialize(); contourWidget->EnabledOff(); double pt1[3]; pt1[0] = -0.107433; pt1[1] = 0.112549; pt1[2] = 0.474558; contourWidget->SetWidgetState(vtkContourWidget::Define); contourWidget->GetContourRepresentation()->AddNodeAtWorldPosition(pt1); //double pt2[3]; pt2[0] = 0.187556; pt2[1] = 0.187556; pt2[2] = 0.42192; //contourWidget->GetContourRepresentation()->AddNodeAtWorldPosition(pt2); contourWidget->EnabledOn(); interactor->Start(); return EXIT_SUCCESS; } -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From omalik91 at gmail.com Thu Jun 13 17:02:41 2019 From: omalik91 at gmail.com (osm815) Date: Thu, 13 Jun 2019 14:02:41 -0700 (MST) Subject: [vtkusers] Update point in real time Message-ID: <1560459761905-0.post@n5.nabble.com> Hi everyone, I'm very new to VTK. I've found it to be quite complicated but have been familiarizing myself by playing with the tutorial examples (in C++). The task I'm working on is to have a single point that changes positions in real time. I have a simple VTK program that draws the initial point. I have a separate C++ program that I wrote which continuously updates the position I want the point to move to (x and y coordinates). These values are obtained from a mouse sensor. I use an infinite while loop to continuously get the values I need. >From what I've been able to see, the only way I can update the position of the point after rendering is to use a callback function. I am using a timer callback so I can repeatedly enter the function to update the point position. My issue is that I am not sure how to link the two programs. How can I initialize and render my point and at the same time also read coordinates from the mouse sensor? I would appreciate any help and can gladly offer more details if required. Thanks! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From coyarzunlaura at googlemail.com Fri Jun 14 09:07:11 2019 From: coyarzunlaura at googlemail.com (Cristina Oyarzun) Date: Fri, 14 Jun 2019 15:07:11 +0200 Subject: [vtkusers] CFP: MICCAI CLIP 2019: Clinical Image-based Procedures: Towards Holistic Patient Models for Personalised Healthcare Message-ID: CALL FOR PAPERS MICCAI 2019 Workshop on Clinical Image-based Procedures: Towards Holistic Patient Models for Personalised Healthcare October 17, 2019 Shenzhen, China Website:http://miccai-clip.org/ ============================== ========================================== SCOPE CLIP is about the effective translation of computational image-based techniques into the clinic filling the gaps between medical imaging, basic science and clinical applications. As it nowadays becomes more and more important for many clinical applications to base decisions not only on image data alone, a focus of CLIP 2019 is on the creation of holistic patient models. Here, image data such as radiologic images, microscopy images, and photographs is combined with non-image information such as ?omics? data (e.g. genomics, proteomics), life style data, demographics, EEG, and other to build a more complete picture of the individual patient and to subsequently provide better diagnosis and therapies. CLIP 2019 provides a forum for work centered on specific clinical applications, including techniques and procedures based on comprehensive clinical image and other data. Submissions related to applications already in use and evaluated by clinical users are particularly encouraged. We explicitly welcome novel techniques and applications that are looking at combining image analysis with clinical data mining and analytics, user studies, and other heterogeneous data. TOPICS * Combination of image analysis with other heterogeneous data including radiography images, microscopy, photographs, genomics, proteomics, life style data, EEG, bio-data, and other * Multimodal image integration for modeling, planning and guidance * Strategies for patient-specific and anatomical modeling to support planning and interventions * Clinical studies employing advanced image-guided methods * Clinical translation and validation of image-guided systems * Current challenges and emerging techniques in image-based procedures * Clinical applications in open and minimally invasive procedures PAPER SUBMISSION Papers can be up to 10 pages. All submissions will be peer-reviewed by at least 3 members of the program committee. Reviewing is double-blind so authors have to prepare their manuscripts such that their identity cannot be derived from their submission. The selection of papers will be based on the significance of results, novelty, technical merit, relevance and clarity of presentation. Electronic paper proceedings will be arranged. The papers will be published in a Springer Lecture Notes in Computer Science (LNCS) proceeding. LNCS is indexed by Scopus, ACM Digital Library, DBLP, Conference Proceedings Citation Index (part of Clarivate Analytics? Web of Science), and others. WORKSHOP FORMAT Papers will be presented in a day long single track workshop starting with plenary sessions. The final program will consist of previously unpublished and contributed papers with substantial time allocated to discussion. A poster session will accommodate further discussion on new ideas. IMPORTANT DATES * July 15, 2019: Paper submission due date * August 1, 2019: Notification of acceptance * tbd: Final camera-ready paper submission deadline CONTACT Inquires about the workshop should be sent to the Information Desk ( info at miccai-clip.org). ORGANIZERS (in alphabetical order) Klaus Drechsler (Fraunhofer IGD, Germany) Marius Erdt (Fraunhofer IDM at NTU, Singapore) Miguel Gonz?lez Ballester (ICREA - Universitat Pompeu Fabra, Spain) Marius George Linguraru (Children's National Medical Center, USA) Cristina Oyarzun Laura (Fraunhofer IGD, Germany) Raj Shekhar (Children's National Medical Center, USA) Stefan Wesarg (Fraunhofer IGD, Germany) -------------- next part -------------- An HTML attachment was scrubbed... URL: From tharun160190 at gmail.com Wed Jun 19 06:32:24 2019 From: tharun160190 at gmail.com (Tharun) Date: Wed, 19 Jun 2019 03:32:24 -0700 (MST) Subject: [vtkusers] Use of Tessellation Shader in VTK Message-ID: <1560940344142-0.post@n5.nabble.com> I have a triangular mesh(polygons as cells in vtkPolyData). Each point has different color field data. On using Point Color data as scalars, triangles have graded color. But, what I want is like in the image below . I know that subdividing the triangular mesh into triangles having same color data vertices can give result like this by using Cell data as scalars. Now, our workflow is similar to example and I have the desired output. Meshes we deal with have 10s of millions of triangles and the process is quite slow. I recenlty read about Tessellation Shaders at here , and they mentioned about "Primitive Generator" part of Tessellation where we can just mention the tessellation levels of each triangle by gl_TessLevelOuter and gl_TessLevelInner. I believe, specifying gl_TessLevelOuter for every triangle of original mesh based on Vertices Color Data for each edge of triangles solves my problem with performance. Can anybody please let me know how to do this in VTK? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From dave.demarle at kitware.com Thu Jun 20 14:47:39 2019 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 20 Jun 2019 14:47:39 -0400 Subject: [vtkusers] Use of Tessellation Shader in VTK In-Reply-To: <1560940344142-0.post@n5.nabble.com> References: <1560940344142-0.post@n5.nabble.com> Message-ID: I do not think that tesselation shaders are exposed anywhere yet in VTK. See vtkShader, vtkShaderProgram and vtkOpenGLPolyData's support for Vertex, Geometry and Fragment shaders in comparison. Note, you should re-ask on discourse.vtk.org. The vtk mailing lists are about to be shut down, and you might have more luck there. David E DeMarle Kitware, Inc. Principal Engineer On Wed, Jun 19, 2019 at 6:32 AM Tharun wrote: > I have a triangular mesh(polygons as cells in vtkPolyData). Each point has > different color field data. On using Point Color data as scalars, triangles > have graded color. But, what I want is like in the image below > > . > > I know that subdividing the triangular mesh into triangles having same > color data vertices can give result like this by using Cell data as > scalars. > > Now, our workflow is similar to example > < > https://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/VisualizationAlgorithms/Cxx/FilledContours.cxx> > > and I have the desired output. Meshes we deal with have 10s of millions of > triangles and the process is quite slow. > > I recenlty read about Tessellation Shaders at here > , and they > mentioned about "Primitive Generator" part of Tessellation where we can > just > mention the tessellation levels of each triangle by gl_TessLevelOuter and > gl_TessLevelInner. I believe, specifying gl_TessLevelOuter for every > triangle of original mesh based on Vertices Color Data for each edge of > triangles solves my problem with performance. > > Can anybody please let me know how to do this in VTK? > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.almatrouk at outlook.com Fri Jun 21 11:20:41 2019 From: b.almatrouk at outlook.com (German1999) Date: Fri, 21 Jun 2019 08:20:41 -0700 (MST) Subject: [vtkusers] vtkBoxWidget get the coordinates of the corners Message-ID: <1561130441124-0.post@n5.nabble.com> Hello, I have a software with multiple 3D boxes, every time i click on one of the boxes a bounding box gets activated as follow: void selected( vtkRenderWindowInteractor *interactor){ // enable box widget boxWidget = vtkSmartPointer::New(); boxWidgetCallback1 = vtkSmartPointer::New(); boxWidgetCallback1->setCube(this); boxWidget->SetInteractor(interactor); double bounds[6]={-1,1,-1,1,-1,1}; boxWidget->PlaceWidget(bounds); vtkSmartPointer t=vtkSmartPointer::New(); t->DeepCopy(actor->GetUserTransform()); boxWidget->SetTransform(t); boxWidget->SetHandleSize(0.1); boxWidget->AddObserver( vtkCommand::InteractionEvent, boxWidgetCallback1 ); boxWidget->On(); } Now I also would like that when I select the box, the corners of the bounding box get printed. I know you can get the bounds from the bounding box but is there a possible way to actually get the corners coordinates? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From wutongxiaomo at gmail.com Tue Jun 25 03:04:38 2019 From: wutongxiaomo at gmail.com (WtDMaO) Date: Tue, 25 Jun 2019 00:04:38 -0700 (MST) Subject: [vtkusers] How to Highlight the specified area on the slices obtained by VTKImageReslices Message-ID: <1561446278791-0.post@n5.nabble.com> Actually, I consider this matter as a problem of coordinate transformation. What I want is to highlight the specified area like lesion on the CT. This is easy to achieve while the CT is normal like this SetElement(0, 0, _resliceMatrix, 1); SetElement(0, 1, _resliceMatrix, 0); SetElement(0, 2, _resliceMatrix, 0); SetElement(1, 0, _resliceMatrix, 0); SetElement(1, 1, _resliceMatrix, 1); SetElement(1, 2, _resliceMatrix, 0); SetElement(2, 0, _resliceMatrix, 0); SetElement(2, 1, _resliceMatrix, 0); SetElement(2, 2, _resliceMatrix, 1); SetElement(3, 0, _resliceMatrix, 44); SetElement(3, 1, _resliceMatrix, 143); SetElement(3, 2, _resliceMatrix, 81); SetElement(3, 3, _resliceMatrix, 1); However I have to use vtkimagereslice to get some special effect like this, so I changed the direction of three axis like below SetElement(0, 0, _resliceMatrix, 16 / Math.Sqrt(378)); SetElement(0, 1, _resliceMatrix, -11 / Math.Sqrt(378)); SetElement(0, 2, _resliceMatrix, -1 / Math.Sqrt(378)); SetElement(1, 0, _resliceMatrix, -2 / Math.Sqrt(14)); SetElement(1, 1, _resliceMatrix, -3 / Math.Sqrt(14)); SetElement(1, 2, _resliceMatrix, 1 / Math.Sqrt(14)); SetElement(2, 0, _resliceMatrix, 1 / Math.Sqrt(27)); SetElement(2, 1, _resliceMatrix, 1 / Math.Sqrt(27)); SetElement(2, 2, _resliceMatrix, 5 / Math.Sqrt(27)); SetElement(3, 0, _resliceMatrix, 44); SetElement(3, 1, _resliceMatrix, 143); SetElement(3, 2, _resliceMatrix, 81); SetElement(3, 3, _resliceMatrix, 1); So the key problem is that I have known the position (x,y,z) of lesion, How can I get the lesion position in the picture after the rotation and translation by VTKImageReslice. I have tried to use the _resliceMatrix but it doesn't work, the new point(x',y',z') I got is wrong . vtkImageData resliced = imageReslice.GetOutput(); _Image = ImageData2Bitmap(resliced, 1600, -400); And I've got another situation, after the code above, I found the position I need acctually is the Drawing Coordinate System. If I highlight the position (0,0), it will highlight the left corner of the image. This has bothered me for one week, any help will be appreciated ?? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From wutongxiaomo at gmail.com Tue Jun 25 04:12:48 2019 From: wutongxiaomo at gmail.com (WtDMaO) Date: Tue, 25 Jun 2019 01:12:48 -0700 (MST) Subject: [vtkusers] How to create resliceAxes from two points in a curve? In-Reply-To: <726161967.4757822.1552609967405@mail.yahoo.com> References: <1552418540207-0.post@n5.nabble.com> <726161967.4757822.1552609967405@mail.yahoo.com> Message-ID: <1561450368120-0.post@n5.nabble.com> Hi~I've come across the same problem like you. I wonder if you have solved your problem? It will be appreciated if you can share your solution. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From sunayanag at gmail.com Thu Jun 27 11:06:43 2019 From: sunayanag at gmail.com (sunayanag) Date: Thu, 27 Jun 2019 08:06:43 -0700 (MST) Subject: [vtkusers] vtkm help with using the CleanGrid filter Message-ID: <1561648003180-0.post@n5.nabble.com> Hi All, Just started using vtk-m and having some issues with the CleanGrid filter. Assuming that vtkMesh is an object of type vtkSmartPointer, here is the piece of code vtkm::cont::DataSet mMesh = tovtkm::Convert(vtkMesh, tovtkm::FieldsFlag::PointsAndCells); vtkm::filter::CleanGrid cleanGrid; try { vtkm::cont::DataSet outMesh = cleanGrid.Execute(mMesh); } catch(std::exception& e) { std::cerr << e.what(); } where the exception thrown is: /Could not find appropriate cast for cell set./ could anyone help with what I am getting wrong. Thanks Sunayana -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From allison.vacanti at kitware.com Thu Jun 27 11:14:25 2019 From: allison.vacanti at kitware.com (Allie Vacanti) Date: Thu, 27 Jun 2019 11:14:25 -0400 Subject: [vtkusers] vtkm help with using the CleanGrid filter In-Reply-To: <1561648003180-0.post@n5.nabble.com> References: <1561648003180-0.post@n5.nabble.com> Message-ID: For the clean grid filter, you can just use the `vtkmCleanGrid` filter in VTK, which takes care of the conversions and everything for you. If you want to use the vtk-m filters directly with a dataset built using tovtkm::Convert, it is necessary to pass a Policy to the filter so that it is aware of the custom data structures used to adapt VTK into VTK-m. See the Accelerators/Vtkm/vtkmCleanGrid.cxx file in VTK for an example of this: #include "vtkmFilterPolicy.h" vtkmInputFilterPolicy policy; vtkm::filter::CleanGrid filter; auto result = filter.Execute(in, policy); HTH, Allie On Thu, Jun 27, 2019 at 11:06 AM sunayanag wrote: > Hi All, > > Just started using vtk-m and having some issues with the CleanGrid filter. > Assuming that vtkMesh is an object of type vtkSmartPointer, > here is the piece of code > > vtkm::cont::DataSet mMesh = tovtkm::Convert(vtkMesh, > tovtkm::FieldsFlag::PointsAndCells); > vtkm::filter::CleanGrid cleanGrid; > > try > { > vtkm::cont::DataSet outMesh = cleanGrid.Execute(mMesh); > } > catch(std::exception& e) > { > std::cerr << e.what(); > } > > where the exception thrown is: /Could not find appropriate cast for cell > set./ > > could anyone help with what I am getting wrong. > > Thanks > Sunayana > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tharun160190 at gmail.com Thu Jun 27 21:10:05 2019 From: tharun160190 at gmail.com (Tharun) Date: Thu, 27 Jun 2019 18:10:05 -0700 (MST) Subject: [vtkusers] Use of Tessellation Shader in VTK In-Reply-To: References: <1560940344142-0.post@n5.nabble.com> Message-ID: <1561684205979-0.post@n5.nabble.com> Thank you for the response. I have asked on the discourse and my issue is resolved now. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From sunayanag at gmail.com Fri Jun 28 06:21:27 2019 From: sunayanag at gmail.com (sunayanag) Date: Fri, 28 Jun 2019 03:21:27 -0700 (MST) Subject: [vtkusers] vtkm help with using the CleanGrid filter In-Reply-To: References: <1561648003180-0.post@n5.nabble.com> Message-ID: <1561717287494-0.post@n5.nabble.com> Thanks for your reply Allie, I looked into the vtkmCleanGrid.cxx file and tried to reproduce the code : auto fieldsFlag = tovtkm::FieldsFlag::None; vtkm::cont::DataSet in = tovtkm::Convert(vtkMesh, fieldsFlag); //apply the filter vtkmInputFilterPolicy policy; vtkm::filter::CleanGrid filter; filter.SetCompactPointFields(false); auto result = filter.Execute(in, policy); and end up getting the following error : include\vtk-8.2\vtkm/internal/ListTagDetail.h(207): error C2027: use of undefined type 'vtkm::cont::vtkmCellSetExplicitAOS' I also tried using the directly the vtkmCleanGrid class, in this case it worked where the output was of type vtkUnstructuredGrid which I converted back to vtkPolyData using the vtkDataSetSurfaceFilter. Thanks Sunayana -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From allison.vacanti at kitware.com Fri Jun 28 09:41:32 2019 From: allison.vacanti at kitware.com (Allie Vacanti) Date: Fri, 28 Jun 2019 09:41:32 -0400 Subject: [vtkusers] vtkm help with using the CleanGrid filter In-Reply-To: <1561717287494-0.post@n5.nabble.com> References: <1561648003180-0.post@n5.nabble.com> <1561717287494-0.post@n5.nabble.com> Message-ID: On Fri, Jun 28, 2019 at 6:21 AM sunayanag wrote: > Thanks for your reply Allie, I looked into the vtkmCleanGrid.cxx file and > tried to reproduce the code : > > auto fieldsFlag = tovtkm::FieldsFlag::None; > vtkm::cont::DataSet in = tovtkm::Convert(vtkMesh, fieldsFlag); > //apply the filter > vtkmInputFilterPolicy policy; > vtkm::filter::CleanGrid filter; > filter.SetCompactPointFields(false); > auto result = filter.Execute(in, policy); > > and end up getting the following error : > include\vtk-8.2\vtkm/internal/ListTagDetail.h(207): error C2027: use of > undefined type 'vtkm::cont::vtkmCellSetExplicitAOS' > You can include the file "vtkmCellSetExplicit.h" to fix that. You might also need to include "vtkmCellSetSingleType.h" if you see errors about single type cellsets being undefined. > I also tried using the directly the vtkmCleanGrid class, in this case it > worked where the output was of type vtkUnstructuredGrid which I converted > back to vtkPolyData using the vtkDataSetSurfaceFilter. If you use the vtkm filter directly, it should work to use the fromvtk::Convert method from Accelerators/Vtkm/vtkmlib/PolyDataConverter.h to skip that extra step. -------------- next part -------------- An HTML attachment was scrubbed... URL: