원시데이터 수집 시스템
선정목록으로

Research on compound twill generation algorithm based on moving matrix

간접 관련 패션 · (24) 패션(코오롱FnC) (3) 자동차 인테리어 소재(17) 스펀본드 부직포

기본 정보

저자
  1. Xiaobo Yang — Department of Information Science and Technology, Zhejiang Shuren University, Hangzhou, Zhejiang, P. R.China.
DOI
10.1371/journal.pone.0322531
저널
PLoS ONE
발행년도
2025
발행기관
Public Library of Science
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0322531
토픽
Textile materials and evaluations
OpenAlex ID
W4410229970

평가 내용

관련도
간접 관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
(3) 자동차 인테리어 소재, (17) 스펀본드 부직포
R&D 측면
분석·모델링
확신도
0.80
근거 용어
fabric CAD systems, yarn simulation, compound twill generation algorithm, geometric structure of fabrics, weaving pattern
판단 근거
이 논문은 복잡한 직물(twill)의 기하학적 구조를 컴퓨터로 시뮬레이션하고 재구성하기 위한 알고리즘을 다루고 있습니다. 이는 코오롱인더스트리의 패션 소재(24) 및 자동차 인테리어(3)용 직물 설계 및 CAD 시스템의 정밀도를 높이는 데 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
직물 설계 및 시뮬레이션 소프트웨어의 정확도를 높여, 실제 원단 생산 전 디지털 환경에서 복잡한 조직(twill, jacquard 등)의 외관과 구조를 정밀하게 예측하는 데 활용 가능합니다.
평가 입력
본문 22,464자

초록

To further enhance the authenticity of yarn simulation, we propose an algorithm for generating Compound Twills based on a moving matrix. Firstly, the key to designing composite twill is to determine the fly count. When the fly count of the twill is constantly changing, a composite twill can be obtained. Therefore, by utilizing the constantly changing characteristics of the fly count of the composite twill, a composite twill movement matrix model is established. Then, using this model, the appearance shape of complex fabrics can be reconstructed starting from simple composite twill. Finally, the Hilbert curve generation algorithm, the Bezier curve generation algorithm, and the proposed mobile matrix algorithm are selected for comparative experiments. After completing 8 steps of fitting for each of the three algorithms, their fitting accuracy is calculated. The average fitting accuracy of the three algorithms was 83.1%, 88.7%, and 96.8%, respectively. The experimental results demonstrate that the efficiency of our proposed algorithm is nearly 40% higher than other mainstream algorithms, with an average error of 33% less.

본문 22,464자

본문 펼치기
OPEN ACCESS Citation: Yang X (2025) Research on compound twill generation algorithm based on moving matrix. PLoS One 20(5): e0322531. <u>[https://doi.org/10.1371/journal.pone.0322531](https://doi.org/10.1371/journal.pone.0322531)</u> Editor: Giulia Pascoletti, University of Perugia: Universita degli Studi di Perugia, ITALY Received: October 23, 2024 Accepted: March 24, 2025 Published: May 9, 2025 Peer Review History: PLOS recognizes the benefits of transparency in the peer review process; therefore, we enable the publication of all of the content of peer review and author responses alongside final, published articles. The editorial history of this article is available here: <u>[https://doi.org/10.1371/journal.](https://doi.org/10.1371/journal.pone.0322531)</u> <u>[pone.0322531](https://doi.org/10.1371/journal.pone.0322531)</u> Copyright: © 2025 Xiaobo Yang. This is an open access article distributed under the terms of the <u>[Creative Commons Attribution License,](http://creativecommons.org/licenses/by/4.0/)</u> which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. RESEARCH ARTICLE # Research on compound twill generation algorithm based on moving matrix Xiaobo Yang Department of Information Science and Technology, Zhejiang Shuren University, Hangzhou, Zhejiang, P. R.China - <u>[yxb71520@163.com](mailto:yxb71520@163.com)</u> ## Abstract To further enhance the authenticity of yarn simulation, we propose an algorithm for generating Compound Twills based on a moving matrix. Firstly, the key to designing composite twill is to determine the fly count. When the fly count of the twill is constantly changing, a composite twill can be obtained. Therefore, by utilizing the constantly changing characteristics of the fly count of the composite twill, a composite twill movement matrix model is established. Then, using this model, the appearance shape of complex fabrics can be reconstructed starting from simple composite twill. Finally, the Hilbert curve generation algorithm, the Bezier curve generation algorithm, and the proposed mobile matrix algorithm are selected for comparative experiments. After completing 8 steps of fitting for each of the three algorithms, their fitting accuracy is calculated. The average fitting accuracy of the three algorithms was 83.1%, 88.7%, and 96.8%, respectively. The experimental results demonstrate that the efficiency of our proposed algorithm is nearly 40% higher than other mainstream algorithms, with an average error of 33% less. Introduction In recent years, significant advancements have been made in fabric CAD systems for reconstructing the geometric structure of fabrics, making it a prominent research focus within the field. F.t.peirce [1] utilized a simple and practical geometric model to represent plain fabric surfaces; however, its strict requirements on yarn section shape and flexibility limit its applicability. A. kemp [2] introduced a runway model to depict yarn cross-sections, significantly enhancing the appearance of yarn surfaces but falling short in constructing complex textured fabrics. Hamilton [3] enhanced the runway model by proposing variations suitable for different densities, expanding its application from plain to complex textured fabrics. H.y.in [4] employed b-splines to reconstruct fabric geometry based on input parameters such as yarn diameter and density. Tianyi Liao et al. [5] introduced a 3D woven fabric model, which describes the yarn path direction using a sinusoidal curve and constructs the 3D shape of yarn with PLOS One | <u>https://doi org/10 1371/journal pone 0322531</u> May 9 2025 1 / 7 Data availability statement: All relevant data are within the manuscript and its <u>Supporting</u> <u>Information</u> files. Funding: The Zhejiang Province Natural Science Foundation, grant number Y1110023 Competing interests: The authors have declared that no competing interests exist. the assistance of a runway model. Y.iang et al. [6] classified the yarn cross-section: elliptical cross-sections were modeled using a runway model, irregular cross-sections were represented by quadratic B-spline curves, and the yarn path was depicted using quadratic parameter spline curves. T.v.AGAR [7] et al., aimed to enhance fabric bending effects by dividing the yarn path into contact and non-contact areas, expressing them respectively with elliptic equations and quintic polynomials. Z.T.Shi et al. [8,9] utilized B-spline curves to construct the longitudinal shape of yarn, combined with light models to simulate the cross-section of the yarn, thereby enhancing fabric simulation effects. J.Fan et al. [10,11] employed computer-­aided geometric design technology to construct longitudinal shapes of yarn; they used runway models, elliptical models, and circular models to simulate different cross sections of yarn and further improved authenticity through texture mapping methods. The abovementioned methods are only suitable for reconstructing simple plain weave fabrics’ appearances. Furthermore, the current appearance simulation lacks three-­dimensionality and realism, which significantly impacts its practical effectiveness. This paper identifies the limitations of existing methods and investigates the application of moving matrix technology to reconstruct the surface morphology of complex woven fabrics, such as composite twill. Moving matrix model The compound twill exhibits a curved effect as the inclined angle of the twill changes. The curve twill is closely related to the twill fly number, which refers to the number of yarns in another system that are spaced between the corresponding tissue points on two adjacent yarns in the same system in twill fabrics. The initial compound twill can be represented by the following matrix.       (1) _A_ = ( _a_ 1, _a_ 2, _ai_, _. . ._, _an_ ) <sup>_T_</sup> =       _a_ 1 _a_ 2 _ai_ _. . ._ _an_ A represents the initial compound twill and ai represents the tissue point on the initial compound twill. The elements in the matrix represent the interweaving of warp and weft yarns, usually represented by 1 for warp yarn on top and 0 for weft yarn on top. The original data is normalized to make it on the same scale for subsequent processing. As the inclination angle of the twill constantly changes, i.e., the number of twill flights is in constant flux, the matrix format of the initial twill also undergoes continuous change, forming a dynamic matrix model. The twill fly number is one of the important indicators for measuring the quality of twill fabrics. It reflects the density of warp and weft yarns in the fabric, affecting its properties such as hand feel, thickness, and strength. _move_ <sup>_m_</sup> ( _A_ ) = ( _am_ +1, _am_ +2, _· · ·_, _an_, _a_ 1, _a_ 2, _· · ·_, _am_ ) <sup>_T_</sup> = _move_ <u>[</u> _move_ <sup>_m_</sup> <sup>–1</sup> ( _A_ ) <u>]</u> (2) , _m ≥_ 2 PLOS One | <u>https://doi org/10 1371/journal pone 0322531</u> May 9 2025 2 / 7 In formula <u>(2),</u> _move_ <sup>_m_</sup> ( _A_ ) is the defined move matrix model, m is the number of moves, and n is the number of organizational cycles. The number of organizational cycles refers to the smallest unit in a fabric where the vertical and horizontal crossing rules of warp and weft yarns are completely repeated, used to describe the structural characteristics of the fabric. Due to the susceptibility of real fabrics to factors such as thread tension, the model can introduce practical constraints such as thread tension and material elasticity models to simulate real fabrics. To further illustrate the principle of the moving matrix model, the effect of matrix movement is achieved using a two-­ dimensional plane transformation, as shown in <u>S1 Fig.</u> From <u>S1 Fig, it can be seen that the principle of the moving matrix model is to use linear transformations of two-­</u> dimensional vectors to describe translation transformations. P (x, y, z) is the coordinate of each vertex in the original matrix. By adding the coordinates of the two-dimensional coordinate points to the corresponding components of the translation vector, the new position P ‘(x’, y ‘, z’) after translation transformation is obtained. For general compound twill, the basic structure is as follows. _<u>n</u>_ <u>1</u> _<u>n</u>_ <u>2</u> _<u>· · · np</u>_ (3) _<u>m</u>_ 1 _<u>m</u>_ 2 _· · · mp_ According to formula <u>(1), the corresponding basic matrix expression can be calculated as follows.</u> _A_ = ( _mp_, _np_, _· · · m_ 1, _n_ 1) <sup>_T_</sup> (4) Where _mp_ = 0, 0, _· · ·_, 0; _np_ = 1, 1, _· · ·_, 1; _m_ 1 = 0, 0, _· · ·_, 0; _n_ 1 = 1, 1, _· · ·_, 1. _np_ is the continuous warp organization point of the basic organization, _mp_ is the continuous weft organization point of the basic organization, and p is the number of alternations of warp and weft of the basic organization. The flight number of compound twill is not a constant, but a variable, which can be set as _s_ 1, _s_ 2, _· · · sp_, then the compound twill can be expressed as follows. (5) _B_ = ( _A_, _move_ <sup>_s_</sup> <sup>1</sup> ( _A_ ), _move_ <sup>_s_</sup> <sup>1+</sup> <sup>_s_</sup> <sup>2</sup> ( _A_ ), _· · ·_, _move_ <sup>_s_</sup> <sup>1+</sup> <sup>_s_</sup> <sup>2,</sup> <sup>_···_</sup> <sup>,+</sup> <sup>_sp_</sup> ( _A_ )) B represents the compound twill after transformation and si represents the twill flight number. To make the compound twill change continuously, the following conditions should be met. _p_ _si_ = 0 _i_ =1 ∑ (6) Or meet the following requirements. The number of weave cycles of compound twill is an integral multiple of the number of basic weave cycles. _p_ _si_ = _kn_ _i_ =1 ∑ (7) In equation (7), K is an integer and n is the number of organizational cycles. In compound twill, the first and nth columns of the tissue cycle are repeated, allowing for the omission of the last column. The transformed matrix for compound twill can be expressed as follows. (8) _B_ = ( _A_, _move_ <sup>_s_</sup> <sup>1</sup> ( _A_ ), _move_ <sup>_s_</sup> <sup>1+</sup> <sup>_s_</sup> <sup>2</sup> ( _A_ ), _· · ·_, _move_ <sup>_s_</sup> <sup>1+</sup> <sup>_s_</sup> <sup>2,</sup> <sup>_···_</sup> <sup>,+</sup> <sup>_sp_</sup> <sup>–1</sup> ( _A_ )) PLOS One | <u>https://doi org/10 1371/journal pone 0322531</u> May 9 2025 3 / 7 Practical application Taking simple compound twill as an example, the matrix change process of compound twill is analyzed when the twill flight number changes. Take the basic organization as <sup><u>1</u></sup> <u>2, then the number of organization cycles</u> _n_ = 1 + 2 + 2 + 2 = 7, and the initial matrix is as follows. 2 2 1 0 1 0 0 1 1                                         0 1 0 1 1 0 0 1 0 1 0 0 1 0 _A_ = (1, 0, 1, 0, 0, 1, 1, ) <sup>_T_</sup> = When it is moved once, its matrix form is as follows.           _mov_ <sup>1</sup> ( _A_ ) = (0, 1, 0, 1, 1, 0, 0) <sup>_T_</sup> = When moving twice, its matrix form is as follows. _mov_ <sup>2</sup> ( _A_ ) = (1, 0, 1, 0, 0, 1, 0) <sup>_T_</sup> =           (9) (10) (11) Similarly, when the twill number of flies is a fixed value r, the structure matrix of the compound twill can be expressed as follows. (12) _B_ = ( _A_, _mov_ <sup>_r_</sup> ( _A_ ), _mov_ <sup>2</sup> <sup>_r_</sup> ( _A_ ), _· · · mov_ <sup>_nr_</sup> ( _A_ )) When the twill number is the variable _si_, the structure matrix of the compound twill can be expressed as follows. (13) _B_ = ( _A_, _mov_ <sup>_s_</sup> <sup>1</sup> ( _A_ ), _mov_ <sup>_s_</sup> <sup>1+</sup> <sup>_s_</sup> <sup>2</sup> ( _A_ ), _· · · mov_ <sup>_s_</sup> <sup>1+</sup> <sup>_s_</sup> <sup>2+</sup> <sup>_···sn_</sup> ( _A_ )) Based on the above principle, the generation process of compound twill is simulated by a computer under a VC++ environment, and the compound twill is organized and constructed based on <sup><u>1</u></sup> <u>2. It is assumed that the flight number of</u> twill changes in the following order. 2 2 _si_ = 1, 0, 1, 1, 2, 2, 3, 3, 3, 2, 2, 1, 0, 1, 0, –1, 0, –1, –1, –2, –2, –3, –3, –1, –1, 0, –1 (14) PLOS One | <u>https://doi org/10 1371/journal pone 0322531</u> May 9 2025 4 / 7 Based on the fundamental structure of the compound twill, the higher-order input for warp sequencing is 1,2. The lower-order input for warp sequencing is 2,2, and the sequence of twill flights changes according to <u>equation (14). The</u> direction of flight number change in the twill follows the warp direction, as illustrated in <u>S2 Fig.</u> <u>S2 Fig</u> illustrates the composite twill with dimensions of 800X386 pixels, a yarn density of 8 per centimeter in the fabric, and a total of 3 layers. The resulting composite twill exhibits a strong sense of hierarchy and clarity. Comparison experiment To validate the robustness of the algorithm proposed in this paper, several mainstream algorithms, including the Hilbert curve generation algorithm [12], Bessel curve generation algorithm [13], and the moving matrix method introduced in this study, will be chosen for comparative experiments. The experimental setup utilized in this study is as follows: the hardware platform comprises an Intel Core i6-4790 4.5GHz CPU, Intel G51 Express Chipset, and 8GB DDR3 RAM. The software platform consists of Visual Studio 2010. The experimental data encompasses input parameters, a moving matrix model, etc. The input parameters mainly include the basic organization and twill fly number. The moving matrix model adopts a quadratic translation transformation. Taking the basic organization <sup><u>4</u></sup> <u>4</u> <u>1</u> 1 3 3 <sup>as an example, a compound twill is constructed. The order of twill fly number changes</sup> adopts: _si_ = 0, 1, 0, 1, 2, 3, 2, 1, 0, 1, 0, –1, 0, –1, –2, –3, –2, –1, 0, –1, S3 Fig illustrates the impact of three different algorithms on simulating the compound twill. It is evident from <u>S3 Fig(a) that the composite twill is formed using the moving matrix method, resulting in a relatively</u> uniform texture distribution without any instances of overlap or winding. <u>S3 Fig(b)</u> and S3 Fig(c) demonstrate that both the Hilbert algorithm and Bessel algorithm exhibit deficiencies such as uneven texture spacing, warping, and zonal entanglement. To further compare the operational efficiency of three different algorithms, this study analyzed on the construction generation time of these algorithms, as illustrated in <u>S4 Fig.</u> <u>S4 Fig</u> illustrates that the Hilbert algorithm and Bessel algorithm exhibit longer running times compared to the mobile matrix method proposed in this paper. As the number of test cases increases, the average running time of the former two algorithms is nearly 40% higher than that of semantic analysis. In other words, the running efficiency of the mobile matrix method proposed in this paper surpasses that of the first two algorithms, enabling efficient generation of compound twills. Furthermore, to compare the fitting accuracy of the three different algorithms, the error variations for each algorithm are individually calculated and presented in <u>S5 Fig.</u> According to <u>S5 Fig, the average fitting errors and standard deviation of three different algorithms can be obtained, as</u> shown in <u>S1 Table.</u> <u>S5 Fig</u> illustrates that the fitting error of both the Hilbert algorithm and the Bessel algorithm increases as the test step size grows. When the test step size reaches 8, the iterative process tends to stabilize. After testing, this iterative process is also applicable to other twill types. While initially higher than those of the other two algorithms, the fitting error of the moving matrix method proposed in this paper decreases consistently with further testing, resulting in an average error that is 33% lower than that of the other two algorithms. Consequently, it can be concluded that the proposed moving matrix method exhibits relatively high fitting accuracy. To further verify the reliability of the algorithm proposed in this paper, representative fabric twills, namely double twill and triple twill, were selected for simulation experiments. The average fitting error and standard deviation of three different algorithms were calculated, and the results are presented in <u>S2 Table</u> and S3 Table. As can be seen from <u>S2 Table</u> and S3 Table, the mobile matrix method proposed in this paper exhibits smaller simulation error indicators for other typical fabric twills compared to the other two algorithms, once again verifying that the fitting accuracy of the algorithm proposed in this paper is higher than that of traditional algorithms. PLOS One | <u>https://doi org/10 1371/journal pone 0322531</u> May 9 2025 5 / 7 Conclusions This paper presents a novel compound twill generation algorithm based on a moving matrix, and the subsequent conclusions are derived through simulation and example verification. 1) When the number of twill flights changes, the matrix format of the initial twill also changes. Based on this, a moving matrix model is established, and the compound twill is formed through the iterative operation of the organizational cycle. 2) The primary algorithms are chosen for comparative experiments. The proposed algorithm demonstrates a 40% increase in efficiency compared to the Hilbert and Bessel algorithms, with an average error that is 33% lower than both, enabling efficient generation of compound twill. During the matrix operation process, it is also possible to improve cache hit rate and reduce memory access times by adjusting the order of loops, thereby further improving the operation efficiency. 3) The simulation effect of the method proposed in this article on other types of fabrics, such as jacquard fabrics, still has certain limitations. In the future, it can be considered to start from the geometric shape of the yarn, based on the brightness effect generated by lighting, establish a mathematical model for yarn simulation, and combine artificial intelligence technology to enhance the appearance of the fabric simulation as a whole. In addition, large-scale fabric simulation may require a large amount of memory resources, and a combination of sparse matrix and block computing can be used to effectively solve the memory and performance problems of moving matrix algorithms in large-scale fabric simulation. Supporting information [S1-S5 Figs. Figure-PLOS ONE - v3.](http://journals.plos.org/plosone/article/asset?unique&id=info:doi/10.1371/journal.pone.0322531.s001) (DOCX) [S1 File. Supporting Information - Lab Data - v2.](http://journals.plos.org/plosone/article/asset?unique&id=info:doi/10.1371/journal.pone.0322531.s002) (DOCX) [S1-S3 Tables. Table Information-PLOS ONE-v3.](http://journals.plos.org/plosone/article/asset?unique&id=info:doi/10.1371/journal.pone.0322531.s003) (DOCX) Acknowledgment Xiaobo Yang expresses gratitude to the scientific research team at Zhejiang Shuren University. Author contributions Conceptualization: Xiaobo Yang. Formal analysis: Xiaobo Yang. Writing – original draft: Xiaobo Yang. References 1. Kucher NK, Danil’chuk EL. Deformation analysis of 2/2 twill weave fabrics. Strength Mater. 2012;44(1):72–80. <u>[https://doi.org/10.1007/](https://doi.org/10.1007/s11223-012-9351-z)</u> <u>[s11223-012-9351-z](https://doi.org/10.1007/s11223-012-9351-z)</u> 2. Kemp A. An Extension of Peirce’s Cloth Geometry to the Treatment of Non-circular Threads. Journal of the Textile Institute Transactions. 1958;49(1):T44–8. <u>[https://doi.org/10.1080/19447025808660119](https://doi.org/10.1080/19447025808660119)</u> 3. Hamilton JB. 7—A general system of woven-fabric geometry. Journal of the Textile Institute Transactions. 1964;55(1):T66–82. <u>[https://doi.](https://doi.org/10.1080/19447026408660209)</u> <u>[org/10.1080/19447026408660209](https://doi.org/10.1080/19447026408660209)</u> PLOS One | <u>https://doi org/10 1371/journal pone 0322531</u> May 9 2025 6 / 7 4. Lin H-Y, Newton A. Computer Representation of Woven Fabric by Using B-splines. The Journal of The Textile Institute. 1999;90(1):59–72. <u>[https://](https://doi.org/10.1080/00405009908658691)</u> <u>[doi.org/10.1080/00405009908658691](https://doi.org/10.1080/00405009908658691)</u> 5. Liao T, Adanur S. A Novel Approach to Three-Dimensional Modeling of Interlaced Fabric Structures. Textile Research Journal. 1998;68(11):841–7. <u>[https://doi.org/10.1177/004051759806801109](https://doi.org/10.1177/004051759806801109)</u> 6. Tabiei A, Jiang Y. Woven fabric composite material model with material nonlinearity for nonlinear finite element simulation. International Journal of Solids and Structures. 1999;36(18):2757–71. <u>[https://doi.org/10.1016/s0020-7683(98)00127-9](https://doi.org/10.1016/s0020-7683%0x2898%0x2900127-9)</u> 7. Sagar TV, Potluri P, Hearle JWS. Mesoscale modelling of interlaced fibre assemblies using energy method. Computational Materials Science. 2003;28(1):49–62. <u>[https://doi.org/10.1016/s0927-0256(03)00056-9](https://doi.org/10.1016/s0927-0256%0x2803%0x2900056-9)</u> 8. Shi ZT, Zheng TY. Simulation Study of Unevenness Effect of Glass Fiber Filament Yarn on Fabric Appearance Based on B-spline Curve. Journal of Zhongyuan University of Technology, 2016,6:32–45. 9. Zhao Z, Zheng T. Study on ply yarn model construction by cubic C-Cardinal spline curve. Journal of Textile Research. 2014;12:67–78. 10. [Fan J, Yu W, Chen R. Identification of the shape of the yarn balloon using MATHEMATICA. J Phys: Conf Ser. 2008;96:012028. https://doi.](https://doi.org/10.1088/1742-6596/96/1/012028) <u>[org/10.1088/1742-6596/96/1/012028](https://doi.org/10.1088/1742-6596/96/1/012028)</u> 11. Kuzariski M.The algorithms of the yarn shape detection and calculation of the protruding fibres length. International Conference on Perspective Technologies and Methods in Mems Design. 2008;98–100. 12. Lu F, Zhou CH. An algorithm for Hilbert ordering code based on spatial hierarchical decomposition. Journal of Image and Graphics. 2001;6(5):465–469. 13. [Gao J Research on Bezier curve algorithm. Journal of Liaoning Teachers College. 2008;10(2):25–6.](http://creativecommons.org/licenses/by/4.0/) PLOS One | <u>https://doi org/10 1371/journal pone 0322531</u> May 9 2025 7 / 7

섹션 본문 44문단 · 14,093자

(제목 없음)

1To further enhance the authenticity of yarn simulation, we propose an algorithm for generating Compound Twills based on a moving matrix.Firstly, the key to designing composite twill is to determine the fly count.When the fly count of the twill is constantly changing, a composite twill can be obtained.Therefore, by utilizing the constantly changing characteristics of the fly count of the composite twill, a composite twill movement matrix model is established.Then, using this model, the appearance shape of complex fabrics can be reconstructed starting from simple composite twill.Finally, the Hilbert curve generation algorithm, the Bezier curve generation algorithm, and the proposed mobile matrix algorithm are selected for comparative experiments.After completing 8 steps of fitting for each of the three algorithms, their fitting accuracy is calculated.The average fitting accuracy of the three algorithms was 83.1%, 88.7%, and 96.8%, respectively.The experimental results demonstrate that the efficiency of our proposed algorithm is nearly 40% higher than other mainstream algorithms, with an average error of 33% less.

Introduction

2In recent years, significant advancements have been made in fabric CAD systems for reconstructing the geometric structure of fabrics, making it a prominent research focus within the field.F.t.peirce [1] utilized a simple and practical geometric model to represent plain fabric surfaces; however, its strict requirements on yarn section shape and flexibility limit its applicability. A. kemp [2] introduced a runway model to depict yarn cross-sections, significantly enhancing the appearance of yarn surfaces but falling short in constructing complex textured fabrics.Hamilton [3] enhanced the runway model by proposing variations suitable for different densities, expanding its application from plain to complex textured fabrics.H.y.in [4] employed b-splines to reconstruct fabric geometry based on input parameters such as yarn diameter and density.Tianyi Liao et al. [5] introduced a 3D woven fabric model, which describes the yarn path direction using a sinusoidal curve and constructs the 3D shape of yarn with the assistance of a runway model.Y.iang et al. [6] classified the yarn cross-section: elliptical cross-sections were modeled using a runway model, irregular cross-sections were represented by quadratic B-spline curves, and the yarn path was depicted using quadratic parameter spline curves.T.v.AGAR [7] et al., aimed to enhance fabric bending effects by dividing the yarn path into contact and non-contact areas, expressing them respectively with elliptic equations and quintic polynomials.Z.T.Shi et al. [8,9] utilized B-spline curves to construct the longitudinal shape of yarn, combined with light models to simulate the cross-section of the yarn, thereby enhancing fabric simulation effects.J.Fan et al. [10,11] employed computer-aided geometric design technology to construct longitudinal shapes of yarn; they used runway models, elliptical models, and circular models to simulate different cross sections of yarn and further improved authenticity through texture mapping methods.The abovementioned methods are only suitable for reconstructing simple plain weave fabrics' appearances.Furthermore, the current appearance simulation lacks three-dimensionality and realism, which significantly impacts its practical effectiveness.This paper identifies the limitations of existing methods and investigates the application of moving matrix technology to reconstruct the surface morphology of complex woven fabrics, such as composite twill.

Moving matrix model

3The compound twill exhibits a curved effect as the inclined angle of the twill changes.The curve twill is closely related to the twill fly number, which refers to the number of yarns in another system that are spaced between the corresponding tissue points on two adjacent yarns in the same system in twill fabrics.The initial compound twill can be represented by the following matrix.

4A represents the initial compound twill and ai represents the tissue point on the initial compound twill.The elements in the matrix represent the interweaving of warp and weft yarns, usually represented by 1 for warp yarn on top and 0 for weft yarn on top.The original data is normalized to make it on the same scale for subsequent processing.

5As the inclination angle of the twill constantly changes, i.e., the number of twill flights is in constant flux, the matrix format of the initial twill also undergoes continuous change, forming a dynamic matrix model.The twill fly number is one of the important indicators for measuring the quality of twill fabrics.It reflects the density of warp and weft yarns in the fabric, affecting its properties such as hand feel, thickness, and strength.

6Data availability statement: All relevant data are within the manuscript and its Supporting Information files.

Funding:

7The Zhejiang Province Natural Science Foundation, grant number Y1110023

8Competing interests: The authors have declared that no competing interests exist.

9In formula (2), move m (A) is the defined move matrix model, m is the number of moves, and n is the number of organizational cycles.The number of organizational cycles refers to the smallest unit in a fabric where the vertical and horizontal crossing rules of warp and weft yarns are completely repeated, used to describe the structural characteristics of the fabric.Due to the susceptibility of real fabrics to factors such as thread tension, the model can introduce practical constraints such as thread tension and material elasticity models to simulate real fabrics.

10To further illustrate the principle of the moving matrix model, the effect of matrix movement is achieved using a twodimensional plane transformation, as shown in S1 Fig.

11From S1 Fig, it can be seen that the principle of the moving matrix model is to use linear transformations of twodimensional vectors to describe translation transformations.P (x, y, z) is the coordinate of each vertex in the original matrix.By adding the coordinates of the two-dimensional coordinate points to the corresponding components of the translation vector, the new position P '(x', y ', z') after translation transformation is obtained.

12For general compound twill, the basic structure is as follows.

13According to formula (1), the corresponding basic matrix expression can be calculated as follows.

14Where

15n p is the continuous warp organization point of the basic organization, m p is the continuous weft organization point of the basic organization, and p is the number of alternations of warp and weft of the basic organization.

16The flight number of compound twill is not a constant, but a variable, which can be set as s 1 , s 2 , • • • s p , then the compound twill can be expressed as follows.

17B represents the compound twill after transformation and si represents the twill flight number.

18To make the compound twill change continuously, the following conditions should be met.

19Or meet the following requirements.The number of weave cycles of compound twill is an integral multiple of the number of basic weave cycles.p ∑ i=1 s i = kn (7) In equation (7), K is an integer and n is the number of organizational cycles.

20In compound twill, the first and nth columns of the tissue cycle are repeated, allowing for the omission of the last column.The transformed matrix for compound twill can be expressed as follows.

Practical application

21Taking simple compound twill as an example, the matrix change process of compound twill is analyzed when the twill flight number changes.Take the basic organization as 1 2 2 2

22, then the number of organization cycles n = 1 + 2 + 2 + 2 = 7, and the initial matrix is as follows.

23When it is moved once, its matrix form is as follows.

24When moving twice, its matrix form is as follows.

25Similarly, when the twill number of flies is a fixed value r, the structure matrix of the compound twill can be expressed as follows.

26When the twill number is the variable s i , the structure matrix of the compound twill can be expressed as follows.

27Based on the above principle, the generation process of compound twill is simulated by a computer under a VC++ environment, and the compound twill is organized and constructed based on 1 2 2 2

28. It is assumed that the flight number of twill changes in the following order.

29Based on the fundamental structure of the compound twill, the higher-order input for warp sequencing is 1,2.The lower-order input for warp sequencing is 2,2, and the sequence of twill flights changes according to equation ( 14).The direction of flight number change in the twill follows the warp direction, as illustrated in S2 Fig.

30S2

Comparison experiment

31To validate the robustness of the algorithm proposed in this paper, several mainstream algorithms, including the Hilbert curve generation algorithm [12], Bessel curve generation algorithm [13], and the moving matrix method introduced in this study, will be chosen for comparative experiments.

32The experimental setup utilized in this study is as follows: the hardware platform comprises an Intel Core i6-4790 4.5GHz CPU, Intel G51 Express Chipset, and 8GB DDR3 RAM.The software platform consists of Visual Studio 2010.The experimental data encompasses input parameters, a moving matrix model, etc.The input parameters mainly include the basic organization and twill fly number.The moving matrix model adopts a quadratic translation transformation.Taking the basic organization 4 4 1

333 as an example, a compound twill is constructed.The order of twill fly number changes adopts: To further compare the operational efficiency of three different algorithms, this study analyzed on the construction generation time of these algorithms, as illustrated in S4 Fig.

34S4 Fig illustrates that the Hilbert algorithm and Bessel algorithm exhibit longer running times compared to the mobile matrix method proposed in this paper.As the number of test cases increases, the average running time of the former two algorithms is nearly 40% higher than that of semantic analysis.In other words, the running efficiency of the mobile matrix method proposed in this paper surpasses that of the first two algorithms, enabling efficient generation of compound twills.

35Furthermore, to compare the fitting accuracy of the three different algorithms, the error variations for each algorithm are individually calculated and presented in S5 Fig.

36According S5 Fig illustrates that the fitting error of both the Hilbert algorithm and the Bessel algorithm increases as the test step size grows.When the test step size reaches 8, the iterative process tends to stabilize.After testing, this iterative process is also applicable to other twill types.While initially higher than those of the other two algorithms, the fitting error of the moving matrix method proposed in this paper decreases consistently with further testing, resulting in an average error that is 33% lower than that of the other two algorithms.Consequently, it can be concluded that the proposed moving matrix method exhibits relatively high fitting accuracy.

37To further verify the reliability of the algorithm proposed in this paper, representative fabric twills, namely double twill and triple twill, were selected for simulation experiments.The average fitting error and standard deviation of three different algorithms were calculated, and the results are presented in S2 As can be seen from S2 Table and S3 Table, the mobile matrix method proposed in this paper exhibits smaller simulation error indicators for other typical fabric twills compared to the other two algorithms, once again verifying that the fitting accuracy of the algorithm proposed in this paper is higher than that of traditional algorithms.

Conclusions

38This paper presents a novel compound twill generation algorithm based on a moving matrix, and the subsequent conclusions are derived through simulation and example verification.1) When the number of twill flights changes, the matrix format of the initial twill also changes.Based on this, a moving matrix model is established, and the compound twill is formed through the iterative operation of the organizational cycle.

392) The primary algorithms are chosen for comparative experiments.The proposed algorithm demonstrates a 40% increase in efficiency compared to the Hilbert and Bessel algorithms, with an average error that is 33% lower than both, enabling efficient generation of compound twill.During the matrix operation process, it is also possible to improve cache hit rate and reduce memory access times by adjusting the order of loops, thereby further improving the operation efficiency.

403) The simulation effect of the method proposed in this article on other types of fabrics, such as jacquard fabrics, still has certain limitations.In the future, it can be considered to start from the geometric shape of the yarn, based on the brightness effect generated by lighting, establish a mathematical model for yarn simulation, and combine artificial intelligence technology to enhance the appearance of the fabric simulation as a whole.In addition, large-scale fabric simulation may require a large amount of memory resources, and a combination of sparse matrix and block computing can be used to effectively solve the memory and performance problems of moving matrix algorithms in large-scale fabric simulation.

41Fig illustrates the composite twill with dimensions of 800X386 pixels, a yarn density of 8 per centimeter in the fabric, and a total of 3 layers.The resulting composite twill exhibits a strong sense of hierarchy and clarity.

42Fig illustrates the impact of three different algorithms on simulating the compound twill.It is evident from S3 Fig(a) that the composite twill is formed using the moving matrix method, resulting in a relatively uniform texture distribution without any instances of overlap or winding.S3 Fig(b) and S3 Fig(c) demonstrate that both the Hilbert algorithm and Bessel algorithm exhibit deficiencies such as uneven texture spacing, warping, and zonal entanglement.

43to S5 Fig, the average fitting errors and standard deviation of three different algorithms can be obtained, as shown in S1 Table.

44Table and S3 Table.

참고문헌 11건

  1. Woven fabric composite material model with material nonlinearity for nonlinear finite element simulation International Journal of Solids and Structures · Elsevier BV · 1999 10.1016/s0020-7683(98)00127-9
  2. The algorithms of the yarn shape detection and calculation of the protruding fibres length International Conference on Perspective Technologies and Methods in MEMS Design · 2008 10.1109/memstech.2008.4558752
  3. Computer Representation of Woven Fabric by Using B-splines Journal of the Textile Institute · Taylor & Francis · 1999 10.1080/00405009908658691
  4. Deformation analysis of 2/2 twill weave fabrics Strength of Materials · Springer Science+Business Media · 2012 10.1007/s11223-012-9351-z
  5. 7—A GENERAL SYSTEM OF WOVEN-FABRIC GEOMETRY Journal of the Textile Institute Transactions · Taylor & Francis · 1964 10.1080/19447026408660209
  6. An Extension of Peirce's Cloth Geometry to the Treatment of Non-circular Threads Journal of the Textile Institute Transactions · Taylor & Francis · 1958 10.1080/19447025808660119
  7. Mesoscale modelling of interlaced fibre assemblies using energy method Computational Materials Science · Elsevier BV · 2003 10.1016/s0927-0256(03)00056-9
  8. Identification of the shape of the yarn balloon using MATHEMATICA Journal of Physics Conference Series · IOP Publishing · 2008 10.1088/1742-6596/96/1/012028
  9. A Novel Approach to Three-Dimensional Modeling of Interlaced Fabric Structures Textile Research Journal · SAGE Publishing · 1998 10.1177/004051759806801109
  10. Study on ply yarn model construction by cubic C-Cardinal spline curve Textile Research Journal · SAGE Publishing · 2014
  11. An Algorithm for Hilbert Ordering Code Based on Spatial Hierarchical Decomposition Journal of Image and Graphics · University of Portsmouth · 2001