D2.3 Boundary Features
Find boundaries to install hooks
First, we need to find all the boundaries where the hook should be installed. The boundary information is saved as edge_attributes
. However, if we use the attributes to search these boundaries, the topological information in the mesh is lost. Thus, we need to combine the mesh topology and boundary attributes to find the corresponding edge loops.
Add hooks
Since we have a uniform quad mesh, we can add the hooks using the topology. We can enumerate through the edge_loop and add hooks based on an estimation of the length. An ideal distance between two hooks is about 25 cm.
Save the location of the hooks as an edge attribute. You can rewrite the json file.
Do the same for the other patch.
Last updated