21 October 2019 at 12 h 24 min #14425
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 h 08 min #14429
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.
Hugo22 October 2019 at 14 h 14 min #14432
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.
Best22 October 2019 at 14 h 32 min #14436
It 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.
Hugo24 October 2019 at 9 h 43 min #14454
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
Thanks,24 October 2019 at 11 h 37 min #14459
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.
Hugo24 October 2019 at 12 h 01 min #14461
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 h 10 min #1446224 October 2019 at 13 h 01 min #14463
Great I will therefore close this topic.
You can open a new one if you have another question.
- You must be logged in to reply to this topic.