纺织学报 ›› 2021, Vol. 42 ›› Issue (05): 59-65.doi: 10.13475/j.fzxb.20200905707

• 纺织工程 • 上一篇    下一篇

基于WebGL的纬编提花织物三维仿真

郑培晓, 蒋高明()   

  1. 江南大学 针织技术教育部工程研究中心, 江苏 无锡 214122
  • 收稿日期:2020-09-22 修回日期:2021-01-21 出版日期:2021-05-15 发布日期:2021-05-20
  • 通讯作者: 蒋高明
  • 作者简介:郑培晓(1996—),女,博士生。主要研究方向为数字化纺织技术。
  • 基金资助:
    中央高校基本科研业务费专项资金资助项目(JUSRP52013B);国家自然科学基金项目(61772238);国家自然科学基金项目(61902150)

Three-dimensional simulation of weft-knitted jacquard fabric based on WebGL

ZHENG Peixiao, JIANG Gaoming()   

  1. Engineering Research Center for Knitting Technology, Ministry of Education, Jiangnan University, Wuxi, Jiangsu 214122, China
  • Received:2020-09-22 Revised:2021-01-21 Online:2021-05-15 Published:2021-05-20
  • Contact: JIANG Gaoming

摘要:

为了实现纬编提花织物的三维结构仿真和虚拟仿真,在深入研究各提花类型编织原理的基础上总结其仿真结构特点。通过数学建模的方法,建立提花织物中常用的线圈几何模型、线圈型值点模型和平移模型,借助矩阵运算可根据织物组织快速计算线圈的空间坐标位置。采用WebGL技术和三维图形引擎库Three.js,根据型值点空间坐标实现了三维线圈结构的绘制和颜色渲染,截取提花织物三维仿真图作为纹理材质,利用纹理映射技术实现纬编提花织物三维虚拟仿真。以各类提花效应的三维仿真效果为例对仿真方法进行检验,结果表明矩阵模型可以实现线圈型值点坐标快速转换与计算,WebGL技术可实现三维结构仿真可视化从而准确描述提花织物结构特征,增强服装虚拟仿真的真实感。

关键词: 纬编, 提花织物, WebGL技术, 矩阵模型, 三维结构仿真

Abstract:

In order to simulate three-dimensional (3-D) structural and weft-knitted jacquard fabrics, the structural characteristics of simulation were summarized on the basis of the knitting principle of each jacquard type. By means of mathematical modeling, three types of loop geometry models, loop point model and translational model of jacquard fabrics were established. WebGL technology and 3-D graphics engine library Three.js were adopted for drawing and rendering 3-D loop structures according to the spatial coordinates of the loop points. The 3-D simulation was intercepted as texture material, and 3-D virtual simulation of weft-knitted jacquard fabrics was created through technology of texture mapping. The simulation method was tested with different types of jacquard effects. The results show that the matrix model is effective for the rapid transformation and calculation of the loop coordinates, and WebGL technology works for the visualization of 3-D structural simulation to accurately describe the structure characteristics of jacquard fabrics. Realistic virtual simulation of clothing was enhanced using this method.

Key words: weft knitting, jacquard fabric, WebGL technology, matrix model, 3-D structural simulation

中图分类号: 

  • TS186.2

表1

不同提花效应中线圈类型的仿真结构参数"

m 提花效应 正面线圈 反面线圈
1 二色浮线 Tf
Nf
xf
yf
zf
2 二色横条 Tb=Tf,Nb=Nf/2yb1=yf1-Nf/4yb2=yf2+Nf/4
3 二色竖条 Tb=Tf,Nb=Nfyb1=yf1+Nf/4yb2=yf2+Nf/4
4 二色芝麻点 Tb=Tf,Nb=Nfyb1=yf1+Nf/2yb2=yf2+Nf/2
5 二色空气层 Tb=Tf,Nb=Nfyb1=yf1,yb2=yf2
6 三色浮线 Tf
Nf
xf
yf1'=yf1
yf2'=yf2+Nf×13
yf3'=yf3+Nf×23
zf
7 三色横条 Tb=Tf,Nb=Nf/3yb1=yf1,yb2=yf2yb3=yf3
8 三色竖条 Tb=Tf,Nb=Nfyb1=yf1,yb2=yf2yb3=yf3
9 三色芝麻点 Tb=Tf,Nb=Nf×3/4yb1=yf1,yb2=yf2yb3=yf3

图1

正面线圈8点模型"

图2

线圈平移示意图"

表2

不同提花效应中线圈类型的平移参数a值"

m 提花效应 正面线圈a 反面线圈a
1 二色浮线 0 0
2 二色横条 0 S1:-N/4;S2:N/4
3 二色竖条 0 S1:N/4;S2:N/4
4 二色芝麻点 0 S1:N/2;S2:N/2
5 二色空气层 0 0
6 三色浮线 S1:0
S2:N/3
S3:N×2/3
S1:0
S2:N/3
S2:N/3
7 三色横条
8 三色竖条
9 三色芝麻点

图3

线圈单元的三维仿真图"

图4

坐标转换示意图"

图5

各提花类型三维仿真效果图"

图6

提花织物三维虚拟仿真效果图"

[1] LEE A, JANG I. Implementation of an open platform for 3D spatial information based on WebGL[J]. ETRI Journal, 2019,41(3):277-288.
doi: 10.4218/etr2.2019.41.issue-3
[2] DALACOSTA K, PAVLATOU E A. Using cartoons agents and 3D visualizations based on HTML5 for improving learning in crystal structures in engineers[J]. Computer Applications in Engineering Education, 2020,28(1):5-16.
doi: 10.1002/cae.v28.1
[3] 丛洪莲, 张永超, 张爱军, 等. 纬编均匀提花针织物仿真结构模型的建立[J]. 纺织学报, 2016,37(8):143-148.
CONG Honglian, ZHANG Yongchao, ZHANG Aijun, et al. Simulation structure model of weft knitted flat jacquard fabrics[J]. Journal of Textile Research, 2016,37(8):143-148.
[4] 万爱兰, 缪旭红, 丛洪莲, 等. 纬编技术发展现状及提花产品进展[J]. 纺织导报, 2015(7):35-39.
WAN Ailan, MIAO Xuhong, CONG Honglian, et al. Development status of weft-knitting technology and related jacquard products[J]. China Textile Leader, 2015(7):35-39.
[5] 王薇, 蒋高明, 高梓越, 等. 纬编提花织物计算机辅助设计模型与算法[J]. 纺织学报, 2018,39(3):161-166.
WANG Wei, JIANG Gaoming, GAO Ziyue, et al. Computer aided design system model and algorithm of weft knitted jacquard fabrics[J]. Journal of Textile Research, 2018,39(3):161-166.
[6] PEIRCE F. Geometrical principles applicable to the design of functional fabrics[J]. Textile Research Journal, 1947,17:123-147.
doi: 10.1177/004051754701700301
LU Z, JIANG G. Rapid simulation of flat knitting loops based on the yarn texture and loop geometrical model[J]. Autex Research Journal, 2016,17(2):103-110.
[8] 卢致文. 横编针织物CAD系统研究与实现[D]. 无锡:江南大学, 2016: 64-71.
LU Zhiwen. Investigation and realization of computer aided design system for flat-knitted fabric[D]. Wuxi: Jiangnan University, 2016: 64-71.
[9] KALDOR J, JAMES D, MARSCHNER S. Simulating knitted cloth at the yarn level[J]. Acm Trans Graph, 2008,27(3):65.1-65.9.
[10] YUKSEL C, KALDOR J, JAMES D, et al. Stitch meshes for modeling knitted clothing with yarn-level detail[J]. Acm Transactions on Graphics, 2012,31(4):37-37.
[11] WU K, SWAN H, YUKSEL C. Knittable stitch meshes[J]. ACM Transactions on Graphics, 2019,38(1):1-13.
[12] 蒋高明. 针织学[M]. 北京: 中国纺织出版社, 2012: 77.
JIANG Gaoming. Knitting[M]. Beijing: China Textile & Apparel Press, 2012: 77.
[13] LI X, JIANG G, ZHANG A, et al. Modeling and realization for appearance visualization of textronic laces[J]. Textile Research Journal, 2019,89(21/22):4526-4536.
doi: 10.1177/0040517519835766
[1] 乔灿灿, 姜亚明, 齐业雄, 林温妮, 张野. 冲击波在陶瓷增强纬编双轴向多层衬纱织物及机织物复合材料中传递的表征[J]. 纺织学报, 2021, 42(05): 84-89.
[2] 胡旭东, 宋炎锋, 汝欣, 彭来湖. 大小头筒状纬编针织物建模及其线圈长度逆向设计[J]. 纺织学报, 2021, 42(04): 80-84.
[3] 周亚勤, 王攀, 张朋, 张洁. 纬编织造车间生产调度方法研究[J]. 纺织学报, 2021, 42(04): 170-176.
[4] 彭来湖, 罗昌, 牛冲, 吕永法, 胡旭东, 戴宁. 针织纬编氨纶输送控制技术[J]. 纺织学报, 2021, 42(04): 162-169.
[5] 刘立东, 李新荣, 刘汉邦, 李丹丹. 基于纬编针织物特性的静电吸附力模型[J]. 纺织学报, 2021, 42(03): 161-168.
[6] 孙亚博, 李立军, 马崇启, 吴兆南, 秦愈. 基于ABAQUS的筒状纬编针织物拉伸力学性能模拟[J]. 纺织学报, 2021, 42(02): 107-112.
[7] 戴宁, 彭来湖, 胡旭东, 崔英, 钟垚森, 王越峰. 纬编针织机织针自由状态下固有频率测试方法[J]. 纺织学报, 2020, 41(11): 150-155.
[8] 彭稀, 周赳. 中国古代织锦重组织结构的特征及其演变规律[J]. 纺织学报, 2020, 41(09): 67-75.
[9] 张爱丹, 周赳. 聚集态网点结构提花织物的灰度仿真特性[J]. 纺织学报, 2020, 41(03): 62-67.
[10] 周赳, 陆爽怿. 数码提花织物分层组合设计原理及其实践[J]. 纺织学报, 2020, 41(02): 58-63.
[11] 梁佳璐, 丛洪莲, 张爱军. 纬编两面提花针织物的工艺设计模型[J]. 纺织学报, 2020, 41(01): 69-74.
[12] 张爱丹, 周赳. 组合全显色提花织物的纹理设计原理与方法[J]. 纺织学报, 2019, 40(05): 36-40.
[13] 韩晓雪, 缪旭红. 氨纶纬编导电针织物纵向电力学性能[J]. 纺织学报, 2019, 40(04): 60-65.
[14] 万爱兰, 缪旭红, 马丕波, 陈晴, 陈方芳. 功能性纬编斜纹牛仔面料的设计及其性能[J]. 纺织学报, 2019, 40(04): 55-59.
[15] 汝欣 彭来湖 吕明来 史伟民 胡旭东. 纬编针织物几何建模及其算法[J]. 纺织学报, 2018, 39(09): 44-49.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!