Plate positioning method and system during sewing and storage medium
By determining the suture boundary line and obtaining the tangent and subnormal lines in the plate suture, grid discretization and boundary information matching are performed, the problem of abnormal simulation of plate suture in the prior art is solved, and the simulation accuracy is improved.
Patent Information
- Application Number
- CN202311280577.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
AI Technical Summary
The prior art is prone to simulation abnormalities when two plates are stitched, resulting in a reduction in the stitching simulation accuracy.
By determining the stitching boundary line between the first plate and the second plate to be stitched, the boundary grid and its corresponding tangent space tangent and subnormal lines are obtained, the grid discretization and boundary information are performed, and the 3D vertex information of the second plate grid is obtained to achieve accurate positioning of the plate.
The simulation accuracy of the stitching of the plate is improved, the problems of stitching defects and simulation abnormalities are avoided, and more realistic simulation results are achieved.
Smart Images

Figure CN119722978A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of sewing clothing panels, and in particular to a panel positioning method, system and storage medium when two panels are sewn together. Background Art
[0002] Currently, for the stitching of two patterns, such as Figure 1 For example, when sewing the front (back) surface, the coordinates are inferred based on the information in the known pattern, so as to sew the two patterns; the specific steps are: first collect the grid edges of the two patterns to be sewn with sewing relationship grids, and build a coordinate system on the two patterns at the same time based on the grid edges and the direction perpendicular to them; project the world coordinates of any vertex to the coordinate system to obtain the local coordinates; apply the local coordinates on the known pattern to obtain the new position coordinates of the vertex coordinates; when sewing the side, unlike the above scheme, it is also necessary to flip the new position coordinates of the vertex coordinates 180 degrees along the grid edge of the sewing relationship grid to obtain the final vertex position coordinates;
[0003] In actual production, since the new position coordinates need to be flipped 180 degrees along the grid edge of the sewing grid, it is very easy to cause simulation anomalies, resulting in Figure 2 The defects will affect the simulation results; even if the subsequent simulation is carried out by technical means such as cloth simulation, it will also affect the final stitching simulation accuracy.
[0004] In view of this, a plate positioning method that can accurately position during stitching needs to be developed urgently. Summary of the invention
[0005] In order to overcome the deficiencies of the prior art, the present invention provides a method, system and storage medium for positioning a plate during stitching, which are used to solve at least one of the aforementioned technical problems.
[0006] Specifically, the technical solution is as follows:
[0007] A method for positioning a pattern during stitching, comprising:
[0008] In response to an instruction input by a user, determining a first stitching boundary line and a second stitching boundary line between the first panel and the second panel to be stitched;
[0009] According to the first stitching boundary line, at least one boundary grid is obtained on the first plate;
[0010] According to the boundary grid and the second stitching boundary line, a neighboring grid on the second plate is obtained, and the number of the boundary grids is consistent with that of the neighboring grids;
[0011] Obtaining 3D vertex information of any second plate mesh on the second plate;
[0012] The stitching positioning of the second plate and the first plate is completed according to the 3D vertex information.
[0013] The step of obtaining the next-wall grid on the second plate according to the boundary grid and the second stitching boundary line includes:
[0014] Discretizing the second plate to form at least one second plate grid;
[0015] The septum grid is determined according to the second stitching boundary line and the boundary grid.
[0016] After the step of obtaining the adjacent grid on the second plate according to the boundary grid and the second stitching boundary line, the method further includes: obtaining the tangent space tangent and the subnormal of any second plate grid on the second plate, including:
[0017] Determine a second 3D tangent space tangent and a second normal of the adjacent mesh, and a third 3D tangent space tangent and a third normal of other meshes except the adjacent mesh;
[0018] The method for obtaining the second 3D tangent space tangent and the second 3D binormal comprises:
[0019] Make the second 3D tangent space tangent line and the second 3D subnormal infinitely approach to the first 3D tangent space tangent line and the first 3D subnormal corresponding to the boundary mesh respectively;
[0020] The acquisition of the third 3D tangent space tangent and the third 3D subnormal includes:
[0021] The tangent space tangents and subnormals of any two adjacent second plate meshes on the second plate are made infinitely close.
[0022] The method of making the second 3D space tangent and the second 3D subnormal infinitely approach the first 3D tangent space tangent and the first 3D subnormal respectively comprises:
[0023] The second 3D tangent space tangent and the second 3D subnormal are obtained by solving the minimum value of the first quadratic energy function.
[0024] The first quadratic energy function is:
[0025] E(t,b)=|t-T0| 2 +|b-B0| 2 ;
[0026] Among them, (t, b) is the combination of tangent and normal to be determined.
[0027] The method of making the tangent space tangents and subnormals of any two adjacent grids on the second plate infinitely approach each other includes: obtaining the third 3D space tangent and the third 3D subnormal by solving the minimum value of the second quadratic energy function.
[0028] Assume that the tangent space tangent and subnormal information of any two adjacent grids on the second plate are: (t0, b0) and (t1, b1);
[0029] The second quadratic energy function is:
[0030] E(t0,b0,t1,b1)=|t0-t1| 2 +|b0-b1| 2 .
[0031] The obtaining of 3D vertex information of any mesh on the second plate includes:
[0032] According to the ratio of the 2D edge of any second pattern mesh on the second pattern to the 2D tangent space tangent, and the ratio of the 2D edge to the 2D subnormal, respectively obtain the ratio of the length of the 3D tangent to the 2D tangent, and the ratio of the length of the 3D subnormal to the 2D subnormal of the second pattern mesh;
[0033] Establishing energy constraints, solving the ratio of the 3D edge of the second pattern mesh to the 3D tangent space tangent, and the ratio of the 3D edge to the 3D subnormal, to obtain the 3D vertex coordinates of all the second pattern meshes;
[0034] Wherein, the energy constraint is:
[0035] A space based on any two sides of the second plate grid is applied to the world coordinate system, so that any two adjacent second plate grids on the second plate have the same world coordinate.
[0036] The energy constraint is established, and a ratio of a 3D edge of the second template mesh to a 3D tangent space tangent, and a ratio of the 3D edge to a 3D subnormal are solved, including:
[0037] Assume that two adjacent second plate grids on the second plate are (P00, P01, P02) and (P10, P11, P12) respectively, and obtain the 3D vertex coordinates on the plate to be stitched by solving the minimum value of the third quadratic energy function;
[0038] E(P 00 ,P 01 ,P 02 ,P 10 ,P 11 ,P 12)=|[(P 01 -P 00 )*t 00 +(P 02 -P 00 )*t 01 ]-[(P 11 -P 10 )*t 10 +(P 12 -P 10 )*t 11 ]| 2 +|[(P 01 -P 00 )*b 00 +(P 02 -P 00 )*b 01 ]-[(P 11 -P 10 )*b 10 +(P 12 -P 10 )*b 11 ]| 2 ;
[0039] Among them, t 00 For the second grid (P 00 ,P 01 ,P 02 )3D tangent first dimension coordinate, t 01 is the second dimension coordinate of the 3D tangent; t 10 For the second grid (P 10 ,P 11 ,P 12 )3D tangent first dimension coordinate, t 11 is the second dimension coordinate of the 3D tangent; b 00 For the second grid (P 00 ,P 01 ,P 02 )3D subnormal first dimension coordinate, b 01 is the second dimension coordinate of the 3D tangent; B 10 For the second grid (P 10 ,P 11 ,P 12 )3D subnormal first dimension coordinate, b 11 is the second dimension coordinate of the 3D tangent; (P 00 ,P 01 ,P 02 ) is the vertex coordinate of the second pattern mesh; (P 10 ,P 11 ,P 12 ) are the vertex coordinates of another second pattern mesh.
[0040] The step of obtaining at least one boundary grid on the first plate according to the first stitching boundary line comprises:
[0041] Discretizing the first plate to obtain at least one first plate grid;
[0042] A grid including a first stitching boundary line in the first plate grid is determined as a boundary grid.
[0043] After the step of obtaining at least one boundary grid on the first plate according to the first stitching boundary line, the step of obtaining a first 3D tangent space tangent and a first 3D subnormal corresponding to the boundary grid includes:
[0044] The first 3D tangent space tangent and the first 3D binormal of the boundary mesh are obtained by the following model:
[0045]
[0046]
[0047] Among them, T0 is the first 3D tangent space tangent; B0 is the first 3D subnormal; X0, X1, X2 are the vertices of the boundary mesh respectively.
[0048] A pattern positioning system for stitching, comprising:
[0049] A collection module, used for collecting user instructions;
[0050] A processing module, which interacts with the acquisition module for data, and is used to execute the above-mentioned plate positioning method according to the user instruction, form positioning result data, and position the stitching of at least two plates;
[0051] A storage module, which performs data interaction with the processing module and is used to store the positioning result data;
[0052] A display module performs data interaction with the processing module and is used to display the result of plate stitching according to the positioning result data.
[0053] A plate positioning electronic device, comprising:
[0054] Storage medium for storing computer programs;
[0055] The processing unit exchanges data with the storage medium, and is used for executing the computer program through the processing unit to perform the steps of the plate positioning method as described above when at least two plates are stitched and positioned.
[0056] A computer readable storage medium:
[0057] The computer readable storage medium stores a computer program;
[0058] When the computer program is running, the steps of the plate positioning method described above are executed.
[0059] The present invention has at least the following beneficial effects:
[0060] The plate positioning method for stitching of the present invention first determines a first stitching boundary line and a second stitching boundary line between a first plate and a second plate to be stitched; then, based on the first stitching boundary line, a boundary grid is obtained on the first plate, as well as a first 3D tangent space tangent and a first 3D subnormal corresponding to the boundary grid; the second plate is discretized to obtain at least two second plate grids; based on the boundary grid and the second stitching boundary line, a neighboring grid on the second plate is obtained, and the order of the boundary grid and the neighboring grid corresponds to each other and the number is the same; finally, any grid on the second plate is obtained. The second 3D tangent space tangent and the second 3D subnormal of the second plate mesh, according to the continuity of the tangent space inside the second plate, obtain the 3D vertex information of any second plate mesh inside the second plate; complete the stitching positioning of the second plate and the first plate according to the 3D vertex information; the method of the present invention, according to the plate boundary sewing information, obtains the tangent space tangent and subnormal information of the boundary mesh, and then derives the vertex information of the mesh inside the plate through the continuity of the tangent space inside the mesh, so as to accurately position the plate stitching, improve the simulation accuracy, and achieve more realistic simulation results.
[0061] The plate positioning system during stitching described in the present invention comprises an acquisition module, a processing module, a storage module and a display module for acquiring user instructions; wherein the processing module interacts with the acquisition module for data execution, and is used to execute the plate positioning method as described above according to the user instructions, to form positioning result data, and to position the stitching of at least two plates; the storage module interacts with the processing module for data storage, and is used to store the positioning result data; the display module interacts with the processing module for data display, and is used to display the result of plate stitching according to the positioning result data; the system described in the present invention has a simple structure, can perform plate stitching positioning through the processing module, and simultaneously use the display module to display the final stitching effect, and can achieve good interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0063] Figure 1 This is a schematic diagram of the positions of the two patterns that need to be stitched;
[0064] Figure 2 A schematic diagram of suture defects that are easily caused by using existing technology;
[0065] Figure 3 is a flow chart of the method of the present invention;
[0066] Figure 4 This is a schematic diagram of boundary stitching information;
[0067] Figure 5 is a schematic diagram of the boundary grid;
[0068] Figure 6 This is a schematic diagram of the next-door grid;
[0069] Figure 7 It is a schematic diagram of adjacent grids;
[0070] Figure 8 is a schematic diagram of a grid with vertices (X0, X1, X2);
[0071] Fig. 9 A schematic diagram of tangents and subnormals of a mesh with boundary information;
[0072] Fig.10 Schematic diagram of tangents and subnormals of a mesh without boundary information;
[0073] Fig.11 This is the stitching effect diagram;
[0074] Fig.12 is a system block diagram of the system of the present invention;
[0075] exist Figure 1-12 middle:
[0076] 100. Acquisition module; 200. Processing module; 300. Storage module; 400. Display module. DETAILED DESCRIPTION
[0077] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0078] Border Sewing Information: As Figure 4 , refers to the sewing pair that connects the boundaries of two patterns together. In 3D simulation, the boundaries corresponding to the sewing pair will be sewn together; the lines close to the edge are the boundary sewing information, which can sew different patterns together during sewing;
[0079] In this embodiment, the template is discretized to form a number of grids. According to different grid positions, the following different types of grids are defined:
[0080] Boundary grid: Figure 5 , a grid with at least one edge on the boundary is called a boundary grid. The grid marked in the figure is the boundary grid on the plate;
[0081] Next door grid: Figure 6 , a grid on the to-be-sewn pattern corresponding to the boundary grid and containing boundary sewing information; when sewing, the above two grids correspond one to one, as shown in the figure, numbers i and i' are adjacent grids, i = 1, 2, 3, ...;
[0082] Adjacent grid: Figure 7 , two grids that share an edge within the same pattern; Figure 7 As shown, the grids numbered 1 and 3 are adjacent grids to each other, the grids numbered 1 and 2 are adjacent grids to each other, and the grids numbered 1 and 4 are adjacent grids to each other;
[0083] Tangent, binormal: Figure 8 , the tangent is the coordinate corresponding to the space where the vector (1,0) is represented by two edges of the grid; the subnormal is the coordinate corresponding to the space where the vector (0,1) is represented by two edges of the grid;
[0084] In order to solve the problems of the prior art, the present invention discloses the following embodiments:
[0085] Specific embodiment 1:
[0086] A method for positioning a pattern during stitching, such as Figure 3 ,include:
[0087] first step:
[0088] In response to the first instruction of the user: select a section of the boundary of the first plate and a section of the boundary of the second plate, determine the first stitching boundary line and the second stitching boundary line between the first plate and the second plate to be stitched; in response to the second instruction input by the user or automatically run in the program: right-click on the first plate, pop up a menu, click to move to the side, discretize the first plate, and obtain at least one first plate grid; according to the first stitching boundary line, obtain a boundary grid on the first plate, and the first 3D tangent space tangent and the first 3D subnormal corresponding to the boundary grid; in response to the third instruction input by the user or the program automatically runs: perform global gridding, use stitching lines to generate one-to-one corresponding grid stitching point pairs, and discretize the second plate: a gridding algorithm based on empty circularity can be used to obtain at least 2 grids; according to the boundary grid and the second stitching boundary line, obtain the next-wall grid on the second plate, and the order of the boundary grid and the next-wall grid corresponds to each other and the number is consistent, which ensures the flatness of the stitching and avoids the problems of folding and mold penetration at the stitching of the plates in the existing solution; Figure 1 , 11 A in the figure is the second plate; B is the first plate, and the first plate is a known plate, and the second plate is a plate to be stitched; in this step, the first plate and the second plate are discretized to obtain a boundary grid and a neighboring grid respectively; and the first 3D tangent space tangent and the first 3D subnormal are obtained according to the boundary grid. This step can finely decompose the plate and improve the simulation accuracy of stitching;
[0089] Step 2:
[0090] Obtain a second 3D tangent space tangent and a second 3D binormal of any second plate mesh on the second plate;
[0091] Specifically, there are two cases of obtaining the tangent space tangent and the secondary normal of any second plate mesh on the second plate, including: determining the second 3D tangent space tangent and the secondary normal of the adjacent mesh, and the third tangent space tangent and the third normal of other meshes except the adjacent mesh;
[0092] For the first case:
[0093] When obtaining the second 3D tangent space tangent and the second 3D subnormal, the second 3D tangent space tangent and the second 3D subnormal are made infinitely close to the first 3D tangent space tangent and the first 3D subnormal respectively; preferably, the first 3D tangent space tangent and the first 3D subnormal of the boundary mesh can be obtained by the following model:
[0094]
[0095]
[0096] Where T0 is the first 3D tangent space tangent; B0 is the first 3D subnormal; X0, X1, and X2 are the three vertices of the boundary mesh respectively;
[0097] like Fig. 9 , and then obtain the second 3D tangent space tangent and the second 3D normal by solving the minimum value of the first quadratic energy function; preferably, the first quadratic energy function is:
[0098] E(t,b)=|t-T0| 2 +|b-B0| 2 ; Where (t, b) is the desired combination of tangent and normal.
[0099] For the second case:
[0100] like Fig.10 , assuming that the tangent space and subnormal information of any two adjacent grids on the second plate are: (t0, b0) and (t1, b1); by solving the minimum value of the second quadratic energy function, the third 3D space tangent and the third 3D subnormal are obtained; preferably, the second quadratic energy function is:
[0101] E(t0,b0,t1,b1)=|t0-t1| 2 +|b0-b1| 2 .
[0102] In this step, the second 3D tangent space tangent and the second 3D subnormal of any second plate grid on the second plate are obtained through the boundary grid or the adjacent grid, which can directly reflect the actual situation of the second plate and provide a good basis for stitching simulation.
[0103] Step 3:
[0104] According to the continuity of the cut space inside the second plate, the 3D vertex information of any second plate mesh inside the second plate is obtained; and the stitching positioning of the second plate and the first plate is completed according to the 3D vertex information.
[0105] Specifically, first, according to the ratio of the 2D edge of any second plate mesh on the second plate to the 2D tangent space tangent, and the ratio of the 2D edge to the 2D subnormal, the ratio of the length of the 3D tangent to the 2D tangent, and the ratio of the length of the 3D subnormal to the 2D subnormal of the second plate mesh are obtained;
[0106] According to the ratio of the 2D edge of the second pattern mesh to the 2D tangent space tangent, and the ratio of the 2D edge to the 2D subnormal, respectively obtain the ratio of the 3D edge of the second pattern mesh to the 3D tangent space tangent, and the ratio of the 3D edge to the 3D subnormal; specifically, use the ratio of the length of the 3D tangent to the 2D tangent to enlarge the 2D tangent and replace the 3D tangent; and then use the ratio of the length of the 3D subnormal to the 3D subnormal to enlarge the 2D subnormal and replace the 3D subnormal;
[0107] Then, energy constraints are established, and the ratio of the 3D edge of the second pattern mesh to the tangent line of the 3D tangent space and the ratio of the 3D edge to the 3D subnormal are solved to obtain the 3D vertex coordinates of all the second pattern meshes;
[0108] Wherein, the energy constraint is:
[0109] Applying a space based on any two sides of the second plate grid to the world coordinate system, so that any two adjacent second plate grids on the second plate have the same world coordinates;
[0110] Furthermore, the ratio of the 3D edge of the second plate mesh to the 3D tangent space tangent, and the ratio of the 3D edge to the 3D subnormal are solved, including: assuming that two adjacent second plate meshes on the second plate are (P00, P01, P02) and (P10, P11, P12) respectively, and by solving the minimum value of the third quadratic energy function, the 3D vertex coordinates on the plate to be stitched are accurately obtained;
[0111] E(P 00 ,P 01 ,P 02 ,P 10 ,P 11 ,P 12 )=|[(P 01 -P 00 )*t 00 +(P 02 -P 00 )*t 01 ]-[(P 11 -P 10 )*t 10 +(P 12 -P 10 )*t 11 ]| 2 +|[(P 01 -P 00 )*b 00 +(P 02 -P 00 )*b 01 ]-[(P 11 -P 10)*b 10 +(P 12 -PP 10 )*b 11 ]| 2 ;
[0112] Among them, t 00 is the first dimension coordinate of the 3D tangent line of the second grid (P00, P01, P02), t 01 is the second dimension coordinate of the 3D tangent; t 10 is the first dimension coordinate of the 3D tangent line of the second pattern grid (P10, P11, P12), t 11 is the second dimension coordinate of the 3D tangent; b 00 is the first dimension coordinate of the 3D subnormal of the second pattern grid (P00, P01, P02), b 01 is the second dimension coordinate of the 3D tangent; B 10 is the first dimension coordinate of the 3D subnormal of the second plate grid (P10, P11, P12), b 11 is the second dimension coordinate of the 3D tangent; (P00, P01, P02) are the three vertex coordinates of a second pattern mesh; (P10, P11, P12) are the three vertex coordinates of another second pattern mesh.
[0113] Finally, according to the obtained 3D vertex coordinates, the vertices of all the second-plate meshes in the second plate are known, so as to locate the stitching and obtain the following: Fig.11 It can be seen that the present embodiment can accurately position the stitching of the plate through the above method, solve the technical problem of abnormal stitching simulation, and obtain a more realistic simulation effect.
[0114] The instructions in this embodiment can be set as needed; preferably, the first instruction includes: selecting a section of the boundary of the first plate and a section of the boundary of the second plate, and determining a first stitching boundary line and a second stitching boundary line between the first plate and the second plate to be stitched;
[0115] The second instruction includes: right-clicking on the plate, popping up a menu, clicking to move to the side, and obtaining a boundary grid on the first plate according to the first stitching boundary line, as well as a first 3D tangent space tangent and a first 3D subnormal corresponding to the boundary grid;
[0116] The third instruction includes: performing global meshing and generating one-to-one corresponding mesh stitching point pairs using stitching lines;
[0117] The automatic operation of the program mentioned above refers to: any computer program that can execute relevant instructions;
[0118] Preferably, in this embodiment, the global meshing of the first plate and the second plate is to discretize the first plate and the second plate into triangles, and obtain: a triangular boundary mesh, a triangular adjacent mesh, and a triangular adjacent mesh, such as Figure 5-7 ;
[0119] Specific embodiment II:
[0120] The present invention also provides an embodiment:
[0121] like Fig.12 A plate positioning system for stitching, comprising: an acquisition module 100, a processing module 200, a storage module 300 and a display module 400; wherein the acquisition module 100 is used to acquire user instructions; the processing module 200 interacts with the acquisition module 100 for executing the plate positioning method as described in specific embodiment I according to the user instructions, forms positioning result data, and positions the stitching of at least two plates; the storage module 300 interacts with the processing module 200 for storing the positioning result data; the display module 400 interacts with the processing module 200 for displaying the result of plate stitching according to the positioning result data; preferably, the display module 400 can be a display device such as a liquid crystal display.
[0122] Preferably, the user instruction includes the first instruction, the second instruction and the third instruction recorded in specific embodiment I, or other instructions.
[0123] Specific embodiment III:
[0124] The present invention also provides an embodiment:
[0125] A plate positioning electronic device comprises: a storage medium and a processing unit; wherein the storage medium is used to store a computer program; the processing unit exchanges data with the storage medium, and when at least two plates are stitched and positioned, the computer program is executed by the processing unit to perform the steps of the plate positioning method described in specific embodiment I.
[0126] A computer-readable storage medium: the computer-readable storage medium stores a computer program;
[0127] When the computer program is running, it executes the steps of the plate positioning method described in specific embodiment I.
[0128] The above-mentioned storage medium is preferably a storage device such as a mobile hard disk, a solid-state hard disk or a USB flash drive; the processing unit, preferably a CPU, exchanges data with the storage medium, and uses the algorithm in the CPU and the storage medium to form a service background, which is used to execute the computer program through the processing unit when performing augmented reality collaboration, and perform the steps of the augmented reality collaboration method as described above.
[0129] The above-mentioned processing unit, such as a CPU, can perform various appropriate actions and processes according to the program stored in the storage medium. The electronic device also includes the following peripherals, including input parts such as a keyboard and a mouse, and may also include output parts such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; in particular, according to the embodiments disclosed in the present invention, such as Figure 3 The described processes can all be implemented as computer software programs.
[0130] In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0131] The above disclosures are only several specific implementation scenarios of the present invention, but the present invention is not limited thereto, and any changes that can be thought of by a person skilled in the art should fall within the protection scope of the present invention. The above serial numbers of the present invention are only for description and do not represent the advantages and disadvantages of the implementation scenarios.
Claims
1. A method for positioning a plate during stitching, characterized in that: include: In response to an instruction input by a user, determining a first stitching boundary line and a second stitching boundary line between the first panel and the second panel to be stitched; According to the first stitching boundary line, at least one boundary grid is obtained on the first plate; According to the boundary grid, a neighboring grid on the second plate is obtained; Obtaining 3D vertex information of any second plate mesh on the second plate; Complete the stitching positioning of the second plate and the first plate according to the 3D vertex information; The number of the boundary grids is consistent with the number of the adjacent wall grids.
2. A method for positioning a plate during stitching according to claim 1, characterized in that: The step of obtaining the adjacent grid on the second plate according to the boundary grid comprises: Discretizing the second plate to form at least one second plate grid; The septum grid is determined according to the second stitching boundary line and the boundary grid.
3. A method for positioning a plate during stitching according to claim 2, characterized in that: After the step of determining the adjacent grid according to the second stitching boundary line and the boundary grid, the method further includes: obtaining a tangent space tangent and a subnormal of any second plate grid on the second plate, including: Determine a second 3D tangent space tangent and a second normal of the adjacent mesh, and a third 3D tangent space tangent and a third normal of other meshes except the adjacent mesh; The method for obtaining the second 3D tangent space tangent and the second 3D binormal comprises: Make the second 3D tangent space tangent line and the second 3D subnormal infinitely approach to the first 3D tangent space tangent line and the first 3D subnormal corresponding to the boundary mesh respectively; The acquisition of the third 3D tangent space tangent and the third 3D subnormal includes: The tangent space tangents and subnormals of any two adjacent second plate meshes on the second plate are made infinitely close.
4. A method for positioning a plate during stitching according to claim 3, characterized in that: The method of making the second 3D space tangent and the second 3D subnormal infinitely approach the first 3D tangent space tangent and the first 3D subnormal corresponding to the boundary mesh respectively comprises: The second 3D tangent space tangent and the second 3D subnormal are obtained by solving the minimum value of the first quadratic energy function.
5. A method for positioning a plate during stitching according to claim 4, characterized in that: The first quadratic energy function is: E(t,b)=|t-T0| 2 +|b-B0| 2 ; Among them, (t, b) is the combination of tangent and normal to be determined; T0 is the first 3D tangent space tangent; B0 is the first 3D subnormal.
6. A method for positioning a plate during stitching according to claim 3, characterized in that: The step of making the tangent space tangents and subnormals of any two adjacent meshes on the second plate infinitely approach each other includes: The third 3D space tangent and the third 3D normal are obtained by solving the minimum value of the second quadratic energy function.
7. A method for positioning a plate during stitching according to claim 6, characterized in that: Assume that the tangent space tangent and subnormal information of any two adjacent grids on the second plate are: (t0, b0) and (t1, b1); The second quadratic energy function is: E(t0, b0, t1, b1)=|t0-t1| 2 +|b0-b1| 2 。 8. A method for positioning a plate during stitching according to claim 1, characterized in that: include: The obtaining of 3D vertex information of any second plate mesh on the second plate includes: According to the ratio of the 2D edge of any second pattern mesh on the second pattern to the 2D tangent space tangent, and the ratio of the 2D edge to the 2D subnormal, respectively obtain the ratio of the length of the 3D tangent to the 2D tangent, and the ratio of the length of the 3D subnormal to the 2D subnormal of the second pattern mesh; Establishing energy constraints, solving the ratio of the 3D edge of the second pattern mesh to the 3D tangent space tangent, and the ratio of the 3D edge to the 3D subnormal, to obtain the 3D vertex coordinates of all the second pattern meshes; Wherein, the energy constraint is: A space based on any two sides of the second plate grid is applied to the world coordinate system, so that any two adjacent second plate grids on the second plate have the same world coordinate.
9. A method for positioning a plate during stitching according to claim 8, characterized in that: The energy constraint is established to solve the ratio of the 3D edge of the second template mesh to the 3D tangent space tangent, and the ratio of the 3D edge to the 3D subnormal, including: Assume that two adjacent second plate grids on the second plate are (P00, P01, P02) and (P10, P11, P12) respectively, and obtain the 3D vertex coordinates on the plate to be stitched by solving the minimum value of the third quadratic energy function; E(P 00 ,P 01 ,P 02 ,P 10 ,P 11 ,P 12 )=|[(P 01 -P 00 )*t 00 +(P 02 -P 00 )*t 01 ]-[(P 11 -P 10 )*t 10 +(P 12 -P 10 )*t 11 ]| 2 +|[(P 01 -P 00 )*b 00 +(P 02 -P 00 )*b 01 ]-[(P 11 -P 10 )*b 10 +(P 12 -P 10 )*b 11 ]| 2 ; Among them, t 00 is the first dimension coordinate of the 3D tangent line of the second grid (P00, P01, P02), t 01 is the second dimension coordinate of the 3D tangent; t 10 is the first dimension coordinate of the 3D tangent line of the second grid (P10, P11, P12), t 11 is the second dimension coordinate of the 3D tangent; b 00 is the first dimension coordinate of the 3D subnormal of the second plate grid (P00, P01, P02), b 01 is the second dimension coordinate of the 3D tangent; B 10 is the first dimension coordinate of the 3D subnormal of the second plate grid (P10, P11, P12), b 11 is the second dimension coordinate of the 3D tangent; (P00, P01, P02) is the vertex coordinate of a second pattern mesh; (P10, P11, P12) is the vertex coordinate of another second pattern mesh.
10. A method for positioning a plate during stitching according to claim 1, characterized in that: The step of obtaining at least one boundary grid on the first plate according to the first stitching boundary line comprises: Discretizing the first plate to obtain at least one first plate grid; A grid including a first stitching boundary line in the first plate grid is determined as a boundary grid.
11. A method for positioning a plate during stitching according to claim 10, characterized in that: After the step of obtaining at least one boundary grid on the first plate according to the first stitching boundary line, the step of obtaining a first 3D tangent space tangent and a first 3D subnormal corresponding to the boundary grid includes: The first 3D tangent space tangent and the first 3D binormal of the boundary mesh are obtained by the following model: Among them, T0 is the first 3D tangent space tangent; B0 is the first 3D subnormal; X0, X1, X2 are the vertices of the boundary mesh respectively.
12. A plate positioning system for stitching, characterized in that: include: A collection module, used for collecting user instructions; A processing module, which interacts with the acquisition module for performing data, and is used to execute the plate positioning method according to any one of claims 1 to 11 according to the user instruction, to form positioning result data, and to position the stitching of at least two plates; A storage module, which performs data interaction with the processing module and is used to store the positioning result data; A display module performs data interaction with the processing module and is used to display the result of plate stitching according to the positioning result data.
13. A plate positioning electronic device, characterized in that: include: Storage medium for storing computer programs; The processing unit exchanges data with the storage medium, and is used for executing the computer program through the processing unit when at least two plates are stitched and positioned, to perform the steps of the plate positioning method as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program; When the computer program is running, the steps of the plate positioning method according to any one of claims 1 to 11 are executed.