Method for obtaining customized sock model based on Alpha drawing algorithm
By combining the Alpha wrapping algorithm with mesh smoothing and subdivision algorithms, a wrapping model that meets the requirements of customized socks is generated, which solves the problems of time-consuming and labor-intensive design and poor fit of customized socks, and realizes high-precision customized sock design and automated process parameter acquisition.
Patent Information
- Application Number
- CN202410757376.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-11-15
AI Technical Summary
Existing technologies for custom sock design suffer from time-consuming and labor-intensive design processes, poor fit between the finished product and the actual product, and the need for manual knitting, especially in the medical and sports fields where customization is highly demanding.
The Alpha wrapping algorithm, combined with mesh smoothing and subdivision algorithms, is used to generate a wrapping model. An evaluation function is constructed using fit and style indicators, and the parameters are optimized using simulated annealing algorithm to generate a model that meets the requirements of customized socks.
It improves the design precision of customized socks, shortens the design time, realizes automated acquisition of process parameters, has a wider range of applications, and achieves better iterative sampling results, thus improving the fit and style conformity of customized socks.
Smart Images

Figure CN118965463A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital customization, and in particular to a method for obtaining a customized socks model based on an Alpha wrapping algorithm. Background Art
[0002] With the development of the economy, consumers' requirements for clothing are no longer limited to basic wearing functions. The customized clothing market is expanding. Socks, as an indispensable clothing product in people's lives, have the function of protecting feet and keeping warm. They also put forward higher customization requirements in the fields of medical care and sports. In the traditional design of customized socks, it is necessary to measure the data of the user's feet, design the corresponding drawings, and finally repeatedly proofread according to the calculated process parameters until they meet the requirements. The process is time-consuming and labor-intensive, and the socks produced often only guarantee the accuracy of key data. The present invention is based on a digital customization method, which converts the three-dimensional model of the foot into a customized sock model, and then obtains the accurate process parameters of the socks to improve the design accuracy, reduce the proofing time, and customize the socks required by the user. Today, digital technology has played a huge role in the field of customization.
[0003] Many scholars have studied the use of digital technology to produce customized knitted products. For example, a system that uses a three-dimensional model to obtain its customized packaging. It calculates the convex hull of the three-dimensional model as a customized packaging model and divides it into small pieces. The user knits each small piece according to the block division and finally sews it into a customized package, but the obtained package has a poor fit with the actual object and requires manual knitting. In subsequent studies, clustering methods were used to improve the fit problem, but it still cannot fit the concave area of the input model tightly. For example, a method of segmenting a given three-dimensional model and generating manufacturing instructions for industrial knitting machines for each segmented surface effectively improves knitting efficiency, but the final product still requires manual sewing of the parts. A method of converting a sock model into process parameters by simulating the knitting process of a sock machine, but it requires manual drawing of the sock mouth and sock toe ring, which is not easy to operate; an extended regional segmentation method realizes the fully automatic analysis of the process parameters of the sock model, but the input models studied in both studies are general sock models. Summary of the invention
[0004] In order to solve the technical problems in the prior art, the present invention provides a method for obtaining a customized socks model based on an Alphawrapping algorithm.
[0005] The technical solution provided by the embodiment of the present invention is as follows:
[0006] First aspect:
[0007] An embodiment of the present invention provides a method for obtaining a customized socks model based on an Alpha wrapping algorithm, comprising:
[0008] S1. Based on the input 3D model of the user's foot, a wrapping model is generated by a wrapping model generation algorithm. The wrapping model generation algorithm is based on an Alpha wrapping algorithm and is combined with a mesh smoothing and subdivision algorithm to ensure that the generated wrapping model meets the requirements of a subsequent process parameter acquisition algorithm.
[0009] S2. The evaluation function is constructed by using the fit index and style index as follows:
[0010] C(s)=λ×A+μ×B
[0011] In the above formula, λ and μ are the weights of the fit index and style index respectively, λ+μ=1, λ=0.5 and μ=0.5 are set, and when C(s) is closer to 1, it indicates that the generated wrapping model is more in line with the requirements of customized socks, and then it is judged whether the wrapping model meets the requirements of the customized socks model;
[0012] S3. Using the evaluation function as the evaluation function of the simulated annealing algorithm, obtaining the optimal input parameters of the Alpha wrapping algorithm through iterative optimization, and using the wrapping model generated by the input parameters as the customized socks model.
[0013] The package model generation algorithm in S1 specifically includes:
[0014] S11, bounding box construction, in order to set reasonable initial α value and δ value, AABB bounding box is constructed for the input model, and the initial parameters are set as and L is the diagonal length of the bounding box of the input model;
[0015] S12, generating a preliminary wrapping model of the foot model using the Alphawrapping algorithm according to the parameters α and δ;
[0016] S13, in order to meet the accuracy and smoothness requirements of the subsequent iterative sampling algorithm, the package model is smoothed and subdivided, and the smoothing process is performed using a curvature smoothing algorithm, and the formula is as follows:
[0017]
[0018] The subdivision process uses the least squares subdivision algorithm to perform grid subdivision processing, as shown below:
[0019]
[0020] The final package model is obtained.
[0021] The calculation of the fit index in S2 specifically includes:
[0022] S211, constructing an AABB-Tree for the input foot model to speed up subsequent calculations;
[0023] S212, calculate each vertex v of the package model i (i=0,1,2...) distance s to the foot model i , find the node containing v through the AABB tree search algorithm i The leaf node, i.e. the bounding box B, calculates v i The distance to the triangle contained in B is calculated as follows:
[0024]
[0025] In the above formula, p0, p1 and p2 are the three vertices of the triangular face respectively. The above method is used to calculate each vertex v i The distance s to the triangle contained in B i ;
[0026] S213, calculate the deviation distance. Since the model surface has no thickness concept, consider the thickness of the yarn and set the default deviation distance L. m , that is, the distance between each vertex on the generated optimal wrapping model and the input foot model should be L m ,
[0027] offset(i)=L d (i)-L m
[0028] In the above formula, offset(i) represents the deviation distance, which is the difference between each vertex of the coverage model and the default deviation distance;
[0029] S214. Calculate the vertices that meet the requirements. Because of the existence of errors, offset(i) cannot be exactly equal to 0, so set the vertex that meets the requirements to
[0030]
[0031] When , it is considered to meet the requirements, and the number of points that meet the requirements is counted S p ;
[0032] S215. Calculate the fit index A. The formula is as follows:
[0033]
[0034] In the above formula, S A Indicates the number of all vertices in the model.
[0035] The style index calculation in S2 specifically includes:
[0036] S221, region segmentation. The main difference between the five-finger socks model and the ordinary socks model lies in the sock toe part. To reduce the influence of other parts, the model is segmented, and the curvature of the sock toe part of the model is calculated to obtain the main difference area between the foot model and the ordinary socks.
[0037] S222, calculating the average curvature of the region, calculating the average curvature of the main difference region;
[0038] S223, style index calculation, set K s = 0.1 is the optimal area average curvature, when K a The closer to K s , indicating that the generated wrapping model is more in line with the requirements of the standard sock style,
[0039]
[0040] As the calculation formula of the style index B.
[0041] The region segmentation in S221 specifically includes:
[0042] S2211, using the Shapira L method to calculate the SDF values of the common socks model and the five-finger socks model,
[0043]
[0044] In the above formula, n represents the total number of rays emitted from a single vertex, which is set to 30, w represents the weight of each ray, which is the inverse of the angle between the ray and the normal vector of the vertex, and d represents the distance from the ray emitted from a single vertex to the inner surface of the other end of the model;
[0045] S2212. Use Shapira L's method to normalize the SDF values of the model vertices. The formula is as follows:
[0046]
[0047] In the above formula, α represents the normalization parameter;
[0048] S2213. Determine the segmentation threshold of the model. The toe portion of the sock model and the toe portion of the foot model have similar normalized SDF values. The toe portion and the toe portion are approximately located in the region of nSDFvalue<0.5 and nSDFvalue<0.54. The region with an average value of nSDFvalue<0.52 is used as the segmentation region.
[0049] The calculation of the regional average curvature in S222 specifically includes:
[0050] S2221. Calculate the curvature of the vertices of the two parts of the model using the Gabriel Taubin method and obtain the following formula:
[0051]
[0052] In the above formula, and represents the estimation matrix, represents the Householder matrix, then the curvature K of the grid at this point is
[0053] S2222, normalize the vertex curvature and calculate the regional average curvature K a ,
[0054]
[0055] In the above formula, K min Indicates the minimum curvature within the segmentation area of the model, K max It represents the maximum curvature value in the segmentation area of the model, and n represents the total number of model vertices in the area.
[0056] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0057] (1) In the present invention, according to the requirements of the customized socks model, two indicators are proposed to measure the fit and style of the model respectively, and an evaluation function is constructed based on this to improve the Alpha wrapping algorithm by simulated annealing algorithm, so that the parameters and are automatically optimized and adjusted. At the same time, compared with the existing technology, the application range is wider, the iterative sampling effect is better, the design accuracy of customized socks is improved, and the time required for the design stage is reduced. It also provides a new idea for the conversion of three-dimensional models to process parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0059] Figure 1 A flowchart of a method for obtaining a customized socks model based on an Alpha wrapping algorithm provided in an embodiment of the present invention;
[0060] Figure 2A bounding box construction diagram of a method for obtaining a customized socks model based on an Alpha wrapping algorithm provided in an embodiment of the present invention;
[0061] Figure 3 A wrapping model diagram of a method for obtaining a customized socks model based on an Alpha wrapping algorithm provided in an embodiment of the present invention;
[0062] Figure 4 A wrapping model diagram after smoothing and subdivision processing of a method for obtaining a customized socks model based on an Alpha wrapping algorithm provided in an embodiment of the present invention;
[0063] Figure 5 A curvature heat map of a common socks model and a five-finger socks model in a method for obtaining a customized socks model based on an Alpha wrapping algorithm provided in an embodiment of the present invention;
[0064] Figure 6 A heat map of normalized SDF values of a common sock model and a foot model in a method for obtaining a customized sock model based on an Alpha wrapping algorithm provided in an embodiment of the present invention;
[0065] Figure 7 An SDF data histogram of model vertices of a method for obtaining a customized socks model based on an Alpha wrapping algorithm provided by an embodiment of the present invention;
[0066] Figure 8 An average curvature map of the toe of a model of a customized socks model obtained based on an Alpha wrapping algorithm is provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0067] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0068] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0069] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0070] Reference Manual Attached Figure 1, shows a flow chart of a method for obtaining a customized socks model based on an Alphawrapping algorithm provided in an embodiment of the present invention.
[0071] An embodiment of the present invention provides a method for obtaining a customized socks model based on an Alpha wrapping algorithm. The method may include the following steps:
[0072] S1. Based on the input 3D model of the user's foot, a wrapping model is generated by a wrapping model generation algorithm. The wrapping model generation algorithm is based on an Alpha wrapping algorithm and is combined with a mesh smoothing and subdivision algorithm to ensure that the generated wrapping model meets the requirements of a subsequent process parameter acquisition algorithm.
[0073] S2. The evaluation function is constructed by using the fit index and style index as follows:
[0074] C(s)=λ×A+μ×B
[0075] In the above formula, λ and μ are the weights of the fit index and style index respectively, λ+μ=1, λ=0.5 and μ=0.5 are set, and when c(s) is closer to 1, it indicates that the generated wrapping model is more in line with the requirements of customized socks, and then it is judged whether the wrapping model meets the requirements of the customized socks model;
[0076] S3. Using the evaluation function as the evaluation function of the simulated annealing algorithm, obtaining the optimal input parameters of the Alpha wrapping algorithm through iterative optimization, and using the wrapping model generated by the input parameters as the customized socks model.
[0077] The wrapping model generation algorithm is based on the Alpha wrapping algorithm. The algorithm has two inputs, α and δ, which control the quality of the generated model. When the parameters are determined and the user's foot model is input, the system generates a wrapping model according to the wrapping model generation algorithm. The wrapping model generation algorithm in S1 specifically includes:
[0078] S11, such as Figure 2 As shown, bounding box construction, in order to set reasonable initial α and δ values, AABB bounding box is constructed for the input model, and the initial parameters are set to and L is the diagonal length of the bounding box of the input model;
[0079] S12, such as Figure 3 As shown, according to the parameters α and δ, the Alphawrapping algorithm is used to generate a preliminary wrapping model of the foot model;
[0080] S13, such as Figure 4As shown, in order to meet the accuracy and smoothness requirements of the subsequent iterative sampling algorithm, the wrapped model is smoothed and subdivided. Considering the influence of the smooth subdivision operation on the surface shape of the model and the requirements of the final iterative sampling algorithm, the smoothing process is performed using the curvature smoothing algorithm. The formula is as follows:
[0081]
[0082] The subdivision process uses the least squares subdivision algorithm to perform grid subdivision processing, as shown below:
[0083]
[0084] The final package model is obtained.
[0085] For customized socks, it is necessary to ensure that they fit the foot, that is, to ensure that the size of the customized socks matches the user's foot data. The embodiment of the present invention ultimately parses out the corresponding process parameters based on the customized socks model, so as to knit the socks on the machine, so the generated customized socks model should ensure the fit to the foot model. However, when only the fit is guaranteed, the generated optimal wrapping model is often an enlarged version of the original model. If the model is classified as a sock model, it should belong to the five-finger sock type, so it is necessary to perform style judgment on the generated model to ensure that the style of the generated customized socks model is an ordinary socks style, which meets the objectives of the embodiment of the present invention. In this regard, the embodiment of the present invention proposes two indicators to represent the fit of the model and the style of the model, and constructs an evaluation function based on this to evaluate whether the generated wrapping model meets the requirements.
[0086] The fit measures the consistency or matching degree between the model and the actual observed data. From the perspective of the model, the fit refers to the matching degree between the two models. If the distance from each vertex of one model to the other model is 0 everywhere, it can be considered that the model fits the other model perfectly, that is, the fit is 1. In this regard, the embodiment of the present invention calculates the distance from each vertex of the customized sock model to the foot model, and takes the ratio of the number of vertices within a certain range to the number of all vertices as the fit index of the wrapping model to the input model. The calculation of the fit index in S2 specifically includes:
[0087] S211, constructing an AABB-Tree for the input foot model to speed up subsequent calculations;
[0088] S212, calculate each vertex v of the package model i (i=0,1,2...) distance s to the foot model i , find the node containing v through the AABB tree search algorithm i The leaf node, i.e. the bounding box B, calculates v iThe distance to the triangle contained in B is calculated as follows:
[0089]
[0090] In the above formula, p0, p1 and p2 are the three vertices of the triangular face respectively. The above method is used to calculate each vertex v i The distance s to the triangle contained in B i ;
[0091] S213, calculate the deviation distance. Since the model surface has no thickness concept, consider the thickness of the yarn and set the default deviation distance L. m , that is, the distance between each vertex on the generated optimal wrapping model and the input foot model should be L m ,
[0092] Offset(i)=L d (i)-L m
[0093] In the above formula, Offset(i) represents the deviation distance, which is the difference between each vertex of the coverage model and the default deviation distance;
[0094] S214. Calculate the vertices that meet the requirements. Due to the existence of errors, Offset(i) cannot be exactly equal to 0. Therefore, set the vertex that meets the requirements to
[0095]
[0096] When , it is considered to meet the requirements, and the number of points that meet the requirements is counted S p ;
[0097] S215. Calculate the fit index A. The formula is as follows:
[0098]
[0099] In the above formula, S A Indicates the number of all vertices in the model.
[0100] The style index calculation in S2 specifically includes:
[0101] S221, region segmentation, by observing Figure 5 It can be seen that the main difference between the five-finger socks model and the ordinary socks model lies in the sock toe part. In order to reduce the influence of other parts, the model is segmented and the curvature of the sock toe part of the model is calculated to obtain the main difference area between the foot model and the ordinary socks.
[0102] S222, calculating the average curvature of the region, calculating the average curvature of the main difference region;
[0103] S223, style index calculation, by calculating the average curvature of the toe area of the ordinary socks model and the five-finger socks model, such as Figure 8 As shown in Figure 2, it is found that the average curvature of the toe of the common sock model is in the range of 0 to 0.2, while the average curvature of the toe area of the five-finger sock model is larger, and K is often set above 0.4. s = 0.1 is the average curvature of the optimal area. a The closer to K s , indicating that the generated wrapping model is more in line with the requirements of the standard sock style,
[0104]
[0105] As the calculation formula of the style index B.
[0106] The region segmentation in S221 specifically includes:
[0107] S2211, using the Shapira L method to calculate the SDF values of the common socks model and the five-finger socks model,
[0108]
[0109] In the above formula, n represents the total number of rays emitted from a single vertex, which is set to 30, w represents the weight of each ray, which is the inverse of the angle between the ray and the normal vector of the vertex, and d represents the distance from the ray emitted from a single vertex to the inner surface of the other end of the model;
[0110] S2212, using the method of Shapira L to normalize the SDF values of the model vertices, such as Figure 6 As shown, this is the SDF value heat map of the two models after normalization. The formula is as follows:
[0111]
[0112] In the above formula, α represents the normalization parameter;
[0113] S2213, determine the segmentation threshold of the model by observing Figure 7 It can be seen that the toe part of the sock model and the toe part of the foot model have similar normalized SDF values. From the histogram, it can be seen that the toe part and the toe part are roughly located in the area of nSDFvalue<0.5 and nSDFvalue<0.54, and the area with the average value nSDFvalue<0.52 is used as the segmentation area.
[0114] The calculation of the regional average curvature in S222 specifically includes:
[0115] S2221. Calculate the curvature of the vertices of the two parts of the model using the Gabriel Taubin method and obtain the following formula:
[0116]
[0117] In the above formula, and represents the estimation matrix, represents the Householder matrix, then the curvature K of the grid at this point is
[0118] S2222, normalize the vertex curvature and calculate the regional average curvature K a ,
[0119]
[0120] In the above formula, K min Indicates the minimum curvature within the segmentation area of the model, K max It represents the maximum curvature value in the segmented area of the model, and n represents the total number of model vertices in the area.
[0121] After obtaining the customized sock model through the above process, the grid sampling algorithm is used to simulate the sock machine knitting process to obtain the knitting path, and finally the process parameters are obtained based on the knitting path.
[0122] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0123] (1) In the present invention, according to the requirements of the customized socks model, two indicators are proposed to measure the fit and style of the model respectively, and an evaluation function is constructed based on this to improve the Alpha wrapping algorithm by simulated annealing algorithm, so that the parameters and are automatically optimized and adjusted. At the same time, compared with the existing technology, the application range is wider, the iterative sampling effect is better, the design accuracy of customized socks is improved, and the time required for the design stage is reduced. It also provides a new idea for the conversion of three-dimensional models to process parameters.
[0124] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0125] There are a few points to note:
[0126] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention, and other structures may refer to the general design.
[0127] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of the layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0128] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0129] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for obtaining a customized socks model based on an Alphawrapping algorithm, characterized in that: include: S1. Based on the input 3D model of the user's foot, a wrapping model is generated by a wrapping model generation algorithm. The wrapping model generation algorithm is based on an Alpha wrapping algorithm and is combined with a mesh smoothing and subdivision algorithm to ensure that the generated wrapping model meets the requirements of a subsequent process parameter acquisition algorithm. S2. The evaluation function is constructed by using the fit index and style index as follows: C(s)=λ×A+μ×B In the above formula, λ and μ are the weights of the fit index and style index respectively, λ+μ=1, λ=0.5 and μ=0.5 are set, and when C(s) is closer to 1, it indicates that the generated wrapping model is more in line with the requirements of customized socks, and then it is judged whether the wrapping model meets the requirements of the customized socks model; S3. Using the evaluation function as the evaluation function of the simulated annealing algorithm, obtaining the optimal Alphawrapping algorithm input parameters through iterative optimization, and using the wrapping model generated by the input parameters as the customized socks model.
2. The method for obtaining a customized socks model based on the Alphawrapping algorithm according to claim 1, characterized in that: The package model generation algorithm in S1 specifically includes: S11, bounding box construction, in order to set reasonable initial α value and δ value, AABB bounding box is constructed for the input model, and the initial parameters are set as and L is the diagonal length of the bounding box of the input model; S12, generating a preliminary wrapping model of the foot model using the Alphawrapping algorithm according to the parameters α and δ; S13, in order to meet the accuracy and smoothness requirements of the subsequent iterative sampling algorithm, the package model is smoothed and subdivided, and the smoothing process is performed using a curvature smoothing algorithm, and the formula is as follows: The subdivision process uses the least squares subdivision algorithm to perform grid subdivision processing, as shown below: The final package model is obtained.
3. The method for obtaining a customized socks model based on an Alphawrapping algorithm according to claim 1, characterized in that: The calculation of the fit index in S2 specifically includes: S211, constructing an AABB-Tree for the input foot model to speed up subsequent calculations; S212, calculate each vertex v of the package model i (i=0,1,2...) distance s to the foot model i , find the node containing v through the AABB tree search algorithm i The leaf node, i.e. the bounding box B, calculates v i The distance to the triangle contained in B is calculated as follows: In the above formula, p0, p1 and p2 are the three vertices of the triangular face respectively. The above method is used to calculate each vertex v i The distance s to the triangle contained in B i ; S213, calculate the deviation distance. Since the model surface has no thickness concept, consider the thickness of the yarn and set the default deviation distance L. m , that is, the distance between each vertex on the generated optimal wrapping model and the input foot model should be L m , Offset(i)=L d (i)-L m In the above formula, Offset(i) represents the deviation distance, which is the difference between each vertex of the coverage model and the default deviation distance; S214. Calculate the vertices that meet the requirements. Due to the existence of errors, Offset(i) cannot be exactly equal to 0. Therefore, set the vertex that meets the requirements to When , it is considered to meet the requirements, and the number of points that meet the requirements is counted S p ; S215. Calculate the fit index A. The formula is as follows: In the above formula, S A Indicates the number of all vertices in the model.
4. The method for obtaining a customized socks model based on an Alphawrapping algorithm according to claim 1, characterized in that: The style index calculation in S2 specifically includes: S221, region segmentation. The main difference between the five-finger socks model and the ordinary socks model lies in the sock toe part. To reduce the influence of other parts, the model is segmented, and the curvature of the sock toe part of the model is calculated to obtain the main difference area between the foot model and the ordinary socks. S222, calculating the average curvature of the region, calculating the average curvature of the main difference region; S223, style index calculation, set K s = 0.1 is the average curvature of the optimal area. a The closer to K s , indicating that the generated wrapping model is more in line with the requirements of the standard sock style, As the calculation formula of the style index B.
5. The method for obtaining a customized socks model based on the Alphawrapping algorithm according to claim 4, characterized in that: The region segmentation in S221 specifically includes: S2211, using the Shapira L method to calculate the SDF values of the common socks model and the five-finger socks model, In the above formula, n represents the total number of rays emitted from a single vertex, which is set to 30, w represents the weight of each ray, which is the inverse of the angle between the ray and the normal vector of the vertex, and d represents the distance from the ray emitted from a single vertex to the inner surface of the other end of the model; S2212. Use Shapira L's method to normalize the SDF values of the model vertices. The formula is as follows: In the above formula, α represents the normalization parameter; S2213. Determine the segmentation threshold of the model. The toe portion of the sock model and the toe portion of the foot model have similar normalized SDF values. The toe portion and the toe portion are approximately located in the region of nSDFvalue<0.5 and nSDFvalue<0.
54. The region with an average value of nSDFvalue<0.52 is used as the segmentation region.
6. The method for obtaining a customized socks model based on an Alphawrapping algorithm according to claim 4, characterized in that: The calculation of the regional average curvature in S222 specifically includes: S2221. Calculate the curvature of the vertices of the two parts of the model using the Gabriel Taubin method and obtain the following formula: In the above formula, and represents the estimation matrix, represents the Householder matrix, then the curvature K of the grid at this point is S2222, normalize the vertex curvature and calculate the regional average curvature K a , In the above formula, K min Indicates the minimum curvature within the segmentation area of the model, K max It represents the maximum curvature value in the segmentation area of the model, and n represents the total number of model vertices in the area.
