Oil edge modeling method and system of three-dimensional model, program product and storage medium
By constructing a three-dimensional structure covering the thick side of the plate in three-dimensional modeling, the problem of difficulty in reducing the oil edges in the existing technology is solved, and the accuracy and detailed presentation of the oil edges is achieved.
Patent Information
- Application Number
- CN202311736427.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2025-06-17
AI Technical Summary
The existing three-dimensional modeling technology is difficult to effectively reduce the oil edge effect, which leads to a large gap between the effect presented by the oil edge in the modeling software and the effect in actual applications, and it is impossible to present the objects in a comprehensive and detailed manner.
By determining the oil edge area of the oil edge to be processed on the three-dimensional model and the multiple plates that need to be connected by the oil edge, the thick sides and boundary lines of each plate are analyzed, and a three-dimensional structure protruding relative to the interface is formed in a direction away from the plate, covering all thick sides, and giving three-dimensional structure model attributes to complete the oil edge processing.
It realizes the complete oil edge effect in the three-dimensional model, avoids the mold penetration phenomenon, retains model details to the greatest extent, and ensures the accuracy of the final model.
Smart Images

Figure CN120162930A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of 3D modeling, and more particularly, to a method, system, program product, and storage medium for oil edge modeling of 3D models. Background Art
[0002] In the design field, 3D models have become an important tool. Traditional design methods are often restricted by time and space. Designers need to draw sketches on a plane and then make samples, which is time-consuming, laborious, and costly. 3D model technology uses computer graphics and virtual reality technologies to create a realistic 3D model on a computer. Designers can perform designs on this model without making samples, thus greatly shortening the design cycle and reducing design costs. And problems can be discovered and corrected in a timely manner during the design process, thereby improving the accuracy and quality of the design.
[0003] The oil edge is a decorative process. After mainly grinding the edges of leather goods parts or the three-dimensional contours of the joints, a layer of leather edge oil is rolled on as a traditional decorative process to cover the PU and leather material cut edges, as well as the problem of exposed edges after combination. In a 3D model, the oil edge can cover the true oil edge at the end of the plate piece. A complete edge is formed after the edge line is blocked by a special oil material and solidified. However, existing modeling technologies are difficult to restore this effect, and modeling software lacks a dedicated oil edge tool to assist designers in customizing the oil edge with a more realistic effect.
[0004] In existing modeling software, since the plate pieces after stitching are independent of each other, the oil edge cannot be completely attached to the plate pieces, and it is easy to have mold penetration when simulating the model. The effect presented by the oil edge on the modeling software has a large gap with the actual application effect, making the final 3D model unable to comprehensively and meticulously present the object. Summary of the Invention
[0005] Based on the problems existing in the prior art, the present application provides a method, system, program product, and storage medium for oil edge modeling of 3D models. The specific solutions are as follows:
[0006] In the first part, the present application provides a method for oil edge modeling of 3D models, including:
[0007] Determine the oil edge area on the 3D model where the oil edge is to be processed and the multiple plate pieces to be connected by the oil edge, and analyze the thick side surfaces where each plate piece is connected to two plate surfaces in the oil edge area, and a boundary line existing between each plate surface and the thick side surface;
[0008] Determine the two boundary lines farthest apart in the oil edge area as the first boundary line, and the two first boundary lines together form an interface. The plate pieces where the first boundary lines are located are the first plate piece and the second plate piece respectively;
[0009] Construct a three-dimensional structure that bulges away from the plate in the direction relative to the interface and covers all the thick sides. The three-dimensional structure is at least in contact with the first plate and the second plate, and both ends of the outer side terminate at the first junction line respectively.
[0010] Endow the three-dimensional structure with model properties to complete the edge oiling treatment of the three-dimensional model.
[0011] In a specific embodiment, when the thick side of the plate is a curved surface, the plane formed by the two junction lines on the plate divides the plate into a planar part and a curved surface end.
[0012] Before constructing the three-dimensional structure, at least remove part or all of the curved surface ends of the first plate and the second plate to at least expose the first junction line of the first plate and the second plate.
[0013] In a specific embodiment, the outer side of the three-dimensional structure is a combination of a curved surface and a plane or a curved surface.
[0014] And / or, part or all of the inner side of the three-dimensional structure is connected to the plate.
[0015] In a specific embodiment, define a plane perpendicular to the first junction line and passing through the three-dimensional structure as a reference plane.
[0016] The cross-section of the outer side on the reference plane is an arc.
[0017] Determine the center of the arc based on the perpendicular bisector of the line segment where the interface intersects the reference plane, and determine the radius of the arc based on the distance between the two first junction lines.
[0018] In a specific embodiment, when the angle between the plane formed by the two boundary lines on the first plate and the plane formed by the two boundary lines on the second plate is 180°:
[0019] The distance from the point on the outer side farthest from the interface to the interface is not less than half of the distance between the two first junction lines.
[0020] In a specific embodiment, remove all the curved surface ends of the plates in the edge oiling area to expose the planar parts of all the plates.
[0021] In the edge oiling area, if there is a planar part of a plate that bulges away from the plate in the direction relative to the planar parts of the first plate and the second plate, remove part of the planar part of the plate to align it with the planar parts of the first plate and the second plate.
[0022] In a specific embodiment, if the plate closest to the first plate is larger than the first plate in width and protrudes away from the plate relative to the first plate, the arc-shaped end of the plate is removed.
[0023] If the plate closest to the second plate is larger than the second plate in width and protrudes away from the plate relative to the second plate, the arc-shaped end of the plate is removed.
[0024] Second part, the present application provides an edge modeling system for a three-dimensional model, including:
[0025] An area determination unit for determining the edge area of the edge to be processed on the three-dimensional model and a plurality of plates to be edge-connected, parsing the thick side surfaces where each plate is connected to two plate surfaces in the edge area, and a boundary line existing between each plate surface and the thick side surface;
[0026] A parameter determination unit for determining the two farthest boundary lines in the edge area as the first boundary lines, the two first boundary lines together constituting an interface surface, and the plates where the first boundary lines are located being the first plate and the second plate respectively;
[0027] An edge construction unit for constructing a three-dimensional structure that protrudes away from the plate relative to the interface surface and covers all thick side surfaces, the three-dimensional structure being at least connected to the first plate and the second plate, and the two ends of the outer side surface respectively terminating at the first boundary lines;
[0028] An attribute setting unit for endowing the three-dimensional structure with model attributes to complete the edge processing of the three-dimensional model.
[0029] Third part, the present application provides a computer program product including executable instructions, which when executed are used to implement the edge modeling method for a three-dimensional model as described in any one of the first part.
[0030] Fourth part, the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor is used to implement the edge modeling method for a three-dimensional model as described in any one of the first part.
[0031] Beneficial effects: The present application provides an edge modeling method, system, program product and storage medium for a three-dimensional model. By virtue of the structural characteristics of the plates, through cutting and reconstructing the arc surfaces, an edge connecting multiple plates is constructed in the three-dimensional model, presenting the edge effect in the three-dimensional model completely without generating a through-mold phenomenon, retaining the details of the model to the greatest extent, and ensuring the accuracy of the final model.
[0032] To make the above objects, features, and advantages of the present application more apparent and understandable, the following provides preferred embodiments in conjunction with the accompanying drawings and describes them in detail as follows. Description of the Drawings
[0033] To more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.
[0034] Figure 1 is a schematic flow diagram of the oil edge modeling method of the present application;
[0035] Figure 2 is a schematic diagram of the plate structure of the present application;
[0036] Figure 3 is a schematic diagram of the plate structure before the oil edge is constructed in the present application;
[0037] Figure 4 is a schematic diagram of the plate structure after the oil edge is constructed in the present application;
[0038] Figure 5 is a schematic diagram of the arrangement and distance calculation of the oil edge in the present application;
[0039] Figure 6 is a schematic diagram of the modules of the oil edge modeling system of the present application.
[0040] Reference numerals: 1 - Region determination unit; 2 - Parameter determination unit; 3 - Oil edge construction unit; 4 - Attribute setting unit; A1 - Surface end; A2 - Plane part; A3 - Junction line; E - Reference plane; a - Oil edge region; P - Plate; b - Projection of the junction line on the reference plane; B1, B2 - Projections of the junction line on the reference plane; C - Three-dimensional structure; C1 - Interface; C2 - Outer side surface of the three-dimensional structure. Detailed Embodiments
[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
[0042] In the present application, the plates are often aggregated in the oil edge region, and the direction away from the plates is the opposite direction of the plate aggregation. The direction can be simply divided into two, namely the plate direction and the direction away from the plates.
[0043] This application defines a reference plane that is perpendicular to the first intersection line and penetrates the three-dimensional structure. The reference plane is shown as plane E in the appendix. Figure 1 As shown in plane E in the appendix, Figure 3 , Figure 4 , Figure 5 are all cross-sections or projections of each plate on the reference plane.
[0044] The terms used in the various embodiments disclosed in this application are only for the purpose of describing specific embodiments and are not intended to limit the various embodiments disclosed in this application. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments disclosed in this application belong. The terms (such as those defined in a general-use dictionary) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning, unless clearly defined in the various embodiments disclosed in this application.
[0045] Embodiment 1
[0046] This embodiment provides an oil edge modeling method for a three-dimensional model, which can complete the oil edge modeling of the three-dimensional model. The process of the oil edge modeling method is as shown in the appendix. Figure 1 The specific solution is as follows:
[0047] An oil edge modeling method for a three-dimensional model includes the following steps:
[0048] 101. Determine the oil edge area of the oil edge to be processed on the three-dimensional model and the multiple plates to be connected by the oil edge, analyze the thick side surfaces where each plate is connected to two plate surfaces in the oil edge area, and the intersection line between each plate surface and the thick side surface;
[0049] 102. Determine the two intersection lines that are farthest apart in the oil edge area as the first intersection line. The two first intersection lines together form an interface. The plates where the first intersection lines are located are the first plate and the second plate respectively;
[0050] 103. Construct a three-dimensional structure that protrudes away from the plate in the direction away from the interface and covers all thick side surfaces. The three-dimensional structure is at least connected to the first plate and the second plate, and both ends of the outer side surface terminate at the first intersection line;
[0051] 104. Assign model attributes to the three-dimensional structure to complete the oil edge processing of the three-dimensional model.
[0052] In 3D modeling software, as a construction unit of the model, the edge of a plate is often not of the same structure, and there can be various edge structures of different shapes, such as a right-angle structure, a rounded-corner structure, etc. A plate is a three-dimensional structure with two plate surfaces. The plate surface usually refers to two relatively large planes. In this application, a thick side surface is defined. The two ends of the thick side surface are respectively connected to a plate surface, and there is a boundary line between the thick side surface and the plate surface. Generally, the boundary lines on the same plate are parallel. In this application, the plate is divided into an end part and a planar part. The planar part is the main part of the plate, and the end part is the edge of the plate. The end part can be a three-dimensional structure or a planar structure. In other words, the length of the end part in the x-axis direction can be 0. At this time, the structure of the end part is the same as that of the planar part, and the end part is just a surface of the plate in the x-axis direction. In the atta Figure 1 chment, the thick side surface is the curved outer side surface on A1, and the two surfaces of part A2 in the y direction are the plate surfaces.
[0053] The shape of the thick side surface can be a curved surface or a combination of a curved surface and a plane. In practical applications, the case where the thick side surface is a curved surface is the most common. In this application, the case where the thick side surface is a curved surface is taken as an example for subsequent elaboration. In the atta Figure 1 chment, the end part of the plate is a curved surface. The plane formed by the two boundary lines on the plate divides the plate into a planar part and a curved end. The curved end is the end of the plate, and the planar part is connected to the curved end. The planar part is the main part of the plate. The relationship between the planar part and the curved end can be understood as the relationship between the main body and the edge. The curved end is shown as A1 in the atta Figure 2 chment, and the planar part is shown as A2 in the atta Figure 2 chment. Moreover, there is a connecting surface between the curved end and the planar part, and there are two boundary lines on the connecting surface. The arc surface on the curved end is connected to the planes on both sides of the planar part through the two boundary lines respectively. The boundary line is the dividing line between the plane and the arc surface on the plate, specifically shown as A3 in the atta Figure 2 chment, and the other dividing line is on the other side. As for the Figure 2 line perpendicular to the boundary line in the atta
[0054] The edge oiling modeling method of this embodiment constructs edge oiling for a 3D model in modeling software, and the plates on the 3D model are the basis for edge oiling modeling. Therefore, it is necessary to first obtain the 3D model, and determine the edge oiling area to be processed on the 3D model, as well as the plates that need to be covered or connected by edge oiling in the edge oiling area. Among them, the edge oiling area is a processing area range, which should be slightly larger than the actual coverage range of the edge oiling. It can be manually selected by the user through an input tool such as a mouse, or a region can be set by itself according to the aggregation of the curved surface ends of each plate as the edge oiling area. The purpose of the edge oiling area is to limit the curved surface ends of the plates. There may be multiple curved surface ends on a plate, and it is necessary to set the edge oiling area to limit the object to be edited. The edge oiling area is as shown in the attached Figure 3 area a in
[0055] In practical applications, edge oiling is often used to repair the connection between plates. Therefore, it is required that the number of plates is at least two. In some embodiments, it is not required that the edge oiling completely connects all the plates, and the outer sides of two plates can also be connected to complete the surface coverage.
[0056] In the edge oiling area, each plate corresponds to a curved surface end, and each curved surface end corresponds to two boundary lines. It is necessary to select the two boundary lines that are farthest apart. For multiple plates that need to be connected by edge oiling, the boundary lines on them often perpendicular to each other. Therefore, the distance between two first boundary lines can be calculated. In the modeling software, each point has coordinates, and the distance between the boundary lines can be calculated through the coordinate values of the boundary lines in the space coordinate system, and then the first boundary lines are selected. The plates where the first boundary lines are located are the first plate and the second plate respectively. Selecting two first boundary lines essentially determines the starting position and the ending position of the edge oiling. The edge oiling needs to cover at least the area between the two first boundary lines. The boundary line is a line segment, and the two first boundary lines form a region. In this embodiment, this region is defined as the interface plane. The interface plane is as shown in the attached Figure 3 shown. The attached Figure 3 shows the cross-sectional schematic diagram of the plate on the reference plane. Among them, b are the boundary lines on each plate, B1 and B2 are the two first boundary lines, and the plane formed by the connection of B1 and B2 is denoted as the interface plane C1. P1, P2, and P3 represent three plates, and the first plate and the second plate correspond to P1 and P3. The attached Figure 4 is Figure 3 the schematic diagram after edge oiling modeling. The curved surface ends of the plates P1, P2, and P3 are all removed, and the three-dimensional structure is as shown in C. Among them, C1 represents the interface plane, and C2 represents the outer side surface of the three-dimensional structure. C2 is curved away from the plate relative to C1.
[0057] The first plate and the second plate correspond to the two outermost plates in the edging area and are also the two plates to which the edging must be connected. For the plates other than the first plate and the second plate, the edging may not be connected. The most core function of the edging is the decoration of the outer surface. The first plate and the second plate correspond to the outermost plates, and it is necessary to ensure the connection of the edging to the outermost plates.
[0058] Among them, the ends on the plates can be flexibly selected to be removed according to the situation. In some embodiments, at least a part or all of the curved ends of the first plate and the second plate are removed to at least expose the first junction line of the first plate and the second plate. The two first junction lines, as the starting point and the ending point of the edging, need to be exposed, so at least a part of the curved ends of the first plate and the second plate need to be removed. In some embodiments, the curved ends of all the plates are removed to expose the flat parts of each plate and make the three-dimensional structure in contact with all the plates. Especially for the case where the plates are stacked, removing the curved ends of all the plates can provide sufficient space for the construction of the three-dimensional structure and reduce the occurrence of the phenomenon of penetrating the mold.
[0059] When removing the curved ends, it can be removed according to the junction lines on each plate. The junction line is the dividing line between the curved end and the flat part. Determining the junction line can quickly confirm the position of the curved end and facilitate the removal of the curved end. In addition, in addition to removing the curved ends, the flat part of the spectral plane can also be appropriately cut to reduce the occlusion of the three-dimensional structure by the flat part. In some embodiments, the curved ends of all the plates in the edging area are removed to expose the flat parts of all the plates; among all the plates, if there is a flat part of a plate that protrudes away from the plate relative to the flat parts of the first plate and the second plate, then a part of the flat part of this plate is removed to align it with the flat parts of the first plate and the second plate. Removing the curved ends of all the plates and aligning the flat parts of each plate can reduce the construction difficulty of the three-dimensional structure. A semi-cylindrical structure is used as the three-dimensional structure. For the problem that the middle plate is too long, the flat part of the middle plate can be appropriately cut. If the first plate or the second plate cannot be aligned and there is one long and one short, the shorter plate can be used as a reference, and the longer plate can be appropriately cut to try to align the first plate and the second plate as much as possible to improve the edging effect.
[0060] Among them, the edging is presented in the edging area in the form of a three-dimensional structure. The three-dimensional structure has at least one outer side surface in the shape of an arc surface, and the two opposite ends of the arc surface are respectively connected to the first junction line. In some embodiments, the outer side surface of the three-dimensional structure can be tangent to the plane of the flat part to ensure the smooth connection between the edging and the plate.
[0061] In some embodiments, the three-dimensional structure is a cylinder with a length of one-nth, and the cross-section of the outer side is an arc, which can better achieve a smooth transition between the oil edge and the plate. Specifically, the cross-section of the arc surface on the reference plane is an arc; the center of the arc is determined based on the perpendicular bisector of the line segment where the interface intersects the reference plane, and the radius of the arc is determined based on the distance between the two first boundary lines. Exemplarily, the first plate and the second plate have the same thickness and are stacked, and the radius can be selected as half of the distance between the two first boundary lines, that is, the thickness of the first plate is used as the radius. In some embodiments, if the first plate and the second plate are inconsistent in thickness, the center of the circle will be preferentially set on the thicker plate of the first plate and the second plate when constructing the arc, so as to improve the aesthetics of the oil edge. When the first plate and the second plate are inconsistent in thickness, the center of the circle will be set based on the thicker plate, and the radius can also be selected in combination with the thicknesses of the first plate and the second plate.
[0062] The angle between the plane formed by the two boundary lines on the first plate and the plane formed by the two boundary lines on the second plate is greater than 0 degrees. When it is equal to 0 degrees, it means that the curved surfaces of the two plates are facing each other directly, and it is not suitable to use an arc surface as the oil edge for decoration. In some embodiments, when the angle between the plane formed by the two boundary lines on the first plate and the plane formed by the two boundary lines on the second plate is 180°: the distance from any point on the arc surface to the interface is not less than half of the distance between the two first boundary lines. The angle is 180°, that is, the first plate and the second plate are stacked, as specifically shown in the appendix Figure 5 shown. At this time, there can be a gap between the plates or they can be closely attached. In this case, the distance between the first boundary line and the second boundary line needs to be considered. The calculation of the distance is as shown in the appendix Figure 5 shown, and the specific expression is:
[0063]
[0064] where L represents the first distance, i represents the i-th plate arranged in sequence from the first plate towards the second plate, M i represents the thickness of the i-th plate, and N i represents the gap between the i-th plate and the (i + 1)-th plate.
[0065] In the modeling software, the plate information can be obtained through the coordinate information of each point of the plate, and the plate information includes the number of plates, the thickness of each plate, and the gap between the plates. After obtaining the plate information, first judge whether the oil edge area is suitable for setting the oil edge based on the gap between the plates: if it is suitable, perform subsequent curved surface end processing; if it is not suitable, feedback on the gap between the plates.
[0066] When the curved ends of all plates are not removed, the plates located between the first plate and the second plate may block the oil edge due to the excessive distance, so it is necessary to screen the plates. In some embodiments, if the plate closest to the first plate is wider than the first plate in width and protrudes away from the plate relative to the first plate, then the curved end of the plate is removed; if the plate closest to the second plate is wider than the second plate in width and protrudes away from the plate relative to the second plate, then the curved end of the plate is removed. The plates closest to the first plate and the second plate are theoretically the most likely to affect the arc surface. Once such plates protrude relative to the first plate and the second plate, and considering that the first plate and the second plate are relatively narrow, it is very likely to affect the ductility and continuity of the arc surface of the oil edge. For such plates, it is necessary to remove the curved ends.
[0067] In some embodiments, if there are gaps between the three-dimensional structure and each plate in the oil edge area, the gaps are filled, and the filled parts are incorporated into the three-dimensional structure together; after filling, the final three-dimensional structure is given model attributes. Connecting the three-dimensional structure and the plates fully can improve the mechanical properties of the three-dimensional model.
[0068] Embodiment 2
[0069] This embodiment provides an oil edge modeling system for a three-dimensional model. The module schematic diagram of the system is as shown in the appendix Figure 6 as follows. The oil edge modeling system specifically includes:
[0070] A region determination unit 1, configured to determine the oil edge region of the oil edge to be processed on the three-dimensional model and multiple plates to be connected by the oil edge, analyze the thick sides where each plate is connected to the two plate surfaces in the oil edge region, and a boundary line existing between each plate surface and the thick side;
[0071] A parameter determination unit 2, configured to determine the two farthest boundary lines in the oil edge region as the first boundary lines, the two first boundary lines together form an interface, and the plates where the first boundary lines are located are the first plate and the second plate respectively;
[0072] An oil edge construction unit 3, configured to construct a three-dimensional structure that protrudes away from the plate relative to the interface and covers all thick sides, the three-dimensional structure is at least connected to the first plate and the second plate, and the two ends of the outer side surface respectively terminate at the first boundary lines;
[0073] An attribute setting unit 4, configured to endow the three-dimensional structure with model attributes to complete the oil edge processing of the three-dimensional model.
[0074] This embodiment provides an oil edge modeling system for a three-dimensional model, which systematizes the foregoing oil edge modeling method for a three-dimensional model, making it more practical.
[0075] Embodiment 3
[0076] An embodiment of the present application provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to execute an oil edge modeling method for a three-dimensional model according to Embodiment 1 of the present application. The oil edge modeling method includes the following steps:
[0077] 101. Determine the oil edge area of the oil edge to be processed on the three-dimensional model and multiple plates to be connected by the oil edge, analyze the thick side surfaces where each plate is connected to two plate surfaces in the oil edge area, and a boundary line existing between each plate surface and the thick side surface;
[0078] 102. Determine the two farthest boundary lines in the oil edge area as the first boundary lines, and the two first boundary lines together form an interface surface. The plates where the first boundary lines are located are the first plate and the second plate respectively;
[0079] 103. Construct a three-dimensional structure that bulges away from the plate surface relative to the interface surface and covers all thick side surfaces. The three-dimensional structure is at least connected to the first plate and the second plate, and both ends of the outer side surface terminate at the first boundary line respectively;
[0080] 104. Endow the three-dimensional structure with model attributes to complete the oil edge processing of the three-dimensional model.
[0081] This embodiment applies an oil edge modeling method for a three-dimensional model to a computer program product, which is convenient for execution.
[0082] Embodiment 4
[0083] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the steps of an oil edge modeling method for a three-dimensional model provided in Embodiment 1 of the present application. The method includes:
[0084] 101. Determine the oil edge area of the oil edge to be processed on the three-dimensional model and multiple plates to be connected by the oil edge, analyze the thick side surfaces where each plate is connected to two plate surfaces in the oil edge area, and a boundary line existing between each plate surface and the thick side surface;
[0085] 102. Determine the two farthest boundary lines in the oil edge area as the first boundary lines, and the two first boundary lines together form an interface surface. The plates where the first boundary lines are located are the first plate and the second plate respectively;
[0086] 103. Construct a three-dimensional structure that bulges away from the plate in the direction relative to the interface and covers all thick sides. The three-dimensional structure is at least in contact with the first plate and the second plate, and both ends of the outer side terminate at the first intersection line.
[0087] 104. Endow the three-dimensional structure with model attributes to complete the edge oiling process of the three-dimensional model.
[0088] The computer storage medium of this embodiment can adopt any combination of one or more computer-readable media. The computer-readable media can be computer-readable signal media or computer-readable storage media. The computer-readable storage media can be, for example, but not limited to: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, the computer-readable storage media can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device, or component.
[0089] This embodiment applies a method for edge oiling modeling of a three-dimensional model to a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the steps of the edge oiling modeling method provided by this application, which is simple, fast, easy to store, and not easy to lose.
[0090] This application provides a method, system, program product, and storage medium for edge oiling modeling of a three-dimensional model. By leveraging the structural characteristics of the plates, through cutting and reconstructing the arc surfaces, an edge oiling connecting multiple plates is constructed in the three-dimensional model, presenting the edge oiling effect in the three-dimensional model completely without generating a piercing phenomenon, retaining the details of the model to the greatest extent, and ensuring the accuracy of the final model.
[0091] Those of ordinary skill in the art should understand that the various modules of the present application described above can be implemented using a general computing system. They can be concentrated on a single computing system or distributed over a network composed of multiple computing systems. Optionally, they can be implemented using program code executable by a computer system, so that they can be stored in a storage system and executed by the computing system, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to be implemented. In this way, the present application is not limited to any specific combination of hardware and software.
[0092] Note that the above is only the preferred embodiment of the present application and the applied technical principles. Those skilled in the art will understand that the present application is not limited to the specific embodiments here, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments. Without departing from the concept of the present application, more other equivalent embodiments can be included, and the scope of the present application is determined by the scope of the appended claims.
[0093] The above discloses only several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be thought of by those skilled in the art should fall within the protection scope of the present application.
Claims
1. A method for modeling the oil edge of a three-dimensional model, characterized in that, Including: Determine the oil edge area of the oil edge to be processed on the three-dimensional model and multiple plates to be connected by the oil edge, analyze the thick side surfaces where each plate is connected to two plate surfaces in the oil edge area, and a boundary line existing between each plate surface and the thick side surface; Determine the two boundary lines farthest apart in the oil edge area as the first boundary lines, the two first boundary lines together form an interface surface, and the plates where the first boundary lines are located are the first plate and the second plate respectively; Construct a three-dimensional structure that protrudes away from the plate in a direction relative to the interface surface and covers all thick side surfaces, the three-dimensional structure is at least connected to the first plate and the second plate, and both ends of the outer side surface terminate at the first boundary lines respectively; Endow the three-dimensional structure with model attributes to complete the oil edge processing of the three-dimensional model.
2. The oil edge modeling method according to claim 1, characterized in that, When the thick side surface of a plate is a curved surface, the plane formed by the two boundary lines on the plate divides the plate into a plane part and a curved surface end; Before constructing the three-dimensional structure, at least remove part or all of the curved surface ends of the first plate and the second plate to at least expose the first boundary lines of the first plate and the second plate.
3. The oil edge modeling method according to claim 1, characterized in that, The outer side surface of the three-dimensional structure is a combination of a curved surface and a plane or a curved surface; And / or, the inner side surface of the three-dimensional structure is partially or completely connected to the plate.
4. The oil edge modeling method according to claim 2, characterized in that, Define a plane perpendicular to the first boundary line and passing through the three-dimensional structure as a reference plane; The cross-section of the outer side surface on the reference plane is an arc; Determine the center of the arc based on the perpendicular bisector of the line segment where the interface surface intersects the reference plane, and determine the radius of the arc based on the distance between the two first boundary lines.
5. The oil edge modeling method according to claim 1, characterized in that, When the angle between the plane formed by the two boundary lines on the first plate and the plane formed by the two boundary lines on the second plate is 180°: The distance from the point on the outer side surface farthest from the interface surface to the interface surface is not less than half of the distance between the two first boundary lines.
6. The oil edge modeling method according to claim 2, characterized in that, Remove the curved surface ends of all plates in the oil edge area to expose the plane parts of all plates; In the oil edge area, if there is a plate whose plane part protrudes away from the plate in a direction relative to the plane parts of the first plate and the second plate, then remove part of the plane part of the plate to align it with the plane parts of the first plate and the second plate.
7. The oil edge modeling method according to claim 2, characterized in that, If the plate closest to the first plate is larger than the first plate in width and protrudes away from the first plate in a direction relative to the first plate, then remove the arc surface end of the plate; If the plate closest to the second plate is larger than the second plate in width and protrudes away from the second plate in a direction relative to the second plate, then remove the arc surface end of the plate.
8. A system for modeling the oil edge of a three-dimensional model, characterized in that, Including: An area determination unit for determining the oil edge area of the oil edge to be processed on the three-dimensional model and multiple plates to be connected by the oil edge, analyzing the thick side surfaces where each plate is connected to two plate surfaces in the oil edge area, and a boundary line existing between each plate surface and the thick side surface; A parameter determination unit, configured to determine that two boundary lines with the farthest distance from each other in the oil edge region are the first boundary lines, and the two first boundary lines together form an interface surface, and the plate pieces where the first boundary lines are located are the first plate piece and the second plate piece respectively; An oil edge construction unit, configured to construct a three-dimensional structure that protrudes away from the plate piece with respect to the interface surface and covers all thick side surfaces, the three-dimensional structure is at least connected to the first plate piece and the second plate piece, and both ends of the outer side surface terminate at the first boundary line respectively; An attribute setting unit, configured to endow the three-dimensional structure with model attributes to complete the oil edge processing of the three-dimensional model.
9. A computer program product, characterized in that, It includes executable instructions, which are used to implement the oil edge modeling method of the three-dimensional model as described in any one of claims 1-7 when being executed.
10. A computer-readable storage medium, characterized in that, It stores a computer program, which is used to implement the oil edge modeling method of the three-dimensional model as described in any one of claims 1-7 when being executed by a processor.
