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.
翻译:服装建模是全球服装产业的关键任务,也是数字人体建模的核心环节。具有有效缝纫样板的服装真实感表达,是其精确数字模拟及最终制作的关键。然而,现有的计算工具几乎无法弥合高层次构造目标与低层次样板几何编辑之间的鸿沟,例如组合或切换服装元素、语义编辑,或是在保持缝纫样板有效性的前提下进行设计探索。我们提出了首个用于服装建模的领域特定语言——GarmentCode,它将面向对象编程的原则应用于服装构造,并支持以层次化、面向组件的方式设计缝纫样板。这种基于编程的范式天然提供了组件抽象、算法操作和自由形式设计参数化的独特优势。我们还通过自动化典型低层任务(如在目标位置放置省道)来支持构建过程。在我们的服装配置原型中,用户可以操控有意义的设计参数和人体尺寸,而样板几何的构造则由基于GarmentCode实现的服装程序处理。该配置器支持丰富设计空间的自由探索,并可使用可互换的参数化组件创建服装。我们通过生成多种服装设计,并利用配置器将其重新适配至不同体型的示例,展示了该方法的效果。