A cross-plate texture continuous mapping method, system and device

CN123015802APending Publication Date: 2026-10-30SLIGHT WORLDS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611484428.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-22
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

第一,二维版片编辑通常只处理当前版片内的图案裁切,不能根据真实缝合关系自动把越界部分传播到相邻版片;

Benefits of technology

本发明通过彩色接缝标识表达版片的缝合关系,不再依赖三维模型自动猜测,提高复杂缝合关系识别的稳定性和准确性;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123015802A_ABST
    Figure CN123015802A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of digital design, and particularly discloses a cross-plate texture continuous mapping method, system and device, which comprises the following steps: carrying out plate recognition, seam extraction and track construction on a two-dimensional paper sample file with plate outlines and color seam marks; receiving a source pattern file uploaded by a user and taking the source pattern file as a unique editable source pattern object; carrying out matching and normalization processing on the track, mapping a pattern crossing a seam to a target plate, and generating a read-only derived layer on the target plate; and synthesizing a texture canvas by combining the source pattern and all the derived layers, and rendering a three-dimensional model. The color seam marks and the normalized seam track can process complex sewing relationships, seam length differences and material stretching and compression, realize cross-plate mapping of the pattern, and guarantee continuous texture effects; the source pattern can be uniquely edited, and two-dimensional output and three-dimensional preview can be kept consistent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of digital design technology, specifically to a method, system, and apparatus for cross-plate texture continuous mapping. Background Technology

[0002] In the digital design of products such as clothing, bags, and soft shells, designers often need to place patterns on two-dimensional unfolded patterns and simultaneously view the visual effects on the three-dimensional finished product.

[0003] Current practices typically treat each two-dimensional pattern piece as an independent, unrelated area, and the pattern can only be cut within the current pattern piece. If the pattern is to extend from the front piece to the back piece, from the sleeve piece to the body of the garment, or from the collar to the front and back necklines, designers often need to manually copy, scale, rotate, and repeatedly adjust multiple pattern objects.

[0004] Another approach involves applying camera-projected textures or freehand decals to the 3D model and then observing the 2D UV results in reverse. However, this method is easily affected by perspective, model surface occlusion, UV island breaks, and stitching relationships, making it difficult to guarantee that the 2D pattern output for production is strictly consistent with the 3D preview. In particular, for areas such as armholes, necklines, collar folds, and sleeve closures, it is not a simple one-edge-to-one correspondence; there may be complex situations such as one seam corresponding to multiple pattern edges, multiple segments of the same color seam on the same pattern, and seam lengths that are different but the material allows for stretching and compression.

[0005] Therefore, the existing technology has the following problems: First, two-dimensional pattern editing usually only processes the pattern cutting within the current pattern and cannot automatically propagate the out-of-bounds parts to adjacent patterns based on the actual stitching relationship. Second, when inferring seam relationships from a 3D model, the stability of identifying already stitched meshes, complex UV islands, closed seams in the same piece, and seams of inconsistent lengths is insufficient, which can easily lead to mismatches, omissions, or cyclic propagation. Third, manually copying patterns will produce multiple independent editable objects. Once the source pattern is moved or scaled, each one needs to be modified synchronously, making it difficult to maintain continuity. Fourth, if the two-dimensional production drawing and the three-dimensional preview drawing are rendered separately, inconsistencies may easily occur between the two.

[0006] Based on this, the present invention designs a method, system and device for cross-plate texture continuous mapping. Summary of the Invention

[0007] The purpose of this invention is to provide a cross-pattern texture continuous mapping method that can clearly express the stitching relationship in a two-dimensional pattern editing environment and automatically generate cross-pattern continuous textures when the user edits a single source pattern, so that the two-dimensional output and the three-dimensional garment preview can use the same texture result, thereby solving the problems mentioned in the background art.

[0008] To achieve the above objectives, the present invention provides the following technical solution: A method for continuous mapping of textures across different plates, comprising the following steps: S1. Obtain and parse a two-dimensional paper pattern file containing the outline of the plate and colored seam markings to identify the plate and extract the seams, obtain the single plate, the texture atlas composed of all the single plates and the seam group data, and construct the track based on the seam group data. S2. Obtain the source pattern as the only editable object, select a single plate as the source plate to place the source pattern, and render the source pattern as an uncropped source pixel map at the corresponding position in the texture atlas according to the editing operation performed on the source pattern and the position transformation relationship between the source plate and the texture atlas. S3. Match the source track in the source image with the target track in the target image, establish a track mapping relationship, sample along the target track and normalize the sampling progress, and map the source pixel information in the source pixel image to the target image according to the track mapping relationship to generate a read-only derived layer on the target image. S4. Overlay the source pattern and all derived layers onto the texture atlas and synthesize the texture canvas to form a complete texture atlas, which is the result of the two-dimensional overview output. S5. Use the texture canvas as a material map for real-time rendering to ensure that the 3D garment preview is consistent with the output of the 2D overview.

[0009] As a further aspect of the present invention, the identification plate in step S1 includes: Recursively search for nodes in the 2D paper pattern file, identify single-piece pieces with named identifiers and black outer contours, and obtain a texture atlas composed of all single-piece pieces. Calculate the bounding box of the single-page image, and record the original identification information, contour path data, bounding box coordinate parameters, and coordinate transformation relationship between the single-page image and the texture atlas.

[0010] As a further aspect of the present invention, the extraction of the seam in step S1 includes: Parse the 2D paper pattern file and extract all non-black line segments with valid point sets; For the extracted line segments of the same color, establish a normalization key for the point sequence of each line segment to remove overlapping line segments that are drawn repeatedly or have opposite directions but identical geometric coordinates; Calculate the bounding box of each line segment, and calculate the minimum distance between the bounding box of the line segment and the bounding box of the single plate, and associate the line segment with the nearest single plate; Based on the association results, seam groups are created using color as the key, and the data information of the seam groups and line segments is recorded.

[0011] As a further aspect of the present invention, the construction track in step S1 includes: When the same seam group contains only two line segments of the same color and belonging to different single plates, each line segment is constructed as a track, and a bilateral mapping relationship is formed between the two tracks; When the same seam group contains three or four line segments, multiple line segments are combined into a suitable mapping track and a polygonal mapping relationship is formed based on the number of line segments in the same group, whether the single plate to which the line segments belong is repeated, and the relationship of the line segment lengths.

[0012] As a further aspect of the present invention, the normalized sampling progress in step S3 includes: Sampling is performed along the target track. For each sampling point on the target track, the cumulative arc length from the starting point of the track is calculated and divided by the total arc length of the target track to obtain the normalized progress t∈[0,1] of the sampling point. Based on the rule that seams are usually connected in opposite directions, the normalized progress of the target trajectory is mapped inversely to the normalized progress of the source trajectory. t.

[0013] As a further aspect of the present invention, establishing the orbital mapping relationship in step S3 includes: Calculate the tangent and normal vectors at each sampling point on the target track, and determine the internal orientation of the target plate; calculate the tangent and normal vectors at the corresponding sampling points on the source track, and determine the internal orientation of the source plate. Let the coordinates of the source pixel on the source plate be (t, d), and the coordinates of the target pixel on the target plate be (t', d'). The source pixel coordinates and the target pixel coordinates form a mapping relationship. Here, t and t' are the normalized track sampling progress, and t' is taken as 1-t to adapt to the reverse stitching of the stitching edge. d is the advancing depth of the source plate along the normal direction to the outside of the plate, and d' is the advancing depth of the target plate along the normal direction to the inside of the plate. d' and d are kept equal.

[0014] As a further aspect of the present invention, the step S3 of obtaining the source pixel information in the source pixel image and mapping it to the target image includes: Obtain the color and transparency values ​​of the source pixel coordinates from the source pixel image to obtain the source pixel information; For each target image, a read-only derived layer is generated, and for each target pixel coordinate, it is determined whether it falls within the internal area defined by the image mask of the target image. If it is located inside the target image, the source pixel information at the corresponding position will be written to the corresponding position in the derived layer of the target image.

[0015] If the target image has been copied beyond the area defined by its mask, then copying in the current depth direction will stop.

[0016] As a further aspect of the present invention, when a user re-edits the source pattern, a short-delay refresh mechanism or a token mechanism is adopted to ensure that expired asynchronous calculation results do not overwrite new results; when a user deletes the source pattern, all its corresponding derived layers are also deleted.

[0017] The present invention also provides a cross-plate texture continuum mapping system for implementing the above method, comprising: The preprocessing module is used to acquire and parse the two-dimensional paper pattern file containing the outline of the plate and the color seam markings, and to perform plate recognition, seam extraction and track construction. The 2D editing module is used to receive the source pattern as the only editable object, place it on the specified source plate, and render it as an uncropped source pixel map in the coordinates of the texture atlas according to the editing operation performed on the source pattern. The cross-plate mapping module is used to match the track and establish the track mapping relationship based on the seam group and track data, map the pattern that crosses the seam to the target plate, and generate a read-only derived layer on the target plate. The texture synthesis module is used to uniformly overlay the source pattern and all derived layers onto the corresponding positions in the texture atlas and synthesize the texture canvas. The 3D preview module is used to render the textured canvas as a material map for the 3D model in real time, so that the 3D garment preview is consistent with the output of the 2D overview.

[0018] The present invention also provides a cross-plate texture continuous mapping device, including a storage unit and a processing unit. The storage unit is used to store a computer program, and the processing unit is used to execute the computer program stored in the storage unit to implement the above method.

[0019] Compared with the prior art, the beneficial effects of the present invention are: This invention uses colored seam markers to express the stitching relationship of the plates, eliminating the need for automatic guessing from a 3D model and improving the stability and accuracy of identifying complex stitching relationships. This invention, by establishing a mapping track, can handle complex stitching relationships such as one edge corresponding to multiple edges, multiple stitches on the same piece, collar folds, and chain stitching of armholes. It also handles differences in stitch length and material stretching and compression by normalizing the stitch progress, thereby achieving cross-piece mapping of patterns and ensuring continuous texture effects. This invention can keep the source pattern unique and editable, and the derived layers are updated in real time with the source pattern without the need for individual modification. Furthermore, the 2D editing view, 2D overview output, and 3D garment material all consume the same texture canvas, ensuring consistency between the preview and the output. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of the overall system architecture of the present invention; Figure 2 This is a schematic diagram illustrating the extraction of the plate and the colored seam in this invention; Figure 3 This is a schematic diagram of the double track at the armhole seam of the present invention; Figure 4 This is a schematic diagram of the multi-track system at the collar seam of the present invention; Figure 5 This is a schematic diagram of the local coordinate mapping of the present invention; Figure 6 This is a schematic diagram illustrating the process of synchronizing the source pattern and derived layers in this invention. Detailed Implementation

[0022] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] This embodiment provides a method for cross-plate texture continuum mapping, such as... Figure 1 As shown, this method no longer relies on the 3D model to automatically guess all stitching relationships. Instead, it explicitly marks the stitches in the pattern file using non-black colored lines, extracts the pattern pieces, seam groups, and mapping tracks from the file, and automatically generates read-only derived layers when the user edits the source pattern, thereby achieving continuous mapping across pattern pieces.

[0024] The specific steps are as follows: S1, Preprocessing Preprocessing involves extracting structured pattern data and seam data from the original 2D pattern file to establish the basic data structure for subsequent cross-pattern mapping. For example... Figure 2 As shown, this stage includes the following steps: S1-1, Receive two-dimensional paper pattern files and style rules The two-dimensional pattern file uses a Scalable Vector Graphics (SVG) format, which contains two basic graphic elements: pattern outlines and colored seam markers. The pattern outline is a closed path composed of black lines, used to define the outer boundary of a single pattern piece; a black outline alone does not indicate that two patterns need to be sewn together. Colored seam markers are line segments composed of non-black colored lines, used to explicitly mark the boundaries that need to be sewn together; line segments of the same color belong to the same seam group, indicating that the seam will be sewn together.

[0025] The original pattern identifiers generated by the designer or pattern-making tool in the two-dimensional paper pattern file should be retained without deleting suffixes, automatically renaming, or merging across patterns, so as to facilitate subsequent debugging and production file traceability.

[0026] Style rules are used to parse two-dimensional paper pattern files. They are preset recognition standards used to define the recognition conditions for pattern boundaries and seam lines, including class styles, inline style attributes, and stroke attributes in SVG.

[0027] S1-2, Plate Recognition The pattern consists of multiple pieces, and below the piece level are multiple levels such as outlines and control points. When identifying pieces, the nodes of the 2D pattern file are recursively searched, traversing all levels to identify and retrieve single pieces with named identifiers (IDs) and black outer outlines. Since actual pattern files typically nest named pieces within anonymous groups, recursive searching avoids missed identifications caused by only checking the top-level nodes.

[0028] After completing the plate recognition, the system outputs a single plate and a texture atlas composed of all the single plates arranged together. The texture atlas includes a clean atlas and an atlas with auxiliary boxes.

[0029] For each identified single-plate piece, its bounding box is calculated, and the plate data, including the original identification information, contour path data, bounding box coordinates, and coordinate transformation relationship between the single-plate piece and the texture atlas, is recorded in the index file.

[0030] S1-3, Seam Extraction The 2D paper pattern file is parsed according to style rules to extract all non-black line segments with a valid point set (i.e., containing at least two coordinate points). For the extracted line segments of the same color, a normalization key is established for the point sequence of each line segment. That is, a unique identifier that is independent of direction is generated for each line segment of the same color. In this way, regardless of whether the line segment is stored in the forward or reverse direction in the original data, it can be identified as the same line segment. This allows for the identification and removal of overlapping line segments that are drawn repeatedly or have opposite directions but identical geometric coordinates.

[0031] After deduplication, the bounding box of each line segment is calculated, and the minimum distance between the bounding box of each line segment and the bounding box of each individual plate is calculated. The line segment is then associated with the nearest plate. If the distance between a line segment and multiple plates is less than a preset threshold, the line segment is associated with all of these plates simultaneously to handle the seam lines located at the plate boundaries.

[0032] Based on the association results, a seam group data structure is established using color as the key, and this data information is recorded in an index file. Each seam group contains: color value, a set of deduplicated line segments, the plate identifier to which each line segment belongs, the set of polyline points for each line segment, the bounding box, and the arc length parameter; the line segments are the basic boundary units within the seam group, and each line segment retains its source color, the plate it belongs to, the polyline coordinates, and its length.

[0033] S1-4, Track Construction Tracks are combinations of line segments and are the basic unit of cross-plate mapping, used to represent a continuously sampled seam mapping path. A seam group can contain two or more tracks.

[0034] Track construction is divided into two categories based on the number of line segments and mapping relationships in the seam group: The first type is a simple double-sided seam: when the same seam group contains only two line segments of the same color, and these two line segments belong to two different single plates, each line segment is constructed as an independent track to represent the seam on both sides, and a double-sided mapping relationship is formed between the two tracks.

[0035] The second type is complex polygonal seams: When the same seam group contains three or four line segments, multiple line segments are combined into a suitable mapping track according to the number of line segments in the same group, whether the single pattern to which the line segments belong is repeated, and the relationship of the line segment lengths, and a polygonal mapping relationship is formed, such as armhole seams and collar seams.

[0036] The armhole seam consists of a sleeve arc corresponding to two chain-like arcs on the front and back pieces; the sleeve arc is a single, continuous line segment, designated as track one, while the chain-like arcs on the front and back pieces are two independent line segments, connected end-to-end to form track two, as shown below. Figure 3 As shown.

[0037] The collar seam includes the top and bottom edges of the collar itself, and also corresponds to the neckline seams of the front and back pieces; specifically, the top edge of the collar forms track one, the bottom edge forms track two, and the neckline seams of the front and back pieces together form track three, as shown below. Figure 4 As shown.

[0038] After the tracks are established, each track has a total arc length and a participating plate ID, and the track data is recorded in the index file.

[0039] S2, Two-Dimensional Editing The program receives source images uploaded by users, selects one from multiple single-page images as the source page, places the uploaded source image on the source page, performs and records the user's editing operations such as moving, scaling, and rotating the source image, and when entering the editing state, the source image is the only editable object.

[0040] After the source pattern is edited, based on the position parameters and transformation information of the source pattern in the texture atlas, the source pattern is rendered as an uncropped source pixel image in the coordinates of the texture atlas.

[0041] S3, Cross-page mapping Cross-plate mapping is the core algorithm of this invention. Its goal is to accurately propagate pattern pixels that cross seams on the source plate to the target plate, forming a visually continuous texture effect. This includes the following steps: S3-1, Track Matching The source plate is usually adjacent to multiple single plates and forms multiple seam groups based on the seam relationship. For each seam group to which the source plate belongs, the track containing the source plate is found as the source track, and the track belonging to other plates in the same seam group is found as the target track, so as to establish the track mapping relationship of the source pixel map from the source plate to the target plate.

[0042] S3-2, Sampling Progress Normalization and Track Mapping Sample along the target track. For each sampling point on the target track, calculate its cumulative arc length from the starting point of the track and divide it by the total arc length of the target track to obtain the normalized progress t∈[0,1] of the sampling point.

[0043] Based on the rule that seams are usually connected in opposite directions, the normalized progress of the target trajectory is mapped inversely to the normalized progress of the source trajectory. t, that is, when two plates are sewn together along the seam, the starting position of the seam of one plate corresponds to the ending position of the seam of the other plate. Therefore, the above mapping relationship is needed to ensure the consistency of the pattern direction.

[0044] The subsequent mapping of the source pixel image does not use the absolute length for point-to-point mapping directly. Instead, it uses the normalized progress t along the track for proportional mapping. This way, even if the source track and the target track have different lengths, the mapping can be completed proportionally, thus adapting to the length differences allowed in stretchable materials such as ribbing and collars or in pattern making.

[0045] S3-3. Establish orbital mapping relationships For each sampling point on the target track, with a sampling progress of t, calculate the tangent vector at that sampling point and calculate the normal vector based on the tangent vector. The direction of the normal vector is determined by the plate mask. Move a small distance from the sampling point along the normal. If the position is inside the plate mask, the normal vector points inside the plate; otherwise, take the opposite direction.

[0046] On the source orbit, according to normalization progress 1 The corresponding sampling point is located, the tangent vector and normal vector are calculated, and the internal direction is determined by the plate mask. Since the source plate and the target plate are connected to each other along the seam, the internal normal vector direction of the source plate is opposite to that of the target plate. Therefore, samples are taken on the source plate in the opposite direction of the internal normal vector of the source plate.

[0047] The above mapping process can be abstracted as a local joint coordinate transformation: such as Figure 5 As shown, the source pixel is represented by the seam position t and the over-boundary depth d, and the target pixel is represented by the corresponding t' and d'. t' is set to 1-t to accommodate the reverse stitching of the seam edge; d' is kept equal to d to ensure a continuous visual effect on both sides of the pattern after it crosses the seam.

[0048] S3-4, Depth-direction pixel propagation and writing Using the sampling point as a reference, advance the depth d' pixel by pixel along the direction of the internal normal of the target plate. For each depth value d', determine the target pixel coordinates (t', d') on the target plate; at the same time, starting from the corresponding sampling point along the opposite direction of the internal normal on the source plate, determine the source pixel coordinates (t, d), and obtain the color value and transparency value at this position from the source pixel image to obtain the source pixel information.

[0049] For each target image, a read-only derived layer (overlay) is generated, and for each target pixel coordinate, it is determined whether it falls within the internal area defined by the image mask of the target image. If it is located inside the target image, the corresponding source pixel information (color value, transparency value) will be written to the corresponding position in the derived layer of the target image; If the target image has been copied beyond the area defined by its mask, then copying in the current depth direction will stop to prevent pixels from being propagated outside the target image.

[0050] S4, Texture Compositing In the aforementioned steps, the source pattern is continuously stored in the source plate as the only editable object, while the pattern generated across plates is not a new editable source object, but a read-only derived layer.

[0051] In the 2D focus editing view, the read-only derived layers are cropped into the current frame for display. When outputting the 2D overview, the source pattern and derived layers are uniformly overlaid on the corresponding positions in the texture atlas and participate in the texture canvas composition to form a complete texture atlas.

[0052] S5, 3D Preview The aforementioned textured canvas is used as the material texture for the 3D model. Since the 2D overview output and the 3D garment material both consume the same textured canvas, they are strictly consistent at the pixel level, fundamentally avoiding the inconsistency problem caused by rendering the 2D production image and the 3D preview image separately in traditional solutions.

[0053] In the above method, when a user performs movement, scaling, or rotation operations on the source pattern in a two-dimensional editing view, such as Figure 6 As shown, the position parameters and transformation information of the source pattern in the texture atlas are updated synchronously, and all derived layers are recalculated.

[0054] To avoid users triggering frequent recalculations during continuous drag-and-drop operations, a short-delay refresh mechanism or token mechanism is adopted to ensure that expired asynchronous calculation results will not overwrite new results.

[0055] Among them, the short-delay refresh mechanism triggers recalculation only after a preset time interval after the user stops operating, and the token mechanism assigns a unique token to each editing operation. When the asynchronous calculation is completed, the tokens are compared. If the token has expired, the calculation result is discarded, and only the result corresponding to the latest token is applied.

[0056] When a user deletes the source pattern, all its corresponding derived layers are also deleted to ensure data consistency.

[0057] This embodiment can maintain the unique editability of the source pattern, and the derived layer updates in real time with the source pattern; it can handle complex stitching relationships such as one edge corresponding to multiple edges, multiple seams on the same piece, collar folds, and chain stitching of armholes; it can handle differences in seam length and material stretching and compression by normalizing the seam progress; it can enable the 2D editing view, 2D overview output, and 3D garment material to consume the same texture canvas, ensuring consistency between preview and output; and it can save the stitching relationship in a traceable data structure, which is convenient for debugging, reuse, and subsequent expansion.

[0058] Based on the above method, this embodiment also provides a cross-plate texture continuous mapping system, which consists of five core modules: a preprocessing module, a two-dimensional editing module, a cross-plate mapping module, a texture synthesis module, and a three-dimensional preview module.

[0059] The preprocessing module is responsible for receiving two-dimensional paper pattern files with plate outlines and colored seam markings, as well as style rules, and performing tasks such as plate recognition, seam extraction, and track construction, ultimately outputting single plates, texture atlases, and index files.

[0060] The 2D editing module receives the source pattern uploaded by the user, selects one of the single plates as the source plate, and places the source pattern as the only editable object in the source plate. It records the user's operations such as moving, scaling, and rotating the source pattern. Based on the position parameters and transformation relationship of the source pattern in the texture atlas, it renders it as an uncropped source pixel image in the coordinates of the texture atlas.

[0061] The cross-plate mapping module matches the mapping track of the same seam group according to the seam group and track data in the index file, samples along the track and normalizes the sampling progress of the track, and maps the source pixel information at the source pixel coordinates obtained by sampling to the target pixel coordinates to generate a read-only derived layer on the target plate.

[0062] The texture synthesis module is responsible for uniformly overlaying and compositing the source pattern and all derived layers onto the corresponding positions in the texture atlas, and compositing the texture canvas to form a complete texture atlas as the result of the two-dimensional overview output.

[0063] The 3D preview module uses the textured canvas mentioned above as a material map for real-time rendering of the 3D model, ensuring that the 3D garment preview is strictly consistent with the output of the 2D overview.

[0064] Based on the above method, this embodiment also provides a cross-plate texture continuous mapping device, including a storage unit and a processing unit. The storage unit is used to store a computer program, and the processing unit is used to execute the computer program stored in the storage unit to implement the above method.

[0065] Furthermore, the colored seam markings in this embodiment are not limited to scalable vector graphic stroke colors, but can also be expressed through layer name conventions, path identifier naming rules (ID), custom data attributes, CAD line types, or external configuration files (JSON); the application field of the pattern is not limited to clothing, but can be any product with two-dimensional unfolded pieces and three-dimensional connection relationships; the texture propagation can be implemented either by the pixel rasterization method described above, or by first performing local coordinate transformation on the vector pattern and then rasterizing it; the three-dimensional preview engine is not limited to a specific three-dimensional graphics library (Three.js), and the texture canvas can also be replaced by a graphics processor (WebGL) texture, an off-screen canvas, a server-side rendered image, or a production printing file.

[0066] In the description of this specification, references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0067] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to any specific implementation. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims

1. A method for continuous mapping of textures across printing plates, characterized in that, The method includes the following steps: S1. Obtain and parse a two-dimensional paper pattern file containing the outline of the plate and colored seam markings to identify the plate and extract the seams, obtain a single plate, a texture atlas composed of all single plates and seam group data, and construct a track based on the seam group data; S2. Obtain the source pattern as the only editable object, select a single plate as the source plate, and place the source pattern thereon. Based on the editing operation performed on the source pattern and the positional transformation relationship between the source plate and the texture atlas, render the source pattern as an uncropped source pixel image at the corresponding position in the texture atlas. S3. Match the source track in the source plate with the target track in the target plate and establish a track mapping relationship. Sample along the target track and normalize the sampling progress. Map the source pixel information in the source pixel map to the target plate according to the track mapping relationship to generate a read-only derived layer on the target plate. S4. Overlay the source pattern and all the derived layers onto the texture atlas and synthesize a texture canvas to form a complete texture atlas as the result of the two-dimensional overview output. S5. The texture canvas is used as a material map for the 3D model and rendered in real time to ensure that the 3D garment preview and the 2D overview output are consistent.

2. The cross-plate texture continuous mapping method according to claim 1, characterized in that, The identification plate mentioned in step S1 includes: The nodes of the two-dimensional paper pattern file are recursively searched to identify the single-piece pieces with named identifiers and black outer contours, and a texture atlas composed of all single-piece pieces is obtained. Calculate the bounding box of the single-page image, and record the original identification information, contour path data, bounding box coordinate parameters, and coordinate transformation relationship between the single-page image and the texture atlas.

3. The cross-plate texture continuous mapping method according to claim 1, characterized in that, The extraction of the seam in step S1 includes: The two-dimensional paper pattern file is parsed and all non-black line segments with valid point sets are extracted; For the extracted line segments of the same color, a normalization key is established for the point sequence of each line segment to remove overlapping line segments that are drawn repeatedly or have opposite directions but identical geometric coordinates. Calculate the bounding box of each line segment, and calculate the minimum distance between the bounding box of the line segment and the bounding box of the single-page sheet, and associate the line segment with the nearest single-page sheet; Based on the association results, seam groups are established using color as the key, and the data information of the seam groups and the line segments is recorded.

4. The cross-plate texture continuous mapping method according to claim 1, characterized in that, The construction track in step S1 includes: When the same seam group contains only two line segments of the same color and belonging to different single plates, each line segment is constructed as a track, and a bilateral mapping relationship is formed between the two tracks; When the same seam group contains three or four line segments, the multiple line segments are combined into a suitable mapping track and a polygonal mapping relationship is formed according to the number of line segments in the same group, whether the single plate to which the line segments belong is repeated, and the relationship of the line segment lengths.

5. The cross-plate texture continuous mapping method according to claim 1, characterized in that, The normalized sampling progress in step S3 includes: Sampling is performed along the target track. For each sampling point on the target track, the cumulative arc length from the starting point of the track is calculated and divided by the total arc length of the target track to obtain the normalized progress t∈[0,1] of the sampling point. Based on the rule that the seams are usually connected in opposite directions, the normalized progress of the target trajectory is mapped inversely to the normalized progress 1 of the source trajectory. t.

6. The cross-plate texture continuous mapping method according to claim 1, characterized in that, The establishment of the orbital mapping relationship in step S3 includes: Calculate the tangent vector and normal vector at each sampling point on the target track, and determine the internal orientation of the target plate; calculate the tangent vector and normal vector at the corresponding sampling point on the source track, and determine the internal orientation of the source plate; Let the coordinates of the source pixel on the source plate be (t, d), and the coordinates of the target pixel on the target plate be (t', d'). The source pixel coordinates and the target pixel coordinates form a mapping relationship. Wherein, t and t' are the normalized track sampling progress, and t' is 1-t to accommodate the reverse stitching of the stitching edge; d is the advancing depth of the source plate along the normal direction to the outside of the plate, and d' is the advancing depth of the target plate along the normal direction to the inside of the plate, and d' and d are kept equal.

7. The cross-plate texture continuous mapping method according to claim 6, characterized in that, Step S3, which involves obtaining the source pixel information from the source pixel image and mapping it to the target image, includes: The source pixel information is obtained by acquiring the color value and transparency value of the source pixel coordinates from the source pixel image. For each target image, a read-only derived layer is generated, and for each target pixel coordinate, it is determined whether it falls within the internal area defined by the image mask of the target image. If it is located inside the target plate, the source pixel information at the corresponding position is written into the corresponding position in the derived layer of the target plate; If the copying has exceeded the internal area defined by the target plate's mask, then the copying in the current depth direction will stop.

8. The cross-plate texture continuous mapping method according to claim 1, characterized in that, When a user re-edits the source pattern, a short-delay refresh mechanism or a token mechanism is used to ensure that expired asynchronous calculation results do not overwrite new results; when a user deletes the source pattern, all its corresponding derived layers are also deleted.

9. A cross-plate texture continuum mapping system, used to implement the method according to any one of claims 1 to 8, characterized in that, include: The preprocessing module is used to acquire and parse the two-dimensional paper pattern file containing the outline of the plate and the color seam markings, and to perform plate recognition, seam extraction and track construction. The 2D editing module is used to receive the source pattern as the only editable object, place it on the specified source plate, and render it as an uncropped source pixel map in the coordinates of the texture atlas according to the editing operation performed on the source pattern. The cross-plate mapping module is used to match the track and establish the track mapping relationship based on the seam group and track data, map the pattern that crosses the seam to the target plate, and generate a read-only derived layer on the target plate. The texture compositing module is used to uniformly overlay the source pattern and all derived layers onto the corresponding positions in the texture atlas and to synthesize the texture canvas. The 3D preview module is used to render the textured canvas as a material map for the 3D model in real time, so that the 3D garment preview is consistent with the output of the 2D overview.

10. A cross-plate texture continuous mapping device, characterized in that, The method includes a storage unit and a processing unit, wherein the storage unit is used to store a computer program, and the processing unit is used to execute the computer program stored in the storage unit to implement the method according to any one of claims 1 to 8.