Three-dimensional simulation automatic modeling method and system
By acquiring environmental information, establishing a baseline action library and mesh generation, and combining texture mapping, the automation and accuracy of 3D simulation automatic modeling are achieved, solving the problems of complexity and insufficient speed in the modeling process in existing technologies, and improving modeling efficiency and user experience.
Patent Information
- Application Number
- CN202410299755.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2026-02-03
AI Technical Summary
Existing 3D modeling technologies are insufficient in terms of accuracy and speed, making it difficult to meet the high requirements for model visualization effects and the complexity and difficulty of the modeling process.
By acquiring environmental information near the work site, an initial model for 3D simulation is constructed, a baseline motion library is established for mesh generation and preliminary simulation, and texture mapping is combined to achieve an automated modeling process.
It simplifies the modeling process, reduces costs, improves modeling speed and efficiency, enhances user interaction experience, and achieves automation and accuracy in 3D simulation automatic modeling.
Smart Images

Figure CN121458910A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of three-dimensional modeling, in particular to a three-dimensional simulation automatic modeling method and system. BACKGROUND
[0002] Virtual reality, also known as virtual reality, is a research field born with the development of computer graphics technology and pattern recognition technology. Its main features and uses are to simulate visual, auditory and other signals in a real environment by a computer, and to display these simulated signals to the audience through various sensors, so that the audience can have a sense of being there. Three-dimensional modeling technology has wide application in industrial manufacturing, game entertainment and virtual reality.
[0003] In practical applications, people have increasingly high requirements for the visualization effect of solid three-dimensional models, such as whether the solid models obtained by reverse engineering can be more accurate, whether the characters and environment in three-dimensional electronic games can be more realistic, etc. In addition to the accuracy of the model, people also have requirements for the speed and convenience of three-dimensional modeling technology, such as how to shorten the modeling time, how to reduce the complexity of the modeling process, and how to reduce the difficulty of using three-dimensional modeling technology. These are the research directions of three-dimensional modeling technology. Therefore, the present application provides a three-dimensional simulation automatic modeling method to solve the above problems. SUMMARY
[0004] This section aims to summarize some aspects of the embodiments of the present application and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the abstract and title of the specification to avoid obscuring the purpose of this section, abstract and title, and such simplifications or omissions cannot be used to limit the scope of the present application.
[0005] In view of the above existing problems, the present application is proposed. Therefore, the present application provides a three-dimensional simulation automatic modeling method to solve the problems of accuracy and speed of three-dimensional modeling technology.
[0006] To solve the above technical problems, the present application provides the following technical solutions:
[0007] In a first aspect, the present application provides a three-dimensional simulation automatic modeling method, comprising:
[0008] Obtain the environment information around the work point, set the simulation parameters, and construct the initial model of the three-dimensional simulation;
[0009] Based on the initial model of the three-dimensional simulation, establish a reference action library, perform grid division, obtain a grid division model, and perform preliminary simulation on the grid division model according to the initial model of the pre-designed calculation parameters to obtain a preliminary simulation model;
[0010] The initial simulation model is texture mapped to obtain a three-dimensional simulation model.
[0011] As a preferred scheme of the three-dimensional simulation automatic modeling method, the initial model of the three-dimensional simulation comprises,
[0012] According to the work items, the work items are classified to form a work item set;
[0013] Object information near the work points in the work set is acquired and counted, and an initial model of the three-dimensional simulation is constructed for the objects by a laser scanner, a three-dimensional modeling tool, and simulation parameter setting;
[0014] According to different work item sets, different simulation scenes are combined.
[0015] As a preferred scheme of the three-dimensional simulation automatic modeling method, the initial model of the three-dimensional simulation comprises,
[0016] Work equipment information in the work item set is acquired and counted, and the equipment is classified to form an equipment set;
[0017] According to real object pictures and size data of the equipment, the equipment set is three-dimensionally modeled;
[0018] A reference action library is established by performing work actions of the equipment set by a virtual character model,
[0019] The reference actions in the reference action library include standing actions, walking actions, and squatting actions of the virtual character, the reference actions are decomposed into a plurality of small reference action modules, and the reference actions are dynamically combined to generate work actions.
[0020] As a preferred scheme of the three-dimensional simulation automatic modeling method, the initial model of the three-dimensional simulation comprises,
[0021] The initial model of the three-dimensional simulation comprises,
[0022] The initial model of the three-dimensional simulation is meshed to obtain a meshed model, and memory space is dynamically applied according to the simulation parameters;
[0023] According to the simulation parameters, initialized pre-design calculation parameters are acquired, and a kernel function related to the meshed model is extracted from the pre-design calculation parameters;
[0024] The meshed model is preliminarily simulated according to the kernel function to obtain a simulated initial simulation model;
[0025] The pre-design calculation parameters include pre-set related data of simulation calculation;
[0026] The kernel function includes a simulation calculation kernel function related to a mesh division model.
[0027] As a preferred scheme of the three-dimensional simulation automatic modeling method, the mesh division includes,
[0028] Obtaining three-dimensional geometric data corresponding to each sub-model in the initial model of the three-dimensional simulation;
[0029] Based on the three-dimensional geometric data, selecting a point with the smallest y coordinate as a pole point;
[0030] Sorting other points in the three-dimensional geometric data according to the polar angle between the pole point to form a first point set;
[0031] Traversing the first point set and sequentially adding each point to a convex hull to form a second point set, obtaining a minimum convex polyhedron, and performing a minimum convex polyhedron geometry calculation.
[0032] As a preferred scheme of the three-dimensional simulation automatic modeling method, the mesh division includes,
[0033] Layer division is performed on the convex polyhedron geometry, and a threshold range of layer division quality is set, including a number threshold N c of convex polyhedrons, an average edge length threshold N l of a mesh unit, and a minimum internal angle threshold N a of the mesh unit;
[0034] A middle layer level of the search layer level range is calculated;
[0035] The middle layer level is used to divide the convex polyhedron, and it is judged whether the number of the convex polyhedrons of the layer division, the average edge length of the mesh unit, and the minimum internal angle of the mesh unit satisfy the threshold range of the layer division quality;
[0036] According to the judgment result, a new layer level search range is determined, if the threshold requirement is satisfied, the search range is adjusted to a range on the left side of the current layer level, otherwise the search range is adjusted to a range on the right side of the current layer level;
[0037] A division quality evaluation model is constructed to evaluate the quality of the convex polyhedron division result, and the division quality evaluation model is expressed as:
[0038]
[0039] C∈N c ,L r ∈N l ,A m ∈N a
[0040] Wherein, C represents the number of convex polyhedron, L a represents the average side length of the grid unit, L r represents the ratio of the maximum side length to the minimum side length of the grid unit, A m represents the smallest internal angle in the grid unit, S r represents the ratio of the area of the grid unit to the area of the reference shape, S ar represents the ratio of the area of each grid unit to the area of the adjacent unit.
[0041] According to the result of quality evaluation, determine the new search range, if the division quality meets the requirements, adjust the search range to the range on the left side of the current level, otherwise adjust the search range to the range on the right side of the current level;
[0042] Repeat the steps of layer division until the level that meets the optimal layer division quality evaluation score is found, and the result of layer division is obtained;
[0043] Combine the divided convex polyhedral geometry to obtain a grid division model.
[0044] As a preferred scheme of the three-dimensional simulation automatic modeling method, wherein: the texture mapping comprises,
[0045] Obtain the target point with color information in the preliminary simulation model;
[0046] Obtain the three-dimensional centroid coordinates of the target point, project the three-dimensional centroid coordinates in the preset space coordinates to obtain a point projection;
[0047] Generate a color texture point graph according to the point projection.
[0048] In a second aspect, the present application provides a three-dimensional simulation automatic modeling system, comprising,
[0049] A model construction module is configured to obtain environmental information near a work point, set simulation parameters, and construct an initial model of three-dimensional simulation;
[0050] A first obtaining module is configured to establish a benchmark action library based on the initial model of three-dimensional simulation, perform grid division, obtain a grid division model, and perform preliminary simulation on the grid division model according to the initial model with pre-designed calculation parameters to obtain a preliminary simulation model;
[0051] A second obtaining module is configured to perform texture mapping on the preliminary simulation model to obtain a three-dimensional simulation model
[0052] In a third aspect, the present application provides a computing device, comprising:
[0053] A memory and a processor;
[0054] The memory is used for storing computer executable instructions, and the processor is used for executing the computer executable instructions, which realize the steps of the three-dimensional simulation automatic modeling method.
[0055] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer executable instructions, which realize the steps of the three-dimensional simulation automatic modeling method when executed by a processor.
[0056] Compared with the prior art, the present application has the following beneficial effects: the modeling process of the present application is simple and convenient, the cost of three-dimensional simulation automatic modeling is reduced, the excessive consumption of manpower and material resources is avoided, the three-dimensional modeling process is automated, the speed and efficiency of three-dimensional simulation automatic modeling are improved, and the user interaction experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor. Among them:
[0058] Figure 1 The whole flowchart of the three-dimensional simulation automatic modeling method of an embodiment of the present application is shown in the figure;
[0059] Figure 2 The basic modeling diagram of the three-dimensional simulation automatic modeling method of an embodiment of the present application is shown in the figure;
[0060] Figure 3 The action library demonstration diagram of the three-dimensional simulation automatic modeling method of an embodiment of the present application is shown in the figure;
[0061] Figure 4 The structure diagram of the three-dimensional simulation automatic modeling method of an embodiment of the present application is shown in the figure;
[0062] Figure 5 The modeling schematic diagram of the three-dimensional simulation automatic modeling method of an embodiment of the present application is shown in the figure;
[0063] Figure 6 The model and scene production stage animation debugging diagram of the three-dimensional simulation automatic modeling method of an embodiment of the present application is shown in the figure;
[0064] Figure 7 The model and scene production stage animation rendering diagram of the three-dimensional simulation automatic modeling method of an embodiment of the present application is shown in the figure;
[0065] Figure 8The animation output graph of the model and scene production stage of the three-dimensional simulation automatic modeling method according to one embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to make the above objectives, features and advantages of the present application more apparent, specific embodiments of the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present application.
[0067] In the following description, a large number of specific details are set forth in order to facilitate a thorough understanding of the present application. However, the present application can be implemented in other different manners than those described herein, and those skilled in the art can make similar generalizations without departing from the spirit and scope of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.
[0068] Secondly, the "one embodiment" or "embodiment" referred to herein means that a specific feature, structure or characteristic can be included in at least one implementation of the present application. The "in one embodiment" appearing in different places in the specification does not mean the same embodiment, nor is it an embodiment that is independent of or selected from other embodiments.
[0069] The present application is described in detail in conjunction with the schematic diagram. In the detailed description of the embodiments of the present application, the cross-sectional view of the device structure is locally enlarged without the general proportion for the convenience of description, and the schematic diagram is only an example, which should not limit the scope of protection of the present application herein. In addition, three-dimensional spatial dimensions including length, width and depth should be included in actual manufacturing.
[0070] Meanwhile, in the description of the present application, it should be noted that the terms "upper, lower, inner and outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first, second or third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.
[0071] In the present application, unless otherwise explicitly specified and limited, the terms "mounting, connection, connection" should be understood broadly, for example: it can be fixed connection, detachable connection or integral connection; it can also be mechanical connection, electrical connection or direct connection, it can also be indirectly connected through an intermediate medium, or it can be the communication between two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0072] Embodiment 1
[0073] Referring to Figures 1-4 For an embodiment of the present application, a three-dimensional simulation automatic modeling method is provided, as shown in Figure 1 , comprising:
[0074] S100, obtaining environment information near the work point, setting simulation parameters, and constructing an initial model of three-dimensional simulation;
[0075] Further, as shown in Figure 2 , constructing an initial model of three-dimensional simulation comprises,
[0076] According to the work project, the work project set is formed,
[0077] Obtain and count the object information near the work point in the work set, set the simulation parameters through the laser scanner and three-dimensional modeling tool, and construct an initial model of three-dimensional simulation for the object;
[0078] According to different work project sets, combine them into different simulation scenes.
[0079] It should be noted that the initial modeling of simulation is to model the objects near the work point, and then combine them in different scenes according to the different work projects. It can accurately simulate the interaction with these objects in the simulation process, which helps to improve the accuracy and reliability of the simulation results; limiting the modeling range can reduce the complexity of the model, thereby improving the efficiency of simulation calculation, which can save computing resources and time, and make the simulation process more efficient; combining objects in different scenes can simulate different work project situations, so as to evaluate the influence under different conditions, which helps to analyze and compare the effects of different work projects and provide basis for decision-making.
[0080] S200, based on the initial model of three-dimensional simulation, establishing a benchmark action library, performing grid division, obtaining a grid division model, and performing preliminary simulation on the grid division model according to the initial model of the pre-designed calculation parameters to obtain a preliminary simulation model;
[0081] Further, as shown in Figure 3 , establishing a benchmark action library comprises,
[0082] Obtain and count the work equipment information in the work project set, classify the equipment, and form an equipment set;
[0083] According to the real object diagram and size data of the equipment, three-dimensional modeling is performed on the equipment set;
[0084] Through the virtual character model, the action of the equipment set in the work is established, and the benchmark action library is established,
[0085] The reference action in the reference action library includes standing actions, walking actions and squatting actions of the virtual character, the reference actions are decomposed into several small reference action modules, and dynamic combination is performed to generate the working action.
[0086] It should be noted that the reference action library contains a character model, and the virtual character actions are divided into standing, walking, squatting and working actions by comprehensively considering the working content, wherein the first three types are reference actions of the character, the user can realize the basic action through the input device or realize the simple basic combined action through the combination mode, the establishment of the reference action library is to collect, sort and count data, and the equipment is classified and managed, on this basis, three-dimensional modeling of various equipment is carried out according to the corresponding real object drawing and size data, which can improve the efficiency of simulation modeling, through the pre-established standard model, a large amount of time and labor cost can be saved, and after verification and calibration, the consistency and reliability in different simulation scenes can be ensured, which is more helpful to promote the standardization of simulation modeling, so that different users can share and exchange models, and promote the unification of technical standards in the industry; The reference action library is a dynamic resource that can be continuously updated and optimized to adapt to new simulation requirements and technological development.
[0087] Further, the establishment of the preliminary simulation model comprises,
[0088] Grid division is performed on the initial model of three-dimensional simulation to obtain a grid division model, and memory space is dynamically applied according to simulation parameters;
[0089] According to the simulation parameters, the pre-designed calculation parameters after initialization are obtained, and the kernel function related to the grid division model is extracted from the pre-designed calculation parameters;
[0090] The grid division model is preliminarily simulated according to the kernel function, and the preliminary simulation model after simulation is obtained.
[0091] The pre-designed calculation parameters include the related data of the simulation calculation set in advance;
[0092] The kernel function includes the simulation calculation core function related to the grid division model.
[0093] Further, the grid division comprises,
[0094] The three-dimensional geometric data corresponding to each sub-model in the initial model of three-dimensional simulation is obtained;
[0095] Based on the three-dimensional geometric data, the point with the smallest y coordinate is selected as the pole point;
[0096] The other points in the three-dimensional geometric data are sorted according to the polar angle with the pole point to form a first point set;
[0097] Traverse the first point set and sequentially add each point to the convex hull to form a second point set, obtain the minimum convex polyhedron, and perform the minimum convex polyhedron geometry calculation.
[0098] It should be noted that in order to find the minimum convex polygon or convex polyhedron of a given point set, it is preferable to select the point with the minimum y-coordinate as the polar point, which is necessarily a vertex on the convex hull, to simplify the problem. The starting point is determined and the construction is started from the starting point, and the other points are traversed in the counterclockwise direction. At the same time, the number of scans can be reduced. In the initial stage, only the points need to be sorted according to the polar angle, and no comparison is needed for all points, thereby improving the efficiency of the algorithm and ensuring the correctness of the algorithm. When scanning starts from the point as the starting point and constructing in the counterclockwise direction, it can be ensured that the first edge is the boundary of the polyhedron, and no error will occur.
[0099] The first point set, i.e., the sorted point set, is a point set sorted according to the polar angle with the polar point, which determines the order of subsequent convex hull addition. The sorted point set retains the original order of the points, but rearranges them according to the polar angle. The second point set, i.e., a minimum convex polyhedron containing all convex polygon vertices, is constructed from the sorted point set, and the boundary points are determined by traversing the sorted point set and according to the convex hull property.
[0100] Further, the convex polyhedron geometry is divided into layers, and a threshold range of layer division quality is set, including a number threshold N c of convex polyhedrons, an average edge length threshold N l of grid cells, and a minimum internal angle threshold N a of grid cells.
[0101] A range of layer levels is set, and the middle level of the search level range is calculated.
[0102] The middle level is used to divide the convex polyhedron, and it is judged whether the number of convex polyhedrons, the average edge length of grid cells, and the minimum internal angle of grid cells of the layer division meet the threshold range of layer division quality.
[0103] According to the judgment result, a new level search range is determined. If the threshold requirement is met, the search range is adjusted to the range to the left of the current level, otherwise the search range is adjusted to the range to the right of the current level.
[0104] A division quality evaluation model is constructed to evaluate the quality of the convex polyhedron division result, and the division quality evaluation model is represented as:
[0105]
[0106] C∈N c , Lr ∈N l ,A m ∈N a
[0107] Wherein, C represents the number of convex polyhedron, the number of convex polyhedron reflects the complexity of the grid, L a represents the average edge length of the grid unit, used to judge the degree of detail of the grid, L r represents the ratio of the maximum edge length to the minimum edge length of the grid unit, which reflects the consistency of the size of the grid unit. The closer the ratio is to 1, the more consistent the size of the grid unit is, A m represents the smallest internal angle in the grid unit, S r represents the ratio of the area of the grid unit to the area of the reference shape, S ar represents the ratio of the area of each grid unit to the area of the adjacent unit, reflecting the uniformity of the grid unit, all the ratios should be close to 1, indicating the uniform distribution of the grid;
[0108] According to the result of quality evaluation, determine the new search range, if the division quality meets the requirements, adjust the search range to the range on the left side of the current level, otherwise adjust the search range to the range on the right side of the current level;
[0109] Repeat the steps of layer division until the level with the optimal layer division quality evaluation score is found, and the result of layer division is obtained;
[0110] Combine the divided convex polyhedron geometry to obtain the grid division model.
[0111] Specifically, the threshold range of layer division quality includes the number of convex polyhedron N c , preferably [50, 200], the number of convex polyhedron can reflect the complexity of the grid, more convex polyhedron reflects higher simulation precision, the average edge length of the grid unit N l , preferably [0.01, 1], unit: meter, reflecting the average size of the grid unit, used to judge the degree of detail of the grid, the smallest internal angle in the grid unit N a , preferably [20, 90], reflecting the shape quality of the grid unit, smaller internal angle will lead to unstable or inaccurate results, and large internal angle may cause unnecessary roughness of the grid.
[0112] It should be noted that the division quality evaluation model reduces the direct influence of the average edge length, at the same time avoids too small value leading to too high score, and strengthens the influence of the ratio of the maximum edge length to the minimum edge length, the larger the ratio, the greater the difference in the size of the grid unit, the smaller the contribution, and the balanced weight of each division parameter gets comprehensive and accurate quality evaluation result.
[0113] After the calculation of the minimum convex polyhedral geometry is completed, meshing is performed, the faces of the minimum convex polyhedron are subdivided into small triangles or quadrilaterals, the density of the mesh is determined, and finally the mesh elements are generated. Meshing can provide the basis for numerical solution for three-dimensional simulation, control the balance between precision and computational efficiency, support post-processing and visualization analysis, and be used for calculation and analysis in the optimization and design process. Mathematical equations on small elements can be more easily solved numerically.
[0114] S300, texture mapping is performed on the preliminary simulation model to obtain a three-dimensional simulation model;
[0115] Further, a target point with color information in the preliminary simulation model is obtained;
[0116] The three-dimensional centroid coordinates of the target point are obtained, and the three-dimensional centroid coordinates are projected in the preset space coordinates to obtain a point projection;
[0117] A color texture point graph is generated according to the point projection.
[0118] It should be noted that texture mapping can add visual details and texture to the three-dimensional simulation model, making the model more realistic and improving the realism of the model. It is used to display specific information or data on the simulation model, which helps to visualize the simulation results and can intuitively convey information to the user, so that the user can better understand the simulation process and results.
[0119] The present application can obtain accurate shape information of the target object surface through laser scanner data acquisition, which helps to build a high-precision initial model and improve the accuracy and realism of the simulation. An automatic modeling method is used to reduce manual intervention and improve modeling efficiency. The model is preliminarily simulated according to the pre-designed calculation parameters, which helps to optimize the simulation process. By adjusting the algorithm parameters, the actual situation can be better simulated, and the accuracy and reliability of the simulation can be improved.
[0120] The modeling process of the present application is simple and convenient, which reduces the cost of three-dimensional simulation automatic modeling, avoids excessive consumption of manpower and material resources, realizes automation in the three-dimensional modeling process, improves the speed and efficiency of three-dimensional simulation automatic modeling, and improves the user interaction experience.
[0121] The above is a schematic scheme of a three-dimensional simulation automatic modeling method of the present embodiment. It should be noted that the technical scheme of the three-dimensional simulation automatic modeling system belongs to the same concept as the technical scheme of the three-dimensional simulation automatic modeling method described above. The technical scheme of the cumulative climb height calculation device in the present embodiment is not described in detail, and the description of the technical scheme of the three-dimensional simulation automatic modeling method can be referred to.
[0122] The three-dimensional simulation automatic modeling system in the present embodiment comprises:
[0123] a model construction module, configured to acquire environmental information near a work point, set simulation parameters, and construct an initial model of three-dimensional simulation;
[0124] a first acquisition module, configured to establish a reference action library based on the initial model of three-dimensional simulation, perform mesh division, acquire a mesh division model, and perform preliminary simulation on the mesh division model according to the initial model of pre-designed calculation parameters to obtain a preliminary simulation model;
[0125] a second acquisition module, configured to perform texture mapping on the preliminary simulation model to obtain a three-dimensional simulation model.
[0126] The system further includes a data layer, a software support layer, an application layer, and a presentation layer, as shown in FIG. 1. Figure 4
[0127] The data layer is configured to store and manage various data.
[0128] The software support layer includes network protocols, software technologies, and model supports of the system, has real three-dimensional modeling, networking, and network transmission functions, and can guarantee the throughput of large data volume.
[0129] The application layer includes the logic of business processing, including user authentication, login, authorization, simulation operation, data query, online examination, training management, collaborative work, and network competition functions.
[0130] The presentation layer mainly includes the composition form of hardware, and the system is composed of a simulation operation training platform and a system server.
[0131] The embodiment also provides an electronic device suitable for three-dimensional simulation automatic modeling, which includes:
[0132] a memory and a processor; the memory is configured to store computer executable instructions, and the processor is configured to execute the computer executable instructions to implement the three-dimensional simulation automatic modeling method proposed in the above embodiment.
[0133] The embodiment also provides a storage medium having a computer program stored thereon, and the program is executed by a processor to implement the three-dimensional simulation automatic modeling method proposed in the above embodiment.
[0134] The storage medium proposed in the embodiment and the three-dimensional simulation automatic modeling method proposed in the above embodiment belong to the same inventive concept, and the technical details not described in the embodiment can be referred to the above embodiment, and the embodiment has the same beneficial effects as the above embodiment.
[0135] Through the above description of the embodiments, those skilled in the art can clearly understand that the present application can be realized by means of software and necessary general hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, and the computer software product can be stored in a computer readable storage medium, such as a floppy disk, a read-only memory (ROM), a random access memory (RAM), a FLASH, a hard disk or an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods of various embodiments of the present application.
[0136] Embodiment 2
[0137] Referring to Figures 5-8 For an embodiment of the present application, a three-dimensional simulation automatic modeling method is provided, and in order to verify the beneficial effects, scientific demonstration is carried out through economic benefit calculation and simulation experiment.
[0138] Firstly, the first stage is an animation script planning stage, which mainly forms a script, and the second stage is a shot design stage, which mainly designs the performance form of each animation shot according to the script, which can be in the form of sketch.
[0139] The third stage is a model and scene production stage, which completes all model production work, such as Figure 5 indicated; the fourth stage is an animation debugging stage in the model and scene production stage, such as Figure 6 indicated; the fifth stage is an animation rendering stage in the model and scene production stage, such as Figure 7 indicated; and the sixth stage is an animation output stage, such as Figure 8 indicated.
[0140] The distribution network non-stop operation has regional differences, and the work scene contains a large number of objects, and the expression of three-dimensional static models and dynamic models is complex, so the system should have good expansibility and high work efficiency. Firstly, a dynamic modeling method for distribution network equipment object units (meta-models) is adopted, the coupling between classes is reduced by abstract class design, and the cohesion is improved; a function support class library from model data generation to three-dimensional rendering and coloring in each stage is designed, more than two hundred models of various types such as work scene, equipment model, tool, material and character are established, and a comprehensive distribution network meta-model library is constructed.
[0141] By analyzing the parameter data, use method, technical condition and operation scene elements of the distribution network non-stop operation tool, the tool database based on the meta model, the operation scene construction method, the model classification management method and the three-dimensional simulation standard are researched, and the standard meta model library of the distribution network non-stop operation tool and operation scene is established by using the three-dimensional modeling technology.
[0142] It should be noted that the above examples are only used to illustrate the technical solutions of the present application and are not limiting. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the present application, and they should be covered in the scope of the claims of the present application.
Claims
1. A method for automatic modeling in three-dimensional simulation, characterized in that, include: Obtain environmental information near the work site, set simulation parameters, and construct an initial model for 3D simulation; Based on the initial model of the three-dimensional simulation, a reference action library is established, mesh generation is performed, a mesh generation model is obtained, and a preliminary simulation is performed on the mesh generation model according to the initial model with preset calculation parameters to obtain a preliminary simulation model. Texture mapping is performed on the preliminary simulation model to obtain a three-dimensional simulation model.
2. The three-dimensional simulation automatic modeling method as described in claim 1, characterized in that, The initial model for constructing the three-dimensional simulation includes, Classify the tasks according to their items to form a set of tasks; Acquire and statistically analyze object information near the work points in the work set, and construct an initial three-dimensional simulation model of the objects by setting simulation parameters using a laser scanner and 3D modeling tools. Different sets of tasks are combined into different simulation scenarios.
3. The three-dimensional simulation automatic modeling method as described in claim 1 or 2, characterized in that, Establishing the baseline action library includes, Obtain and analyze the equipment information in the set of work items, classify the equipment, and form an equipment set; Based on the physical images and dimensional data of the equipment, a three-dimensional model of the equipment assembly is created; A baseline action library is established by using virtual character models to demonstrate the operational actions of the equipment set. The baseline motion library includes the standing, walking, and squatting motions of the virtual character. The baseline motions are decomposed into several smaller baseline motion modules and dynamically combined to generate the job motions.
4. The three-dimensional simulation automatic modeling method as described in claim 3, characterized in that, The establishment of the preliminary simulation model includes, The initial model of the three-dimensional simulation is meshed to obtain the meshed model, and memory space is dynamically allocated according to the simulation parameters; Based on the simulation parameters, obtain the initialized preset calculation parameters, and extract the kernel function related to the mesh generation model from the preset calculation parameters; The mesh generation model is initially simulated based on the kernel function to obtain the preliminary simulation model after simulation. The preset calculation parameters include relevant data for pre-set simulation calculations; The kernel functions include core functions for simulation calculations related to the mesh generation model.
5. The three-dimensional simulation automatic modeling method as described in claim 4, characterized in that, The grid division includes, Obtain the three-dimensional geometric data corresponding to each sub-model in the initial model of the three-dimensional simulation; Based on the aforementioned three-dimensional geometric data, the point with the smallest y-coordinate is selected as the pole. The other points in the three-dimensional geometric data are sorted according to their polar angles with the poles to form the first point set; Traverse the first point set and add each point to the convex hull in turn to form the second point set, obtain the minimum convex polyhedron, and perform the calculation of the minimum convex polyhedron geometry.
6. The three-dimensional simulation automatic modeling method as described in claim 5, characterized in that, The convex polyhedral geometry is divided into layers, and a threshold range for the layer division quality is set, including the threshold N for the number of convex polyhedra. c The average side length threshold N of the grid cell l And the smallest interior angle threshold N in the grid cell a ; Set the layer division level range and calculate the intermediate level of the search level range; The convex polyhedron is divided using an intermediate layer. The number of convex polyhedra, the average side length of the grid cells, and the smallest interior angle in the grid cells are determined to meet the threshold range of the layer division quality. Based on the judgment result, determine the new level search range. If the threshold requirement is met, adjust the search range to the left of the current level; otherwise, adjust the search range to the right of the current level. A partitioning quality evaluation model is constructed to evaluate the quality of the partitioning results of convex polyhedra. The partitioning quality evaluation model is expressed as follows: C∈N c ,L r ∈N l ,A m ∈N a Where C represents the number of convex polyhedra, L a L represents the average side length of a grid cell. r A represents the ratio of the maximum side length to the minimum side length of a grid cell. m S represents the smallest interior angle in a grid cell. r S represents the ratio of the area of a mesh cell to the area of a reference shape. ar This represents the ratio of the area of each grid cell to the area of its adjacent cells; Based on the results of the quality assessment, a new search scope is determined. If the quality of the division meets the requirements, the search scope is adjusted to the left of the current level; otherwise, the search scope is adjusted to the right of the current level. Repeat the layer division steps until the layer with the optimal quality assessment score is found, and the layer division result is obtained. The divided convex polyhedral geometries are combined to obtain a mesh generation model.
7. The three-dimensional simulation automatic modeling method as described in claim 6, characterized in that, The texture mapping includes, Obtain the target points with color information in the preliminary simulation model; Obtain the three-dimensional centroid coordinates of the target point, and project the three-dimensional centroid coordinates into a preset spatial coordinate system to obtain a point projection. A color texture dot map is generated based on the point projection.
8. A three-dimensional simulation automatic modeling system, characterized in that, include, The model building module is used to acquire environmental information near the work site, set simulation parameters, and build the initial model for 3D simulation. The first acquisition module is used to establish a reference action library based on the initial model of the three-dimensional simulation, perform mesh generation, acquire a mesh generation model, and perform preliminary simulation on the mesh generation model according to the initial model with preset calculation parameters to obtain a preliminary simulation model. The second acquisition module is used to perform texture mapping on the preliminary simulation model to obtain a three-dimensional simulation model.
9. An electronic device, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, which, when executed by the processor, implement the steps of the three-dimensional simulation automatic modeling method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the three-dimensional simulation automatic modeling method according to any one of claims 1 to 7.