0

I am trying to assign fixed constraint at specific indices of VTK mesh, however, I only can view STL file in a blender as follows:

enter image description here

Upon assigning the favored indices in my scene at the SOFA physics simulator, of course, I did not get favored results since I am using VTK mesh.

To view VTK mesh, I am using GMSH, the mesh sounds cloudy and I don't know what could be the easiest way to identify the vertices, I aiming to fix one end of the twisted beam simply

enter image description here

Thanks in advance

Monika
  • 109
  • 4
  • I assume you just want the nodal labels on the fixed end. You can find them just by filtering them using the z coordinates (as you showed in the first figure), a simple script could do that. – Xi Zou Oct 20 '19 at 12:26
  • But I cannot read vtk mesh in blender, how to this at Gmsh – Monika Oct 20 '19 at 13:34
  • 1
    You can read VTK mesh using Python, or you may also visualise it in Paraview. – Xi Zou Oct 20 '19 at 13:44
  • I couldnot find an example shows how to get mesh indices at paraview, could you please tell me how. – Monika Oct 20 '19 at 17:26
  • You can obtain them directly from the VTK ASCII file. – Xi Zou Oct 20 '19 at 18:16
  • i know that I can export either in binary or. VTK, is there any examples, I feel lost as I am still newbie. – Monika Oct 20 '19 at 19:15
  • 1
    Try to find the answer by reading the VTK official documentation. – Xi Zou Oct 20 '19 at 19:34
  • I couldnot find an answer, maybe I am stupid, but I felt lost since examples in sofa using indices are not available in their vtk mesh. – Monika Oct 21 '19 at 13:38
  • @Monika "I am trying to assign fixed constraint at specific indices of VTK mesh" how did you classify those vertices or cells or whatever? When you want to put different boundary conditions or constraints at different vertices or cells, it makes sense to classify the cells or vertices into different groups or entities. Did you do that? If no, you would have a really hard time here to extract the nodes or cells that you want to put your specific constraint on them. The naive way would be just read the IDs of the nodes or cells by your eye and then use them later, but that would be terrible.. – Mithridates the Great Oct 21 '19 at 16:55
  • Yes, that would be terrible in it, if it still, it would be much easier for me at least now, as I still feel dumb how they assign specific points. I understand which vertices or indices I want, but I fail to get the true points from vtk, I will try again and see what I can get. – Monika Oct 21 '19 at 17:24

0 Answers0