- This topic has 4 replies, 3 voices, and was last updated 4 years, 6 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] How to mark a node of a mesh?
Tagged: 64_bits, Linux_ubuntu, SOFA_1712
Hi,
In there any option in SOFA for marking a node in a mesh, so that I can visually track it when the mesh deforms?
Best,
Zahra
Hi @zahra
i can’t understand exactly what do you want?
can you explain it for us with more detail
You could use a subset mapping for this. Here is an example to visually track nodes number 1, 5, 25 and 40 from a given scene:
<node name="mechanical">
<MechanicalObject position="@mesh.position" />
<!-- (...) -->
<node name="tracking">
<MechanicalObject showObject="true" showObjectScale="5" showColor="1 0 0 1" />
<SubsetMapping indices="1 5 25 40" />
</node>
</node>
Hi @Binesh,
Thank you for willing to help me, jnbrunet’s reply solved the issue.
For your information on what I was trying to do: I wanted to put a marker on a specific node, in order to make it more recognizable among other nodes in the mesh.
Best,
Zahra
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.