Skip to content

About

[SCF'25] ScrapReCover: An Interactive Optimization System for Freeform Patchwork Layouts [WISS '25]

Topics

Resources

Stars

5 stars

Watchers

2 watching

Forks

Repository files navigation

ScrapReCover: An Interactive Optimization System for Freeform Patchwork Layouts

SCF '25 WISS '25 License: MIT

Website <- CLICK !

Teaser figure Demo Video

ScrapReCover is an interactive tool for designing freeform patchwork layouts from fabric scraps.

The system enables users to iteratively refine the layout by combining manual adjustments of individual scraps with automatic placement suggestions guided by user-controlled parameters. These parameters can be intuitively adjusted to control the degree of modification from the current layout and to prioritize specific types of scraps. For automatic suggestions, the system generates layouts by arranging arbitrarily shaped scraps within the target area, using an optimization strategy that minimizes material waste while ensuring complete coverage. To achieve this functionality, ScrapReCover employs simulated annealing (SA), a robust metaheuristic and stochastic algorithm known for its effectiveness in packing-like problems, integrated with a rasterized representation of both scraps and pattern shapes.

Quick Start (WSL2)

This project depends on C++ and Siv3D Framework and links against the copy under external/Siv3D. The executable is emitted to external/Siv3D/Linux/App/Siv3DApp and should be run from that directory. (References: Build guide for Siv3D)

Build (Ubuntu 20.04/22.04 LTS on WSL2)

  1. Install build dependencies:
sudo apt update
sudo apt install -y build-essential cmake git ninja-build \
  libasound2-dev libavcodec-dev libavformat-dev libavutil-dev libboost-dev \
  libcurl4-openssl-dev libgtk-3-dev libgif-dev libglu1-mesa-dev libharfbuzz-dev \
  libmpg123-dev libopencv-dev libopus-dev libopusfile-dev libsoundtouch-dev \
  libswresample-dev libtiff-dev libturbojpeg0-dev libvorbis-dev libwebp-dev \
  libxft-dev uuid-dev xorg-dev
  1. Initialize submodules (Siv3D + json):
git submodule update --init --recursive
  1. Build and install Siv3D:
cd external/Siv3D/Linux
mkdir -p build && cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
cd ..
cmake --build build
sudo cmake --install build
  1. Build ScrapReCover:
cd ../../..
rm -rf build && mkdir build && cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
cmake --build . -j1
  1. Install Python deps for the scrap measurement tool (src/ui/measure_scrap):
sudo apt update
sudo apt install -y python3.10 python3-pip python3-tk
python3 -m pip install --user -r ../requirements.txt

Run ScrapReCover

../external/Siv3D/Linux/App/Siv3DApp

About

[SCF'25] ScrapReCover: An Interactive Optimization System for Freeform Patchwork Layouts [WISS '25]

Topics

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages