We suggest to use Blender to extract the garment mesh if you are familiar with the software, or you can use CloSe, a 3D garment segmentation network.
For simulation purpose, we need to define boundry points that moves with the human body and drives the simulation for the rest of the garment.
A straight-forward way to obtain the boundry point indices is to import the garment mesh (e.g., ./output/exp1_cloth/a1_s1_460_200/extracted_cloth/*.obj
) to Blender,
select the boundry points (e.g., points on the top of the dress), and export the indices of the selected points using the following script (copied from here):
import bpy
bpy.ops.object.mode_set(mode='OBJECT')
obj = bpy.context.active_object
selected_vertices = [v.index for v in obj.data.vertices if v.select]
print(selected_vertices)
- To be updated