Method and device for repairing gap topology error of automobile body model
By analyzing and automatically filling gaps, the problem of insufficient accuracy and stability in gap issues in automotive aerodynamics has been solved, realizing automated repair and efficient processing of gaps.
Patent Information
- Application Number
- CN202511348724.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-19
- Publication Date
- 2025-11-21
AI Technical Summary
In the existing technology, the gap problem of the car body model in the field of automotive aerodynamics relies on manual inspection, which is inefficient, subjective and prone to error. Data-driven methods lack specificity, accuracy and stability, and have poor versatility.
By analyzing the topology of the vehicle body model, closed paths that meet preset error conditions are identified, gaps are located based on the distance between boundary edges, and gaps are automatically filled. An algorithm is designed to achieve batch repair of gaps.
It improves the precision and stability of gap repair, reduces manual workload, increases work efficiency, and realizes automated repair of gap problems.
Smart Images

Figure CN120995597A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of model processing technology, and in particular to a method and apparatus for repairing gap topology errors in automobile body models. Background Technology
[0002] In the field of CFD (Computational Fluid Dynamics) simulation, preprocessing modeling is a key step in ensuring the accuracy and reliability of simulation results. Especially in automotive aerodynamics simulation, the geometric integrity and topological rationality of the vehicle body model have a decisive impact on the simulation results.
[0003] In related technologies, addressing gap issues in CFD preprocessing primarily relies on manual inspection and repair. This process typically involves importing a vehicle body model into specialized preprocessing software, where experienced engineers identify and repair gaps through visual inspection and manual adjustments. Alternatively, a data-driven approach can be used for CFD preprocessing modeling, with algorithms automatically analyzing and processing the model data to achieve more efficient and accurate gap identification and repair.
[0004] However, in related technologies, manual inspection and repair are inefficient, subjective, and prone to errors, while existing data-driven methods lack specificity. When dealing with gaps in upper body data in the field of automotive aerodynamics, they are not accurate or stable enough and have poor versatility, which urgently need to be improved. Summary of the Invention
[0005] This application provides a method and apparatus for repairing gap topology errors in automobile body models, in order to solve the problems in related technologies, such as low efficiency and high subjectivity of manual inspection and repair, which are prone to errors, while existing data-driven methods lack specificity, and have insufficient accuracy and stability and poor versatility when dealing with gap problems in the upper body data of automobile aerodynamics.
[0006] The first aspect of this application provides a method for repairing topological errors in gaps of a car body model, comprising the following steps: parsing the topology of the car body model to be repaired to obtain closed paths in the topology that satisfy preset coverage conditions; determining whether the topology satisfies preset error conditions based on the closed paths; if the topology satisfies the preset error conditions, locating the gaps in the car body model to be repaired based on the distance between boundary edges, and closing and filling the gaps from the car body model to be repaired to determine the repaired car body model.
[0007] Optionally, in one embodiment of this application, locating the gap in the vehicle body model to be repaired based on the distance between boundary edges includes: traversing all edges of the vehicle body model to be repaired to identify boundary edges shared by a face in the topology; calculating the distance between the midpoints of the boundary edges and determining whether the distance is less than a preset threshold; if the distance is less than the preset threshold, locating the gap in the vehicle body model to be repaired based on the distance between the boundary edges.
[0008] Optionally, in one embodiment of this application, the step of closing and filling the gap from the vehicle body model to be repaired includes: extracting multiple endpoints of the two boundary edges corresponding to the gap; combining the multiple endpoints into point pairs according to a preset geometric distance to generate endpoint pairs; connecting the endpoint pairs to generate at least one new boundary edge; transforming the gap into a hole region that satisfies a preset closure condition based on the at least one new boundary edge; and filling the hole region to repair the gap.
[0009] Optionally, in one embodiment of this application, determining the repaired car body model includes: performing a gap detection operation within a preset detection period, and determining whether there is a new gap in the car body model based on the detection operation; if the new gap exists in the car body model, then the car body model is determined to meet the preset error condition, and the new gap is closed and filled; if the new gap does not exist in the car body model, then the car body model to be repaired is determined to not meet the preset error condition, and the repaired car body model is output.
[0010] A second aspect of this application provides a device for repairing topological errors in the gaps of a car body model, comprising: a parsing module for parsing the topology of the car body model to be repaired to obtain closed paths in the topology that satisfy preset coverage conditions; a judging module for judging whether the topology satisfies preset error conditions based on the closed paths; and a repair module for locating the gaps in the car body model to be repaired based on the distance between boundary edges when the topology satisfies the preset error conditions, and closing and filling the gaps from the car body model to be repaired, thereby determining the repaired car body model.
[0011] Optionally, in one embodiment of this application, the repair module includes: a traversal unit, used to traverse all edges of the vehicle body model to be repaired, to identify boundary edges shared by a face in the topology; a calculation unit, used to calculate the distance between the midpoints of the boundary edges and determine whether the distance is less than a preset threshold; and a positioning unit, used to locate the gap of the vehicle body model to be repaired by using the distance between the boundary edges if the distance is less than the preset threshold.
[0012] Optionally, in one embodiment of this application, the repair module includes: an extraction unit for extracting multiple endpoints of the two boundary edges corresponding to the gap; a combination unit for combining the multiple endpoints into point pairs according to a preset geometric distance to generate endpoint pairs; a conversion unit for connecting the endpoint pairs to generate at least one new boundary edge, and converting the gap into a hole region that meets a preset closure condition based on the at least one new boundary edge; and a repair unit for filling the hole region to repair the gap.
[0013] Optionally, in one embodiment of this application, the repair module further includes: an execution unit, configured to perform a gap detection operation within a preset detection period, and determine whether a new gap exists in the vehicle body model based on the detection operation; a closing unit, configured to determine that the vehicle body model meets the preset error condition and close and fill the new gap if the new gap exists in the vehicle body model; and an output unit, configured to determine that the vehicle body model to be repaired does not meet the preset error condition if the new gap does not exist in the vehicle body model, and output the repaired vehicle body model.
[0014] A third aspect of this application provides a vehicle, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the gap topology error repair method for a car body model as described in the above embodiments.
[0015] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for repairing gap topology errors in a car body model.
[0016] This application's embodiments can classify and define the topology problems that need to be repaired, enabling the detection of gap topology problems, and then designing algorithms to repair them. This application can repair similar problems in batches and in a targeted manner, reducing manual workload and improving work efficiency. Therefore, it solves the problems in related technologies where manual inspection and repair are inefficient, subjective, and prone to errors, while existing data-driven methods lack specificity, accuracy, stability, and versatility when dealing with gap problems in upper body data in the field of automotive aerodynamics.
[0017] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0018] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart of a method for repairing gap topology errors in a car body model according to an embodiment of this application; Figure 2 This is a schematic diagram of an algorithm for repairing gaps according to an embodiment of this application; Figure 3 This is a schematic diagram of a gap problem according to an embodiment of this application; Figure 4 This is a schematic diagram of a gap repair algorithm according to an embodiment of this application; Figure 5 This is a schematic diagram of a gap topology error repair device for an automobile body model according to an embodiment of this application; Figure 6 This is a structural schematic diagram of a vehicle provided according to an embodiment of this application. Detailed Implementation
[0019] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0020] The following description, with reference to the accompanying drawings, outlines a method and apparatus for repairing gap topology errors in an automotive body model according to embodiments of this application. Addressing the issues raised in the background section regarding the inefficiency, subjectivity, and error-proneness of manual inspection and repair, and the lack of specificity in existing data-driven methods for handling gap problems in upper body data within the automotive aerodynamics field, this application provides a method for repairing gap topology errors in an automotive body model. This method categorizes and defines the topology problems requiring repair, enabling detection of these problems, and then designs algorithms to repair them. This application allows for batch and targeted repair of similar problems, reducing manual workload and improving efficiency. Therefore, it solves the problems of low efficiency, subjectivity, and error-proneness in manual inspection and repair, and the lack of specificity in existing data-driven methods for handling gap problems in upper body data within the automotive aerodynamics field, resulting in insufficient accuracy, stability, and poor versatility.
[0021] Specifically, Figure 1 This is a flowchart illustrating a method for repairing gap topology errors in an automobile body model, as provided in an embodiment of this application.
[0022] like Figure 1 As shown, the method for repairing gap topology errors in this car body model includes the following steps: In step S101, the topology of the vehicle body model to be repaired is parsed to obtain closed paths in the topology that meet the preset coverage conditions.
[0023] It is understood that the vehicle body model to be repaired in this application embodiment can be a vehicle body model with a topological structure error; the closed path that meets the preset coverage conditions can be a closed path that is not covered by any surface.
[0024] In actual implementation, this application embodiment can input a car body model with topological errors, parse the data, and detect closed paths that are not covered by any surfaces, thereby providing support for subsequent identification of gap problems.
[0025] It should be noted that the preset coverage conditions can be set by those skilled in the art according to the actual situation, and no specific restrictions are imposed here.
[0026] In step S102, the topology is determined to meet the preset error conditions based on the closed path.
[0027] It is understood that the preset error condition in the embodiments of this application can be a gap problem.
[0028] In this application embodiment, a detection algorithm can be applied to identify gap topology errors. By detecting closed paths that are not covered by any surface, gap problems can be identified, thereby providing support for subsequent repair of gap problems, thereby improving the efficiency of CFD preprocessing modeling and reducing labor costs.
[0029] It should be noted that the preset error conditions can be set by those skilled in the art according to the actual situation, and no specific restrictions are imposed here.
[0030] In step S103, if the topology meets the preset error conditions, the gap of the car body model to be repaired is located based on the distance between the boundary edges, and the gap is closed and filled from the car body model to be repaired, so as to determine the repaired car body model.
[0031] Specifically, this application embodiment can perform topology error repair when a topology error is detected: based on the detection results, the gaps in the vehicle body model to be repaired are located based on the distance between boundary edges, and the gaps are closed and filled from the vehicle body model to repair the gap problem, outputting a repaired vehicle body model, such as... Figure 2 As shown.
[0032] It should be noted that when performing pre-processing modeling of the upper body, there is a type of problem, namely gaps, as follows: Figure 3As shown, this is the part of the space in the model that should have been filled but was not. This is mainly due to errors that occurred during the modeling process. However, there are gaps on the surface of the car body, which will cause the simulation model to be unclosed and result in CFD calculation errors. Therefore, it needs to be repaired.
[0033] This application proposes a detection method for gap topology errors in CFD preprocessing modeling of automotive aerodynamics. The algorithm can locate the problematic structures that need to be repaired and automatically repair them. Based on the mathematical definition of gap topology, this application combines the actual engineering scenario of CFD preprocessing modeling of automotive aerodynamics, mathematically defines the topology existing in the vehicle body model, and designs corresponding algorithms to ensure that all problems are detected and repaired.
[0034] Optionally, in one embodiment of this application, locating the gap in the vehicle body model to be repaired based on the distance between boundary edges includes: traversing all edges of the vehicle body model to be repaired to identify boundary edges shared by a face in the topology; calculating the distance between the midpoints of the boundary edges and determining whether the distance is less than a preset threshold; if the distance is less than the preset threshold, locating the gap in the vehicle body model to be repaired based on the distance between the boundary edges.
[0035] It is understood that in the three-dimensional model based on polygonal mesh in this application embodiment, the gap can be defined as a linear or nonlinear gap between two geometric surfaces. This gap is usually defined by two adjacent but non-intersecting geometric surfaces. When the distance between two boundary edges is less than a preset threshold, the gap between the two boundary edges can be defined. Therefore, the gap can be identified and located by detecting the distance between the boundary edges.
[0036] In actual implementation, the embodiments of this application can first traverse all edges of the model and identify the boundary edges that are shared by only one face; then, calculate the distance between the midpoints of each boundary edge. If the distance between the two midpoints is less than a preset threshold, the distance between the boundary edges is used to locate the gap in the car body model to be repaired.
[0037] This application embodiment can define a boundary edge that is shared by only one face as a potential gap boundary, and combine it with the midpoint distance threshold to realize the automatic and accurate identification of gap problems, improve detection efficiency and computational feasibility, and enhance the reliability of CFD simulation preparation work.
[0038] Optionally, in one embodiment of this application, closing and filling the gap from the vehicle body model to be repaired includes: extracting multiple endpoints of the two boundary edges corresponding to the gap; combining the multiple endpoints into point pairs according to a preset geometric distance to generate endpoint pairs; connecting the endpoint pairs to generate at least one new boundary edge; converting the gap into a hole area that meets the preset closing conditions based on the at least one new boundary edge; and filling the hole area to repair the gap.
[0039] It is understood that the hole area that meets the preset sealing conditions in the embodiments of this application can be a closed hole area.
[0040] In actual implementation, the embodiments of this application can first extract the four endpoints of the two boundary edges of each group of gaps and recombine them into two pairs of closest points according to the distance; then, connect these pairs of points to form two new boundary edges, thereby transforming the gap into a closed hole area; finally, fill the area with a hole repair algorithm to achieve fully automatic repair of the gap.
[0041] The embodiments of this application can decompose the complex gap repair problem into computable geometric steps, construct a complete closed-loop logic of "detection → positioning → transformation → filling", and further improve the reliability and consistency of the CFD simulation preparation stage.
[0042] Optionally, in one embodiment of this application, determining the repaired vehicle body model includes: performing a gap detection operation within a preset detection cycle, and determining whether there are new gaps in the vehicle body model based on the detection operation; if there are new gaps in the vehicle body model, it is determined that the vehicle body model meets the preset error conditions, and the new gaps are closed and filled; if there are no new gaps in the vehicle body model, it is determined that the vehicle body model to be repaired does not meet the preset error conditions, and the repaired vehicle body model is output.
[0043] In this embodiment, gap detection can be performed within a preset detection cycle. Based on the detection operation, it can determine whether there are new gaps in the vehicle body model. If there are new gaps in the vehicle body model, it is determined that there are gap errors in the vehicle body model, and the new gaps are closed and filled. If there are no new gaps in the vehicle body model, it is determined that there are no gap errors in the vehicle body model to be repaired, and the repaired vehicle body model is output. Furthermore, the topological structure existing in the vehicle body model is mathematically defined and corresponding algorithm design is performed to ensure that all problems are detected and repaired.
[0044] It should be noted that the algorithmic repair effect for the gap problem is as follows: Figure 4 As shown, gaps exist in the model before the algorithm is run. The algorithm can identify and fill the gaps in the missing parts.
[0045] The following is the algorithm for fixing gap problems: S1: Import: First, import the model; S2: Detect: Traverse all edges and locate gaps using the detection algorithm; S3: Repair: Construct holes and fill them.
[0046] The method for repairing gap topology errors in automotive body models proposed in this application can classify and define the topology problems to be repaired, enabling the detection of gap topology problems. An algorithm can then be designed to repair these problems. This application can repair similar problems in batches and in a targeted manner, reducing manual workload and improving work efficiency. Therefore, it solves the problems in related technologies where manual inspection and repair are inefficient, subjective, and prone to errors, while existing data-driven methods lack specificity, accuracy, stability, and versatility when dealing with gap problems in upper body data in the field of automotive aerodynamics.
[0047] Next, referring to the accompanying drawings, a gap topology error repair device for an automobile body model according to an embodiment of this application is described.
[0048] Figure 5 This is a schematic diagram of the structure of the gap topology error repair device for an automobile body model according to an embodiment of this application.
[0049] like Figure 5 As shown, the gap topology error repair device 10 of the car body model includes: a parsing module 100, a judgment module 200 and a repair module 300.
[0050] Specifically, the parsing module 100 is used to parse the topology of the vehicle body model to be repaired in order to obtain closed paths in the topology that meet preset coverage conditions.
[0051] The judgment module 200 is used to determine whether the topology structure meets the preset error conditions based on the closed path.
[0052] Repair module 300 is used to locate the gaps in the car body model to be repaired based on the distance between the boundary edges when the topology meets the preset error conditions, and to close and fill the gaps from the car body model to be repaired, so as to determine the repaired car body model.
[0053] Optionally, in one embodiment of this application, the repair module 300 includes: a traversal unit, a calculation unit, and a positioning unit.
[0054] The traversal unit is used to traverse all edges of the vehicle body model to be repaired in order to identify the boundary edges shared by a face in the topology.
[0055] The calculation unit is used to calculate the distance between the midpoints of the boundary edges and determine whether the distance is less than a preset threshold.
[0056] The positioning unit uses a force to locate the gap in the car body model to be repaired by determining the distance between the boundary edges when the distance is less than a preset threshold.
[0057] Optionally, in one embodiment of this application, the repair module 300 includes: an extraction unit, a combination unit, a conversion unit, and a repair unit.
[0058] The extraction unit is used to extract multiple endpoints of the two boundary edges corresponding to the gap.
[0059] The combination unit is used to combine multiple endpoints into point pairs according to a preset geometric distance to generate endpoint pairs.
[0060] A transformation unit is used to connect endpoint pairs to generate at least one new boundary edge, and to transform the gap into a hole region that meets a preset closure condition based on at least one new boundary edge.
[0061] Repair unit, used to fill the hole area to repair the gap.
[0062] Optionally, in one embodiment of this application, the repair module 300 further includes an execution unit, a closing unit, and an output unit.
[0063] The execution unit is used to perform gap detection operations within a preset detection cycle and determine whether there are new gaps in the vehicle body model based on the detection operations.
[0064] The closing unit is used to determine if the body model meets the preset error conditions when a new gap exists, and to close and fill the new gap.
[0065] The output unit is used to determine that the car body model does not meet the preset error conditions if there are no new gaps in the car body model, and outputs the repaired car body model.
[0066] It should be noted that the explanation of the above-described embodiment of the method for repairing gap topology errors in a car body model also applies to the device for repairing gap topology errors in a car body model in this embodiment, and will not be repeated here.
[0067] The gap topology error repair device for automobile body models proposed in this application can classify and define the topology problems to be repaired, enabling the gap topology problems to be detected. Then, an algorithm can be designed to repair them. This application can repair similar problems in batches and in a targeted manner, reducing manual workload and improving work efficiency. Therefore, it solves the problems in related technologies where manual inspection and repair are inefficient, subjective, and prone to errors, while existing data-driven methods lack specificity, accuracy, stability, and versatility when dealing with gap problems in upper body data in the field of automotive aerodynamics.
[0068] Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of this application. The vehicle may include: The memory 601, the processor 602, and the computer program stored on the memory 601 and capable of running on the processor 602.
[0069] When the processor 602 executes the program, it implements the method for repairing gap topology errors in the automobile body model provided in the above embodiments.
[0070] Furthermore, the vehicle also includes: Communication interface 603 is used for communication between memory 601 and processor 602.
[0071] The memory 601 is used to store computer programs that can run on the processor 602.
[0072] The memory 601 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0073] If the memory 601, processor 602, and communication interface 603 are implemented independently, then the communication interface 603, memory 601, and processor 602 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0074] Optionally, in a specific implementation, if the memory 601, processor 602, and communication interface 603 are integrated on a single chip, then the memory 601, processor 602, and communication interface 603 can communicate with each other through an internal interface.
[0075] The processor 602 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0076] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for repairing gap topology errors in a car body model.
[0077] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0078] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0079] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0080] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0081] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0082] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0083] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0084] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A method for repairing topological errors in gaps of a car body model, characterized in that, Includes the following steps: The topology of the vehicle body model to be repaired is analyzed to obtain the closed paths in the topology that satisfy the preset coverage conditions. Determine whether the topology satisfies the preset error conditions based on the closed path; If the topology satisfies the preset error condition, the gap in the car body model to be repaired is located based on the distance between the boundary edges, and the gap is closed and filled from the car body model to be repaired to determine the repaired car body model.
2. The method according to claim 1, characterized in that, The method of locating the gaps in the car body model to be repaired based on the distance between boundary edges includes: Traverse all edges of the vehicle body model to be repaired to identify the boundary edges shared by a face in the topology; Calculate the distance between the midpoints of the boundary edges and determine whether the distance is less than a preset threshold; If the distance is less than the preset threshold, the distance between the boundary edges is used to locate the gap in the car body model to be repaired.
3. The method according to claim 1, characterized in that, The process of sealing and filling the gap from the vehicle body model to be repaired includes: Extract multiple endpoints of the two boundary edges corresponding to the gap; The multiple endpoints are combined into point pairs according to a preset geometric distance to generate endpoint pairs; Connect the endpoint pairs to generate at least one new boundary edge, and transform the gap into a hole region that satisfies a preset closure condition based on the at least one new boundary edge; Fill the hole area to repair the gap.
4. The method according to claim 1, characterized in that, The determination of the repaired car body model includes: The detection operation of the gap is performed within a preset detection cycle, and it is determined whether there is a new gap in the body model based on the detection operation; If the new gap exists in the vehicle body model, it is determined that the vehicle body model meets the preset error condition, and the new gap is closed and filled. If the new gap does not exist in the vehicle body model, it is determined that the vehicle body model to be repaired does not meet the preset error condition, and the repaired vehicle body model is output.
5. A device for repairing topological errors in the seams of a car body model, characterized in that, include: The parsing module is used to parse the topology of the vehicle body model to be repaired in order to obtain the closed paths in the topology that meet the preset coverage conditions. The judgment module is used to determine whether the topology structure meets the preset error conditions based on the closed path; The repair module is used to locate the gaps in the car body model to be repaired based on the distance between the boundary edges when the topology meets the preset error conditions, and to close and fill the gaps from the car body model to be repaired, so as to determine the repaired car body model when the preset error conditions are not met.
6. The apparatus according to claim 5, characterized in that, The repair module includes: A traversal unit is used to traverse all edges of the vehicle body model to be repaired in order to identify the boundary edges shared by a face in the topology. The calculation unit is used to calculate the distance between the midpoints of the boundary edges and determine whether the distance is less than a preset threshold. The positioning unit uses a force to locate the gap in the car body model to be repaired by measuring the distance between the boundary edges when the distance is less than the preset threshold.
7. The apparatus according to claim 5, characterized in that, The repair module includes: An extraction unit is used to extract multiple endpoints of the two boundary edges corresponding to the gap; A combination unit is used to combine the multiple endpoints into point pairs according to a preset geometric distance to generate endpoint pairs; A conversion unit is used to connect the endpoint pairs to generate at least one new boundary edge, and to convert the gap into a hole region that meets a preset closure condition based on the at least one new boundary edge. A repair unit is used to fill the hole area to repair the gap.
8. The apparatus according to claim 5, characterized in that, The repair module also includes: An execution unit is used to perform the detection operation of the gap within a preset detection cycle, and to determine whether there is a new gap in the body model based on the detection operation; A closing unit is used to determine that the vehicle body model meets the preset error condition when the new gap exists, and to close and fill the new gap. The output unit is used to determine that the car body model does not meet the preset error condition if the new gap does not exist in the car body model, and outputs the repaired car body model.
9. A vehicle, characterized in that, include: The memory, the processor, and the computer program stored in the memory and executable on the processor, the processor executing the program to implement the gap topology error repair method for an automobile body model as described in any one of claims 1-4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the gap topology error repair method for an automobile body model as described in any one of claims 1-4.