Modeling method of spraying jig and related device

By generating a three-dimensional model of spray-coated tools that closely fit the surface of the object to be sprayed, the problems of low production efficiency and difficulty in fitting in the prior art are solved, and high-quality spray patterns and improved production efficiency are achieved.

CN119963728APending Publication Date: 2025-05-09SHANGHAI JILING CULTURE & CREATIVE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510023402.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-07
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The existing spray smelting tools are inefficient in production and are difficult to closely fit the surface of the object to be sprayed, resulting in poor quality of the spray pattern.

Method used

By obtaining the three-dimensional model of the object to be sprayed, an initial surface is generated and the two-dimensional data points of the spray pattern are mapped to the initial surface, and a three-dimensional model of the spray tool is generated so that it is closely fitted with the surface of the object to be sprayed.

Benefits of technology

The quality of the spray pattern is improved, the boundaries of the spray pattern are clear, the spray effect is enhanced, and the production efficiency of the spray smelting tool is greatly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119963728A_ABST
    Figure CN119963728A_ABST
Patent Text Reader

Abstract

The invention discloses a modeling method of a spraying jig, which comprises the following steps of: firstly, acquiring a three-dimensional model of a target spraying area of an object to be sprayed, and then respectively shifting a plurality of surface patches forming the three-dimensional model by a preset distance along respective normal directions to obtain an initial surface which can be tightly attached to the target spraying area; secondly, mapping a plurality of two-dimensional data points used for representing a spraying pattern to the initial surface, determining an area corresponding to the spraying pattern in the initial surface, and generating a three-dimensional model of the spraying jig, so that the obtained spraying jig can be tightly attached to a target spraying area through the initial surface; therefore, the boundary of the spraying pattern is clearer, the spraying effect is improved, a large amount of manpower and time cost does not need to be consumed, and the production efficiency of the spraying jig is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of spraying process technology, and in particular to a modeling method and related devices for a spraying tool. Background Art

[0002] A spray tool is a mask with a hollow pattern or shape design that can be used in the spray process to mask areas that do not need to be sprayed.

[0003] In the related art, a spraying jig is usually made manually, and then the spraying jig is attached to the surface of the object to be sprayed to achieve spraying of a specified pattern.

[0004] However, the manual production of spraying jigs has low production efficiency, and the manufactured spraying jigs are difficult to fit closely to the surface of the object to be sprayed. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a modeling method for a spray jig, which models the spray jig based on the surface structure of the object to be sprayed, so that the generated spray jig can fit tightly with the surface of the object to be sprayed, thereby improving the quality of the spray pattern.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] In one aspect, the present application provides a method for modeling a spraying tool, the method comprising:

[0008] Acquire a three-dimensional model of a target spraying area and a plurality of two-dimensional data points of a spraying pattern, wherein the target spraying area is an outer surface of an object to be sprayed, the plurality of two-dimensional data points are used to identify a shape of the spraying pattern, and the three-dimensional model includes a plurality of facets;

[0009] Each face of the three-dimensional model is offset by a preset distance along the normal direction of each face to generate an initial face, wherein the initial face is used to fit the target spraying area;

[0010] A plurality of two-dimensional data points of the spray pattern are mapped to the initial surface to generate a three-dimensional model of the spray tool.

[0011] In a possible implementation, the spray pattern includes N colors, and mapping a plurality of two-dimensional data points of the spray pattern to the initial surface to generate a three-dimensional model of the spray tool includes:

[0012] Dividing the plurality of two-dimensional data points of the spray pattern into N sets according to the N colors, wherein the N sets correspond one-to-one to the N colors;

[0013] The two-dimensional data points in the N sets are respectively mapped to the initial surface to generate N three-dimensional models of the spraying jigs.

[0014] In a possible implementation, mapping the two-dimensional data points in the N sets to the initial surface to generate N three-dimensional models of the spraying tools includes:

[0015] For a target set in the N sets, mapping the two-dimensional data points in the target set to the initial surface, determining boundary points of a target pattern in the initial surface, the target pattern being a pattern represented by the two-dimensional data points in the target set;

[0016] The boundary points are smoothed, a hollow area is determined in the initial surface, and a three-dimensional model of the spraying tool is generated.

[0017] In a possible implementation manner, mapping the two-dimensional data points in the target set to the initial surface, and determining the boundary points of the target pattern in the initial surface includes:

[0018] Mapping the two-dimensional data points to the initial surface to obtain boundary points of the target pattern in the initial surface;

[0019] The boundary points of the target pattern are optimized based on a local scaling factor and a distortion factor of the target pattern, wherein the local scaling factor is used to identify a size change ratio of the target pattern on the initial surface, and the distortion factor is used to identify a distortion degree of the target pattern on the initial surface.

[0020] In a possible implementation, after acquiring the three-dimensional model of the target spraying area and the plurality of two-dimensional data points of the spraying pattern, the method further includes:

[0021] Acquiring three-dimensional data of an assembly area, wherein the assembly area is used to fix the spraying tool on the object to be sprayed;

[0022] A three-dimensional model of the connection portion between the spraying jig and the object to be sprayed is constructed according to the three-dimensional data of the assembly area.

[0023] In another aspect, the present application provides a modeling device for a spraying tool, the device comprising an acquisition unit and a generation unit:

[0024] The acquisition unit is used to acquire a three-dimensional model of a target spraying area and a plurality of two-dimensional data points of a spraying pattern, wherein the target spraying area is used to identify a surface of an object to be sprayed, the plurality of two-dimensional data points are used to identify a shape of the spraying pattern, and the three-dimensional model includes a plurality of facets;

[0025] The generating unit is used to offset each face piece of the three-dimensional model by a preset distance along the normal direction of each face piece to generate an initial face, and the initial face is used to fit the target spraying area;

[0026] The generating unit is further used to map the plurality of two-dimensional data points of the spraying pattern to the initial surface to generate a three-dimensional model of the spraying tool.

[0027] In a possible implementation manner, the generating unit is specifically configured to:

[0028] Dividing the plurality of two-dimensional data points of the spray pattern into N sets according to the N colors, wherein the N sets correspond one-to-one to the N colors;

[0029] The two-dimensional data points in the N sets are respectively mapped to the initial surface to generate N three-dimensional models of the spraying jigs.

[0030] In a possible implementation manner, the generating unit is specifically configured to:

[0031] For a target set in the N sets, mapping the two-dimensional data points in the target set to the initial surface, determining boundary points of a target pattern in the initial surface, the target pattern being a pattern represented by the two-dimensional data points in the target set;

[0032] The boundary points are smoothed, a hollow area is determined in the initial surface, and a three-dimensional model of the spraying tool is generated.

[0033] In a possible implementation manner, the generating unit is further configured to:

[0034] Mapping the two-dimensional data points to the initial surface to obtain boundary points of the target pattern in the initial surface;

[0035] The boundary points of the target pattern are optimized based on a local scaling factor and a distortion factor of the target pattern, wherein the local scaling factor is used to identify a size change ratio of the target pattern on the initial surface, and the distortion factor is used to identify a distortion degree of the target pattern on the initial surface.

[0036] In a possible implementation manner, the acquiring unit is further configured to:

[0037] Acquiring three-dimensional data of an assembly area, wherein the assembly area is used to fix the spraying tool on the object to be sprayed;

[0038] The device also includes a construction unit:

[0039] The construction unit is used to construct a three-dimensional model of the connection part between the spraying jig and the object to be sprayed according to the three-dimensional data of the assembly area.

[0040] In another aspect, the present application provides a computer device, characterized in that the computer device includes a processor and a memory:

[0041] The memory is used to store computer programs;

[0042] The processor is configured to execute the method according to the computer program.

[0043] On the other hand, the present application provides a computer-readable medium, characterized in that the computer-readable medium is used to store a computer program, and the computer program implements the method when executed by a computer device.

[0044] In yet another aspect, the present application provides a computer program product comprising a computer program, characterized in that when the computer program product is run on a computer device, the computer device is enabled to perform the method.

[0045] It can be seen from the above technical scheme that by obtaining a three-dimensional model of the outer surface of the object to be sprayed, the shape and size of the target spraying area can be obtained. The target spraying area is modeled by modeling technology, and the obtained three-dimensional model is composed of multiple grids, that is, the three-dimensional model of the surface includes multiple facets, and each facet constituting the three-dimensional model is offset by a preset distance along its own normal direction to obtain an initial surface. The initial surface has a highly consistent structure with the target spraying area and can fit tightly with the target spraying area. Then, multiple two-dimensional mapping points representing the spray pattern are mapped to the initial surface, and a three-dimensional model of the spray jig corresponding to the spray pattern can be generated. The spray jig thus obtained can fit tightly with the target spraying area through the initial surface, thereby making the boundary of the spray pattern clearer and improving the spraying effect. In addition, this method does not require a lot of manpower and time costs, and effectively improves the production efficiency of the spray jig. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A schematic diagram of a process for modeling a spraying tool provided in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of a spraying process based on a spraying jig modeling method provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of a modeling device for a spraying tool provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] As described in the background technology, the production efficiency of spray jigs is low by manual cutting, and the surface of the spray jig used to fit with the spraying area is usually a flat structure. When the surface of the object to be sprayed has a complex curved structure, it is difficult for the spray jig to fit tightly with the object to be sprayed.

[0052] Therefore, the present application proposes a modeling method for a spray jig, which first obtains a three-dimensional model of the target spraying area, then offsets each facet of the three-dimensional model of the target spraying area along their respective normal directions to obtain an initial surface that can fit closely therewith, and then maps the spray pattern to the initial surface to obtain a spray jig. Since the inner side of the spray jig that fits the target spraying area is a curved surface generated based on the target spraying area, its curvature is consistent and can accurately adapt to the structure of the surface of the object to be sprayed, and fit closely to the target spraying area, thereby making the boundary of the spray pattern clearer and improving the spraying effect. In addition, this method does not require a lot of manpower and time costs, and effectively improves the production efficiency of the spray jig.

[0053] The solution provided in the embodiments of the present application relates to the field of spraying process technology, and is specifically described through the following embodiments.

[0054] See also Figure 1 As shown, it is a flow chart of a modeling method of a spraying tool provided in an embodiment of the present application. In this embodiment, it can be executed by a computer device as an example.

[0055] S101: Acquire a three-dimensional model of a target spraying area and a plurality of two-dimensional data points of a spraying pattern.

[0056] When spraying, the paint needs to be sprayed on the outer surface of the object to be sprayed. Since the range of the sprayed paint cannot be accurately controlled, a larger area needs to be selected as the target spraying area. Therefore, the outer surface area of ​​the object to be sprayed is used as the target spraying area.

[0057] Since the spray pattern is a pattern sprayed on the surface of an object, it is usually regarded as a two-dimensional plane diagram, and the shape of the spray pattern can be identified by multiple two-dimensional data points. In order to adapt to the target spray area, the size of the spray pattern can be adjusted in advance, so that the size of the spray pattern is smaller than the size of the target spray area, and then multiple two-dimensional data points of the adjusted spray pattern are obtained.

[0058] In order to capture the complex structure of the target spraying area, the 3D model of the target spraying area is constructed through modeling technology based on a set of real 3D data points. The set of 3D data points represents the shape and size of the target spraying area and can be extracted by reconstructing the product source 3D drawing based on the measured size of the object to be sprayed, or directly obtained through scanning technology.

[0059] The three-dimensional model constructed by modeling technology is composed of a mesh, which is a geometric structure composed of multiple facets. The facets can be triangular facets or quadrilateral facets. Each face represents a local area and is used to capture the complex structure of the target spraying area. The three-dimensional model of the target spraying area is composed of multiple facets.

[0060] S102: offset each face of the three-dimensional model by a preset distance along the normal direction of each face to generate an initial face.

[0061] The initial surface is used to fit the target spraying area, which is the inner side of the covering that fits the target spraying area. After each facet constituting the target spraying area is offset by a preset distance along its respective normal direction, that is, a direction perpendicular to the facet and pointing to the outside of the object to be sprayed, the offset facet can be obtained. The preset distance is set to a very small distance, for example, it can be set to 0.1mm. At this time, since the offset distance is very small, the gap caused by the different offset directions of the faces of the three-dimensional model constituting the target spraying area can be ignored, thereby obtaining an initial surface composed of multiple facets, which has a high degree of consistency with the structure and size of the target spraying area.

[0062] S103: Mapping a plurality of two-dimensional data points of the spraying pattern to the initial surface to generate a three-dimensional model of the spraying tool.

[0063] The computer device can first unfold the initial surface into a two-dimensional plane, and then map multiple two-dimensional data points to the two-dimensional plane to obtain mapping points of the two-dimensional data points on the initial surface, or directly map multiple two-dimensional data points to the initial surface through projection mapping technology.

[0064] After mapping a plurality of two-dimensional data points of the spray pattern to the initial surface, an area corresponding to the spray pattern is obtained on the initial surface, and the area is the hollowing area that needs to be hollowed out.

[0065] Since the physical objects in the real world are three-dimensional structures, they need to be constructed as three-dimensional entities when modeling the spraying jig. After determining the hollow area in the initial surface, the built-in function of the modeling software can be used to increase the thickness of the initial surface and the hollow area in the same direction to generate a three-dimensional model of the initial surface and a three-dimensional model of the hollow area, wherein the thickness increased in the hollow area must be greater than or equal to the thickness increased in the initial surface, and then the three-dimensional model of the hollow area is subtracted from the three-dimensional model of the initial surface through Boolean operation. The remaining three-dimensional model of the initial surface is the three-dimensional model of the spraying jig. Alternatively, the hollow area can be subtracted from the initial surface, and then the thickness of the already hollowed initial surface can be increased to directly generate a three-dimensional model of the spraying jig. The added thickness can be set according to actual needs.

[0066] As an example, the spray pattern is a circle. After obtaining the curved surface corresponding to the circle on the initial surface, the thickness of the initial surface and the curved surface corresponding to the circle is increased by 1mm along the normal direction of the initial surface, and the three-dimensional models corresponding to the initial surface and the circle are obtained, wherein the three-dimensional model corresponding to the circle is embedded in the three-dimensional model of the initial surface. Through Boolean operation, the three-dimensional model corresponding to the circle is subtracted from the three-dimensional model of the initial surface to obtain the three-dimensional model of the spraying jig. Since the structure of the initial surface is not changed after the thickness is increased, the three-dimensional model can fit closely with the target spraying area.

[0067] After obtaining the three-dimensional model of the spray jig, based on the three-dimensional model, a flexible material can be selected for printing through a high-resolution printing device to obtain the spray jig, and then the spray jig is fixed to the object to be sprayed through structural methods such as a latch structure, a friction structure, or through a clamping, a latch device, etc., so that it fits closely to the target spraying area, so that the pattern can be sprayed through the hollow part.

[0068] Thus, the spray jig obtained by offsetting the various facets of the three-dimensional model of the surface of the object to be sprayed along their respective normal directions can adapt to the structure of the surface of the object to be sprayed and fit closely with the target spraying area. Therefore, when spraying is performed through the spray jig, the boundary of the spray pattern is clearer, the spraying effect is improved, and this method does not require a lot of manpower and time costs, and effectively improves the production efficiency of the spray jig.

[0069] When the spray pattern has multiple colors, it is necessary to design corresponding spray jigs for patterns of different colors to achieve spraying of different colors.

[0070] In a possible implementation, the spray pattern includes N colors, and step S103 can be implemented by the following steps:

[0071] A1: Divide multiple two-dimensional data points of the spray pattern into N sets according to N colors.

[0072] The two-dimensional data points can be divided according to the color coding of the spray pattern, and the two-dimensional data sets with the same color coding are divided into the same set to obtain N sets.

[0073] A2: Map the two-dimensional data points in the N sets to the initial surface respectively to generate three-dimensional models of N spraying tools.

[0074] The two-dimensional data points in each set are mapped to the initial surface respectively, and the hollow areas corresponding to each set are obtained on the initial surface. For the first hollow area in the initial surface, a three-dimensional model of the spraying jig corresponding to the first hollow area is generated, and then the initial surface is copied, or each face piece constituting the initial surface is offset along the respective normal directions to obtain a second initial surface, and for the second hollow area in the second initial surface, a model of the spraying jig corresponding to the second hollow area is generated, thereby obtaining N three-dimensional models of spraying jigs. When the spraying pattern has N colors, a total of N spraying jigs are obtained through modeling and printing technology, and each hollow part of the spraying jig corresponds to a pattern of different colors in the spraying pattern.

[0075] As an example, the spray-painted pattern is two circular patterns, red and blue. First, the two-dimensional data points of red and blue are divided by color coding to obtain a first set representing the red circular pattern and a second set representing the blue circular pattern. Then, the initial surface is copied to obtain a second curved surface. The two-dimensional data points in the first set are mapped to the initial surface to determine the hollow area corresponding to the red circle. The two-dimensional data points in the second set are mapped to the second curved surface to determine the hollow area corresponding to the blue circle. Then, the hollow area corresponding to the red circle is subtracted from the initial surface by a Boolean algorithm to obtain a first spraying jig. The hollow area corresponding to the blue circle is subtracted from the second curved surface to obtain a second spraying jig.

[0076] Therefore, by dividing the data points of different colors, a spraying jig consistent with the number of color types can be generated, and the accuracy of the relative positions of different colors in the target spraying area can be ensured. By replacing the spraying jig, the spraying of spraying patterns with multiple colors can be achieved.

[0077] Since there is usually a large area in the middle of the spray pattern, the hollow area can be determined in the initial surface according to the boundary of the spray pattern to improve the efficiency of model construction.

[0078] In a possible implementation, the present application embodiment provides an implementation of step A2, as shown in the following steps:

[0079] B1: For the target set of N sets, the two-dimensional data points in the target set are mapped to the initial surface, and the boundary points of the target pattern are determined in the initial surface.

[0080] The target set is one of the N sets, and the target pattern is the pattern represented by the two-dimensional data points in the target set. After mapping the two-dimensional data points of the target pattern to the initial surface, there may be many non-boundary points located in the center of the target pattern. When hollowing out, you only need to know the boundary of the target pattern to determine the hollowing area. By analyzing the shape of the target pattern, you can determine the boundary points through an algorithm, and then perform subsequent processing based on the boundary points of the spray pattern in the initial surface.

[0081] B2: Smooth the boundary points, determine the hollow area in the initial surface, and generate a three-dimensional model of the spraying tool.

[0082] Since there is a certain gap between the accuracy of the 3D model and the physical entity, the boundary points can be smoothed to avoid the interference of noise data. For example, more data points that meet the boundary of the spray pattern can be inserted in the area with complex structure to ensure that the boundary line connected by the boundary points is more consistent with the shape of the real spray pattern. Then, the boundary line is obtained through the boundary points of the target pattern in the initial surface, and the closed area surrounded by the boundary line is used as the area that needs to be hollowed out.

[0083] Through the built-in functions of the modeling software, the thickness of the initial surface and the hollow area can be increased in the same direction respectively, to generate a three-dimensional model of the initial surface and a three-dimensional model of the hollow area, wherein the thickness increased for the hollow area should be greater than or equal to the thickness increased for the initial surface, and then the three-dimensional model of the hollow area is subtracted from the three-dimensional model of the initial surface through Boolean operation to obtain a three-dimensional model of the spraying tool, or the initial surface is first subjected to Boolean operation through the hollow area to obtain a hollow surface, and then the thickness of the hollow surface is increased to obtain a three-dimensional model of the spraying tool.

[0084] For each of the N sets, the corresponding three-dimensional model of the spraying jig can be obtained through the above steps, thereby obtaining N spraying jigs, which are respectively used for spraying patterns corresponding to N colors.

[0085] Therefore, by smoothing the boundary points of the target pattern in the initial surface, the interference of noise data can be eliminated and the continuity of the boundary can be ensured, thereby improving the boundary fineness of the hollow area in the spraying tool and ensuring the clarity and quality of the spraying. In addition, by processing the boundary points to determine the hollow area, the additional processing of non-boundary point data is eliminated, effectively improving the efficiency of model construction.

[0086] When mapping the two-dimensional pattern to the initial surface, since the initial surface has a complex structure and has different curvatures in different local areas, in order to ensure that the boundary points of the target pattern in the initial surface after mapping can meet the shape of the original target pattern to be sprayed, in a possible implementation, step B1 is specifically implemented by the following steps:

[0087] C1: Map the two-dimensional data points to the initial surface and obtain the boundary points of the target pattern in the initial surface.

[0088] C2: Optimize the boundary points of the target pattern based on the local scaling factor and distortion factor of the target pattern.

[0089] The local scaling factor is used to identify the size change ratio of the target pattern on the initial surface. A larger local scaling factor means a larger size change in the local area between the target pattern on the initial surface and the original target pattern.

[0090] The distortion factor is used to identify the degree of distortion of the target pattern on the initial surface. The greater the curvature of the initial surface, the greater the distortion of the target pattern.

[0091] After mapping the target pattern to the initial surface, stretching, compression or distortion may occur. By analyzing the geometric characteristics of the initial surface and calculating the curvature of each point on the initial surface, the local scaling factor and distortion factor of the target pattern can be obtained. Then, the boundary points of the target pattern can be compensated by the local scaling factor and distortion factor. For example, in areas with large local curvature, the scaling factor is increased, and in areas with small curvature, the scaling factor is reduced. Then, based on the distortion factor, the deformation of the angle and area of ​​the target pattern is corrected to obtain the optimized boundary points.

[0092] Therefore, by optimizing the boundary points mapped to the initial surface through local scaling factors and distortion factors, the distortion of the spray pattern caused by the complex curved surface structure of the initial surface can be effectively avoided, thereby ensuring that the spray pattern can present the original graphic effect in the target spraying area.

[0093] In a possible implementation, after obtaining the three-dimensional model of the target spraying area and a plurality of two-dimensional data points of the spraying pattern, the method further includes:

[0094] C1: Obtain a 3D model of the assembly area.

[0095] The assembly area is used to fix the spraying jig on the object to be sprayed. According to the structural characteristics of the surface of the object to be sprayed, the assembly area can be the target spraying area or the surrounding area of ​​the target spraying area. The computer device can obtain three-dimensional data of the assembly area by scanning the object to be sprayed.

[0096] As an example, the object to be sprayed is a cup, the target spraying area is the smooth outer surface of the cup, and the assembly area used to fix the hollow covering surface can be the handle or the edge of the cup. The computer equipment scans the cup through 3D scanning technology to obtain three-dimensional data of the handle or the edge of the cup.

[0097] C2: Based on the 3D data of the assembly area, a 3D model of the connection between the spraying jig and the object to be sprayed is constructed.

[0098] The connection part is used to connect the spraying jig to the object to be sprayed in a detachable manner, and the connection part can be a tenon structure or a friction structure, etc. After the computer equipment obtains the three-dimensional data of the assembly area, the assembly area can be modeled, and then a connection part that can fix the spraying jig to the object to be sprayed is constructed in the assembly area.

[0099] As an example, the object to be sprayed is a cup, and the assembly area is the edge of the cup. After constructing the three-dimensional model of the cup edge, a buckle can be set at the edge of the cup, and a slot that cooperates with it can be set at the corresponding position of the spray jig, and the spray jig can be fixed on the edge of the cup by interlocking.

[0100] Thus, by constructing the connection part between the spraying jig and the object to be sprayed, the spraying jig is fixed on the object to be sprayed, which can prevent it from falling off or shifting during the spraying process, and through the connection structure, the spraying jig can be disassembled or installed at any time, thereby realizing the reuse of the spraying jig.

[0101] For a clearer description of the modeling method of this spraying fixture, see Figure 2 , is a schematic diagram of a process of spraying based on a spray jig modeling method for spraying patterns of multiple colors proposed in an embodiment of the present application.

[0102] The embodiment of the present application takes the case where the object to be sprayed is a hemisphere and the spraying pattern is two square patterns of red and blue as an example to illustrate the detailed steps.

[0103] 1. Determine the target spraying area:

[0104] The target spraying area is the equatorial part of the hemisphere.

[0105] 2. Establish a 3D model of the target spraying area and surrounding areas:

[0106] A 3D scanner was used to obtain the point cloud data of the hemisphere surface, and the scanning accuracy was set to 0.1 mm. The point cloud data was then gridded using reconstruction software to generate an accurate three-dimensional model of the hemisphere.

[0107] 3. Generate the initial structure of the spraying tool according to the target spraying area:

[0108] The normal direction vector of the center point is calculated for each grid cell, and then the grid cells are offset by 0.5 mm along their respective normal directions to generate the initial surface of the cover.

[0109] The local curvature of each point on the initial surface is calculated, and the region with sudden change in curvature is smoothed to ensure the continuity of the surface.

[0110] The extrusion function of the modeling software is used to increase the thickness of the initial surface by 2 mm along the normal direction, and the edge area is rounded, and the radius of the fillet is set to 1 mm to generate a three-dimensional model of the initial surface, that is, the initial structure of the spraying jig.

[0111] 4. Build the connection part:

[0112] The boundary point set of the assembly area is extracted on the surface of the hemisphere to determine the position and size parameters of the tenon. Then, a buckle is generated on the edge of the hemisphere surface, and the groove depth is set to 12 mm, the top width is 6 mm, and the bottom width is 8 mm. Two symmetrically distributed tenons are set at both ends of the slot. Then, based on the main curvature direction of the tenon surface, a transition surface with continuous curvature is used to connect the tenon and the main structure, thereby constructing a three-dimensional model of the connecting part between the spray jig and the hemisphere, and fixing the spray jig on the hemisphere through the tenon structure.

[0113] 5. Generate a 3D model of the spraying tool:

[0114] First, the layer where the blue square is located is extracted according to the color code RGB (0, 0, 255), and the layer where the red square is located is extracted according to RGB (255, 0, 0). A 30mm interval area is added between the two layers, and a 1mm buffer zone is added to the adjacent edges of the two squares. Then, the boundary point sets of the blue square and the red square are extracted respectively. After that, the boundary point sets of the blue square and the red square are mapped to the initial surface of the spraying jig respectively, and the graphic size is compensated by calculating the local deformation coefficient of the spherical surface to obtain the two compensated boundary point sets to ensure that the mapped graphic conforms to the appearance of a square on the hemisphere.

[0115] The two compensated boundary point sets are smoothed respectively, and the area where the curvature of the boundary point set is greater than the preset threshold is locally smoothed to ensure the continuity of the generated boundary line. The boundary lines of the blue square and the red square are obtained on the initial surface of the spray jig respectively. The boundary lines are used as hollow boundaries to obtain the corresponding hollow areas on the spray jig through extrusion operations. Finally, the spray jig a for spraying the blue square and the spray jig b for spraying the red square are obtained through Boolean operations.

[0116] 6. Manufacturing of spraying tools:

[0117] Use 3D printing equipment to print the spraying jig a and the spraying jig b, and you can choose high-resolution printing materials (such as poly latex, acrylonitrile butadiene styrene or resin and other flexible materials) for printing and manufacturing. After printing and manufacturing, clean the cover to ensure that its edges are smooth and flat.

[0118] 7. Assemble the spraying jig:

[0119] The manufactured spraying jig a is assembled on the hemisphere. The cover is fixed to the edge of the hemisphere by buckles, so that the hollow area fits closely to the surface of the hemisphere.

[0120] 8. Perform spraying operation:

[0121] Use a spray gun to spray blue paint on the hollowed-out parts. The paint reaches the target surface only through the hollowed-out areas, ensuring that the spray pattern is clear and has distinct boundaries.

[0122] 9. Disassembly of spraying jig:

[0123] After spraying is completed, wait for the paint surface to dry and disassemble the spraying jig a.

[0124] 10. Assemble different spraying tools:

[0125] Assemble the spray jig b, and then use the spray gun to spray the red paint. After the spraying is completed, disassemble the spray jig b.

[0126] 11. Cleaning the spraying tools:

[0127] The dismantled spraying jig a and spraying jig b are cleaned for reuse.

[0128] The spraying process with area-restricted spraying tools generated in the above manner has the following advantages:

[0129] 1. Rapidly generate spraying tools based on algorithms;

[0130] 2. 3D printing technology can be used to quickly manufacture spraying tools to adapt to the surfaces of objects of different shapes and sizes;

[0131] 3. The spraying jig has good adhesion to the surface of the object to be sprayed, effectively preventing paint from overflowing;

[0132] 4. The hollow area accurately corresponds to the spray pattern to ensure the clarity and quality of the spraying;

[0133] 5. Spraying tools can be reused to reduce material costs;

[0134] 6. The process has a high degree of automation, which reduces the dependence on technicians' experience and improves production efficiency;

[0135] 7. Automatic deformation of the masking area to adapt to the surface distortion and ensure that the spray pattern can still present its original graphic effect on the surface;

[0136] 8. For spray patterns with multiple colors, color separation calculation is automatically performed to generate different covering areas for each color to achieve color spraying.

[0137] Based on the data processing method provided in the above embodiments, the embodiment of the present application further provides a modeling device for a spraying tool, which is described in detail below in conjunction with the accompanying drawings.

[0138] See also Figure 3 , which is a schematic diagram of a modeling device for a spraying metallurgy provided in an embodiment of the present application, wherein the device 300 includes an acquisition unit 301 and a generation unit 302:

[0139] The acquisition unit is used to acquire a three-dimensional model of a target spraying area and a plurality of two-dimensional data points of a spraying pattern, wherein the target spraying area is used to identify a surface of an object to be sprayed, the plurality of two-dimensional data points are used to identify a shape of the spraying pattern, and the three-dimensional model includes a plurality of facets;

[0140] The generating unit is used to offset each face piece of the three-dimensional model by a preset distance along the normal direction of each face piece to generate an initial face, and the initial face is used to fit the target spraying area;

[0141] The generating unit is further used to map the plurality of two-dimensional data points of the spraying pattern to the initial surface to generate a three-dimensional model of the spraying tool.

[0142] Thus, the spray jig obtained by offsetting the various facets of the three-dimensional model of the surface of the object to be sprayed along their respective normal directions can adapt to the structure of the surface of the object to be sprayed and fit closely with the target spraying area. Therefore, when spraying is performed through the spray jig, the boundary of the spray pattern is clearer, the spraying effect is improved, and this method does not require a lot of manpower and time costs, and effectively improves the production efficiency of the spray jig.

[0143] In a possible implementation manner, the generating unit is specifically configured to:

[0144] Dividing the plurality of two-dimensional data points of the spray pattern into N sets according to the N colors, wherein the N sets correspond one-to-one to the N colors;

[0145] The two-dimensional data points in the N sets are respectively mapped to the initial surface to generate N three-dimensional models of the spraying jigs.

[0146] Therefore, by dividing the data points of different colors, a spraying jig consistent with the number of color types can be generated, and the accuracy of the relative positions of different colors in the target spraying area can be ensured. By replacing the spraying jig, the spraying of spraying patterns with multiple colors can be achieved.

[0147] In a possible implementation manner, the generating unit is specifically configured to:

[0148] For the target set of the N sets, mapping the two-dimensional data points in the target set to the initial surface, determining the boundary points of a target pattern in the initial surface, the target pattern being a pattern represented by the two-dimensional data points in the target set;

[0149] The boundary points are smoothed, a hollow area is determined in the initial surface, and a three-dimensional model of the spraying tool is generated.

[0150] Therefore, by smoothing the boundary points of the target pattern in the initial surface, the interference of noise data can be eliminated and the continuity of the boundary can be ensured, thereby improving the boundary fineness of the hollow area in the spraying tool and ensuring the clarity and quality of the spraying. In addition, by processing the boundary points to determine the hollow area, the additional processing of non-boundary point data is eliminated, effectively improving the efficiency of model construction.

[0151] In a possible implementation manner, the generating unit is further configured to:

[0152] Mapping the two-dimensional data points to the initial surface, and obtaining boundary points of the target pattern on the initial surface;

[0153] The boundary points of the target pattern are optimized based on a local scaling factor and a distortion factor of the target pattern, wherein the local scaling factor is used to identify a size change ratio of the target pattern on the initial surface, and the distortion factor is used to identify a distortion degree of the target pattern on the initial surface.

[0154] Therefore, by optimizing the boundary points mapped to the initial surface through local scaling factors and distortion factors, the distortion of the target pattern caused by the complex structure of the initial surface can be effectively avoided, thereby ensuring that the spray pattern can present the original graphic effect in the target spraying area.

[0155] In a possible implementation manner, the acquiring unit is further configured to:

[0156] Acquiring three-dimensional data of an assembly area, wherein the assembly area is used to fix the spraying tool on the object to be sprayed;

[0157] The claimed device also includes a building block:

[0158] The construction unit is used to construct a three-dimensional model of the connection part between the spraying jig and the object to be sprayed according to the three-dimensional data of the assembly area.

[0159] Thus, by constructing the connection part between the spraying jig and the object to be sprayed, the spraying jig is fixed on the object to be sprayed, which can prevent it from falling off or shifting during the spraying process, and through the connection structure, the spraying jig can be disassembled or installed at any time, thereby realizing the reuse of the spraying jig.

[0160] Based on the above embodiments, the present application also provides a computer device, which includes a processor and a memory:

[0161] The memory is used to store computer programs;

[0162] The processor is used to execute the steps of the above-mentioned spray tool modeling method according to the computer program.

[0163] On the basis of the above-mentioned embodiments, the embodiments of the present application further provide a computer-readable medium, wherein the computer-readable medium is used to store a computer program, and the computer program, when executed by a computer device, implements the steps of executing the above-mentioned spray metallurgy modeling method.

[0164] On the basis of the above-mentioned embodiment, the embodiment of the present application further provides a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the steps of the above-mentioned spray tool modeling method.

[0165] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0166] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for modeling a spraying jig, characterized in that: The method comprises: Acquire a three-dimensional model of a target spraying area and a plurality of two-dimensional data points of a spraying pattern, wherein the target spraying area is an outer surface of an object to be sprayed, the plurality of two-dimensional data points are used to identify a shape of the spraying pattern, and the three-dimensional model includes a plurality of facets; Each face of the three-dimensional model is offset by a preset distance along the normal direction of each face to generate an initial face, wherein the initial face is used to fit the target spraying area; A plurality of two-dimensional data points of the spray pattern are mapped to the initial surface to generate a three-dimensional model of the spray tool.

2. The method according to claim 1, characterized in that The spray pattern includes N colors, and mapping a plurality of two-dimensional data points of the spray pattern to the initial surface to generate a three-dimensional model of the spray tool includes: Dividing the plurality of two-dimensional data points of the spray pattern into N sets according to the N colors, wherein the N sets correspond one-to-one to the N colors; The two-dimensional data points in the N sets are respectively mapped to the initial surface to generate N three-dimensional models of the spraying jigs.

3. The method according to claim 2, characterized in that The step of mapping the two-dimensional data points in the N sets to the initial surface to generate the three-dimensional models of N spraying tools comprises: For a target set in the N sets, mapping the two-dimensional data points in the target set to the initial surface, determining boundary points of a target pattern in the initial surface, the target pattern being a pattern represented by the two-dimensional data points in the target set; The boundary points are smoothed, a hollow area is determined in the initial surface, and a three-dimensional model of the spraying tool is generated.

4. The method according to claim 3, characterized in that Mapping the two-dimensional data points in the target set to the initial surface and determining the boundary points of the target pattern in the initial surface comprises: Mapping the two-dimensional data points to the initial surface to obtain boundary points of the target pattern in the initial surface; The boundary points of the target pattern are optimized based on a local scaling factor and a distortion factor of the target pattern, wherein the local scaling factor is used to identify a size change ratio of the target pattern on the initial surface, and the distortion factor is used to identify a distortion degree of the target pattern on the initial surface.

5. The method according to claim 1, characterized in that After obtaining the three-dimensional model of the target spraying area and a plurality of two-dimensional data points of the spraying pattern, the method further includes: Acquiring three-dimensional data of an assembly area, wherein the assembly area is used to fix the spraying tool on the object to be sprayed; A three-dimensional model of the connection portion between the spraying jig and the object to be sprayed is constructed according to the three-dimensional data of the assembly area.

6. A modeling device for a spraying jig, characterized in that: The device comprises an acquisition unit and a generation unit: The acquisition unit is used to acquire a three-dimensional model of a target spraying area and a plurality of two-dimensional data points of a spraying pattern, wherein the target spraying area is used to identify a surface of an object to be sprayed, the plurality of two-dimensional data points are used to identify a shape of the spraying pattern, and the three-dimensional model includes a plurality of facets; The generating unit is used to offset each face piece of the three-dimensional model by a preset distance along the normal direction of each face piece to generate an initial face, and the initial face is used to fit the target spraying area; The generating unit is further used to map the plurality of two-dimensional data points of the spraying pattern to the initial surface to generate a three-dimensional model of the spraying tool.

7. The device according to claim 6, characterized in that The generating unit is specifically used for: Dividing the plurality of two-dimensional data points of the spray pattern into N sets according to the N colors, wherein the N sets correspond one-to-one to the N colors; The two-dimensional data points in the N sets are respectively mapped to the initial surface to generate N three-dimensional models of the spraying jigs.

8. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 5 according to the computer program.

9. A computer-readable medium, characterized in that The computer-readable medium is used to store a computer program, and when the computer program is executed by a computer device, the method according to any one of claims 1 to 5 is implemented.

10. A computer program product comprising a computer program, characterized in that When the method is executed on a computer device, the computer device is enabled to execute the method according to any one of claims 1 to 5.