Garment modeling is an essential task of the global apparel industry and a core part of digital human modeling. Realistic representation of garments with valid sewing patterns is key to their accurate digital simulation and eventual fabrication. However, little-to-no computational tools provide support for bridging the gap between high-level construction goals and low-level editing of pattern geometry, e.g., combining or switching garment elements, semantic editing, or design exploration that maintains the validity of a sewing pattern. We suggest the first DSL for garment modeling -- GarmentCode -- that applies principles of object-oriented programming to garment construction and allows designing sewing patterns in a hierarchical, component-oriented manner. The programming-based paradigm naturally provides unique advantages of component abstraction, algorithmic manipulation, and free-form design parametrization. We additionally support the construction process by automating typical low-level tasks like placing a dart at a desired location. In our prototype garment configurator, users can manipulate meaningful design parameters and body measurements, while the construction of pattern geometry is handled by garment programs implemented with GarmentCode. Our configurator enables the free exploration of rich design spaces and the creation of garments using interchangeable, parameterized components. We showcase our approach by producing a variety of garment designs and retargeting them to different body shapes using our configurator. Project page: https://igl.ethz.ch/projects/garmentcode/
翻译:服装建模是全球服装产业的核心任务,也是数字人体建模的关键组成部分。具有有效缝纫样板的服装逼真表示,对其精确数字仿真及最终制作至关重要。然而,目前几乎没有计算工具能弥合高层构建目标与低层样板几何编辑之间的鸿沟,例如组合或切换服装元素、语义编辑,或保持缝纫样板有效性的设计探索。我们首次提出面向服装建模的领域特定语言——GarmentCode——它将面向对象编程原理应用于服装构建,支持以分层、组件化的方式设计缝纫样板。基于编程的范式天然提供了组件抽象、算法操作和自由形式设计参数化的独特优势。此外,我们通过自动化典型低层任务(如在指定位置添加省道)来辅助构建过程。在我们的原型服装配置器中,用户可以操控有意义的设计参数和身体测量值,而样板几何的构建则由基于GarmentCode实现的服装程序处理。该配置器支持自由探索丰富设计空间,并利用可互换的参数化组件创建服装。我们通过生成多种服装设计并使用配置器将其适配至不同体型来展示本方法。项目页面:https://igl.ethz.ch/projects/garmentcode/