Home › Forum › SOFA › Using SOFA › [SOLVED] Specifying indices of a VTK mesh
Tagged: 64_bits, fixed constraint, MacOS, Plugin_SoftRobots, SOFA_1706
- This topic has 8 replies, 2 voices, and was last updated 5 years ago by Hugo.
-
AuthorPosts
-
21 October 2019 at 12:24 #14425MABlocked
It may sound a stupid question, but i couldnot add the proper indices of VTK mesh for a fixed constraint. I can visualize the indices of stl/obj file at blender easily, however for vtk at paraview, I feel lost, when I am looking to examples, I dont see any of these numbers at the vtk. I would like to ask how I can add the indices of vtk mesh.
bunny.createObject('BoxROI', name='boxROI', box='-5 -15 -5 5 -4.5 5', drawBoxes='true', position="@tetras.rest_position")
22 October 2019 at 14:08 #14429HugoKeymasterHi Marwa,
I don’t really understand your issue.
You want to apply a FixedConstraint on your mesh in the simulation, is this what you want ?
Your piece of code is showing the creation of a BoxROI, which is done properly.Best
Hugo
22 October 2019 at 14:14 #14432MABlockedHi Hugo,
Thanks! No, in my example the box doesn’t show fixed to the mesh
When I add the box and I tried different locations
I don’t know how these numbers are selected, I just looked at VTK ascii file, I could not find a solution for attaching the box to my mesh.
Best
22 October 2019 at 14:32 #14436HugoKeymasterIt seems your BoxROI is huge compared to your object.
Moreover it appears that the box is not including any part (i.e. any indice) of your mesh.Hugo
24 October 2019 at 09:43 #14454MABlockedHi Hugo,
Thanks for advising using Paraview selection tool since it easier, however, I still have a question:
concerning the points of the indices for fixed constraints. I managed to extract using find data, however, I don’t know which points to select there are many, I selected the region graphically (attached photo and ascii vtk file). Actually, the tutorial of paraview is outdated. The question which points to select from the file or I has to reduce my selection in purple( see attached photo).The file of ascii vtk
https://gofile.io/?c=xXERbIThanks,
24 October 2019 at 11:37 #14459HugoKeymasterHi @ma1991
This is a user question for the Paraview forum 😉
Let me help: you can export as a spreadsheet your selection. You can use the PointID given in the first column. This should correspond to the points you selected and specify these indices into the field “indices” of the FixedConstraint.Best wishes
Hugo
24 October 2019 at 12:01 #14461MABlockedHi @Hugo,
Thanks, I agree 😉 However, I dont know what I am missing, I pressed ‘s’ to select and then ‘v’ to have the table here the first column of pointID exist, I took the first column for each box, in SOFA, it seems the same error happens, I dont know what I misunderstood. I am attaching pictures
Thanks!
24 October 2019 at 12:10 #14462MABlockedHi @Hugo,
I understand now where is the error was I misplaced the indices place
However, I don’t know how to set the right dimensions of the box correctly.
Thanks so much Hugo 🙂
24 October 2019 at 13:01 #14463HugoKeymasterGreat I will therefore close this topic.
You can open a new one if you have another question.Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.