Implementation for the shape sampling and measurement part of the paper Korosteleva, Kesdogan, Kemper, Wenninger, Koller, Zhang, Botsch, Sorkine-Hornung "GarmentCodeData: A Dataset of 3D Made-to-Measure Garments With Sewing Patterns".
You can find the garment fitting code here.
Clone this repository:
git clone https://github.com/mbotsch/GarmentMeasurements.git
Compile this project:
cd GarmentMeasurements
cmake -S . -B build
cmake --build build
cd build
- cgal
- FBX SDK 2020.3
Before running CMake,
download
and extract the FBX SDK into the directory external/fbxsdk
.
Install cgal using homebrew.
brew install cgal
./generate_shapes
Change PCA parameters as desired and save the skinned mesh. The mesh is saved in the current work directory as output.obj
.
./measurement output.obj measurements.yml