纺织学报 ›› 2019, Vol. 40 ›› Issue (01): 159-165.doi: 10.13475/j.fzxb.20180304307

• 管理与信息化 • 上一篇    下一篇

运用MAXScript语言的单层机织物结构三维建模

王旭1,2(), 储长流1, 倪庆清3, 刘新华1,2   

  1. 1.安徽工程大学 纺织服装学院, 安徽 芜湖 241000
    2.安徽工程大学 纺织科技公共服务平台,安徽 芜湖 241000
    3.信州大学 纤维学部, 日本 长野 3868567
  • 收稿日期:2018-03-19 修回日期:2018-10-16 出版日期:2019-01-15 发布日期:2019-01-18
  • 作者简介:王旭(1973—),男,副教授,博士。主要研究方向为纺织CAD。E-mail: wangxu_ahpu@hotmail.com
  • 基金资助:
    安徽省高校优秀青年骨干人才国内外访学研修资助项目(gxfx2017045);安徽工程大学国家自然科学基金预研项目(2015yy02);安徽省高校自然基金重点项目(KJ2016A797);“纺织面料”安徽省高校重点开放基金项目([2015FZ001])

Three-dimensional modeling on single-layer woven fabric structure using MAXScript language

WANG Xu1,2(), CHU Changliu1, NI Qingqing3, LIU Xinhua1,2   

  1. 1. College of Textile and Clothing, Anhui Polytechnic University, Wuhu, Anhui 241000, China
    2. Science and Technology Public Service Platform for Textile Industry, Anhui Polytechnic University, Wuhu, Anhui 241000, China
    3. Faculty of Textile Science and Technology, Shinshu University, Nagano 3868567, Japan
  • Received:2018-03-19 Revised:2018-10-16 Online:2019-01-15 Published:2019-01-18

摘要:

为提高机织物结构三维建模的效率,提出一种运用3ds MAX软件内嵌的MAXScript语言进行机织物结构三维建模的方法。根据机织物结构相理论和经纬纱交织规律,建立了纱线轴线型值点的数量及型值点三维坐标和机织物几何结构参数的关系,并运用MAXScript语言编程构建SplineShape类对象的方法,建立了经纬纱轴线曲线和机织物结构的三维模型。研究结果表明:以MAXScript语言编程方式,根据机织物几何结构参数建立相应的型值点坐标,并以样条插值方式自动生成纱线轴线曲线;同时结合SplineShape类对象属性设置,运用MAXScript语言卷展栏功能开发出机织物组织参数输入界面,可方便快速地实现机织物结构的参数化三维建模。

关键词: MAXScript, 机织物, 型值点, 样条曲线, 三维建模

Abstract:

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 in 3ds 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.

Key words: MAXScript, woven fabric, data point, spline curve, 3-D modeling

中图分类号: 

  • TS105.11

图1

平纹组织第5结构相示意图"

图2

斜纹组织第5结构相示意图"

图3

纱线轴线型值点分布示意图"

图4

平纹组织纱线轴线型值点示意图 (a)Perspective; (b)Top view; (c)Left view"

表1

平纹组织经纱型值点坐标"

序号 第1经 第2经
(32,0,0) (332,0,0)
(32,32,0.5) (332,32,-0.5)
(32,3,0) (332,3,0)
(32,332,-0.5) (332,332,0.5)
(32,23,0) (332,23,0)

表2

平纹组织纬纱型值点坐标"

序号 第1纬 第2纬
(0,32,0) (0,332,0)
(32,32,-0.5) (32,332,0.5)
(3,32,0) (3,332,0)
(332,32,0.5) (332,332,-0.5)
(23,32,0) (23,332,0)

图5

程序流程图"

图6

纱线不同截面边数的三维模型 (a) Polygon with 8 sides; (b) Polygon with 36 sides"

图7

机织物组织参数输入界面"

图8

平纹组织三维模型示意图 (a) Top view; (b) Front view; (c) Left view; (d) Perspective"

图9

斜纹组织三维模型示意图 (a) Top view; (b) Front view; (c) Left view; (d) Perspective"

图10

菱形斜纹组织三维模型示意图"

[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.
doi: 10.1177/004051755702700104
[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.0 software[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 three-dimensional 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.
[1] 张祝辉, 张典堂, 钱坤, 徐阳, 陆健. 广角机织物的织造工艺及其偏轴拉伸力学性能[J]. 纺织学报, 2020, 41(08): 27-31.
[2] 武鲜艳, 申屠宝卿, 马倩, 金利民, 张威, 谢胜. 球形弹体冲击下三维正交机织物结构破坏机制有限元分析[J]. 纺织学报, 2020, 41(08): 32-38.
[3] 代振兴, 陈广锋, 陈革. 基于Rhino-Python 的多圈高簇绒地毯三维仿真[J]. 纺织学报, 2020, 41(06): 69-75.
[4] 马颜雪, 王世娜, 李毓陵, 温润. 方格立衬结构机织物的一次成形设计实践[J]. 纺织学报, 2020, 41(06): 42-47.
[5] 金诗怡, 周赳. 具有双层效果的提花-印花-剪花织物的设计[J]. 纺织学报, 2020, 41(06): 48-54.
[6] 杨恩惠, 邱华, 代文杰. 基于六边形网格结构的针织物三维建模[J]. 纺织学报, 2019, 40(11): 69-74.
[7] 王旭, 杜增锋, 王翠娥, 倪庆清, 刘新华. 贯穿正交机织物结构的参数化三维建模[J]. 纺织学报, 2019, 40(11): 57-63.
[8] 贾高鹏, 宋小红, 李 莹, 刘晓丹, 潘雪茹. 铜镍金属涂层机织物拉伸过程中电流的响应[J]. 纺织学报, 2019, 40(10): 68-72.
[9] 刘倩楠 张涵 刘新金 苏旭中. 基于ABAQUS 的三原组织机织物拉伸力学性能模拟[J]. 纺织学报, 2019, 40(04): 44-50.
[10] 唐文君 彭明华 向中林 邵冬燕 倪佳东 许长海. 应用阳离子漂白活化剂的棉织物快速轧蒸漂白工艺[J]. 纺织学报, 2019, 40(02): 125-129.
[11] 刘赛 郑冬明 潘行星 刘贵 杜赵群. 交叉螺旋结构拉胀纱线及其织物的成形与表征[J]. 纺织学报, 2019, 40(02): 26-29.
[12] 沈奕君 张婷婷 柯莹 王宏付. 三维参数化技术在构建现代服装新形态中的应用[J]. 纺织学报, 2018, 39(12): 118-123.
[13] KHAN Monir MUHAMMAD Ali 方小银 周熠. 纱罗组织对芳纶织物交织阻力的影响 [J]. 纺织学报, 2018, 39(11): 38-44.
[14] 汪泽幸 刘超 何斌 周锦涛 李洪登. 聚氯乙烯涂层膜材料非线性蠕变性能预测[J]. 纺织学报, 2018, 39(10): 68-73.
[15] 敖利民 唐雯. 基于综框任意升降的随机织物设计方法[J]. 纺织学报, 2018, 39(08): 33-40.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!