Garment Measurements

October 8, 2025 ยท View on GitHub

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.

Getting Started

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

Dependencies

Install Dependencies

Linux

Before running CMake, download and extract the FBX SDK into the directory external/fbxsdk.

MacOS

Install cgal using homebrew.

brew install cgal

Sample Shapes

./generate_shapes

Change PCA parameters as desired and save the skinned mesh. The mesh is saved in the current work directory as output.obj.

Perform Measurements

./measurements output.obj measurements.yaml