Parameter line extraction method and device for cutting digital model surface, equipment and medium
By filtering and parameterizing the initial geometric figures in the digital model, the parameter lines of the clipped geometric figures are extracted, which solves the problems of information loss, high computational complexity and insufficient accuracy in the prior art, and efficient and accurate parameter lines extraction is achieved.
Patent Information
- Application Number
- CN202510444152.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-10
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-04-10
AI Technical Summary
The prior art tends to lose information about the original geometric figure when extracting parameter lines of clipped geometric figures, with high computational complexity and insufficient accuracy.
By obtaining a digital model used to describe the geometric elements of the aircraft, filtering and parameter configuration of the initial geometric figures, determining the direction of parameter surface extraction, determining whether the geometric figure is a clipping face, and extracting the corresponding parameter lines. Generate grid lines based on geometric figures, intersect the grid lines and parameter lines, calculate the horizontal value of the texture image at the intersection, segment the grid lines, calculate the midpoint coordinates, filter the midpoint coordinates of the target, and extract the target parameter lines of the clip geometric figure.
It avoids the loss of information from the original geometric figure, reduces the complexity and calculation cost of parameter line extraction, improves the accuracy of extraction, and quickly generates parameter lines.
Smart Images

Figure CN119939791A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computational fluid dynamics, and in particular to a method, device, equipment and medium for extracting parameter lines for cutting a digital model surface. Background Art
[0002] In the related technical solutions, the methods for extracting parameter lines of digital models include isoparametric curve method and data fitting method. In addition, there are some methods for clipping geometric figures, including reparameter line method, parameter range calculation method and method based on topological structure. The shortcomings of these solutions are as follows: the reparameter line method may lose the information of the original geometric figure during the reparameterization process, such as complex textures and subtle shape changes, resulting in error accumulation. This method usually involves complex mathematical calculations and algorithms, and the calculation cost may be very high; parameter range calculation method, parameter range calculation is usually based on specific digital models or algorithms, which cannot accurately describe the characteristics of geometric figures, so the parameter range may be inaccurate or unrepresentative; based on the topological structure method, for geometric figures with very complex and irregular shapes, the topological structure may not be able to accurately describe the details and features, resulting in the loss of some key local shape information. The topological structure usually has a certain degree of fixedness and standardization, resulting in the lack of sufficient flexibility in the face of some special needs or changes.
[0003] It can be seen from the above that how to avoid the loss of information of the original geometric figures, reduce the complexity of parameter line extraction of clipping geometric figures, and improve the accuracy of parameter line extraction of clipping geometric figures are problems to be solved in the art. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for extracting parameter lines of clipping digital model surfaces, which can avoid the loss of information of original geometric figures, reduce the complexity of parameter line extraction of clipping geometric figures, and improve the accuracy of parameter line extraction of clipping geometric figures. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a method for extracting parameter lines for clipping a digital model surface, comprising:
[0006] Acquire a digital model for describing geometric elements of the aircraft, screen and configure parameters of initial geometric figures in the digital model to obtain geometric figures, and determine a direction for extracting parameter surfaces;
[0007] Determine whether the geometric figure is a clipping surface, and if the geometric figure is a clipping surface, extract a corresponding parameter line from the geometric figure according to the parameter surface extraction direction;
[0008] Grid lines are generated based on the geometric figures, and intersection detection is performed on the grid lines and the parameter lines. If the grid lines and the parameter lines intersect, the texture image level value at the intersection is calculated, and the grid lines are segmented using the texture image level value to obtain the segmented grid lines. The midpoint coordinates of the segmented grid lines are calculated and screened to obtain the target midpoint coordinates, and the target parameter lines for clipping the geometric figures are extracted based on the target midpoint coordinates.
[0009] Optionally, the screening and parameter configuration of the initial geometric figures in the digital model includes:
[0010] selecting any initial geometry from the digital model;
[0011] The texture image horizontal coordinate and the texture image vertical coordinate are set for the initial geometry.
[0012] Optionally, generating grid lines based on the geometric figures includes:
[0013] The discrete points of all boundary lines of the geometric figure are obtained, and grid lines are generated using the discrete points.
[0014] Optionally, the performing intersection detection on the grid line and the parameter line includes:
[0015] The shortest distance between the grid line and the parameter line is calculated, and the shortest distance is used to determine whether the grid line and the parameter line intersect, so as to complete intersection detection.
[0016] Optionally, if the grid line and the parameter line intersect, calculating the texture image level value at the intersection includes:
[0017] If the grid line and the parameter line intersect, the length and number of each intersecting parameter line segment are determined, and the texture image level value at the intersection is calculated based on the length and number of each intersecting parameter line segment.
[0018] Optionally, the calculating and screening of midpoint coordinates of the segmented grid lines to obtain target midpoint coordinates includes:
[0019] Acquire all the segmented grid lines, and calculate the midpoint coordinates of all the segmented grid lines to obtain the midpoint coordinates;
[0020] The midpoint coordinates that meet the preset conditions are used as the target midpoint coordinates.
[0021] Optionally, taking the midpoint coordinates satisfying a preset condition as the target midpoint coordinates includes:
[0022] Determining whether the midpoint coordinates are within the digital model, or determining whether the midpoint coordinates are on the digital model;
[0023] If the midpoint coordinates are within the digital model, or the midpoint coordinates are on the digital model, the midpoint coordinates are used as target midpoint coordinates.
[0024] In a second aspect, the present application discloses a parameter line extraction device for clipping a digital model surface, comprising:
[0025] A geometry determination module is used to obtain a digital model for describing geometric elements of an aircraft, screen and configure parameters of initial geometry in the digital model to obtain geometry, and determine a parameter surface extraction direction;
[0026] A clipping plane judgment module is used to judge whether the geometric figure is a clipping plane, and if the geometric figure is a clipping plane, extract a corresponding parameter line from the geometric figure according to the parameter plane extraction direction;
[0027] A target parameter line extraction module is used to generate grid lines based on the geometric figures, perform intersection detection on the grid lines and the parameter lines, calculate the texture image level value at the intersection if the grid lines and the parameter lines intersect, segment the grid lines using the texture image level value to obtain the segmented grid lines, calculate and screen the midpoint coordinates of the segmented grid lines to obtain the target midpoint coordinates, and extract the target parameter lines for clipping the geometric figures based on the target midpoint coordinates.
[0028] In a third aspect, the present application discloses an electronic device, comprising:
[0029] Memory, used to store computer programs;
[0030] The processor is used to execute the computer program to implement the aforementioned parameter line extraction method for trimming the digital model surface.
[0031] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the parameter line extraction method for trimming a digital model surface disclosed above are implemented.
[0032] It can be seen that the present application provides a method for extracting parameter lines of a clipped digital model surface, including obtaining a digital model for describing the geometric elements of an aircraft, screening and parameterizing the initial geometric figures in the digital model to obtain the geometric figures, and determining the parameter surface extraction direction; judging whether the geometric figures are clipped surfaces, and if the geometric figures are clipped surfaces, extracting corresponding parameter lines from the geometric figures according to the parameter surface extraction direction; generating grid lines based on the geometric figures, performing intersection detection on the grid lines and the parameter lines, and if the grid lines and the parameter lines intersect, calculating the texture image level value at the intersection, segmenting the grid lines using the texture image level value to obtain the segmented grid lines, calculating and screening the midpoint coordinates of the segmented grid lines to obtain the target midpoint coordinates, and extracting the target parameter lines of the clipped geometric figures based on the target midpoint coordinates. The present application screens and configures parameters of initial geometric figures in a digital model used to describe geometric elements of an aircraft, obtains geometric figures, determines the direction of parameter surface extraction, and extracts corresponding parameter lines if the geometric figures are clipping surfaces, thereby avoiding the process of re-parameterizing the geometric figures after clipping, so as to solve the situation where the information of the original geometric figures is lost. Grid lines are generated based on the geometric figures, and intersection detection is performed on the grid lines and parameter lines. If the grid lines and parameter lines intersect, the horizontal value of the texture image at the intersection is calculated, and the grid lines are segmented. The midpoint coordinates of the segmented grid lines are calculated and screened to obtain the target midpoint coordinates, thereby extracting the target parameter lines of the clipping geometric figures. By performing intersection detection on the grid lines and parameter lines, the complexity of parameter line extraction of the clipping geometric figures can be reduced, the calculation cost can be reduced, the parameter lines can be generated quickly, and the accuracy of parameter line extraction of the clipping geometric figures can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0034] Figure 1 A flow chart of a parameter line extraction method for trimming a digital model surface disclosed in this application;
[0035] Figure 2 An example diagram of all boundary lines and grid lines of a geometric figure disclosed in this application;
[0036] Figure 3 A parameter line segmentation principle diagram disclosed in this application;
[0037] Figure 4 An extracted target parameter line result diagram disclosed in the present application;
[0038] Figure 5 A specific flow chart for realizing parameter line extraction of clipping geometric figures disclosed in this application;
[0039] Figure 6 This is a schematic diagram of the structure of a parameter line extraction device for cutting geometric figures disclosed in this application;
[0040] Figure 7 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] In the related technical solutions, the methods for extracting parameter lines of digital models include isoparametric curve method and data fitting method. In addition, there are some methods for clipping geometric figures, including reparameter line method, parameter range calculation method and method based on topological structure. The disadvantages of these schemes are as follows: reparameter line method, in the process of reparameterization, the information of the original geometric figure may be lost, for example, complex texture, subtle shape changes, resulting in error accumulation. This method usually involves complex mathematical calculations and algorithms, and the calculation cost may be very high; parameter range calculation method, parameter range calculation is usually based on specific digital models or algorithms, these models cannot accurately describe the characteristics of geometric figures, so the parameter range may be inaccurate or unrepresentative; based on the topological structure method, for geometric figures with very complex and irregular shapes, the topological structure may not be able to accurately describe the details and features, resulting in the loss of some key local shape information, and the topological structure usually has a certain degree of fixedness and standardization, resulting in the lack of sufficient flexibility of the method when facing some special needs or changes. As can be seen from the above, how to avoid the loss of information of the original geometric figure, reduce the complexity of parameter line extraction of clipping geometric figures, and improve the accuracy of parameter line extraction of clipping geometric figures are problems to be solved in this field.
[0043] See also Figure 1 As shown, the embodiment of the present invention discloses a parameter line extraction method for clipping a digital model surface, which may specifically include:
[0044] Step S11: obtaining a digital model for describing geometric elements of an aircraft, screening and parameterizing initial geometric figures in the digital model to obtain geometric figures, and determining a direction for extracting a parameter surface.
[0045] In this embodiment, a digital model for describing the geometric elements of the aircraft is obtained, an arbitrary initial geometric figure is selected from the digital model, the horizontal coordinates and the vertical coordinates of the texture image are set for the initial geometric figure to obtain the geometric figure, and the parameter surface extraction direction is determined.
[0046] In CAD (Computer Aided Design), a digital model is a model that accurately describes and expresses the geometric, physical and other characteristics of an object or system in a digital way. In CAD-related fields, UV values refer to values in the UV coordinate system. UV coordinates are a coordinate system used to locate colors and details in two-dimensional texture images. U and V represent the horizontal and vertical axes of the texture image, similar to the X and Y axes in a two-dimensional plane. The UV value is the specific coordinate value of a point on the U and V axes in this coordinate system, which is used to accurately determine the corresponding position of each point on the texture image on the surface of the three-dimensional model.
[0047] Specifically, firstly, the digital model is imported, then the corresponding initial geometry for generating the parameter line is selected, then the UV coordinates (i.e., the texture image horizontal coordinates and the texture image vertical coordinates) on the geometry are set, and the parameter surface extraction direction is determined.
[0048] Step S12: Determine whether the geometric figure is a clipping surface. If the geometric figure is a clipping surface, extract the corresponding parameter line from the geometric figure according to the parameter surface extraction direction.
[0049] In this embodiment, it is determined whether the geometric figure is a clipping surface. If the geometric figure is not a clipping surface, the process of extracting the parameter line of the clipping geometric figure is terminated. If the geometric figure is a clipping surface, the corresponding parameter line is extracted from the geometric figure according to the parameter surface extraction direction.
[0050] Step S13: Generate grid lines based on the geometric figures, perform intersection detection on the grid lines and the parameter lines, if the grid lines and the parameter lines intersect, calculate the texture image level value at the intersection, use the texture image level value to segment the grid lines to obtain the segmented grid lines, calculate and screen the midpoint coordinates of the segmented grid lines to obtain the target midpoint coordinates, and extract the target parameter lines of the clipping geometric figures based on the target midpoint coordinates.
[0051] In this embodiment, discrete points of all boundary lines of the geometric figure are obtained, grid lines are generated using the discrete points, the shortest distance between the grid lines and the parameter lines is calculated, and the shortest distance is used to determine whether the grid lines and the parameter lines intersect to complete intersection detection. If the grid lines and the parameter lines intersect, the lengths and number of segments of each intersecting parameter line are determined, and the texture image level value at the intersection is calculated based on the lengths and number of segments of each intersecting parameter line. All the segmented grid lines are obtained, and the midpoint coordinates of all the segmented grid lines are calculated to obtain the midpoint coordinates. The midpoint coordinates that meet the preset conditions are used as the target midpoint coordinates, and the target parameter line for clipping the geometric figure is extracted based on the target midpoint coordinates.
[0052] Among them, taking the midpoint coordinates that meet the preset conditions as the target midpoint coordinates includes: judging whether the midpoint coordinates are in the digital model, or judging whether the midpoint coordinates are on the digital model; if the midpoint coordinates are in the digital model, or the midpoint coordinates are on the digital model, taking the midpoint coordinates as the target midpoint coordinates.
[0053] The specific target parameter line extraction process is as follows: (1) Obtain the discrete points of all boundary lines of the geometric figure and use the discrete points to generate a new grid line FC_CON. The new grid line is as follows: Figure 2 As shown in the figure, a circle of discrete points of the digital model constitutes FC_CON, and the extracted parameter line CON exists in the part of the non-geometric figure; (2) the intersection detection is performed on the line segments composed of two adjacent discrete points of FC_CON and parameter line CON. The intersection detection principle is as follows Figure 3 As shown, assuming that the first line segment has the starting and ending points P0 and Q0, and the second line segment has the starting and ending points P1 and Q1, the above two line segments can be expressed as and , assuming and The distance between them is the smallest, and To seek , Only when has a minimum value, At the same time, perpendicular to , .Right now
[0054] ;
[0055] ;
[0056] Further:
[0057] ;
[0058] Substituting into the equation:
[0059]
[0060] set up , , , , and . Then the solution of the system of equations is:
[0061] ;
[0062] ;
[0063] If the denominator ,So , Parallel to each other. To calculate By setting ,but . , Distance:
[0064] ;
[0065] The shortest distance can be calculated , , and then we can determine whether the line segments intersect;
[0066] Then, the u value (i.e., the texture image level value) on the grid line is determined by the points where there are intersecting discrete segments on the parameter line CON: Assuming that the nth segment of the parameter line CON (length is lenth_n) intersects with FC_CON, the total number of segments of the parameter line CON is N, and the total length is Lenth, then the u value is
[0067] ;
[0068] All segmentation u values can be obtained:
[0069] ;
[0070] Then, the extracted parameter line CON is segmented at the u value obtained above: First, the set U is sorted into:
[0071] ;
[0072] in, , when i>0, there is .
[0073] The principle of parameter line segmentation is as follows Figure 3 As shown, let a be the parameter line CON, which needs to be divided into 3 segments, then the segmentation value on a is , we get line segments b and c; then the segmentation value on line c is , and get line segments d and e. Continue segmenting in the same way to get multiple grid lines after segmentation;
[0074] Finally, for each grid line, find the coordinates of the midpoint. If the point is in or on the digital model, keep it. If the point is on the clipping surface, delete it. The extraction of the parameter line on the clipping surface is now completed. The extracted target parameter line result is as follows: Figure 4 shown.
[0075] The process of extracting parameter lines for clipping geometric figures in this application is as follows Figure 5 As shown, firstly, a digital model for describing the geometric elements of the aircraft is obtained, an arbitrary initial geometric figure is selected, the horizontal coordinates of the texture image and the vertical coordinates of the texture image are set for the initial geometric figure, the geometric figure is obtained, and the parameter surface extraction direction is determined; then, it is determined whether the geometric figure is a clipping surface, if the geometric figure is not a clipping surface, the extraction process is terminated, if the geometric figure is a clipping surface, the corresponding parameter lines are extracted from the geometric figure according to the parameter surface extraction direction; then, grid lines are generated based on the discrete points of all boundary lines of the geometric figure, and intersection detection is performed on the grid lines and the parameter lines. If the grid lines and the parameter lines intersect, the horizontal value of the texture image at the intersection is calculated, the grid lines are segmented using the horizontal value of the texture image, the midpoint coordinates of the segmented grid lines are calculated, and then it is determined whether the midpoint coordinates are in or on the digital model, if so, they are retained to extract the target parameter line for clipping the geometric figure.
[0076] The initial parameter lines in the present application are extracted from the original geometric figures before clipping, and there is no re-parameterization process for the geometric figures after clipping. Therefore, the information of the original geometric figures will not be further lost, resulting in the accumulation of errors and the generation of inaccurate factors in the final simulation. In addition, the present application uses an extreme intersection detection algorithm to divide the parameter lines into two categories: whether they are on the geometric figures after clipping or not. The calculation method is simple, does not require a high calculation cost, and can quickly generate parameter lines.
[0077] In this embodiment, a digital model for describing geometric elements of an aircraft is obtained, initial geometric figures in the digital model are screened and parameterized to obtain geometric figures, and a parameter surface extraction direction is determined; it is determined whether the geometric figure is a clipping surface, and if the geometric figure is a clipping surface, corresponding parameter lines are extracted from the geometric figure according to the parameter surface extraction direction; grid lines are generated based on the geometric figure, and intersection detection is performed on the grid lines and the parameter lines. If the grid lines and the parameter lines intersect, the texture image level value at the intersection is calculated, the grid lines are segmented using the texture image level value to obtain the segmented grid lines, the midpoint coordinates of the segmented grid lines are calculated and screened to obtain the target midpoint coordinates, and the target parameter lines for clipping the geometric figure are extracted based on the target midpoint coordinates. The present application screens and configures parameters of initial geometric figures in a digital model used to describe geometric elements of an aircraft, obtains geometric figures, determines the direction of parameter surface extraction, and extracts corresponding parameter lines if the geometric figures are clipping surfaces, thereby avoiding the process of re-parameterizing the geometric figures after clipping, so as to solve the situation where the information of the original geometric figures is lost. Grid lines are generated based on the geometric figures, and intersection detection is performed on the grid lines and parameter lines. If the grid lines and parameter lines intersect, the horizontal value of the texture image at the intersection is calculated, and the grid lines are segmented. The midpoint coordinates of the segmented grid lines are calculated and screened to obtain the target midpoint coordinates, thereby extracting the target parameter lines of the clipping geometric figures. By performing intersection detection on the grid lines and parameter lines, the complexity of parameter line extraction of the clipping geometric figures can be reduced, the calculation cost can be reduced, the parameter lines can be generated quickly, and the accuracy of parameter line extraction of the clipping geometric figures can be improved.
[0078] See also Figure 6 As shown, the embodiment of the present invention discloses a parameter line extraction device for clipping a digital model surface, which may specifically include:
[0079] The geometric figure determination module 11 is used to obtain a digital model for describing geometric elements of the aircraft, screen and configure parameters of initial geometric figures in the digital model to obtain geometric figures, and determine a parameter surface extraction direction;
[0080] A clipping plane determination module 12 is used to determine whether the geometric figure is a clipping plane, and if the geometric figure is a clipping plane, extract a corresponding parameter line from the geometric figure according to the parameter plane extraction direction;
[0081] The target parameter line extraction module 13 is used to generate grid lines based on the geometric figures, perform intersection detection on the grid lines and the parameter lines, and if the grid lines and the parameter lines intersect, calculate the texture image level value at the intersection, use the texture image level value to segment the grid lines to obtain the segmented grid lines, calculate and screen the midpoint coordinates of the segmented grid lines to obtain the target midpoint coordinates, and extract the target parameter lines of the clipping geometric figures based on the target midpoint coordinates.
[0082] In this embodiment, a digital model for describing geometric elements of an aircraft is obtained, initial geometric figures in the digital model are screened and parameterized to obtain geometric figures, and a parameter surface extraction direction is determined; it is determined whether the geometric figure is a clipping surface, and if the geometric figure is a clipping surface, corresponding parameter lines are extracted from the geometric figure according to the parameter surface extraction direction; grid lines are generated based on the geometric figure, and intersection detection is performed on the grid lines and the parameter lines. If the grid lines and the parameter lines intersect, the texture image level value at the intersection is calculated, the grid lines are segmented using the texture image level value to obtain the segmented grid lines, the midpoint coordinates of the segmented grid lines are calculated and screened to obtain the target midpoint coordinates, and the target parameter lines for clipping the geometric figure are extracted based on the target midpoint coordinates. The present application screens and configures parameters of initial geometric figures in a digital model used to describe geometric elements of an aircraft, obtains geometric figures, determines the direction of parameter surface extraction, and extracts corresponding parameter lines if the geometric figures are clipping surfaces, thereby avoiding the process of re-parameterizing the geometric figures after clipping, so as to solve the situation where the information of the original geometric figures is lost. Grid lines are generated based on the geometric figures, and intersection detection is performed on the grid lines and parameter lines. If the grid lines and parameter lines intersect, the horizontal value of the texture image at the intersection is calculated, and the grid lines are segmented. The midpoint coordinates of the segmented grid lines are calculated and screened to obtain the target midpoint coordinates, thereby extracting the target parameter lines of the clipping geometric figures. By performing intersection detection on the grid lines and parameter lines, the complexity of parameter line extraction of the clipping geometric figures can be reduced, the calculation cost can be reduced, the parameter lines can be generated quickly, and the accuracy of parameter line extraction of the clipping geometric figures can be improved.
[0083] In some specific embodiments, the geometric figure determination module 11 may specifically include:
[0084] A model surface selection module, used for selecting any initial geometric figure from the digital model;
[0085] The setting module is used to set the texture image horizontal coordinates and the texture image vertical coordinates for the initial geometric figure.
[0086] In some specific embodiments, the target parameter line extraction module 13 may specifically include:
[0087] The grid line generation module is used to obtain the discrete points of all the boundary lines of the geometric figure and generate grid lines using the discrete points.
[0088] In some specific embodiments, the target parameter line extraction module 13 may specifically include:
[0089] The intersection detection module is used to calculate the shortest distance between the grid line and the parameter line, and use the shortest distance to determine whether the grid line and the parameter line intersect, so as to complete the intersection detection.
[0090] In some specific embodiments, the target parameter line extraction module 13 may specifically include:
[0091] The horizontal value calculation module is used to determine the length and number of each intersecting parameter line segment if the grid line and the parameter line intersect, and calculate the horizontal value of the texture image at the intersection based on the length and number of each intersecting parameter line segment.
[0092] In some specific embodiments, the target parameter line extraction module 13 may specifically include:
[0093] A midpoint coordinate calculation module, used for acquiring all the segmented grid lines, and performing midpoint coordinate calculation on all the segmented grid lines to obtain midpoint coordinates;
[0094] The target midpoint coordinate determination module is used to use the midpoint coordinates that meet preset conditions as the target midpoint coordinates.
[0095] In some specific embodiments, the target parameter line extraction module 13 may specifically include:
[0096] A judging module, used for judging whether the midpoint coordinates are within the digital model, or judging whether the midpoint coordinates are on the digital model;
[0097] The target midpoint coordinate determination module is used to use the midpoint coordinate as the target midpoint coordinate if the midpoint coordinate is within the digital model or on the digital model.
[0098] Figure 7A schematic diagram of the structure of an electronic device provided in an embodiment 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. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the parameter line extraction method for trimming a digital model surface performed by the electronic device disclosed in any of the aforementioned embodiments.
[0099] In this embodiment, the power supply 23 is used to provide working voltage 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 the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0100] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0101] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20 to realize the operation and processing of the data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the parameter line extraction method for trimming the digital model surface performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to including data transmitted from an external device received by the parameter line extraction device for trimming the digital model surface, the data 223 can also include data collected by its own input and output interface 25, etc.
[0102] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0103] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the parameter line extraction method for clipping a digital model surface disclosed in any of the aforementioned embodiments are implemented.
[0104] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0105] The above is a detailed introduction to a parameter line extraction method, device, equipment and storage medium for trimming a digital model surface provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for extracting parameter lines for cutting a digital model surface, characterized in that: include: Acquire a digital model for describing geometric elements of the aircraft, screen and configure parameters of initial geometric figures in the digital model to obtain geometric figures, and determine a direction for extracting parameter surfaces; Determine whether the geometric figure is a clipping surface, and if the geometric figure is a clipping surface, extract a corresponding parameter line from the geometric figure according to the parameter surface extraction direction; Grid lines are generated based on the geometric figures, and intersection detection is performed on the grid lines and the parameter lines. If the grid lines and the parameter lines intersect, the texture image level value at the intersection is calculated, and the grid lines are segmented using the texture image level value to obtain the segmented grid lines. The midpoint coordinates of the segmented grid lines are calculated and screened to obtain the target midpoint coordinates, and the target parameter lines for clipping the geometric figures are extracted based on the target midpoint coordinates.
2. The method for extracting parameter lines of a trimmed digital model surface according to claim 1, characterized in that: The screening and parameter configuration of the initial geometric figures in the digital model includes: selecting any initial geometry from the digital model; The texture image horizontal coordinate and the texture image vertical coordinate are set for the initial geometry.
3. The method for extracting parameter lines of a trimmed digital model surface according to claim 1, characterized in that: The step of generating a grid line based on the geometric figure comprises: The discrete points of all boundary lines of the geometric figure are obtained, and grid lines are generated using the discrete points.
4. The method for extracting parameter lines of a trimmed digital model surface according to claim 1, characterized in that: The performing intersection detection on the grid line and the parameter line includes: The shortest distance between the grid line and the parameter line is calculated, and the shortest distance is used to determine whether the grid line and the parameter line intersect, so as to complete intersection detection.
5. The method for extracting parameter lines of a trimmed digital model surface according to claim 1, characterized in that: If the grid line and the parameter line intersect, calculating the texture image level value at the intersection includes: If the grid line and the parameter line intersect, the length and number of each intersecting parameter line segment are determined, and the texture image level value at the intersection is calculated based on the length and number of each intersecting parameter line segment.
6. The method for extracting parameter lines of a trimmed digital model surface according to any one of claims 1 to 5, characterized in that: The calculating and screening of midpoint coordinates of the segmented grid lines to obtain target midpoint coordinates includes: Acquire all the segmented grid lines, and calculate the midpoint coordinates of all the segmented grid lines to obtain the midpoint coordinates; The midpoint coordinates that meet the preset conditions are used as the target midpoint coordinates.
7. The method for extracting parameter lines of a trimmed digital model surface according to claim 6, characterized in that: The step of using the midpoint coordinates satisfying the preset conditions as the target midpoint coordinates includes: Determining whether the midpoint coordinates are within the digital model, or determining whether the midpoint coordinates are on the digital model; If the midpoint coordinates are within the digital model, or the midpoint coordinates are on the digital model, the midpoint coordinates are used as target midpoint coordinates.
8. A parameter line extraction device for cutting a digital model surface, characterized in that: include: A geometry determination module, used to obtain a digital model for describing geometric elements of an aircraft, screen and configure parameters of initial geometry in the digital model to obtain geometry, and determine a parameter surface extraction direction; A clipping plane judgment module, used to judge whether the geometric figure is a clipping plane, and if the geometric figure is a clipping plane, extracting a corresponding parameter line from the geometric figure according to the parameter plane extraction direction; A target parameter line extraction module is used to generate grid lines based on the geometric figures, perform intersection detection on the grid lines and the parameter lines, calculate the texture image level value at the intersection if the grid lines and the parameter lines intersect, segment the grid lines using the texture image level value to obtain the segmented grid lines, calculate and screen the midpoint coordinates of the segmented grid lines to obtain the target midpoint coordinates, and extract the target parameter lines for clipping the geometric figures based on the target midpoint coordinates.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the parameter line extraction method for trimming a digital model surface as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the method for extracting parameter lines for trimming a digital model surface as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Target object detection method and device, electronic equipment and storage medium
CN116433767A
Fracture surface geometric element description method based on structural modeling
CN116500680A
Feature line extraction method and device, electronic equipment and computer readable storage medium
CN117975031A
Automatic extraction method and device for boundary plane of aortic sinus vessels and storage medium
CN118334273A