摘要
为提高机织物结构三维建模的效率,提出一种运用3ds MAX软件内嵌的MAXScript语言进行机织物结构三维建模的方法。根据机织物结构相理论和经纬纱交织规律,建立了纱线轴线型值点的数量及型值点三维坐标和机织物几何结构参数的关系,并运用MAXScript语言编程构建Spline Shape类对象的方法,建立了经纬纱轴线曲线和机织物结构的三维模型。研究结果表明:以MAXScript语言编程方式,根据机织物几何结构参数建立相应的型值点坐标,并以样条插值方式自动生成纱线轴线曲线;同时结合Spline Shape类对象属性设置,运用MAXScript语言卷展栏功能开发出机织物组织参数输入界面,可方便快速地实现机织物结构的参数化三维建模。
In order to improve the efficiency of three-dimensional modeling of woven fabric structure,a method of constructing three-dimensional model of woven fabric using MAXScript language embedded in3 ds MAX software was proposed. According to the theory of structure phase of woven fabric and the interlace rule of warp yarns and weft yarns,the relationship between the number of data points of yarn axis and the three-dimensional coordinates of the data point and the geometrical structure parameters of the woven fabric was established. And the warp axis curve,weft axis curve and the three-dimensional model of the fabric structure was established by SplineShape class object based on the the MAXScript program. The research shows that the coordinate of data point can be established according to the geometric parameters of the woven fabric by MAXScript program,and the curve of the yarn axis can be automatically generated by the spline interpolation with property setting of SplineShape class object and a parameter input interface of woven fabric is developed by rollout feature of MAXScript program,then the parametric three-dimensional model of the woven fabric structure can be realized conveniently and quickly.
引文
[1]郑天勇,黄故.机织物中纱线3D模型的建立[J].纺织学报,2002,23(2):13-15.ZHENG Tianyong,HUANG Gu. 3D modeling of yarn in woven fabric[J]. Journal of Textile Research,2002,23(2):13-15.
[2]郑天勇,崔世忠.用B样条曲面构建纱线三维模型的研究(I):具有不同截面的三维纱线模型的构造[J].纺织学报,2006,27(2):53-57.ZHENG Tianyong,CUI Shizhong. Study on constructing the 3D yarn model by B-spline surface:part I:construction of the 3D yarn model with different cross sections[J]. Journal of Textile Research,2006,27(2):53-57.
[3]郑天勇,崔世忠.用B样条曲面构建纱线三维模型的研究(II):纱线捻度的三维模拟[J].纺织学报,2006,27(3):24-26.ZHENG Tianyong,CUI Shizhong. Study on constructing the 3D yarn model by B-spline surface:part II:inserting 3D bumping texture on surface of yarn[J].Journal of Textile Research,2006,27(3):24-26.
[4]王东峰,郑天勇,崔世忠,等.三维单纱的计算机模拟[J].棉纺织技术,2006,34(6):29-31.WANG Dongfeng,ZHENG Tianyong,CUI Shizhong,et al.Three-dimensional computer simulation of single yarn[J].Cotton Textile Technology,2006,34(6):29-31.
[5]崔世忠,郑天勇,王东峰,等.用变截面纱线模型模拟平纹织物的研究[J].棉纺织技术,2007,35(4):20-22.CUI Shizhong,ZHENG Tianyong,WANG Dongfeng,et al. Research of simulating plain weave fabric by fancy cross section yarn model[J]. Cotton Textile Technology,2007,35(4):20-22.
[6]瞿畅,王君泽,高强.机织物几何模型及其计算机模拟[J].纺织学报,2002,23(3):46-48.QU Chang, WANG Junze, GAO Qiang. Geometric model and computer simulation of woven fabric[J].Journal of Textile Research,2002,23(3):46-48.
[7]张瑞云,黄新林,李汝勤.机织物的计算机三维模拟[J].纺织学报,2005,26(1):62-63,69.ZHANG Ruiyun, HUANG Xinlin, LI Ruqin. 3-D computer simulation of woven fabric[J]. Journal of Textile Research,2005,26(1):62-63,69.
[8]顾平,许家英.基于3ds Max软件平台织物结构的三维模拟[J].丝绸,2007,11:40-43.GU Ping,XU Jiaying. 3-Dimensional simulation of fabric structure based on the 3DS MAX 7. 0software[J]. Journal of Silk,2007,11:40-43.
[9]谷大鹏,杨育林,齐效文,等.机织物三维仿真中组织模块化快速构建[J].纺织学报,2014,35(1):134-138.GU Dapeng,YANG Yulin,QI Xiaowen,et. al. Fast modular construction of weave in woven fabric threedimensional simulation[J]. Journal of Textile Research,2014,35(1):134-138.
[10]刘让同,李亮,刘淑萍,等.机织物结构相模型剖析和修正[J].纺织学报,2017,38(10):32-37.LIU Rangtong,LI Liang,LIU Shuping,et. al. Analysis of modification of structure phase model of woven fabric[J]. Journal of Textile Research,2017,38(10):32-37.
[11]张国华,杨兴强,张彩明.基于权因子的NURBS曲线形状调整[J].计算机辅助设计与图形学学报,2004(10):1396-1400.ZHANG Guohua,YANG Xingqiang,ZHANG Caiming.Weight-based shape modification of NURBS curves[J].Journal of Computer-aided Design and Computer Graphics,2004(10):1396-1400.
[12]王华.3ds MAXScript脚本语言完全学习手册[M].北京:兵器工业出版社,2006:382-386,708-738.WANG Hua. 3ds MAXScript Complete Study Manual[M]. Beijing:The Publishing House of Ordnance Industry,2006:382-386,708-738.