现代纺织技术 ›› 2024, Vol. 32 ›› Issue (11): 106-114.

• • 上一篇    下一篇

同形拼布图谱快速参数化设计原理及平台搭建

  

  1. 太原理工大学,a.轻纺工程学院;b.软件学院,山西晋中 030600
  • 出版日期:2024-11-10 网络出版日期:2024-11-12

Fast parametric design principle and platform building for homomorphic patchwork patterns

  1. College of Textile Engineering; b. School of Software, Taiyuan University of Technology, Jinzhong 030600 China
  • Published:2024-11-10 Online:2024-11-12

摘要: 为解决同形拼布图谱设计低效的问题,采用参数化建模的方法,开发一种适用于同形拼布图谱的智能设计平台。该平台利用Vue3进行前端开发,使用FastAPI框架和SQLAlchemy进行后端数据库管理,并使用Pixi.js渲染Canvas,允许用户在设计界面进行图谱形状、大小的实时调整和图谱花纹及颜色的自定义填充设计。文章采用3种图谱基型,创新运用设计变量法研究拼布图谱的参数化设计模型,利用适配于单元图形的布局和属性交换的矩阵数学模型进行数据储存,实现对拼布图谱设计变量的灵活控制。结果表明,通过此种数据储存方式进行设计的平台可以快速实现拼布图谱的行列变化,可灵敏实现自定义拼布单元图案设计,便捷地实现交互,实时得到图谱的设计效果。建立的同形拼布图谱参数化设计模型优化了数字拼布设计的数据储存模式,促进在线拼布设计模式多元化。

关键词: 拼布图谱, 参数化设计, 同形拼布, 计算机辅助设计, 在线设计

Abstract: In the field of intelligent patchwork, despite existing research on the organization of quilting fabric databases and rapid fabric selection, research on the rapid digital design of quilting patterns is still lacking. This study aims to develop a tool for rapidly designing patchwork patterns with similar geometric shapes, incorporating intelligence into traditional patchwork design to fulfill the demand for personalized patchwork designs, and improving design efficiency and creativity.
Utilizing parametric modeling and intelligent design techniques, this study rapidly created homomorphic patchwork patterns. A feature-based parametric design model was established to store geometric features, coordinates, and filling styles. Specific design parameters were abstracted into design variables, with value range constraints and initial values specified for each. The constructed parametric model allows for observation and iterative adjustments of design changes by modifying the values of design variables, providing flexible control over the design process and achieving efficient and controllable parametric design. The innovation of this study lies in applying parametric modeling and intelligent design techniques to traditional patchwork design, providing flexible control over the design process, and realizing efficient and controllable parametric design. The study investigated the parametric design model of patchwork patterns using design variable methods and used matrix mathematical models to represent the patterns, allowing for flexible control over the design variables of patchwork patterns. Within the design platform, this study rapidly achieved the parametric design of patchwork patterns. The platform supports users in selecting pattern types, inputting parameters, and viewing real-time design outputs. The core design component uses Canvas rendered with Pixi.js for interactive, real-time design. Additionally, the platform utilized Pinia as a local data cache-sharing repository, combined with automatic cloud data caching technology, optimizing data processing. A decoupled software architecture was used, leveraging the Vue3 and FastAPI frameworks for front-end and back-end development, enhancing development efficiency and user experience. The design interface includes three modules: pattern selection, attribute configuration, and style design, supporting dynamic parameter adjustment and real-time preview, reducing manual design efforts and enhancing the realism of the displayed outputs. Overall, this study has successfully developed a rapid design tool that modernizes the traditional fabric design process, enhancing design efficiency and creativity.
The outcomes of this study provide innovative tools and platform support for the rapid design of homomorphic patchwork patterns, meeting the demand for personalized fabric patterns. Future work can explore further applications and improvements to this framework to further enhance design efficiency and creativity.

Key words:  , patchwork patterns, parametric design, homomorphic patchwork, computer-aided design, online design

中图分类号: