A method for simplifying triangular patch models for large-scale real-life 3D rendering
By calculating the polyhedral volume of the triangular patch model and selecting the triangular patch with the smallest volume for simplification, combined with the method of traversing all points, the problems of model distortion and poor operating performance in the existing technology are solved, and the triangular patch model is realized Effective simplification and smooth display of real-life 3D rendering.
Patent Information
- Application Number
- CN202410564454.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-09
AI Technical Summary
When the existing technology simplifies the triangular patch model, it is difficult to find a balance between maintaining the model display effect and running performance, resulting in poor model distortion control, inability to effectively reduce computer resource usage, and resulting in poor real-life 3D rendering effects.
By randomly selecting points on the triangular patch model as initial points, multiple closed polyhedrons are formed, the volume of each polyhedron is calculated, and the triangular patch with the smallest volume is selected for simplification, and all points are gradually traversed to obtain the simplest triangular patch model. , further optimize the simplification process to reduce the model volume and the number of triangular patches.
It achieves lightweight triangular patch models while maintaining better display effects and running performance, reduces computer resource usage, and improves the fluency and effect display of real-life 3D rendering and demonstrations.
Smart Images

Figure CN118135170B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of simplification of triangular facet models for real-scene three-dimensional rendering, and in particular to a method for simplifying triangular facet models for large-scale scenes in real-scene three-dimensional rendering. Background Art
[0002] In various real-life 3D systems, the rendering and demonstration of large-scale scenes will cause excessive computer resource usage, resulting in screen freezes, frame drops, and even crashes, greatly reducing the user experience. The general method to solve this problem at the current stage is to reduce the number of triangles in the model, reduce resource usage, and achieve smooth browsing and operation of the triangle model. However, the current face simplification method has its limitations. It can achieve basic simplification effects, but the model will be distorted after simplification, and key details of the model will be missing, which greatly reduces the display effect.
[0003] Patent document number CN110322558A discloses a mesh model simplification method based on the fireworks algorithm triangle patch folding. This application is aimed at the high shape-preserving triangle mesh simplification requirements, especially the three-dimensional model with obvious holes and boundaries, which can well guarantee the simplified shape. The fireworks algorithm and the triangle folding method are effectively combined to accelerate the simplification rate, control the simplification error, and achieve a balance between the simplification speed and the simplification quality. However, it also has the problem that while the triangle patch model is lightweight, the model distortion is poorly controlled, and it is not easy to obtain a better display effect and running performance. Summary of the invention
[0004] The purpose of the present invention is to provide a method for simplifying triangular facet models for large-scale scenes in real-life three-dimensional rendering, so as to achieve lightweight triangular facet models while reducing model distortion, thereby maintaining better display effects and operating performance of the model.
[0005] The object of the present invention can be achieved by the following technical solution: A method for simplifying a triangular facet model for real-life three-dimensional rendering of a large-scale scene, comprising the steps of:
[0006] S1, randomly select a point on the triangular patch model as the initial point;
[0007] S2. Among the adjacent peripheral points of the initial point, three peripheral points are randomly selected to form a triangle by connecting lines, and a triangular face is obtained. The bottom face of the polyhedron formed by the initial point and the adjacent peripheral points is closed by using the obtained triangular face to form multiple closed polyhedrons.
[0008] S3, respectively calculating the volume of each polyhedron;
[0009] S4, selecting the triangular face of the bottom surface of the polyhedron with the smallest volume as a simplified triangular face patch;
[0010] S5, selecting interval points on the triangular face model that are not adjacent to the initial point, and each interval point is also not adjacent to each other, to form multiple groups of interval point sets, repeating steps S2 to S4, and obtaining simplified triangular face patches of each interval point in each group of interval point sets;
[0011] S6. Obtain a simplified triangular patch model corresponding to each set of interval points according to the simplified triangular patch of each set of interval points, and select the simplified triangular patch model with the smallest total volume change as the simplest triangular patch model of the initial point.
[0012] Furthermore, the method further comprises the steps of:
[0013] S7, traverse all points of the triangular patch model, take them as initial points, repeat steps S2 to S6, and obtain the simplest triangular patch models respectively;
[0014] S8. Calculate the total volume change of each simplest triangular patch model, and select the simplest triangular patch model with the smallest total volume change as the extremely simple triangular patch model.
[0015] Furthermore, the method further comprises the steps of:
[0016] S9. Using the minimalist triangular patch model, repeat steps S1 to S8 to further simplify the minimalist triangular patch model to obtain a more simplified triangular patch model.
[0017] Furthermore, the interval between the initial point and the interval point is one point or two points.
[0018] Beneficial effects of the present invention:
[0019] 1. The present invention optimizes the calculation of the triangular face model, and the volume of the removed triangular face model is the lowest, while the number of triangular facets obtained by optimization is reduced the most, so that after the model is simplified, the model distortion is small, and a better display effect is maintained. The running performance of the model is greatly improved, and the computer resource occupancy rate can be reduced in various large-scale real-scene three-dimensional systems, ensuring the effect display and fluency of real-scene three-dimensional rendering and demonstration.
[0020] 2. The present invention can obtain a minimalist triangular face model by traversing the initial points, thereby minimizing the loss of model volume while optimizing the number of triangular faces, further reducing computer resource usage, and ensuring the effect display and fluency of real-life three-dimensional rendering and demonstration.
[0021] 3. The present invention can minimize the loss of model volume while optimizing the number of triangles through secondary simplification of the model, further reducing the computer resource usage and ensuring the effect display and fluency of real-scene 3D rendering and demonstration. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic flow chart of a method for simplifying a triangular facet model for large-scale real-life three-dimensional rendering of a scene according to the present invention;
[0023] Figure 2 The triangular patch model with p20 as the initial point in the embodiment of the present invention;
[0024] Figure 3 Schematic diagrams of five closed polyhedrons formed by point p20 and surrounding points in an embodiment of the present invention;
[0025] Figure 4 The present invention is Figure 3 The three-dimensional diagram of the polyhedron corresponding to the scheme E in the middle;
[0026] Figure 5 is a set of interval points corresponding to the initial point p20 in the embodiment of the present invention;
[0027] Figure 6 A set of simplified triangular patch models corresponding to the initial point p20 of the embodiment of the present invention;
[0028] Figure 7 is another set of interval points corresponding to the initial point p20 in the embodiment of the present invention;
[0029] Figure 8 This is a triangular patch model with the initial point p21 as the initial point in the embodiment of the present invention. DETAILED DESCRIPTION
[0030] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar symbols throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0031] like Figure 1-Figure 8 As shown, the present invention discloses a method for simplifying a triangular facet model for large-scale scene rendering of real scene 3D, comprising the steps of:
[0032] S1, randomly select a point on the triangular patch model as the initial point;
[0033] S2. Among the adjacent peripheral points of the initial point, three peripheral points are randomly selected to form a triangle by connecting lines, and a triangular face is obtained. The bottom face of the polyhedron formed by the initial point and the adjacent peripheral points is closed by using the obtained triangular face to form multiple closed polyhedrons.
[0034] S3, respectively calculating the volume of each polyhedron;
[0035] S4, selecting the triangular face of the bottom surface of the polyhedron with the smallest volume as a simplified triangular face patch;
[0036] S5, selecting interval points on the triangular face model that are not adjacent to the initial point, and each interval point is also not adjacent to each other, to form multiple groups of interval point sets, repeating steps S2 to S4, and obtaining simplified triangular face patches of each interval point in each group of interval point sets;
[0037] S6. Obtain a simplified triangular patch model corresponding to each set of interval points using simplified triangular patches, and select a simplified triangular patch model with the smallest total volume change as the simplest triangular patch model of the initial point;
[0038] S7, traverse all points of the triangular patch model, take them as initial points, repeat steps S2 to S6, and obtain the simplest triangular patch models respectively;
[0039] S8. Calculate the total volume change of each simplest triangular patch model, and select the simplest triangular patch model with the smallest total volume change as the extremely simple triangular patch model.
[0040] S9. Using the simplified triangular patch model, repeat steps S1 to S8 to further simplify the simplified triangular patch model to obtain a more simplified triangular patch model.
[0041] The interval between the initial point and the interval point can be one point or two points, which can make the simplified triangle patch range larger and obtain a better simplification effect.
[0042] Example: Figure 2 As shown, a point of the triangular patch model is randomly selected as the initial point, for example, point p20; then point p20 has five surrounding points, namely, points p12, p21, p24, p19 and p11.
[0043] Randomly select three points from p12, p21, p24, p19 and p11 to form a triangle, obtain a triangular face, and use different triangular faces to close the bottom of the polyhedron formed by point p20 and the five faces of p12, p21, p24, p19 and p11 to form multiple closed polyhedrons; a total of five closing schemes are formed, and the closed polyhedrons formed are as follows: Figure 3 As shown in AE.
[0044] like Figure 4 As shown, Figure 4 for Figure 3 The closed polyhedron corresponding to solution E in the middle has different volumes because the triangular faces of the bottom of the polyhedron are not coplanar with each other.
[0045] Calculate the volumes of the five polyhedrons and obtain the polyhedron with the smallest volume. The triangles on the bottom are used as simplified triangle patches, for example: Figure 3When the volume of the polyhedron of the shown scheme C is the smallest, the obtained triangular faces composed of p11, p12 and p19, the triangular faces composed of p12, p19 and p21, and the triangular faces composed of p19, p21 and p24 are simplified triangular facets.
[0046] After the above calculations, the five faces formed by p20 and points p12, p21, p24, p19 and p11 are simplified to three faces, and the removed volume is the smallest one among the five polyhedron solutions, which has the least impact on the display of the simplified model and the lowest model distortion.
[0047] Further, multiple groups of interval point sets that are not adjacent to p20 on the triangular face model are selected, and the interval points in each group of interval point sets are not adjacent to each other. For example, Figure 3 The points p2, p5, p10, p17, p18 and p22 shown are a set of interval points of p20, and there are one or two points between each interval point in the set and between each interval point and the initial point.
[0048] Each set of interval points is calculated using the above method to obtain simplified triangular facets, such as Figure 4 As shown, the simplified triangular facets formed by simplification of the initial point p20 and the interval points p17, p18 and p22, the simplified triangular facets obtained from the initial point and each interval point together constitute a simplified triangular facet model of this group of interval points, so that the number of triangular facets is greatly reduced, the speed of model rendering or demonstration is improved, and the overall volume removed is small, which has the least impact on the display of the simplified model and the lowest model distortion.
[0049] Then calculate the other groups of interval point sets of p20 to obtain the simplified triangular patch model corresponding to each group of interval point sets, for example: Figure 5 As shown, p1, p5, p7, p13, p18 and p23 are selected as another set of interval points of p20, and the simplified triangular patch model corresponding to this set of interval points is calculated and obtained.
[0050] Then, according to the simplified triangular patch models obtained from each set of interval points corresponding to p20, the simplified triangular patch model with the smallest total volume change is selected as the simplest triangular patch model with p20 as the initial point.
[0051] The simplest triangular face model greatly reduces the number of triangular facets, improves the speed of model rendering or demonstration, and at the same time, the overall volume removed is small, which has the least impact on the display of the simplified model and the lowest model distortion.
[0052] Further, traverse Figure 2 All points of the triangular patch model shown are used as initial points, for example, Figure 8As shown, p21 is selected as the initial point, multiple groups of interval point sets corresponding to p21 are obtained, the simplified triangular patch models corresponding to each group of interval point sets are calculated, and the simplified triangular patch model with the smallest total volume change is selected as the simplest triangular patch model with p21 as the initial point.
[0053] The simplest triangular patch models corresponding to different initial points are obtained, and then the total volume change of each simplest triangular patch model is calculated, and the simplest triangular patch model with the smallest total volume change is selected as the extremely simple triangular patch model.
[0054] The minimalist triangular face model greatly reduces the number of triangular facets, which improves the speed of model rendering or demonstration. At the same time, the overall volume removed is small, which has the least impact on the display of the simplified model and the lowest model distortion.
[0055] Furthermore, using the minimalist triangular patch model, the above method is repeated to further simplify the minimalist triangular patch model to obtain a more simplified triangular patch model.
[0056] A more simplified triangular face model can significantly reduce the number of triangles, and the speed of model rendering or presentation can be improved, but it will also have a certain impact on the display effect, but the overall distortion is relatively low.
[0057] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
[0058] It should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0059] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0060] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be fixedly connected, detachably connected, or integrated; it can be mechanically connected, electrically connected, or communicable with each other; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0061] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
Claims
1. A method for simplifying a triangular patch model for large-scale real-life 3D rendering, characterized in that: Includes steps: S1, randomly select a point on the triangular patch model as the initial point; S2. Among the adjacent peripheral points of the initial point, three peripheral points are randomly selected to form a triangle by connecting lines, and a triangular face is obtained. The bottom face of the polyhedron formed by the initial point and the adjacent peripheral points is closed by using the obtained triangular face to form multiple closed polyhedrons. S3, respectively calculating the volume of each polyhedron; S4, selecting the triangular face of the bottom surface of the polyhedron with the smallest volume as a simplified triangular face patch; S5, selecting interval points on the triangular face model that are not adjacent to the initial point, and each interval point is also not adjacent to each other, to form multiple groups of interval point sets, and repeating steps S2 to S4 to obtain simplified triangular face patches of each interval point in each group of interval point sets; S6. Obtain a simplified triangular patch model corresponding to each set of interval points according to the simplified triangular patch of each set of interval points, and select the simplified triangular patch model with the smallest total volume change as the simplest triangular patch model of the initial point; S7, traverse all points of the triangular patch model, take them as initial points, repeat steps S2 to S6, and obtain the simplest triangular patch models respectively; S8. Calculate the total volume change of each simplest triangular patch model, and select the simplest triangular patch model with the smallest total volume change as the extremely simple triangular patch model.
2. The method for simplifying a triangular patch model for large-scale scene rendering of real scene 3D according to claim 1, characterized in that: Also includes the steps: S9. Using the minimalist triangular patch model, repeat steps S1 to S8 to further simplify the minimalist triangular patch model to obtain a more simplified triangular patch model.
3. The method for simplifying a triangular patch model for large-scale scene rendering of real scene 3D according to claim 2, characterized in that: The interval between the initial point and the interval point is one point or two points.
