A boundary processing method, device, equipment and storage medium based on a watertight grid generation framework
By creating and processing virtual boundary lines in the watertight grid generation framework, the boundary disorder problem during data exchange between CAD software is solved, and the boundary processing efficiency and grid generation accuracy are improved.
Patent Information
- Application Number
- CN202510578760.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-05-07
AI Technical Summary
When data exchange between different CAD software, geometric boundaries are prone to be confused, resulting in grid generation errors. The existing technology repairing boundaries through CAD software will change the original geometric definition, which is inefficient.
Use the watertight grid generation framework to create virtual boundary endpoints and initial virtual boundary lines, sort and establish association relationships, judge distance conditions, use endpoint replacement or boundary line connection processing, and merge or replace lines to generate target virtual boundary lines.
Improves the efficiency of handling boundary problems when data exchange between different CAD software, ensuring the accuracy of grid generation and the integrity of original geometric definitions.
Smart Images

Figure CN120086918B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer graphics, and particularly relates to a boundary processing method, device, equipment and storage medium based on a watertight mesh generation framework. Background Art
[0002] Currently, when exchanging data between different CAD software, due to different definitions of data formats and geometric representations in each software, geometric boundary disorders may occur. Moreover, during the process of creating, editing, and operating on a geometric model multiple times, there will be some precision problems such as numerical rounding errors and calculation errors. As the number of operations increases, these errors will accumulate continuously, which may gradually cause the geometric boundary to deviate from the correct state, ultimately leading to a series of problems such as boundary disorders and discontinuities. In addition, during the process of mesh generation, boundary information is required, but due to the existence of the above boundary problems, it will lead to incorrect acquisition of mesh generation information from the boundary, ultimately resulting in incorrect mesh generation or even mesh generation failure. Currently, the method adopted to solve the above boundary problems is to perform boundary repair through CAD software, but the above method will change the original geometric definition of the graph.
[0003] As can be seen from the above, how to improve the efficiency of solving boundary problems during the boundary processing based on the watertight mesh generation framework is an urgent problem to be solved currently. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a boundary processing method, device, equipment and storage medium based on a watertight mesh generation framework, which can improve the efficiency of solving boundary problems that occur when exchanging data between different CAD software during the boundary processing based on the watertight mesh generation framework. The specific solutions are as follows:
[0005] In the first aspect, the present application provides a boundary processing method based on a watertight mesh generation framework, including:
[0006] Using the watertight mesh generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and initial virtual boundary lines in a preset virtual geometry layer, then sorting each of the initial virtual boundary lines, and establishing association relationships for each of the sorted initial virtual boundary lines to obtain an association establishment result;
[0007] Judging whether the association establishment result meets a preset distance condition. If it meets, using a preset endpoint replacement method to process each of the initial virtual boundary lines corresponding to the association establishment result to obtain corresponding virtual boundary lines to be processed. If it does not meet, determining the corresponding virtual boundary lines to be processed based on the virtual boundary line endpoints corresponding to adjacent initial virtual boundary lines;
[0008] Processing the to-be-processed virtual boundary line based on the processing method corresponding to the to-be-processed virtual boundary line to obtain a target virtual boundary line, so as to replace the to-be-processed boundary line with the corresponding target virtual boundary line; the processing method includes a merging method and a replacement line method.
[0009] Optionally, the generating, by using the watertight grid generation framework, virtual boundary line endpoints and an initial virtual boundary line corresponding to a to-be-processed boundary line in a preset virtual geometry layer includes:
[0010] Determining discrete geometric data based on the to-be-processed boundary line, and using the watertight grid generation framework to create, in the preset virtual geometry layer, virtual boundary line endpoints and an initial virtual boundary line corresponding to the to-be-processed boundary line by using the discrete geometric data, and establishing a first mapping relationship between the virtual boundary line endpoints and the corresponding endpoints of the to-be-processed boundary line and a second mapping relationship between the initial virtual boundary line and the to-be-processed boundary line;
[0011] Or, generating, by using the watertight grid generation framework, an initial virtual boundary line and virtual boundary line endpoints corresponding to the initial virtual boundary line in a preset virtual geometry layer based on preset virtual boundary line establishment parameters.
[0012] Optionally, the judging whether the association establishment result meets a preset distance condition, and if so, processing the initial virtual boundary line corresponding to each association establishment result by using a preset endpoint replacement method to obtain a corresponding to-be-processed virtual boundary line, and if not, determining a corresponding to-be-processed virtual boundary line based on the virtual boundary line endpoints corresponding to adjacent initial virtual boundary lines includes:
[0013] Judging whether the boundary line distance between the initial virtual boundary lines in the association establishment result is less than a preset distance error;
[0014] If the boundary line distance between the initial virtual boundary lines in the association establishment result is less than the preset distance error, performing an endpoint replacement operation on each initial virtual boundary line in each association establishment result in the preset virtual geometry layer to obtain a virtual boundary line after endpoint replacement, and using the watertight grid generation framework to perform an endpoint hiding process on the virtual boundary line after endpoint replacement to obtain a corresponding first to-be-processed virtual boundary line;
[0015] If the boundary line distance between each of the initial virtual boundary lines in the association establishment result is not less than the preset distance error, then a boundary line is added to connect between the virtual boundary line endpoints corresponding to every two of the initial virtual boundary lines, and the virtual boundary line after boundary line addition is obtained. Then, the endpoint hiding process is performed on the virtual boundary line after boundary line addition by using the watertight mesh generation framework to obtain the corresponding second virtual boundary line to be processed; the second virtual boundary line to be processed is a boundary line with zero-order continuity.
[0016] Optionally, the virtual boundary line to be processed is processed according to the corresponding processing method of the virtual boundary line to be processed to obtain a target virtual boundary line, so as to replace the virtual boundary line to be processed with the corresponding target virtual boundary line; the processing method includes a merging method and a replacement line method, including:
[0017] Determine the corresponding processing method of the virtual boundary line to be processed. If the corresponding processing method of the virtual boundary line to be processed is the merging method, then all the initial virtual boundary lines in each of the association establishment results are merged to obtain a target virtual boundary line;
[0018] If the corresponding processing method of the virtual boundary line to be processed is the replacement line method, then obtain the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction of the second virtual boundary line endpoint from all the initial virtual boundary lines in each of the establishment results;
[0019] Use the watertight mesh generation framework to establish a target virtual boundary line based on the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint.
[0020] Optionally, the step of using the watertight mesh generation framework to establish a target virtual boundary line based on the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint includes:
[0021] Use the watertight mesh generation framework to process in the preset virtual geometry layer based on the first virtual boundary line endpoint, the endpoint tangent direction corresponding to the first virtual boundary line endpoint, the second virtual boundary line endpoint, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint to obtain a virtual boundary line to be merged;
[0022] Merge the to-be-merged virtual boundary line and the initial virtual boundary line to obtain a to-be-associated virtual boundary line, and perform a bottom-layer association operation on the initial virtual boundary line and the to-be-associated virtual boundary line to obtain a target virtual boundary line.
[0023] Optionally, after merging the to-be-merged virtual boundary line and the initial virtual boundary line to obtain a to-be-associated virtual boundary line, and performing a bottom-layer association operation on the initial virtual boundary line and the to-be-associated virtual boundary line to obtain a target virtual boundary line, the method further includes:
[0024] Determine the first ordered discrete points corresponding to the initial virtual boundary line and the second ordered discrete points corresponding to the to-be-associated virtual boundary line, and set the normal direction corresponding to the direction perpendicular to the tangent of the first ordered discrete points based on the first ordered discrete points as the projection direction;
[0025] Use the projection direction and project from the first ordered discrete points to the corresponding second ordered discrete points based on the first ordered discrete points to obtain corresponding third ordered discrete points, and set each of the third ordered discrete points as the third ordered discrete points corresponding to the target virtual boundary line;
[0026] Determine the discrete geometric data representation corresponding to the target virtual boundary line based on the third ordered discrete points, and send the discrete geometric data representation to the user interface for viewing.
[0027] Optionally, after determining the discrete geometric data representation corresponding to the target virtual boundary line based on the third ordered discrete points and sending the discrete geometric data representation to the user interface for viewing, the method further includes:
[0028] Judge whether the shape of the first boundary line corresponding to the discrete geometric data representation and the shape of the second boundary line corresponding to the initial virtual boundary line meet the preset shape condition. If the shape of the first boundary line corresponding to the discrete geometric data representation and the shape of the second boundary line corresponding to the initial virtual boundary line do not meet the preset shape condition, then use the preset operation rules to adjust the target virtual boundary line until the adjusted virtual boundary line obtained meets the preset requirement condition;
[0029] Wherein, the preset operation rules include inserting control points, adjusting control points or adjusting endpoint vectors in the target virtual boundary line.
[0030] In a second aspect, the present application provides a boundary processing device based on a watertight mesh generation framework, including:
[0031] An association establishment result determination module, configured to use the watertight grid generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and initial virtual boundary lines in a preset virtual geometry layer, then sort each of the initial virtual boundary lines, and establish association relationships for each of the sorted initial virtual boundary lines to obtain an association establishment result;
[0032] An association establishment result judgment module, configured to judge whether the association establishment result meets a preset distance condition. If it meets, use a preset endpoint replacement method to process each of the initial virtual boundary lines corresponding to the association establishment result to obtain corresponding virtual boundary lines to be processed. If it does not meet, determine the corresponding virtual boundary lines to be processed based on the virtual boundary line endpoints corresponding to adjacent initial virtual boundary lines;
[0033] A boundary line replacement module, configured to process the virtual boundary lines to be processed based on the processing methods corresponding to the virtual boundary lines to be processed to obtain target virtual boundary lines, so as to replace the boundary lines to be processed with the corresponding target virtual boundary lines; the processing methods include a merging method and a replacement line method.
[0034] In a third aspect, the present application provides an electronic device, including:
[0035] A memory, configured to store a computer program;
[0036] A processor, configured to execute the computer program to implement the foregoing boundary processing method based on a watertight grid generation framework.
[0037] In a fourth aspect, the present application provides a computer-readable storage medium, configured to store a computer program, wherein the computer program, when executed by a processor, implements the foregoing boundary processing method based on a watertight grid generation framework.
[0038] As can be seen from the above, before performing boundary processing based on the watertight mesh generation framework in this application, it is necessary to use the watertight mesh generation framework to create virtual boundary line endpoints and initial virtual boundary lines corresponding to the boundary lines to be processed in a preset virtual geometry layer, then sort each of the initial virtual boundary lines, and establish association relationships for each of the sorted initial virtual boundary lines to obtain an association establishment result; determine whether the association establishment result meets a preset distance condition, if it meets, use a preset endpoint replacement method to process each of the initial virtual boundary lines corresponding to the association establishment result to obtain corresponding virtual boundary lines to be processed, if it does not meet, determine the corresponding virtual boundary lines to be processed based on the virtual boundary line endpoints corresponding to adjacent initial virtual boundary lines; process the virtual boundary lines to be processed based on the processing methods corresponding to the virtual boundary lines to be processed to obtain target virtual boundary lines, so as to replace the boundary lines to be processed with the corresponding target virtual boundary lines; the processing methods include a merging method and a replacement line method.
[0039] As can be seen, this application first needs to use the watertight mesh generation framework to create virtual boundary line endpoints and initial virtual boundary lines corresponding to the boundary lines to be processed in a preset virtual geometry layer, then sort each of the initial virtual boundary lines, and establish association relationships for each of the sorted virtual boundary lines to be processed to obtain an association establishment result; subsequently, determine whether the association establishment result meets a preset distance condition, if it meets, use a preset endpoint replacement method to process each of the initial virtual boundary lines corresponding to the association establishment result to obtain corresponding virtual boundary lines to be processed, if it does not meet, determine the corresponding virtual boundary lines to be processed based on the virtual boundary line endpoints corresponding to adjacent virtual boundary lines to be sorted; finally, process the virtual boundary lines to be processed based on the processing methods corresponding to the virtual boundary lines to be processed to obtain target virtual boundary lines, so as to replace the boundary lines to be processed with the corresponding target virtual boundary lines; the processing methods include a merging method and a replacement line method, thus improving the efficiency of solving boundary problems that occur when exchanging data between different CAD software, and further enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0041] Figure 1 It is a flowchart of a boundary processing method based on a watertight mesh generation framework disclosed in this application;
[0042] Figure 2 It is a schematic diagram of a picture corresponding to a boundary problem; among them, Figure 2 a is a schematic diagram of a self-intersection problem, Figure 2 b is a schematic diagram of a boundary surface appearance problem, Figure 2 c is a schematic diagram of boundary disorder and discontinuity problems;
[0043] Figure 3 It is a schematic diagram of the effect of processing the boundary by merging when the virtual boundary line to be processed meets the specified error disclosed in the present application;
[0044] Figure 4 It is a schematic diagram of the effect of processing the boundary by merging when the virtual boundary line to be processed does not meet the specified error disclosed in the present application;
[0045] Figure 5 It is a schematic diagram of the effect of processing the boundary by replacing the line when the virtual boundary line to be processed meets the specified error disclosed in the present application;
[0046] Figure 6 It is a schematic diagram of the process for determining the boundary line based on discrete geometric data disclosed in the present application;
[0047] Figure 7 It is a schematic diagram of the structure of a boundary processing device based on a watertight grid generation framework disclosed in the present application;
[0048] Figure 8 It is a structural diagram of an electronic device disclosed in the present application. Detailed implementation manners
[0049] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0050] When exchanging data between different CAD software, due to the different definitions of data formats and geometric representations in each software, geometric boundary disorders may occur. Moreover, during the creation, editing, and multiple operations of a geometric model, there will be some precision problems such as numerical rounding errors and calculation errors. As the number of operations increases, these errors will accumulate continuously, which may gradually cause the geometric boundary to deviate from the correct state, ultimately leading to a series of problems such as boundary disorders and discontinuities. In addition, during the mesh generation process, boundary information needs to be used. However, due to the existence of the above-mentioned boundary problems, it will lead to incorrect acquisition of mesh generation information from the boundary, ultimately resulting in mesh generation errors or even mesh generation failures. Currently, the method adopted to solve the above-mentioned boundary problems is to perform boundary repair through CAD software, but the above method will change the original geometric definition of the graph. Therefore, this application provides a boundary processing method based on a watertight mesh generation framework, which can improve the efficiency of solving boundary problems that occur when exchanging data between different CAD software.
[0051] See Figure 1 As shown, an embodiment of the present invention discloses a boundary processing method based on a watertight mesh generation framework, including:
[0052] Step S11: Use the watertight mesh generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and initial virtual boundary lines in a preset virtual geometry layer, then sort each of the initial virtual boundary lines, and establish association relationships for each of the sorted initial virtual boundary lines to obtain an association establishment result.
[0053] In this embodiment, after three-dimensional modeling of the aircraft, the embodiments of this application need to perform data exchange operations of three-dimensional modeling between different CAD (Computer-Aided Design) software. However, due to the different definitions of data formats and geometric representations in each software, geometric boundary disorder problems will occur. Moreover, during the creation, editing, and multiple operations of the model corresponding to the aircraft, there will be some precision problems such as numerical rounding errors and calculation errors. As the number of operations increases, these errors will accumulate continuously, which may gradually cause the geometric boundary to deviate from the correct state, ultimately leading to a series of problems such as boundary disorders and discontinuities. And the schematic diagram of the picture corresponding to the above boundary problems is as Figure 2 shown: corresponding from left to right Figure 2 a, Figure 2 b, and Figure 2 c are schematic diagrams corresponding to the self-intersection problem, the boundary surface problem, and the boundary disorder and discontinuity problem, respectively.
[0054] It is worth mentioning that before performing boundary processing on the modeling results of the aircraft, the embodiments of the present application need to obtain the boundary lines to be processed corresponding to the modeling results of the aircraft. Among them, the number of boundary lines to be processed can be one or multiple lines, and each boundary line to be processed corresponds to a processing method, such as a merging method and a replacement line method. Subsequently, the embodiments of the present application need to create discrete geometric data corresponding to the boundary lines to be processed, virtual geometric boundary line endpoint objects and virtual geometric boundary line objects created in the virtual geometry layer based on the watertightness framework, and establish mapping relationships between the virtual geometric boundary line endpoints, virtual geometric boundary lines and the original geometric boundary line endpoints and boundary lines respectively. Specifically, using the watertight grid generation framework to create virtual boundary line endpoints and initial virtual boundary lines corresponding to the boundary lines to be processed in a preset virtual geometry layer may include: determining discrete geometric data based on the boundary lines to be processed, and using the watertight grid generation framework to create virtual boundary line endpoints and initial virtual boundary lines corresponding to the boundary lines to be processed in the preset virtual geometry layer using the discrete geometric data, and establishing a first mapping relationship between the virtual boundary line endpoints and the corresponding endpoints of the boundary lines to be processed and a second mapping relationship between the initial virtual boundary lines and the boundary lines to be processed; or, using the watertight grid generation framework to establish initial virtual boundary lines and virtual boundary line endpoints corresponding to the initial virtual boundary lines based on the parameters of the preset virtual boundary lines in the preset virtual geometry layer.
[0055] Further, after using the watertight grid generation framework to create virtual boundary line endpoints and initial virtual boundary lines corresponding to the boundary lines to be processed in the preset virtual geometry layer, the embodiments of the present application need to sort each initial virtual boundary line and establish an association relationship for each sorted initial virtual boundary line to obtain an association establishment result.
[0056] Step S12: Determine whether the association establishment result meets the preset distance condition. If it meets, use the preset endpoint replacement method to process each initial virtual boundary line corresponding to the association establishment result to obtain the corresponding virtual boundary line to be processed. If it does not meet, determine the corresponding virtual boundary line to be processed based on the virtual boundary line endpoints corresponding to the adjacent initial virtual boundary lines.
[0057] In this embodiment, it is necessary to establish the connection relationship between the initial virtual boundary lines in the modeling result of the aircraft based on the association establishment result. In a specific implementation manner, if the connection distance between adjacent initial virtual boundary lines in the modeling result of the aircraft is less than the preset error distance, the embodiments of the present application can associate the virtual geometric boundary lines with each other in the virtual geometry layer by using the virtual boundary line endpoint replacement method. If the connection distance between adjacent initial virtual boundary lines is greater than the preset error distance, a line is added in the middle of the endpoints of the two virtual geometric boundary lines for connection, and the obtained connection result satisfies C0 continuity (i.e., position continuity). It is worth mentioning that there are two types of virtual geometric boundary lines. One type is to associate with the underlying geometric boundary line, and the discrete geometric data is the data obtained from the underlying geometric boundary line, while the other is to directly obtain values through parameters and directly establish a new geometric boundary line based on the obtained values.
[0058] Specifically, it is judged whether the association establishment result meets the preset distance condition. If it meets, the initial virtual boundary lines corresponding to each association establishment result are processed by using the preset endpoint replacement method to obtain the corresponding virtual boundary lines to be processed. If it does not meet, the virtual boundary lines to be processed are determined based on the virtual boundary line endpoints corresponding to the adjacent initial virtual boundary lines, which may include: judging whether the boundary line distance between the initial virtual boundary lines in the association establishment result is less than the preset distance error; if the boundary line distance between the initial virtual boundary lines in the association establishment result is less than the preset distance error, in the preset virtual geometry layer, the endpoint replacement operation is respectively performed on each initial virtual boundary line in each association establishment result by using the preset endpoint replacement method to obtain the virtual boundary lines after endpoint replacement, and the endpoint hiding process is performed on the virtual boundary lines after endpoint replacement by using the watertight mesh generation framework to obtain the corresponding first virtual boundary lines to be processed; if the boundary line distance between the initial virtual boundary lines in the association establishment result is not less than the preset distance error, a boundary line is added for connection between the virtual boundary line endpoints respectively corresponding to every two initial virtual boundary lines to obtain the virtual boundary lines after the boundary line addition, and the endpoint hiding process is performed on the virtual boundary lines after the boundary line addition by using the watertight mesh generation framework to obtain the corresponding second virtual boundary lines to be processed; the second virtual boundary lines to be processed are boundary lines with zero-order continuity.
[0059] Step S13: Process the virtual boundary lines to be processed based on the processing method corresponding to the virtual boundary lines to be processed to obtain the target virtual boundary lines, so as to replace the virtual boundary lines to be processed with the corresponding target virtual boundary lines; the processing method includes the merging method and the replacement line method.
[0060] In this embodiment, it is necessary to process the virtual boundary line to be processed based on the processing method corresponding to the virtual boundary line to be processed in the modeling result of the aircraft. Specifically, the virtual boundary line to be processed is processed based on the corresponding processing method to obtain the target virtual boundary line, so as to replace the virtual boundary line to be processed with the corresponding target virtual boundary line; the processing methods include the merging method and the replacement line method, and may include: determining the processing method corresponding to the virtual boundary line to be processed. If the processing method corresponding to the virtual boundary line to be processed is the merging method, all the initial virtual boundary lines in each associated establishment result are merged to obtain the target virtual boundary line. It is worth mentioning that in a specific implementation manner, if the processing method corresponding to the virtual boundary line to be processed is the merging method, all the associated virtual geometric boundary lines are merged into a new virtual geometric boundary line, and all the sampling points of the new virtual boundary line are taken from the underlying virtual geometric line, and Figure 3 is a schematic diagram of the effect of processing the boundary by the merging method when the virtual boundary line to be processed meets the specified error. Among them, group A lines are a group of boundary lines in the virtual boundary line to be processed corresponding to the modeling result of the aircraft, and group B lines are a group of virtual geometric boundary lines corresponding to the modeling result of the aircraft and with the endpoints merged after sorting, and line C is the newly generated virtual geometric boundary line corresponding to the modeling result of the aircraft. Further, Figure 4 is a schematic diagram of the effect of processing the boundary by the merging method when the virtual boundary line to be processed does not meet the specified error. Among them, group A lines are a group of boundary lines in the virtual boundary line to be processed, and group B lines are a group of virtual geometric boundary lines with a virtual geometric boundary line added in the middle of two virtual geometric boundary lines after sorting, and line C is the newly generated virtual geometric boundary line.
[0061] It is worth mentioning that when the processing method corresponding to the virtual boundary line to be processed is the replacement line method, the embodiments of the present application need to obtain all associated virtual geometric boundary lines, and obtain the endpoints of the first line and the tangent direction of the endpoints of the first line, the endpoints of the last line and the tangent direction of the endpoints of the last line. Subsequently, the embodiments of the present application need to use the watertightness framework to create an initial replacement boundary line in the virtual geometry layer according to the endpoints of the first line and the tangent direction of the endpoints of the first line, the endpoints of the last line and the tangent direction of the endpoints of the last line. Specifically, the virtual boundary line to be processed is processed based on the processing method corresponding to the virtual boundary line to be processed to obtain the target virtual boundary line, so as to replace the virtual boundary line to be processed with the corresponding target virtual boundary line; the processing methods include the merging method and the replacement line method, and may include: if the processing method corresponding to the virtual boundary line to be processed is the replacement line method, then obtain the first virtual boundary line endpoint of the first initial virtual boundary line, the tangent direction of the endpoints of the first virtual boundary line, the second virtual boundary line endpoint of the last initial virtual boundary line, and the tangent direction of the endpoints of the second virtual boundary line from all the initial virtual boundary lines in each establishment result; use the watertight grid generation framework and establish the target virtual boundary line based on the first virtual boundary line endpoint of the first initial virtual boundary line, the tangent direction of the endpoints of the first virtual boundary line, the second virtual boundary line endpoint of the last initial virtual boundary line, and the tangent direction of the endpoints corresponding to the second virtual boundary line endpoint.
[0062] Among them, Figure 5 FIG. 147 is a schematic diagram of the effect of processing the boundary by the replacement line method when the virtual boundary line to be processed meets the specified error. Among them, the A group of lines is a group of boundary lines in the virtual boundary line to be processed, and the first line has a folding situation. The B group of lines is a group of virtual geometric boundary lines that are sorted and then merged at the endpoints. The C line is the newly generated virtual geometric boundary line.
[0063] In this embodiment, after obtaining the virtual geometric boundary line corresponding to the modeling result of the aircraft, the embodiment of the present application can extract a specific number of points from the generated virtual geometric boundary line, project the obtained points in the normal direction at the tangent position onto the underlying geometric object, and then use the obtained ordered discrete points as the discrete geometric data representation for replacing the boundary line. Specifically, using a watertight mesh generation framework and based on the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint to establish the target virtual boundary line may include: using the watertight mesh generation framework to process in a preset virtual geometric layer and based on the first virtual boundary line endpoint, the endpoint tangent direction corresponding to the first virtual boundary line endpoint, the second virtual boundary line endpoint, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint to obtain the virtual boundary line to be merged; merging the virtual boundary line to be merged and the initial virtual boundary line to obtain the virtual boundary line to be associated, and performing an underlying association operation on the initial virtual boundary line and the virtual boundary line to be associated to obtain the target virtual boundary line.
[0064] In a specific implementation manner, the embodiment of the present application can connect the ordered discrete points in an orderly manner according to straight line segments and display the obtained connection result on the interface for the user to view. Specifically, after merging the virtual boundary line to be merged and the initial virtual boundary line to obtain the virtual boundary line to be associated, and performing an underlying association operation on the initial virtual boundary line and the virtual boundary line to be associated to obtain the target virtual boundary line, it may further include: determining the first ordered discrete points corresponding to the initial virtual boundary line and the second ordered discrete points corresponding to the virtual boundary line to be associated, and setting the normal direction corresponding to the direction perpendicular to the tangent of the first ordered discrete points based on the first ordered discrete points as the projection direction; using the projection direction and projecting from the first ordered discrete points to the corresponding second ordered discrete points to obtain the corresponding third ordered discrete points, and setting each of the third ordered discrete points as the third ordered discrete points corresponding to the target virtual boundary line; determining the discrete geometric data representation corresponding to the target virtual boundary line based on the third ordered discrete points, so as to send the discrete geometric data representation to the user interface for viewing.
[0065] Among them, Figure 6 is Figure 5 the schematic flow chart of determining the boundary line of the C line based on the discrete geometric data obtained from the B group of lines to solve the problem of folding when taking points at the folding boundary.
[0066] Further, after obtaining the boundary line corresponding to the modeling result of the aircraft based on the discrete geometric data, the embodiments of the present application need to determine whether the shape of the boundary line meets the usage requirements. If not, control points can be inserted at any position, the control points can be adjusted, and the endpoint vectors can be adjusted to modify and replace the shape expressed by the boundary line until the shape meets the user's requirements. Specifically, after determining the discrete geometric data expression corresponding to the target virtual boundary line based on the third-order discrete points and sending the discrete geometric data expression to the user interface for viewing, it may further include: determining whether the shape of the first boundary line corresponding to the discrete geometric data expression and the shape of the second boundary line corresponding to the initial virtual boundary line meet the preset shape conditions. If the shape of the first boundary line corresponding to the discrete geometric data expression and the shape of the second boundary line corresponding to the initial virtual boundary line do not meet the preset shape conditions, the target virtual boundary line is adjusted using the preset operation rules until the adjusted virtual boundary line meets the preset requirement conditions; where the preset operation rules include inserting control points, adjusting control points, or adjusting endpoint vectors in the target virtual boundary line.
[0067] It can be seen that the present application first needs to use the watertight mesh generation framework to create the virtual boundary line endpoints and the initial virtual boundary line corresponding to the boundary line to be processed in the preset virtual geometry layer, then sort each initial virtual boundary line, and establish the association relationship for each sorted virtual boundary line to be processed to obtain the association establishment result; subsequently, determine whether the association establishment result meets the preset distance condition. If it meets, the initial virtual boundary line corresponding to each association establishment result is processed using the preset endpoint replacement method to obtain the corresponding virtual boundary line to be processed. If it does not meet, the virtual boundary line to be processed is determined based on the virtual boundary line endpoints corresponding to the adjacent virtual boundary lines to be sorted; finally, the virtual boundary line to be processed is processed based on the processing method corresponding to the virtual boundary line to be processed to obtain the target virtual boundary line, so as to replace the boundary line to be processed with the corresponding target virtual boundary line; the processing methods include the merging method and the replacement line method. In this way, a new virtual smooth boundary is created to replace the original boundary to meet the mesh generation requirements. Among them, the newly created boundary line can be discretely projected on the underlying geometric line by creating multiple segments of curves, and the user can interactively add control endpoints and change the end vectors to achieve shape changes, improving the efficiency of solving the boundary problem that occurs when exchanging data between different CAD software.
[0068] Correspondingly, as shown in Figure 7 the present application further provides a boundary processing device based on a watertight mesh generation framework, including:
[0069] The association establishment result determination module 11 is configured to use the watertight grid generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and initial virtual boundary lines in a preset virtual geometry layer, then sort each of the initial virtual boundary lines, and establish association relationships for each of the sorted initial virtual boundary lines to obtain an association establishment result;
[0070] The association establishment result judgment module 12 is configured to judge whether the association establishment result meets a preset distance condition. If it meets, use a preset endpoint replacement method to process the initial virtual boundary lines corresponding to each of the association establishment results to obtain corresponding virtual boundary lines to be processed. If it does not meet, determine the corresponding virtual boundary lines to be processed based on the virtual boundary line endpoints corresponding to adjacent initial virtual boundary lines;
[0071] The boundary line replacement module 13 is configured to process the virtual boundary lines to be processed based on the processing methods corresponding to the virtual boundary lines to be processed to obtain target virtual boundary lines, so as to replace the boundary lines to be processed with the corresponding target virtual boundary lines; the processing methods include a merging method and a replacement line method.
[0072] As can be seen from the above, before performing boundary processing based on the watertight grid generation framework in the embodiments of the present application, it is first necessary to use the watertight grid generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and initial virtual boundary lines in a preset virtual geometry layer, then sort each of the initial virtual boundary lines, and establish association relationships for each of the sorted virtual boundary lines to be processed to obtain an association establishment result; subsequently, judge whether the association establishment result meets a preset distance condition. If it meets, use a preset endpoint replacement method to process the initial virtual boundary lines corresponding to each of the association establishment results to obtain corresponding virtual boundary lines to be processed. If it does not meet, determine the corresponding virtual boundary lines to be processed based on the virtual boundary line endpoints corresponding to adjacent virtual boundary lines to be sorted; finally, process the virtual boundary lines to be processed based on the processing methods corresponding to the virtual boundary lines to be processed to obtain target virtual boundary lines, so as to replace the boundary lines to be processed with the corresponding target virtual boundary lines; the processing methods include a merging method and a replacement line method. In this way, the efficiency of solving boundary problems that occur during data exchange between different CAD software is improved.
[0073] In some specific embodiments, the association establishment result determination module 11 may specifically include:
[0074] A discrete geometric data determination unit, configured to determine discrete geometric data based on a boundary line to be processed, and use the watertight grid generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and an initial virtual boundary line in the preset virtual geometric layer by using the discrete geometric data, and establish a first mapping relationship between the virtual boundary line endpoints and the endpoints corresponding to the boundary line to be processed and a second mapping relationship between the initial virtual boundary line and the boundary line to be processed;
[0075] A boundary line endpoint determination unit, configured to establish an initial virtual boundary line and virtual boundary line endpoints corresponding to the initial virtual boundary line in a preset virtual geometric layer based on preset virtual boundary line establishment parameters by using the watertight grid generation framework.
[0076] In some specific embodiments, the association establishment result judgment module 12 may specifically include:
[0077] A boundary line distance judgment unit, configured to judge whether the boundary line distance between the initial virtual boundary lines in the association establishment result is less than a preset distance error;
[0078] A first virtual boundary line processing unit, configured to, if the boundary line distance between the initial virtual boundary lines in the association establishment result is less than the preset distance error, perform an endpoint replacement operation on each of the initial virtual boundary lines in the association establishment result by using a preset endpoint replacement method in the preset virtual geometric layer to obtain a virtual boundary line after endpoint replacement, and perform an endpoint hiding process on the virtual boundary line after endpoint replacement by using the watertight grid generation framework to obtain a corresponding first virtual boundary line to be processed;
[0079] A second virtual boundary line processing unit, configured to, if the boundary line distance between the initial virtual boundary lines in the association establishment result is not less than the preset distance error, add a boundary line to connect between the virtual boundary line endpoints corresponding to each two of the initial virtual boundary lines to obtain a virtual boundary line after boundary line addition, and perform an endpoint hiding process on the virtual boundary line after boundary line addition by using the watertight grid generation framework to obtain a corresponding second virtual boundary line to be processed; the second virtual boundary line to be processed is a zero-order continuous boundary line.
[0080] In some specific embodiments, the boundary line replacement module 13 may specifically include:
[0081] A boundary line merging unit, configured to determine a processing method corresponding to the virtual boundary line to be processed, and if the processing method corresponding to the virtual boundary line to be processed is a merging method, merge all the initial virtual boundary lines in the association establishment result to obtain a target virtual boundary line;
[0082] An endpoint tangent direction determination unit, configured to, if the processing method corresponding to the virtual boundary line to be processed is the replacement line method, obtain the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction of the second virtual boundary line endpoint from all the initial virtual boundary lines in each establishment result;
[0083] A first virtual boundary line establishment unit, configured to use the watertight grid generation framework and establish a target virtual boundary line based on the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint.
[0084] In some specific embodiments, the boundary line replacement module 13 may specifically include:
[0085] A virtual boundary line to be merged determination unit, configured to use the watertight grid generation framework to perform processing in the preset virtual geometry layer and based on the first virtual boundary line endpoint, the endpoint tangent direction corresponding to the first virtual boundary line endpoint, the second virtual boundary line endpoint, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint to obtain a virtual boundary line to be merged;
[0086] A virtual boundary line merging unit, configured to merge the virtual boundary line to be merged and the initial virtual boundary line to obtain an associated virtual boundary line to be associated, and perform a bottom-layer association operation on the initial virtual boundary line and the associated virtual boundary line to be associated to obtain a target virtual boundary line.
[0087] In some specific embodiments, the boundary processing device based on the watertight grid generation framework may further include:
[0088] A projection direction determination unit, configured to determine the first ordered discrete points corresponding to the initial virtual boundary line and the second ordered discrete points corresponding to the associated virtual boundary line to be associated, and set the normal direction corresponding to the direction perpendicular to the tangent of the first ordered discrete points as the projection direction based on the first ordered discrete points;
[0089] A discrete point determination unit, configured to project the first ordered discrete points to the corresponding second ordered discrete points using the projection direction to obtain corresponding third ordered discrete points, and set each of the third ordered discrete points as the third ordered discrete points corresponding to the target virtual boundary line;
[0090] A data expression sending unit, configured to determine discrete geometric data expressions corresponding to the target virtual boundary line based on the third ordered discrete points, so as to send the discrete geometric data expressions to a user interface for viewing.
[0091] In some specific embodiments, the boundary processing device based on the watertight mesh generation framework may further include:
[0092] A boundary line adjustment unit, configured to determine whether a first boundary line shape corresponding to the discrete geometric data expression and a second boundary line shape corresponding to the initial virtual boundary line meet a preset shape condition. If the first boundary line shape corresponding to the discrete geometric data expression and the second boundary line shape corresponding to the initial virtual boundary line do not meet the preset shape condition, the target virtual boundary line is adjusted by using a preset operation rule until the adjusted virtual boundary line meets a preset requirement condition; wherein, the preset operation rule includes inserting control points, adjusting control points or adjusting endpoint vectors in the target virtual boundary line.
[0093] Furthermore, an embodiment of the present application also discloses an electronic device. Figure 8 It is a structural diagram of an electronic device 20 shown according to an exemplary embodiment, and the content in the figure cannot be considered as any limitation to the application scope of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the boundary processing method based on the watertight mesh generation framework disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0094] In this embodiment, the power supply 23 is used to provide working voltages for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is any communication protocol applicable to the technical solution of the present application, and no specific limitation is imposed on it here; the input / output interface 25 is used to obtain external input data or output data to the outside, and the specific interface type thereof may be selected according to specific application requirements, and no specific limitation is made here.
[0095] In addition, as a carrier for resource storage, the memory 22 may be a read-only memory, a random access memory, a magnetic disk, or an optical disc, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.
[0096] Among them, the operating system 221 is used to manage and control each hardware device and computer program 222 on the electronic device 20, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the boundary processing method based on the watertight grid generation framework executed by the electronic device 20 disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs that can be used to complete other specific tasks.
[0097] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the foregoing disclosed boundary processing method based on the watertight grid generation framework. For the specific steps of this method, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details will not be repeated here.
[0098] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and reference can be made to the description in the method part for related parts.
[0099] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0100] The steps of the method or algorithm described in combination with the embodiments disclosed in this article can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0101] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0102] The technical solutions provided in this application have been introduced in detail above. Specific examples are used in this text to elaborate on the principles and implementation manners of this application. The descriptions of the above embodiments are only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A boundary processing method based on a watertight grid generation framework, characterized in that, Including: Using the watertight grid generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and initial virtual boundary lines in a preset virtual geometry layer, then sorting each of the initial virtual boundary lines, and establishing association relationships for each of the sorted initial virtual boundary lines to obtain an association establishment result; Judging whether the association establishment result meets a preset distance condition. If it meets, using a preset endpoint replacement method to process each of the initial virtual boundary lines corresponding to the association establishment result to obtain corresponding virtual boundary lines to be processed. If it does not meet, determining corresponding virtual boundary lines to be processed based on the virtual boundary line endpoints corresponding to adjacent initial virtual boundary lines. Specifically: judging whether the boundary line distance between each of the initial virtual boundary lines in the association establishment result is less than a preset distance error; if the boundary line distance between each of the initial virtual boundary lines in the association establishment result is less than the preset distance error, then in the preset virtual geometry layer, performing endpoint replacement operations on each of the initial virtual boundary lines in the association establishment result respectively using the preset endpoint replacement method to obtain virtual boundary lines after endpoint replacement, and using the watertight grid generation framework to perform endpoint hiding processing on the virtual boundary lines after endpoint replacement to obtain corresponding first virtual boundary lines to be processed; If the boundary line distance between each of the initial virtual boundary lines in the association establishment result is not less than the preset distance error, then adding a boundary line to connect between the virtual boundary line endpoints corresponding to each two of the initial virtual boundary lines to obtain corresponding virtual boundary lines after boundary line addition, and using the watertight grid generation framework to perform endpoint hiding processing on the virtual boundary lines after boundary line addition to obtain corresponding second virtual boundary lines to be processed; the second virtual boundary lines to be processed are boundary lines with zero-order continuity; Processing the virtual boundary lines to be processed based on the processing method corresponding to the virtual boundary lines to be processed to obtain target virtual boundary lines, so as to replace the boundary line to be processed with the corresponding target virtual boundary lines; the processing method includes a merging method and a replacement line method.
2. The boundary processing method based on the water-tight grid generation framework according to claim 1, wherein The step of using the watertight grid generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and initial virtual boundary lines in a preset virtual geometry layer includes: Determining discrete geometric data based on the boundary line to be processed, and using the watertight grid generation framework to create virtual boundary line endpoints corresponding to the boundary line to be processed and initial virtual boundary lines in the preset virtual geometry layer using the discrete geometric data, and establishing a first mapping relationship between the virtual boundary line endpoints and the endpoints corresponding to the boundary line to be processed and a second mapping relationship between the initial virtual boundary lines and the boundary line to be processed; Or, using the watertight grid generation framework to establish initial virtual boundary lines and virtual boundary line endpoints corresponding to the initial virtual boundary lines in a preset virtual geometry layer based on preset virtual boundary line establishment parameters.
3. The boundary processing method based on the watertight grid generation framework according to claim 1, characterized in that Process the to-be-processed virtual boundary line based on the corresponding processing method of the to-be-processed virtual boundary line to obtain a target virtual boundary line, so as to replace the to-be-processed boundary line with the corresponding target virtual boundary line; The processing method includes a merging method and a replacement line method, and includes: Determine the processing method corresponding to the to-be-processed virtual boundary line. If the processing method corresponding to the to-be-processed virtual boundary line is the merging method, merge all the initial virtual boundary lines in each of the association establishment results to obtain a target virtual boundary line; If the processing method corresponding to the to-be-processed virtual boundary line is the replacement line method, obtain the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction of the second virtual boundary line endpoint from all the initial virtual boundary lines in each of the establishment results; Use the watertight mesh generation framework and establish a target virtual boundary line based on the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint.
4. The boundary processing method based on the watertight grid generation framework according to claim 3, wherein, The step of using the watertight mesh generation framework and establishing a target virtual boundary line based on the first virtual boundary line endpoint of the first initial virtual boundary line, the endpoint tangent direction of the first virtual boundary line endpoint, the second virtual boundary line endpoint of the last initial virtual boundary line, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint includes: Use the watertight mesh generation framework to process in the preset virtual geometry layer and based on the first virtual boundary line endpoint, the endpoint tangent direction corresponding to the first virtual boundary line endpoint, the second virtual boundary line endpoint, and the endpoint tangent direction corresponding to the second virtual boundary line endpoint to obtain a to-be-merged virtual boundary line; Merge the to-be-merged virtual boundary line and the initial virtual boundary line to obtain a to-be-associated virtual boundary line, and perform a bottom-layer association operation on the initial virtual boundary line and the to-be-associated virtual boundary line to obtain a target virtual boundary line.
5. The boundary processing method based on the watertight grid generation framework according to claim 4, characterized in that, After merging the to-be-merged virtual boundary line and the initial virtual boundary line to obtain a to-be-associated virtual boundary line, and performing a bottom-layer association operation on the initial virtual boundary line and the to-be-associated virtual boundary line to obtain a target virtual boundary line, it further includes: Determine the first ordered discrete points corresponding to the initial virtual boundary line and the second ordered discrete points corresponding to the to-be-associated virtual boundary line, and set the normal direction corresponding to the tangent perpendicular direction of the first ordered discrete points as the projection direction; Project from the first ordered discrete points to the corresponding second ordered discrete points using the projection direction to obtain corresponding third ordered discrete points, and set each of the third ordered discrete points as the third ordered discrete points corresponding to the target virtual boundary line; Determine a discrete geometric data representation corresponding to the target virtual boundary line based on the third ordered discrete points, and send the discrete geometric data representation to the user interface for viewing.
6. The boundary processing method based on the watertight grid generation framework according to claim 5, wherein After determining the discrete geometric data representation corresponding to the target virtual boundary line based on the third ordered discrete points and sending the discrete geometric data representation to the user interface for viewing, it further includes: Judge whether the shape of the first boundary line corresponding to the discrete geometric data representation and the shape of the second boundary line corresponding to the initial virtual boundary line meet a preset shape condition. If the shape of the first boundary line corresponding to the discrete geometric data representation and the shape of the second boundary line corresponding to the initial virtual boundary line do not meet the preset shape condition, then adjust the target virtual boundary line using a preset operation rule until the adjusted virtual boundary line meets the preset requirement condition; Wherein, the preset operation rule includes inserting control points, adjusting control points or adjusting endpoint vectors in the target virtual boundary line.
7. A boundary processing device based on a watertight grid generation framework, characterized in that It includes: An association establishment result determination module, configured to create virtual boundary line endpoints and an initial virtual boundary line corresponding to the boundary line to be processed in a preset virtual geometry layer using the watertight mesh generation framework, then sort each of the initial virtual boundary lines, and establish an association relationship for each of the sorted initial virtual boundary lines to obtain an association establishment result; An association establishment result judgment module, configured to judge whether the association establishment result meets a preset distance condition. If it meets, process the initial virtual boundary lines corresponding to each of the association establishment results using a preset endpoint replacement method to obtain corresponding virtual boundary lines to be processed. If it does not meet, determine the corresponding virtual boundary lines to be processed based on the virtual boundary line endpoints corresponding to adjacent initial virtual boundary lines. Specifically: judge whether the boundary line distance between each of the initial virtual boundary lines in the association establishment result is less than a preset distance error; if the boundary line distance between each of the initial virtual boundary lines in the association establishment result is less than the preset distance error, then perform an endpoint replacement operation on each of the initial virtual boundary lines in each of the association establishment results respectively in the preset virtual geometry layer to obtain virtual boundary lines after endpoint replacement, and perform an endpoint hiding process on the virtual boundary lines after endpoint replacement using the watertight mesh generation framework to obtain corresponding first virtual boundary lines to be processed; If the distance between the boundary lines among the initial virtual boundary lines in the associated establishment result is not less than the preset distance error, a boundary line is added to connect between the virtual boundary line endpoints corresponding to every two of the initial virtual boundary lines respectively, so as to obtain the virtual boundary line after boundary line addition, and the endpoint hiding process is performed on the virtual boundary line after boundary line addition by using the watertight mesh generation framework, so as to obtain the corresponding second virtual boundary line to be processed; the second virtual boundary line to be processed is a boundary line with zero-order continuity; A boundary line replacement module, configured to process the virtual boundary line to be processed based on the processing method corresponding to the virtual boundary line to be processed, so as to obtain a target virtual boundary line, and replace the boundary line to be processed with the corresponding target virtual boundary line; the processing method includes a merging method and a replacement line method.
8. An electronic device, characterized in that, Comprising: A memory, configured to store a computer program; A processor, configured to execute the computer program to implement the boundary processing method based on the watertight mesh generation framework according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, For storing a computer program, wherein when the computer program is executed by a processor, the boundary processing method based on the watertight mesh generation framework according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Curved surface grid generation method and device, equipment and storage medium
CN116720234A
Computer-assisted shape synthesis with connectivity filtering
CN117828816A