Three-dimensional knitting model generation method and device, electronic equipment and storage medium
By generating braided layers and using braided points to generate braided strips, the problem of low model modeling efficiency is solved, rapid design and automatic shape adaptation of braided items are achieved, and design efficiency and quality are improved.
Patent Information
- Application Number
- CN202411193743.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2025-01-10
AI Technical Summary
In the prior art, the modeling efficiency of the braided model is low, resulting in a long design cycle of braided articles, unable to automatically adapt to shape changes, and it takes a lot of time to manually model the braided strips.
By generating the first braided layer and the second braided layer, and using the first and second braided points to generate braided strips in different directions, controlling the generation of braided layers and braided points, reducing the user's manual modeling needs, and only the braiding needs need to be adjusted Parameters can create a body weaving model.
It improves the efficiency of knitted model modeling, shortens the design cycle, realizes the automatic evolution of the shape of braided items, and reduces labor costs and modeling time.
Smart Images

Figure CN119294040A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital modeling, and in particular to a method, device, electronic equipment and storage medium for generating a three-dimensional knitting model. Background Art
[0002] The weaving craft has been passed down from generation to generation / has a long history, and on this basis, various exquisite items have been designed, such as Figure 1 , 2 As shown. Due to its excellent characteristics such as environmental protection / breathability / aesthetics, weaving elements have penetrated into all walks of life, and can even be used to make woven mobile phone back shells, mobile phone protective cases and other electronic product accessories. When using weaving elements for design, modeling becomes a huge workload. After the designer designs the shape of the object, it is necessary to build the weaving strips one by one according to the shape, and then combine them into shape. In the actual weaving process, if the shape of the object changes, it also needs to be re-woven, and it cannot evolve automatically according to the shape.
[0003] Each braided fabric has a different size and shape, and requires a different number of braids (the larger or more complex the shape, the more braids are needed). For the design of each braided item, the designer needs to spend a lot of time modeling the braids one by one and then combine them. The workload of braiding strip modeling is huge, resulting in low modeling efficiency of three-dimensional braided models and a long design cycle for braided items. Therefore, there is an urgent need for a solution that can improve the modeling efficiency of braided models. Summary of the invention
[0004] The embodiment of the present invention provides a three-dimensional weaving model generation method, aiming to provide a solution that can improve the modeling efficiency of the weaving model, thereby improving the design speed of the weaving article and shortening the design cycle of the weaving article. The first weaving parameter can be used to generate a first weaving layer and a second weaving layer on the base model of the target weaving article, and the second weaving parameter can be used to generate weaving strips in different directions based on the first type of weaving points and the second type of weaving points in the weaving layer. The weaving parameters can be used to control the generation of the weaving layer and the weaving points, thereby controlling the generation of the weaving strips. The user does not need to model the weaving strips, and only needs to change the first weaving parameter and the second weaving parameter to generate the corresponding three-dimensional weaving model, thereby improving the modeling efficiency of the weaving model and shortening the design cycle of the weaving article.
[0005] In a first aspect, an embodiment of the present invention provides a method for generating a three-dimensional knitting model, the method comprising:
[0006] Obtaining a base model of a target woven object;
[0007] Based on the preset first weaving parameters, a first weaving layer and a second weaving layer of the target weaving object are generated on the surface of the base model, the first weaving layer and the second weaving layer have the same weaving points, and for one weaving layer, two adjacent groups of weaving points correspond to a group of first-type weaving points and a group of second-type weaving points, respectively; for two weaving layers, the same group of weaving points corresponds to a group of first-type weaving points and a group of second-type weaving points, respectively;
[0008] Based on the preset second weaving parameters, between the first weaving layer and the second weaving layer, a first weaving strip in a first direction is generated through the first type of weaving points, and a second weaving strip in a second direction is generated through the second type of weaving points, so as to obtain a three-dimensional weaving model of the target weaving object, wherein the first direction and the second direction are not parallel directions.
[0009] Optionally, the step of generating a first braided layer and a second braided layer of the target braided object on the surface of the base model based on a preset first braiding parameter includes:
[0010] Based on the first weaving parameter, determining the weaving density and weaving looseness of the target weaving object;
[0011] Based on the weaving density, generating a reference weaving layer on the surface of the base model, wherein the reference weaving layer includes a plurality of groups of weaving points distributed according to the weaving density;
[0012] Based on the braiding slack, the first braided layer and the second braided layer of the target braided object are separated from the reference braided layer.
[0013] Optionally, the step of separating the first braided layer and the second braided layer of the target braided object from the reference braided layer based on the braiding slackness includes:
[0014] Based on the adjacency relationship of each group of the braiding points in the reference braided layer, determining the separation direction of each braiding point, the separation direction including a first moving direction corresponding to the first type of braiding points and a second moving direction corresponding to the second type of braiding points, the first moving direction being opposite to the second moving direction;
[0015] Based on the braiding slack, determining a separation amount of each of the braiding points, the separation amount comprising a first movement amount corresponding to the first type of braiding points and a second movement amount corresponding to the second type of braiding points;
[0016] Based on the separation direction and the separation amount, the first type of braiding points and the second type of braiding points corresponding to each of the braiding points are separated to obtain the first braiding layer and the second braiding layer of the target braided object.
[0017] Optionally, the step of obtaining the three-dimensional knitting model of the target knitted object by generating a first knitting strip in a first direction between the first knitting layer and the second knitting layer through the first type of knitting points and generating a second knitting strip in a second direction through the second type of knitting points based on a preset second knitting parameter includes:
[0018] determining a knitting cross-section of the target knitted object based on the second knitting parameter;
[0019] Between the first braided layer and the second braided layer, a first braiding path in a first direction is generated through the first type of braiding points, and a second braiding path in a second direction is generated through the second type of braiding points;
[0020] Based on the weaving cross section, a first weaving strip and a second weaving strip are generated respectively on the basis of the first weaving path and the second weaving path, so as to obtain a three-dimensional weaving model of the target weaving object.
[0021] Optionally, the step of generating a first braiding path in a first direction through the first type of braiding points and generating a second braiding path in a second direction through the second type of braiding points between the first braided layer and the second braided layer includes:
[0022] For the first braided layer and the second braided layer, the first type of braiding points and the second type of braiding points are coded to obtain a first coding layer and a second coding layer, wherein the first coding layer corresponds to the first braided layer, and the second coding layer corresponds to the second braided layer;
[0023] Based on the first direction and the second direction, path generation processing is performed between the first coding layer and the second coding layer to obtain the first weaving path and the second weaving path.
[0024] Optionally, the step of encoding the first type of braiding points and the second type of braiding points for the first braided layer and the second braided layer to obtain a first coding layer and a second coding layer includes:
[0025] For the first braided layer and the second braided layer, the first type of braiding points are subjected to a first coding process so that the first type of braiding points have a first coding identification, and the second type of braiding points are subjected to a second coding process so that the second type of braiding points have a second coding identification, thereby obtaining the first coding layer and the second coding layer.
[0026] Optionally, the step of performing path generation processing between the first coding layer and the second coding layer based on the first direction and the second direction respectively to obtain the first weaving path and the second weaving path includes:
[0027] In the current coding layer, a first path point is determined along the first direction. If a first jump condition is triggered, the knitting point corresponding to the triggering of the first jump condition is used as the jump point, and the process jumps to another coding layer. The second path point is continued to be determined along the first direction, and the first path point is connected with the second path point in a corresponding knitting point sequence to obtain a first knitting path. The first jump condition is that the first coding identifier is changed, or that a preset number of the first type of knitting points is reached. The current coding layer is the first coding layer or the second coding layer.
[0028] In the current coding layer, a third path point is determined along the second direction. If the second jump condition is triggered, the weaving point corresponding to the triggering of the second jump condition is used as the jump point, and the process jumps to another coding layer. The fourth path point is continued to be determined along the second direction, and the third path point is connected with the fourth path point in the corresponding weaving point sequence to obtain a second weaving path. The second jump condition is that the second coding identifier changes, or that a preset number of the second type of weaving points is reached.
[0029] In a second aspect, an embodiment of the present invention further provides a three-dimensional knitting model generating device, the three-dimensional knitting model generating device comprising:
[0030] An acquisition module, used for acquiring a matrix model of a target woven object;
[0031] A first processing module, for generating a first braided layer and a second braided layer of the target braided object on the surface of the base model based on a preset first braiding parameter, wherein the first braided layer and the second braided layer have the same braiding points, and for one braided layer, two adjacent groups of the braiding points correspond to a group of first-type braiding points and a group of second-type braiding points, respectively; and for two braided layers, the same group of the braiding points corresponds to a group of the first-type braiding points and a group of the second-type braiding points, respectively;
[0032] A second processing module is used to generate a first braided strip in a first direction between the first braided layer and the second braided layer through the first type of braiding points, and to generate a second braided strip in a second direction through the second type of braiding points based on a preset second braiding parameter, so as to obtain a three-dimensional braiding model of the target braided object, wherein the first direction and the second direction are not parallel directions.
[0033] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the three-dimensional weaving model generation method provided in the embodiment of the present invention are implemented.
[0034] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the three-dimensional weaving model generation method provided in the embodiment of the invention are implemented.
[0035] In an embodiment of the present invention, a base model of a target woven object is obtained; based on a preset first weaving parameter, a first weaving layer and a second weaving layer of the target woven object are generated on the surface of the base model, the first weaving layer and the second weaving layer have the same weaving points, and for one weaving layer, two adjacent groups of weaving points correspond to a group of first-class weaving points and a group of second-class weaving points, respectively; for two weaving layers, the same group of weaving points corresponds to a group of first-class weaving points and a group of second-class weaving points, respectively; based on a preset second weaving parameter, between the first weaving layer and the second weaving layer, a first weaving strip in a first direction is generated through the first-class weaving points, and a second weaving strip in a second direction is generated through the second-class weaving points, so as to obtain a three-dimensional weaving model of the target woven object, and the first direction and the second direction are not parallel directions. The present invention can generate a first weaving layer and a second weaving layer on a base model of a target woven fabric through a first weaving parameter, and generate weaving strips in different directions based on the first and second weaving points in the weaving layer through a second weaving parameter. The weaving parameters can be used to control the generation of the weaving layer and the weaving points, thereby controlling the generation of the weaving strips. The user does not need to model the weaving strips, but only needs to change the first weaving parameters and the second weaving parameters to generate the corresponding three-dimensional weaving model, thereby improving the modeling efficiency of the weaving model and shortening the design cycle of the woven product. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 is a schematic diagram of a woven article in the background art;
[0038] Figure 2 is a schematic diagram of another woven article in the background art;
[0039] Figure 3 is a flow chart of a method for generating a three-dimensional knitting model provided by an embodiment of the present invention; Figure 4a is a schematic diagram of a base model of a woven article provided by an embodiment of the present invention;
[0040] Figure 4b This is a rendering of a knitting model of a knitted article provided by an embodiment of the present invention;
[0041] Figure 4c This is a modified braiding model effect diagram provided by an embodiment of the present invention;
[0042] Figure 5 It is a physical display diagram of the effect of braiding slackness provided by an embodiment of the present invention;
[0043] Figure 6 is a schematic diagram of a braiding relaxation of 0.1 provided in an embodiment of the present invention;
[0044] Figure 7 is a schematic diagram of a braiding slackness of 0.3 provided by an embodiment of the present invention;
[0045] Figure 8 is a schematic diagram of a braiding relaxation of 0.6 provided by an embodiment of the present invention;
[0046] Fig. 9 is a schematic diagram of a weaving point provided by an embodiment of the present invention;
[0047] Fig.10 is a schematic diagram of a weaving point separation provided by an embodiment of the present invention;
[0048] Fig.11 is a schematic diagram of a first braided layer and a second braided layer provided by an embodiment of the present invention;
[0049] Fig.12 is a schematic diagram of a matrix of a first braided layer and a second braided layer provided by an embodiment of the present invention;
[0050] Fig.13 It is a schematic diagram of the principle of interlacing of braiding points provided by an embodiment of the present invention;
[0051] Fig.14 It is a schematic diagram of another principle of interlacing of braiding points provided by an embodiment of the present invention;
[0052] Fig.15 is a schematic diagram of another type of interlacing of braiding points provided by an embodiment of the present invention;
[0053] Fig.16 It is a structural schematic diagram of a three-dimensional knitting model generating device provided by an embodiment of the present invention;
[0054] Fig.17 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] like Figure 3 As shown, Figure 3 1 is a method flow chart of a three-dimensional knitting model generation method provided by an embodiment of the present invention. The three-dimensional knitting model generation method comprises the steps of:
[0057] 301. Obtain a base model of a target knitting object.
[0058] In an embodiment of the present invention, the above-mentioned three-dimensional knitting model generation method can be applied to electronic devices with three-dimensional model design functions, such as servers, service stations or terminal devices equipped with three-dimensional modeling software. The above-mentioned target knitting object refers to an object that needs to be knitted and designed, which can be any daily necessities, such as mobile phone cases, data cables, accessories, etc.
[0059] The above-mentioned base model can be understood as a model that has not been woven. Specifically, the above-mentioned base model is a three-dimensional model of the target woven object that has not been woven. Figure 4a shown.
[0060] The above-mentioned base model can be constructed by the user, obtained by scanning a physical object, or pre-stored in the model. The user can perform modeling on a 3D software (such as Rhino) and refine a base model whose appearance meets the user's requirements.
[0061] 302. Generate a first braided layer and a second braided layer of a target braided object on a surface of a base model based on a preset first braiding parameter.
[0062] In the embodiment of the present invention, the first weaving parameter can be used to define the weaving point distribution and the interval between the first weaving layer and the second weaving layer. The weaving density and weaving tightness in the weaving effect can be expressed by the weaving point distribution and the interval between the first weaving layer and the second weaving layer.
[0063] The first braided layer and the second braided layer have the same braiding points. For one braided layer, two adjacent groups of braiding points correspond to a group of first-class braiding points and a group of second-class braiding points respectively. For two braided layers, the same braiding point corresponds to a first-class braiding point and a second-class braiding point respectively.
[0064] Specifically, the first braided layer includes multiple groups of first-class braiding points and multiple groups of second-class braiding points, each group of first-class braiding points includes at least one first-class encoding point, and each group of second-class braiding points includes at least one second-class braiding point. In the first braided layer, there is a group of second-class braiding points as an interval between two adjacent groups of first-class braiding points, and there is a group of first-class braiding points as an interval between two adjacent groups of second-class braiding points. Similarly, the second braided layer includes multiple groups of first-class braiding points and multiple groups of second-class braiding points, each group of first-class braiding points includes at least one first-class encoding point, and each group of second-class braiding points includes at least one second-class braiding point. In the second braided layer, there is a group of second-class braiding points as an interval between two adjacent groups of first-class braiding points, and there is a group of first-class braiding points as an interval between two adjacent groups of second-class braiding points.
[0065] The first type of braiding points in the second braided layer correspond one-to-one to the second type of braiding points in the first braided layer, and the second type of braiding points in the second braided layer correspond one-to-one to the first type of braiding points in the first braided layer. That is, for a group of braiding points, if it is a first type of braiding point in the first braided layer, it is a second type of braiding point in the second braided layer, and if it is a first type of braiding point in the second braided layer, it is a second type of braiding point in the first braided layer.
[0066] Taking the example that each group of first-class braiding points includes one first-class braiding point, and each group of second-class braiding points includes one second-class braiding point, the first braided layer includes multiple first-class braiding points and multiple second-class braiding points. In the first braided layer, there is a second-class braiding point as an interval between two adjacent first-class braiding points, and there is a first-class braiding point as an interval between two adjacent second-class braiding points. Similarly, the second braided layer includes multiple first-class braiding points and multiple second-class braiding points. In the second braided layer, there is a second-class braiding point as an interval between two adjacent first-class braiding points, and there is a first-class braiding point as an interval between two adjacent second-class braiding points. The first-class braiding points in the second braided layer correspond one-to-one to the second-class braiding points in the first braided layer, and the second-class braiding points in the second braided layer correspond one-to-one to the first-class braiding points in the first braided layer. That is, for a braiding point position, if it is a first-class braiding point in the first braided layer, it is a second-class braiding point in the second braided layer, and if it is a first-class braiding point in the second braided layer, it is a second-class braiding point in the first braided layer.
[0067] The above-mentioned weaving points can be understood as the points corresponding to the high points and low points in the weaving effect, and one weaving point corresponds to a first-class weaving point and a second-class weaving point at the same time. The difference between the first-class weaving points and the second-class weaving points lies in the different directions of the weaving strips to which they belong. That is, the above-mentioned first-class weaving points are used to generate weaving strips in the first direction, while the second-class weaving points are used to generate weaving strips in the second direction. Taking horizontal and vertical weaving items as an example, the horizontal and vertical weaving items are woven from horizontal weaving strips and vertical weaving strips. The first-class weaving points can be used to generate horizontal weaving strips, and the second-class weaving strips can be used to generate vertical weaving strips, or the first-class weaving points can be used to generate vertical weaving strips, and the second-class weaving strips can be used to generate horizontal weaving strips.
[0068] 303. Based on the preset second weaving parameters, between the first weaving layer and the second weaving layer, a first weaving strip in a first direction is generated through the first type of weaving points, and a second weaving strip in a second direction is generated through the second type of weaving points, to obtain a three-dimensional weaving model of the target weaving object.
[0069] In an embodiment of the present invention, the above-mentioned second weaving parameters can be used to define the generation parameters of the weaving strip, such as the material, size and other parameters of the weaving strip, and then generate the first weaving strip and the second weaving strip of corresponding materials and sizes. Since the first weaving layer and the second weaving layer are generated based on the surface of the base model of the target woven article, the first weaving layer and the second weaving layer have the same modeling structure as the base model, and then the distribution of the corresponding first type of weaving points and the second type of weaving points also has the same modeling structure as the base model. Therefore, after generating the corresponding first weaving strip and the second weaving strip on the basis of the first type of weaving points and the second type of weaving points, the obtained weaving model also has the same modeling structure as the base model, and the user does not need to weave through the weaving strips.
[0070] The first direction and the second direction are not parallel directions. The first direction and the second direction can be orthogonal directions or non-orthogonal directions, that is, there is a certain angle between the first direction and the second direction, so that the weaving effect can be reflected. Figure 4a Correspondingly, the weaving effect of the three-dimensional weaving model of the target weaving object is as follows: Figure 4b shown.
[0071] In a possible embodiment, after obtaining the three-dimensional knitting model of the target knitting object, the three-dimensional knitting model of the target knitting object can also be modified and adjusted by the first knitting parameter and the second knitting parameter. For example, the number of knitting strips can be increased by modifying the second knitting parameter. After the modification and adjustment, the knitting effect of the three-dimensional knitting model of the target knitting object is as follows: Figure 4c shown.
[0072] In an embodiment of the present invention, a base model of a target woven object is obtained; based on a preset first weaving parameter, a first weaving layer and a second weaving layer of the target woven object are generated on the surface of the base model, the first weaving layer and the second weaving layer have the same weaving points, and for one weaving layer, two adjacent groups of weaving points correspond to a group of first-class weaving points and a group of second-class weaving points, respectively; for two weaving layers, the same group of weaving points corresponds to a group of first-class weaving points and a group of second-class weaving points, respectively; based on a preset second weaving parameter, between the first weaving layer and the second weaving layer, a first weaving strip in a first direction is generated through the first-class weaving points, and a second weaving strip in a second direction is generated through the second-class weaving points, so as to obtain a three-dimensional weaving model of the target woven object, and the first direction and the second direction are not parallel directions. The present invention can generate a first weaving layer and a second weaving layer on a base model of a target woven fabric through a first weaving parameter, and generate weaving strips in different directions based on the first and second weaving points in the weaving layer through a second weaving parameter. The weaving parameters can be used to control the generation of the weaving layer and the weaving points, thereby controlling the generation of the weaving strips. The user does not need to model the weaving strips, but only needs to change the first weaving parameters and the second weaving parameters to generate the corresponding three-dimensional weaving model, thereby improving the modeling efficiency of the weaving model and shortening the design cycle of the woven product.
[0073] It should be noted that the three-dimensional weaving model generation method provided in the embodiment of the present invention can be applied to smart phones, tablets, computers, servers and other devices that can perform the three-dimensional weaving model generation method.
[0074] It is understandable that in the specific implementation of this application, related data such as item data, interface data, software data, etc. are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0075] Optionally, in the step of generating a first weaving layer and a second weaving layer of a target weaving object on the surface of a base model based on a preset first weaving parameter, the weaving density and weaving slackness of the target weaving object can be determined based on the first weaving parameter; based on the weaving density, a reference weaving layer is generated on the surface of the base model, the reference weaving layer includes a plurality of groups of weaving points distributed according to the weaving density; based on the weaving slackness, the first weaving layer and the second weaving layer of the target weaving object are separated from the reference weaving layer.
[0076] In the embodiment of the present invention, the user can adjust the braiding density and braiding looseness by adjusting the input first braiding parameter. The braiding density can represent the interval between the braiding points. The larger the braiding density, the smaller the interval. The smaller the braiding density, the larger the interval. The braiding looseness, the horizontal and vertical crossed braiding strips will squeeze each other to produce an arc (such as Figure 5 ), different weaving strengths (negatively correlated with weaving relaxation) produce different weaving effects. Taking the weaving of a flat shape as an example, combined with Figure 6 , Figure 7 and Figure 8 , Figure 6 , Figure 7 and Figure 8 The corresponding braiding relaxation values are 0.1, 0.3, and 0.6. Figure 6 , Figure 7 and Figure 8 As can be seen from the figure, the curvature of the braided strip changes with the value when the braided strip is tightened. The larger the braiding slack value, the larger the curvature; the smaller the braiding slack value, the tighter it is.
[0077] On the base model, according to the weaving density in the weaving parameters, the corresponding weaving point generation instructions are generated, and weaving points are generated on the surface of the base model through the weaving point generation instructions. For example, in Rhino 6, the DivideSurface command is used to generate weaving points on the surface according to the shape of the target weaving object. It can be understood that the layer where the above weaving points are located is the reference weaving layer, and the weaving points are distributed in the reference weaving layer.
[0078] After obtaining the reference braided layer, the braiding points in the reference braided layer can be grouped to divide the braiding points into multiple groups of braiding points, each group of braided points includes at least one braiding point, and the separation directions of two adjacent groups of braided points are different. The number of braiding points included in each group of braided points can be default, such as the number of braiding points in each group is 1, or can be user-defined, such as the number of braiding points in one group is 1 and the number of points in one organization is 3.
[0079] The braiding points in the reference braiding layer are separated based on the braiding slack. The greater the braiding slack, the greater the separation distance, and the smaller the braiding slack, the smaller the separation distance. The corresponding relationship between the separation distance and the braiding slack can be recorded in a mapping table, and different braiding slack corresponds to different separation distances.
[0080] Specifically, for a group of weaving points, a group of first-class weaving points and a group of second-class weaving points can be separated, and the first-class weaving points and the second-class weaving points are separated in different directions. For the reference weaving layer, on the same group of weaving points, the corresponding first-class weaving points are separated to one side of the reference weaving layer, and the corresponding second-class weaving points are separated to the other side of the reference weaving layer. The separation distance has a corresponding relationship with the weaving slack, and the corresponding relationship between the separation distance and the weaving slack can be recorded in a mapping table, so that after the user inputs the weaving slack, the corresponding separation distance can be directly found in the mapping table according to the weaving slack. After all weaving points are separated, the first weaving layer and the second weaving layer located on both sides of the reference weaving layer are obtained.
[0081] In a possible embodiment, after the user inputs the first weaving parameter, the Divide Surface command is used to generate weaving points on the surface according to the weaving density and the shape of the object; when it is recognized that it is an instruction to execute weaving modeling, the reference weaving layer is copied from a single layer to two layers, and two layers of weaving points (or two types of weaving points) are obtained, and the two layers of weaving points overlap at this time. One of the two layers of weaving points is marked and characterized as a first type of weaving point layer, and the other layer of weaving points is also marked and characterized as a second type of weaving point layer. Among them, the marking method includes color marking, symbol marking, etc. The mark is written into the attribute of the weaving point, which can be displayed visually or hidden.
[0082] The weaving points in the first type of weaving point layer can be marked as green or with the number 1, specifically, the points are displayed in green or with the number label 1 added for display; the weaving points in the second type of weaving point layer can be marked as red or with the number 0, specifically, the relevant points are displayed in red or with the number label 0 added for display.
[0083] After the user inputs the first weaving parameter, the separation distance of the weaving points is controlled by the Move command. The Move command also includes adjusting the up and down height / left and right width / front and back convexity of the point. Different move data will change different weaving slack. Among them, the smaller the slack (for example, the flatter the points), the tighter the weaving; the larger the slack (for example, the greater the difference in convexity between the points), the looser the weaving. The move command may include directly inputting the weaving slack, such as 1, 0.6, 0.3. Different weaving slack values can be automatically moved to different weaving points, such as Figure 6 , Figure 7 and Figure 8 shown.
[0084] When the move instruction is formed, the knitting points of the first type knitting point layer and the second type knitting point layer respectively receive the slack value, and then perform separation movement corresponding to the slack value with the reference knitting layer respectively.
[0085] For the braiding points in the first braiding point layer, the displacement amount a of the braiding points in the first braiding point layer is obtained by inputting the relaxation value, and after the braiding points in the first braiding point layer are respectively shifted by the amount a, the first braiding points are separated into the first braiding layer and the second braiding layer. Similarly, for the braiding points in the second braiding point layer, the displacement amount a of the braiding points in the first braiding point layer is obtained by inputting the relaxation value, and after the braiding points in the second braiding point layer are respectively shifted by the amount a, the second braiding points are separated into the first braiding layer and the second braiding layer.
[0086] Among them, before the weaving points in the first type of weaving point layer and the weaving points in the second type of weaving point layer are displaced, the weaving points in the first type of weaving point layer and the weaving points in the second type of weaving point layer are overlapped at the same weaving point position. After the weaving points in the first type of weaving point layer and the weaving points in the second type of weaving point layer are displaced respectively, the first type of weaving points and the second type of weaving points are further divided into two layers, namely the first weaving layer and the second weaving layer. If the first weaving layer is the upper layer and the second weaving layer is the lower layer, the weaving points in the first weaving layer will form the peaks of the subsequent weaving strips, including the first type of weaving points and the second type of weaving points. The weaving points in the second weaving layer will form the troughs of the subsequent weaving strips, including the first type of weaving points and the second type of weaving points.
[0087] Optionally, in the step of separating the first braided layer and the second braided layer of the target braided object from the reference braided layer based on the braiding slack, the separation direction of each group of braided points can be determined based on the adjacency relationship of each group of braided points in the reference braided layer, the separation direction including a first movement direction corresponding to the first type of braided points, and a second movement direction corresponding to the second type of braided points, the first movement direction being opposite to the second movement direction; based on the braiding slack, the separation amount of each group of braided points (or the separation amount of each braided point) is determined, the separation amount including a first movement amount corresponding to the first type of braided points, and a second movement amount corresponding to the second type of braided points; based on the separation direction and the separation amount, the first type of braided points and the second type of braided points corresponding to each braided point are separated to obtain the first braided layer and the second braided layer of the target braided object.
[0088] In the embodiment of the present invention, in the reference braided layer, the above-mentioned adjacency relationship can be understood as an adjacent relationship between two braiding points. Specifically, in the reference braided layer, the separation directions of two adjacent groups of braiding points are opposite, and for one group of braiding points, the separation directions of the corresponding first type braiding points and second type braiding points are opposite.
[0089] The separation direction corresponding to the first type of braiding points is the first moving direction, and the separation direction corresponding to the second type of braiding points is the second moving direction. The first moving direction and the second moving direction are opposite moving directions.
[0090] For example, see Fig. 9 and Fig.10 , in the reference braided layer, adjacent braiding points 1 and 2, for braiding point 1, the corresponding first-class braiding point is A1, and the corresponding second-class braiding point is B1, for braiding point 2, the corresponding first-class braiding point is A2, and the corresponding second-class braiding point is B2. Assuming that the direction of separation to one side of the reference plane is +, and the direction of separation to the other side of the reference plane is -, the separation direction is represented by (first moving direction, second moving direction), if the separation direction of braiding point 1 is (+, -), then the separation direction of braiding point 2 is (-, +), if the separation direction of braiding point 1 is (-, +), then the separation direction of braiding point 2 is (+, -).
[0091] The above separation amount is determined according to the braiding slack, and the braiding slack can be determined according to the move input by the user. For the braiding points in the first type of braiding point layer, the displacement of the braiding points in the first type of braiding point layer is obtained by the input slack value, and the braiding points in the first type of braiding point layer are respectively shifted by the amount a, and the first type of braiding points are separated into the first braiding layer and the second braiding layer according to the first moving direction. Similarly, for the braiding points in the second type of braiding point layer, the displacement of the braiding points in the first type of braiding point layer is obtained by the input slack value, and the braiding points in the second type of braiding point layer are respectively shifted by the amount a, and the second type of braiding points are separated into the first braiding layer and the second braiding layer according to the second moving direction. If the separation direction of braiding point position 1 is (+, -), and the separation direction of braiding point position 2 is (-, +), the separation of braiding point position 1 can be expressed as (+a, -a), and the separation of braiding point position 2 can be expressed as (-a, +a). At this time, for weaving point 1, the movement amount corresponding to the first type of weaving point is a, and the movement direction is +; the movement amount corresponding to the second type of weaving point is a, and the movement direction is -. For weaving point 2, the movement amount corresponding to the first type of weaving point is a, and the movement direction is -; the movement amount corresponding to the second type of weaving point is a, and the movement direction is +. If the separation direction of weaving point 1 is (-, +), and the separation direction of weaving point 2 is (+, -), then the separation of weaving point 1 can be expressed as (-a, +a), and the separation of weaving point 2 can be expressed as (+a, -a). At this time, for weaving point 1, the movement amount corresponding to the first type of weaving point is a, and the movement direction is -; the movement amount corresponding to the second type of weaving point is a, and the movement direction is +. For weaving point 2, the movement amount corresponding to the first type of weaving point is a, and the movement direction is +; the movement amount corresponding to the second type of weaving point is a, and the movement direction is -.
[0092] By separating the braiding points in the reference braided layer according to the braiding slack, the first braided layer and the second braided layer of the user's braiding modeling can be obtained.
[0093] Optionally, in the step of obtaining a three-dimensional weaving model of a target weaving object by generating a first weaving strip in a first direction through a first type of weaving points between a first weaving layer and a second weaving strip in a second direction through a second type of weaving points based on a preset second weaving parameter, the weaving cross-section of the target weaving object can be determined based on the second weaving parameter; generating a first weaving path in a first direction through a first type of weaving points between the first weaving layer and the second weaving layer, and generating a second weaving path in a second direction through a second type of weaving points; and generating a first weaving strip and a second weaving strip based on the first weaving path and the second weaving path, respectively, based on the weaving cross-section to obtain a three-dimensional weaving model of the target weaving object.
[0094] In an embodiment of the present invention, the second braiding parameters can be used to define the generation parameters of the braiding strip, such as the material, size, braiding cross section and other parameters of the braiding strip. The braiding cross section of the braiding strip can be a braiding cross section of different sizes and shapes, such as a circular structure with different radii, a rectangular cross section with different side lengths, or an irregular cross section of different sizes, etc. The user can design and adjust it according to the needs. The first braiding path and the second braiding path are wavy paths. In the first braiding path, the first type of braiding points are crests or troughs. In the two adjacent groups of the first type of braiding points of the same first braiding path, one group of the first type of braiding points is a crest, and the other group of the first type of braiding points is a trough. In the second braiding path, the second type of braiding points are crests or troughs. In the two adjacent groups of the second type of braiding points of the same second braiding path, one group of the second type of braiding points is a crest, and the other group of the second type of braiding points is a trough.
[0095] The first braiding path can be obtained by starting from the starting point and alternately taking points in the first braiding layer and the second braiding layer in the first direction. The first braiding points taken are connected to obtain the first braiding path. The second braiding path can be obtained by starting from the starting point and alternately taking points in the first braiding layer and the second braiding layer in the second direction. The second braiding path can be obtained by connecting the second braiding points taken from the starting point and the first braiding layer in the second direction.
[0096] Specifically, after obtaining the first braided layer and the second braided layer, in Rhino 6, the points can be connected into lines through the Interpolate command, and the cross-section can be input through the Pipe command to convert the lines into braided strips, thereby forming a braided effect.
[0097] Optionally, in the steps of generating a first weaving path in a first direction through a first type of weaving point between a first weaving layer and a second weaving path in a second direction through a second type of weaving point, the first type of weaving point and the second type of weaving point can be encoded for the first weaving layer and the second weaving layer to obtain a first encoding layer and a second encoding layer, the first encoding layer corresponding to the first weaving layer, and the second encoding layer corresponding to the second weaving layer; based on the first direction and the second direction, path generation processing is performed between the first encoding layer and the second encoding layer, respectively, to obtain a first weaving path and a second weaving path.
[0098] In the embodiment of the present invention, when calculating the first braiding path and the second braiding path, the first braiding layer and the second braiding layer may be abstracted into a first coding layer and a second coding layer, and the braiding path may be calculated through the first coding layer and the second coding layer.
[0099] The above encoding process may be marking or assigning values to the first type of coding points and the second type of weaving points. The marking method includes color marking or symbol marking, and the assignment method includes digital assignment, such as assigning a value of 1 to the first type of weaving points and a value of 0 to the second type of weaving points. The marking or assignment is written into the attributes of the weaving points, which can be displayed visually or hidden.
[0100] After obtaining the first coding layer and the second coding layer, in the first direction, starting from the starting point, using the coded mark or assignment, alternately taking points between the first coding layer and the second coding layer in turn, connecting the first type of braiding points, and obtaining the first braiding path. Between the first braiding layer and the second braiding layer, in the second direction, starting from the starting point, using the coded mark or assignment, alternately taking points between the first coding layer and the second coding layer in turn, connecting the second type of braiding points, and obtaining the second braiding path.
[0101] Through the first coding layer and the second coding layer, the first weaving layer and the second weaving layer can be abstracted into a coding layer, thereby accelerating the calculation speed of the weaving path.
[0102] Optionally, in the step of encoding the first type of weaving points and the second type of weaving points for the first weaving layer and the second weaving layer to obtain the first coding layer and the second coding layer, the first type of weaving points can be subjected to the first coding processing for the first weaving layer and the second weaving layer, so that the first type of weaving points have the first coding identification, and the second type of weaving points can be subjected to the second coding processing, so that the second type of weaving points have the second coding identification, to obtain the first coding layer and the second coding layer.
[0103] In an embodiment of the present invention, the above-mentioned coding mark can be a color mark or a numerical mark. The first type of braiding point can be marked as a first color or assigned a first numerical value, for example, the first color is green, or the first numerical value is 1, and the first color or the first numerical value can be displayed; the second type of braiding point can be marked as a second color or assigned a second numerical value, for example, the second color is red, or the second numerical value is 0, and the second color or the second numerical value can be displayed.
[0104] Specifically, the first type of weaving points and the second type of weaving points in the first weaving layer can be color-coded or numerically coded. In color coding, the first type of weaving points can be coded as the first color, and the second type of weaving points can be coded as the second color; in numerical coding, the first type of coded points can be coded as the numerical value 1, and the second type of weaving points can be coded as the numerical value 0. After the coding is completed, the first coded layer is obtained. Similarly, the first type of weaving points and the second type of weaving points in the second weaving layer can be color-coded or numerically coded. In color coding, the first type of weaving points can be coded as the first color, and the second type of weaving points can be coded as the second color; in numerical coding, the first type of coded points can be coded as the numerical value 1, and the second type of weaving points can be coded as the numerical value 0. After the coding is completed, the second coded layer is obtained. In the color coding scenario, the first coded layer and the second coded layer are as follows: Fig.11 As shown; in the numerical coding scenario, the first coding layer and the second coding layer can be understood as matrices, the first coding layer corresponds to the first layer matrix, and the second coding layer corresponds to the second layer matrix, such as Fig.12 shown.
[0105] Optionally, in the step of performing path generation processing between the first coding layer and the second coding layer based on the first direction and the second direction respectively to obtain the first weaving path and the second weaving path, in the current coding layer, a first path point is determined along the first direction, and if the first jump condition is triggered, the weaving point corresponding to the triggering of the first jump condition is used as the jump point, and the process jumps to another coding layer, and the second path point is continued to be determined along the first direction, and the first path point is connected with the second path point in the corresponding weaving point sequence to obtain the first weaving path, the first jump condition is that the first coding identifier changes, or that a preset number of first-class weaving points is reached, and the current coding layer is the first coding layer or the second coding layer; in the first coding layer or the second coding layer, a third path point is determined along the second direction, and if the second jump condition is triggered, the weaving point corresponding to the triggering of the second jump condition is used as the jump point, and the process jumps to another coding layer, and the fourth path point is continued to be determined along the second direction, and the third path point is connected with the fourth path point in the corresponding weaving point sequence to obtain the second weaving path, and the second jump condition is that the second coding identifier changes, or that a preset number of second-class weaving points is reached.
[0106] In the embodiment of the present invention, the first jump condition is only for the first direction or the first type of braiding point, and the second jump condition is only for the second direction or the second type of braiding point.
[0107] Specifically, the first jump condition is that the first coding identifier changes, and the starting point of the path is the first type of weaving point corresponding to the first weaving point position in the first direction in the first coding layer or the second coding layer. In the current coding layer, the path is searched along the first direction. If the coding identifier corresponding to the Nth weaving point position is the first coding identifier, which means that the Nth weaving point position corresponds to the first type of weaving point, then the first type of weaving point corresponding to the Nth weaving point position is determined as the first path point. If the coding identifier corresponding to the Nth weaving point position is the second coding identifier, then jump to another coding layer. Since the coding identifiers corresponding to the same weaving point position in the first coding layer and the second coding layer are relative, in another coding layer, the Nth weaving point position corresponds to the first type of weaving point, then the first type of weaving point corresponding to the Nth weaving point position is determined as the second path point. Then, in the other coding layer, Continue to search for paths along the first direction in the layer. If the coding identifier corresponding to the N+1th weaving point is the first coding identifier, which means that the N+1th weaving point corresponds to the first type of weaving point, then the first type of weaving point corresponding to the N+1th weaving point is determined as the second path point; if the coding identifier corresponding to the N+1th weaving point is the second coding identifier, then jump to the current coding layer. Since the coding identifiers corresponding to the same weaving point in the first coding layer and the second coding layer are relative, in the current coding layer, the N+1th weaving point corresponds to the first type of weaving point, then the first type of weaving point corresponding to the N+th weaving point is determined as the first path point. By analogy, all weaving points in the first direction are calculated to obtain all the first path points and the second path points. It should be noted that the first path point and the second path point are located in different coding layers. The first path point and the second path point are connected according to the order of the weaving points in the first direction to obtain the first jump path of the first type of weaving point, and the first weaving path can be obtained based on the first jump path. The above N is greater than or equal to 1.
[0108] Similarly, the second jump condition is that the second coding identifier changes, and the starting point of the path is the second type of weaving point corresponding to the first weaving point in the second direction in the first coding layer or the second coding layer. In the current coding layer, the path is found along the second direction. If the coding identifier corresponding to the M-th weaving point is the second coding identifier, which means that the M-th weaving point corresponds to the second type of weaving point, then the second type of weaving point corresponding to the M-th weaving point is determined as the third path point. If the coding identifier corresponding to the M-th weaving point is the first coding identifier, then jump to another coding layer. Since the coding identifiers corresponding to the same weaving point in the first coding layer and the second coding layer are relative, in another coding layer, the M-th weaving point corresponds to the second type of weaving point, then the second type of weaving point corresponding to the M-th weaving point is determined as the fourth path point. Then, in the other coding layer, the M-th weaving point corresponds to the second type of weaving point. Continue to search for paths along the second direction in the layer. If the coding identifier corresponding to the M+1th weaving point is the second coding identifier, that is, the M+1th weaving point corresponds to the second type of weaving point, then the second type of weaving point corresponding to the M+1th weaving point is determined as the fourth path point; if the coding identifier corresponding to the M+1th weaving point is the first coding identifier, then jump to the current coding layer. Since the coding identifiers corresponding to the same weaving point in the first coding layer and the second coding layer are relative, in the current coding layer, the M+1th weaving point corresponds to the second type of weaving point, then the second type of weaving point corresponding to the M+th weaving point is determined as the third path point. By analogy, all weaving points in the second direction are calculated to obtain all the third path points and the fourth path points. It should be noted that the third path point and the fourth path point are located in different coding layers. The third path point and the fourth path point are connected according to the order of the weaving points in the second direction to obtain the second jump path of the second type of weaving point, and the second weaving path can be obtained based on the second jump path. The above M is greater than or equal to 1.
[0109] In a possible embodiment, in the first coding layer, along the first direction, if the Nth group of weaving points corresponds to the first coding identifier, then when it is the first weaving point in the N+1th group of weaving points, it jumps to the second coding layer; in the second coding layer, along the first direction, if the N+1th group of weaving points corresponds to the first coding identifier, then when it is the first weaving point in the N+2th group of weaving points, it jumps to the first coding layer, traverses all weaving points in the first direction, and obtains a first jump path of the weaving points; based on the first jump path, determines the first weaving path, wherein N is greater than or equal to 1. Also, in the first coding layer, along the second direction, if the Mth group of weaving points corresponds to the second coding identifier, then when it is the first weaving point in the M+1th group of weaving points, jump to the second coding layer; in the second coding layer, along the second direction, if the M+1th group of weaving points corresponds to the second coding identifier, then when it is the first weaving point in the M+2th group of weaving points, jump to the first coding layer, traverse all weaving points in the second direction, and obtain a second jump path for the weaving points; based on the second jump path, determine the second weaving path.
[0110] In a possible embodiment, a spatial matrix method is used to represent the weaving point relationship / point data: when the first type of weaving points and the second type of weaving points are layered and shifted according to values such as slack, a mixed matrix is actually formed, which is also a three-dimensional matrix. The three-dimensional matrix includes a first coding layer and a second coding layer. The mixed matrix is mainly formed according to the position distribution of the two layers of points. Therefore, the mixed matrix can also be represented by two two-dimensional matrices, that is, there are two plane point matrices, one in the upper layer and one in the lower layer. The above-mentioned upper and lower relationships are only used for exemplary explanations, specifically demonstrating the relative position relationship between the first coding layer and the second coding layer, and should not be regarded as a limitation on the embodiments of the present invention.
[0111] In a possible embodiment, the first type of braiding points are represented by a first color (the first type of braiding points will be connected vertically later), and the second type of braiding points are represented by a second color (the second type of braiding points will be connected horizontally later), such as Fig.11 shown.
[0112] In a possible embodiment, the mixed matrix includes a first layer matrix and a second layer matrix. Assuming that the green points are all represented by the number 1 and the red points are all represented by the number 0, the point distribution of the first layer matrix and the second layer matrix is as follows: Fig.12 shown.
[0113] Specifically, in the first coding layer and the second coding layer, the braiding point data is pre-interspersed and woven; according to the preset connection relationship / connection path / connection track / connection direction between adjacent braiding points, undulating interspersions can be formed in different directions, and parallel lines can be formed in the same direction.
[0114] According to the markings of the first and second types of weaving points in the first coding layer and the second coding layer, the connection direction / track direction of their respective adjacent points are guided according to the first direction and the second direction, and a wavy jump path is alternately interspersed in the first coding layer and the second coding layer, and the jump path is used as the corresponding coding path.
[0115] In a possible embodiment, the first color point or the point with the value 1 is directed in the first direction (vertical direction), and then the adjacent first color point or the point with the value 1 is further directed in the upward or downward direction, and the second color point or the point with the value 0 is directed in the second direction (horizontal direction), and then the adjacent second color point or the point with the value 0 is further directed in the upward or downward direction. Fig.13 As shown, it is convenient to connect multiple adjacent points later to form woven strips with interlaced woven strips / undulating lines.
[0116] In a possible embodiment, the braiding points can be combined with a three-dimensional interlacing method, such as Fig.14 The first color point represents the first type of braiding point, and the connection direction is shown by the arrow in the first direction (vertical connection, and undulations are formed between the two layers). The second color point represents the second type of braiding point, and the connection method is shown by the arrow in the second direction (horizontal connection, and undulations are formed between the two layers).
[0117] In a possible embodiment, Fig.15 As shown, from Fig.12 The first layer matrix and the second layer matrix in the method can also be interlaced alternately: all the first-class weaving points 1 are set to be interlaced vertically (in the first direction), and all the second-class weaving points 0 are set to be interlaced horizontally (in the second direction); starting from the first first-class weaving point (1) of one of the matrices, when interlacing vertically, when encountering the second-class weaving point (0) of the same layer, jump to the other matrix, and connect the same-position warp point (1) path until the interlacing completes the path, and obtain a first jump path; similarly, starting from the first second-class weaving point (0) of one of the matrices, when interlacing horizontally, when encountering the first-class weaving point (1) of the same layer, jump to the other matrix, and connect the same-position second-class weaving point (0), until the interlacing completes the path, and obtain a second jump path.
[0118] After all the paths are interlaced, multiple first jump paths and multiple second jump paths are obtained, and each first jump path is used as a first braiding path, and each second jump path is used as a second braiding path. After the first braiding path and the second braiding path are obtained, the corresponding first braiding strip and the second braiding strip are generated respectively based on the above braiding cross-section and / or braiding material. Since the braiding strip is directly generated according to the braiding path on the base model, it is not necessary to re-interlace the corresponding braiding strip.
[0119] By implementing the embodiments of the present invention, the repetitive manual modeling operations can be replaced by automatic programs, which reduces labor costs and improves modeling efficiency. When the shape of the object changes, the model can be woven and evolved automatically and quickly. The user can define the size / weaving slack / weaving density of the braided strip by entering numerical values, and the model will be automatically updated according to the numerical changes, and the numerical values can be viewed in real time. The modeling time and model quality are not affected by the size or shape of the object. The import program automatically generates the weaving effect, which is simple to operate and does not require modeling ability. The modeling time is greatly shortened, and it is convenient to consider the design effect.
[0120] like Fig.16 As shown, an embodiment of the present invention provides a three-dimensional knitting model generating device, the three-dimensional knitting model generating device comprising:
[0121] An acquisition module 1601 is used to acquire a base model of a target knitted object;
[0122] A first processing module 1602 is used to generate a first braided layer and a second braided layer of the target braided object on the surface of the base model based on a preset first braiding parameter, wherein the first braided layer and the second braided layer have the same braiding points, and for one braided layer, two adjacent groups of the braiding points correspond to a group of first-type braiding points and a group of second-type braiding points, respectively; and for two braided layers, the same group of the braiding points corresponds to a group of the first-type braiding points and a group of the second-type braiding points, respectively;
[0123] The second processing module 1603 is used to generate a first braided strip in a first direction between the first braided layer and the second braided layer through the first type of braiding points, and to generate a second braided strip in a second direction through the second type of braiding points based on a preset second braiding parameter, so as to obtain a three-dimensional braiding model of the target braided object, wherein the first direction and the second direction are not parallel directions.
[0124] Optionally, the first processing module 1602 is also used to determine the weaving density of the target weaving object based on the first weaving parameter; based on the weaving density, generate a reference weaving layer on the surface of the base model, the reference weaving layer including a plurality of weaving points distributed according to the weaving density; based on the weaving slack, separate the first weaving layer and the second weaving layer of the target weaving object from the reference weaving layer.
[0125] Optionally, the first processing module 1602 is also used to determine the separation direction of each group of the weaving points based on the adjacency relationship of each group of the weaving points in the reference weaving layer, the separation direction including a first movement direction corresponding to the first type of weaving points, and a second movement direction corresponding to the second type of weaving points, the first movement direction being opposite to the second movement direction; based on the weaving slack, determine the separation amount of each of the weaving points, the separation amount including a first movement amount corresponding to the first type of weaving points, and a second movement amount corresponding to the second type of weaving points; based on the separation direction and the separation amount, separate the first type of weaving points and the second type of weaving points corresponding to each of the weaving points to obtain the first weaving layer and the second weaving layer of the target weaving object.
[0126] Optionally, the second processing module 1603 is also used to determine the weaving cross-section of the target weaving object based on the second weaving parameters; between the first weaving layer and the second weaving layer, generate a first weaving path in a first direction through the first type of weaving points, and generate a second weaving path in a second direction through the second type of weaving points; based on the weaving cross-section, generate a first weaving strip and a second weaving strip on the basis of the first weaving path and the second weaving path, respectively, to obtain a three-dimensional weaving model of the target weaving object.
[0127] Optionally, the second processing module 1603 is also used to encode the first type of weaving points and the second type of weaving points for the first weaving layer and the second weaving layer to obtain a first coding layer and a second coding layer, the first coding layer corresponds to the first weaving layer, and the second coding layer corresponds to the second weaving layer; based on the first direction and the second direction, path generation processing is performed between the first coding layer and the second coding layer respectively to obtain the first weaving path and the second weaving path.
[0128] Optionally, the second processing module 1603 is also used to perform a first encoding process on the first type of weaving points for the first weaving layer and the second weaving layer, so that the first type of weaving points have a first coding identification, and to perform a second encoding process on the second type of weaving points, so that the second type of weaving points have a second coding identification, to obtain the first coding layer and the second coding layer.
[0129] Optionally, the second processing module 1603 is also used to determine a first path point along the first direction in the current coding layer, and if the first jump condition is triggered, the weaving point corresponding to the triggering of the first jump condition is used as the jump point, jump to another coding layer, continue to determine the second path point along the first direction, connect the first path point with the second path point in the corresponding weaving point sequence to obtain a first weaving path, the first jump condition is that the first coding identifier changes, or that a preset number of the first type of weaving points is reached, and the current coding layer is the first coding layer or the second coding layer; in the current coding layer, determine a third path point along the second direction, and if the second jump condition is triggered, the weaving point corresponding to the triggering of the second jump condition is used as the jump point, jump to another coding layer, continue to determine a fourth path point along the second direction, connect the third path point with the fourth path point in the corresponding weaving point sequence to obtain a second weaving path, and the second jump condition is that the second coding identifier changes, or that a preset number of the second type of weaving points is reached.
[0130] It should be noted that the three-dimensional weaving model generating apparatus provided in the embodiment of the present invention can be applied to smart phones, tablets, computers, servers and other devices that can perform the three-dimensional weaving model generating method.
[0131] The three-dimensional knitting model generating device provided in the embodiment of the present invention can realize each process realized by the three-dimensional knitting model generating method in the above method embodiment, and can achieve the same beneficial effect. To avoid repetition, it will not be described here.
[0132] See also Fig.17 , Fig.17 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Fig.17 As shown, it includes: a memory 1702, a processor 1701, and a computer program of a three-dimensional knitting model generation method stored in the memory 1702 and executable on the processor 1701, wherein:
[0133] The processor 1701 is used to call the computer program stored in the memory 1702 and execute the following steps:
[0134] Obtaining a base model of a target woven object;
[0135] Based on the preset first weaving parameters, a first weaving layer and a second weaving layer of the target weaving object are generated on the surface of the base model, the first weaving layer and the second weaving layer have the same weaving points, and for one weaving layer, two adjacent groups of weaving points correspond to a group of first-type weaving points and a group of second-type weaving points, respectively; for two weaving layers, the same group of weaving points corresponds to a group of first-type weaving points and a group of second-type weaving points, respectively;
[0136] Based on the preset second weaving parameters, between the first weaving layer and the second weaving layer, a first weaving strip in a first direction is generated through the first type of weaving points, and a second weaving strip in a second direction is generated through the second type of weaving points, so as to obtain a three-dimensional weaving model of the target weaving object, wherein the first direction and the second direction are not parallel directions.
[0137] Optionally, the step of generating a first braided layer and a second braided layer of the target braided object on the surface of the base model based on a preset first braiding parameter, performed by the processor 1701, includes:
[0138] Based on the first weaving parameter, determining a weaving density of the target weaving object;
[0139] Based on the weaving density, generating a reference weaving layer on the surface of the base model, wherein the reference weaving layer includes a plurality of groups of weaving points distributed according to the weaving density;
[0140] Based on the braiding slack, the first braided layer and the second braided layer of the target braided object are separated from the reference braided layer.
[0141] Optionally, the step of separating the first braided layer and the second braided layer of the target braided object from the reference braided layer based on the braiding slackness performed by the processor 1701 includes:
[0142] Based on the adjacency relationship of each group of the braiding points in the reference braided layer, determining the separation direction of each braiding point, the separation direction including a first moving direction corresponding to the first type of braiding points and a second moving direction corresponding to the second type of braiding points, the first moving direction being opposite to the second moving direction;
[0143] Based on the braiding slack, determining a separation amount of each of the braiding points, the separation amount comprising a first movement amount corresponding to the first type of braiding points and a second movement amount corresponding to the second type of braiding points;
[0144] Based on the separation direction and the separation amount, the first type of braiding points and the second type of braiding points corresponding to each of the braiding points are separated to obtain the first braiding layer and the second braiding layer of the target braided object.
[0145] Optionally, the processor 1701 performs the step of generating a first braided strip in a first direction between the first braided layer and the second braided layer through the first type of braiding points, and generating a second braided strip in a second direction through the second type of braiding points based on the preset second braiding parameter to obtain the three-dimensional braiding model of the target braided object, including:
[0146] determining a knitting cross-section of the target knitted object based on the second knitting parameter;
[0147] Between the first braided layer and the second braided layer, a first braiding path in a first direction is generated through the first type of braiding points, and a second braiding path in a second direction is generated through the second type of braiding points;
[0148] Based on the weaving cross section, a first weaving strip and a second weaving strip are generated respectively on the basis of the first weaving path and the second weaving path, so as to obtain a three-dimensional weaving model of the target weaving object.
[0149] Optionally, the step of generating a first braiding path in a first direction through the first type of braiding points and generating a second braiding path in a second direction through the second type of braiding points between the first braided layer and the second braided layer, performed by the processor 1701, includes:
[0150] For the first braided layer and the second braided layer, the first type of braiding points and the second type of braiding points are coded to obtain a first coding layer and a second coding layer, wherein the first coding layer corresponds to the first braided layer, and the second coding layer corresponds to the second braided layer;
[0151] Based on the first direction and the second direction, path generation processing is performed between the first coding layer and the second coding layer respectively to obtain the first weaving path and the second weaving path.
[0152] Optionally, the step of encoding the first type of braiding points and the second type of braiding points for the first braided layer and the second braided layer to obtain a first coding layer and a second coding layer performed by the processor 1701 includes:
[0153] For the first braided layer and the second braided layer, the first type of braiding points are subjected to a first coding process so that the first type of braiding points have a first coding identification, and the second type of braiding points are subjected to a second coding process so that the second type of braiding points have a second coding identification, thereby obtaining the first coding layer and the second coding layer.
[0154] Optionally, the step of performing path generation processing between the first coding layer and the second coding layer based on the first direction and the second direction respectively to obtain the first knitting path and the second knitting path executed by the processor 1701 includes:
[0155] In the current coding layer, a first path point is determined along the first direction. If a first jump condition is triggered, the knitting point corresponding to the triggering of the first jump condition is used as the jump point, and the process jumps to another coding layer. The second path point is continued to be determined along the first direction, and the first path point is connected with the second path point in a corresponding knitting point sequence to obtain a first knitting path. The first jump condition is that the first coding identifier is changed, or that a preset number of the first type of knitting points is reached. The current coding layer is the first coding layer or the second coding layer.
[0156] In the current coding layer, a third path point is determined along the second direction. If the second jump condition is triggered, the weaving point corresponding to the triggering of the second jump condition is used as the jump point, and the process jumps to another coding layer. The fourth path point is continued to be determined along the second direction, and the third path point is connected with the fourth path point in the corresponding weaving point sequence to obtain a second weaving path. The second jump condition is that the second coding identifier changes, or that a preset number of the second type of weaving points is reached.
[0157] It should be noted that the electronic device provided in the embodiment of the present invention can be applied to smart phones, tablets, computers, servers and other devices that can perform the three-dimensional weaving model generation method.
[0158] The electronic device provided in the embodiment of the present invention can implement each process implemented by the method for generating a three-dimensional knitting model in the above method embodiment, and can achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0159] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the three-dimensional weaving model generation method provided by the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0160] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0161] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for generating a three-dimensional knitting model, characterized in that: The method comprises the following steps: Obtaining a base model of a target woven object; Based on the preset first weaving parameters, a first weaving layer and a second weaving layer of the target weaving object are generated on the surface of the base model, the first weaving layer and the second weaving layer have the same weaving points, and for one weaving layer, two adjacent groups of weaving points correspond to a group of first-type weaving points and a group of second-type weaving points, respectively; for two weaving layers, the same group of weaving points corresponds to a group of first-type weaving points and a group of second-type weaving points, respectively; Based on the preset second weaving parameters, between the first weaving layer and the second weaving layer, a first weaving strip in a first direction is generated through the first type of weaving points, and a second weaving strip in a second direction is generated through the second type of weaving points, so as to obtain a three-dimensional weaving model of the target weaving object, wherein the first direction and the second direction are not parallel directions.
2. The three-dimensional knitting model generation method according to claim 1, characterized in that: The step of generating the first braided layer and the second braided layer of the target braided object on the surface of the base model based on the preset first braiding parameter comprises: Based on the first weaving parameter, determining the weaving density and weaving looseness of the target weaving object; Based on the weaving density, generating a reference weaving layer on the surface of the base model, wherein the reference weaving layer includes a plurality of groups of weaving points distributed according to the weaving density; Based on the braiding slack, the first braided layer and the second braided layer of the target braided object are separated from the reference braided layer.
3. The three-dimensional knitting model generation method according to claim 2, characterized in that: The step of separating the first braided layer and the second braided layer of the target braided object from the reference braided layer based on the braiding slackness comprises: Based on the adjacency relationship of each group of the braiding points in the reference braided layer, determining the separation direction of each group of the braiding points, the separation direction including a first moving direction corresponding to the first type of braiding points and a second moving direction corresponding to the second type of braiding points, the first moving direction being opposite to the second moving direction; Based on the braiding slack, determining a separation amount of each of the braiding points, the separation amount comprising a first movement amount corresponding to the first type of braiding points and a second movement amount corresponding to the second type of braiding points; Based on the separation direction and the separation amount, the first type of braiding points and the second type of braiding points corresponding to each of the braiding points are separated to obtain the first braiding layer and the second braiding layer of the target braided object.
4. The three-dimensional knitting model generation method according to any one of claims 1 to 3, characterized in that: The step of obtaining the three-dimensional knitting model of the target knitted object by generating a first knitting strip in a first direction through the first type of knitting points and generating a second knitting strip in a second direction through the second type of knitting points between the first knitting layer and the second knitting layer based on the preset second knitting parameters comprises: determining a knitting cross-section of the target knitted object based on the second knitting parameter; Between the first braided layer and the second braided layer, a first braiding path in a first direction is generated through the first type of braiding points, and a second braiding path in a second direction is generated through the second type of braiding points; Based on the weaving cross section, the first weaving strip and the second weaving strip are generated respectively on the basis of the first weaving path and the second weaving path, so as to obtain a three-dimensional weaving model of the target weaving object.
5. The three-dimensional knitting model generation method according to claim 4, characterized in that: The step of generating a first braiding path in a first direction through the first type of braiding points between the first braided layer and the second braided layer, and generating a second braiding path in a second direction through the second type of braiding points comprises: For the first braided layer and the second braided layer, the first type of braiding points and the second type of braiding points are coded to obtain a first coding layer and a second coding layer, wherein the first coding layer corresponds to the first braided layer, and the second coding layer corresponds to the second braided layer; Based on the first direction and the second direction, path generation processing is performed between the first coding layer and the second coding layer to obtain the first weaving path and the second weaving path.
6. The three-dimensional knitting model generation method according to claim 5, characterized in that: The step of encoding the first type of braiding points and the second type of braiding points for the first braided layer and the second braided layer to obtain a first coding layer and a second coding layer comprises: For the first braided layer and the second braided layer, the first type of braiding points are subjected to a first coding process so that the first type of braiding points have a first coding identification, and the second type of braiding points are subjected to a second coding process so that the second type of braiding points have a second coding identification, thereby obtaining the first coding layer and the second coding layer.
7. The method for generating a three-dimensional knitting model according to claim 6, wherein: The step of performing path generation processing between the first coding layer and the second coding layer based on the first direction and the second direction respectively to obtain the first knitting path and the second knitting path comprises: In the current coding layer, a first path point is determined along the first direction. If a first jump condition is triggered, the knitting point corresponding to the triggering of the first jump condition is used as the jump point, and the process jumps to another coding layer. The second path point is continued to be determined along the first direction, and the first path point is connected with the second path point in a corresponding knitting point sequence to obtain a first knitting path. The first jump condition is that the first coding identifier is changed, or that a preset number of the first type of knitting points is reached. The current coding layer is the first coding layer or the second coding layer. In the current coding layer, a third path point is determined along the second direction. If the second jump condition is triggered, the weaving point corresponding to the triggering of the second jump condition is used as the jump point, and the process jumps to another coding layer. The fourth path point is continued to be determined along the second direction, and the third path point is connected with the fourth path point in the corresponding weaving point sequence to obtain a second weaving path. The second jump condition is that the second coding identifier changes, or that a preset number of the second type of weaving points is reached.
8. A three-dimensional knitting model generating device, characterized in that: The three-dimensional knitting model generating device comprises: An acquisition module, used for acquiring a matrix model of a target woven object; A first processing module, for generating a first braided layer and a second braided layer of the target braided object on the surface of the base model based on a preset first braiding parameter, wherein the first braided layer and the second braided layer have the same braiding points, and for one braided layer, two adjacent groups of the braiding points correspond to a group of first-type braiding points and a group of second-type braiding points, respectively; and for two braided layers, the same group of the braiding points corresponds to a group of the first-type braiding points and a group of the second-type braiding points, respectively; A second processing module is used to generate a first braided strip in a first direction between the first braided layer and the second braided layer through the first type of braiding points, and to generate a second braided strip in a second direction through the second type of braiding points based on a preset second braiding parameter, so as to obtain a three-dimensional braiding model of the target braided object, wherein the first direction and the second direction are not parallel directions.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the three-dimensional knitting model generation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the three-dimensional weaving model generation method according to any one of claims 1 to 7 are implemented.