[go: up one dir, main page]

CN119939791B - Parameter line extraction method, device, equipment and medium for cutting digital die surface - Google Patents

Parameter line extraction method, device, equipment and medium for cutting digital die surface Download PDF

Info

Publication number
CN119939791B
CN119939791B CN202510444152.9A CN202510444152A CN119939791B CN 119939791 B CN119939791 B CN 119939791B CN 202510444152 A CN202510444152 A CN 202510444152A CN 119939791 B CN119939791 B CN 119939791B
Authority
CN
China
Prior art keywords
parameter
lines
geometric
line
texture image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202510444152.9A
Other languages
Chinese (zh)
Other versions
CN119939791A (en
Inventor
张庆东
慕茹霜
刘文鑫
谢冬香
熊永平
王永杰
刘杨
庞宇飞
陈浩
齐龙
杨璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
Original Assignee
Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Computational Aerodynamics Institute of China Aerodynamics Research and Development Center filed Critical Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
Priority to CN202510444152.9A priority Critical patent/CN119939791B/en
Publication of CN119939791A publication Critical patent/CN119939791A/en
Application granted granted Critical
Publication of CN119939791B publication Critical patent/CN119939791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Image Analysis (AREA)
  • Image Generation (AREA)

Abstract

本申请公开了剪裁数字模型面的参数线提取方法、装置、设备及介质,涉及计算流体力学技术领域,获取描述飞行器几何元素的数字模型,对数字模型中初始几何图形进行筛选和参数配置,得到几何图形;判断几何图形是否为剪裁面,若是,则从几何图形中提取出参数线;基于几何图形生成网格线,对网格线和参数线进行相交检测,若相交,计算相交处的纹理图像水平值,利用纹理图像水平值对网格线进行分割,对分割后的网格线进行中点坐标计算及筛选,得到目标中点坐标,基于目标中点坐标提取出剪裁几何图形的目标参数线,避免出现丢失原始数模面的信息的情况,降低剪裁几何图形的参数线提取的复杂度,提高剪裁几何图形的参数线提取的准确性。

The present application discloses a parameter line extraction method, device, equipment and medium for clipping digital model surfaces, and relates to the technical field of computational fluid dynamics. A digital model describing geometric elements of an aircraft is obtained, and initial geometric figures in the digital model are screened and parameterized to obtain geometric figures; whether the geometric figures are clipping surfaces is determined, and if so, parameter lines are extracted from the geometric figures; grid lines are generated based on the geometric figures, and intersection detection is performed on the grid lines and parameter lines. If they intersect, the texture image level value at the intersection is calculated, the grid lines are segmented using the texture image level value, and the midpoint coordinates of the segmented grid lines are calculated and screened to obtain the target midpoint coordinates. The target parameter line of the clipping geometric figure is extracted based on the target midpoint coordinates, so as to avoid the loss of information on the original digital model surface, reduce the complexity of parameter line extraction for clipping geometric figures, and improve the accuracy of parameter line extraction for clipping geometric figures.

Description

Parameter line extraction method, device, equipment and medium for cutting digital die surface
Technical Field
The invention relates to the technical field of computational fluid dynamics, in particular to a parameter line extraction method, device, equipment and medium for cutting digital die surfaces.
Background
In the related technical scheme, the method for extracting the parameter line of the digital model comprises an isoparameter curve method and a data fitting method, and in addition, some methods aiming at the cut geometric figure comprise a recommendable parameter line method, a parameter range calculation method and a topology structure-based method. Drawbacks of these schemes are that the re-parameterization method may lose information of the original geometry during the re-parameterization, e.g. complex textures, subtle shape changes, resulting in error accumulation, such methods often involve complex mathematical calculations and algorithms, which may be costly, the parametric range calculation method, which is often based on specific digital models or algorithms, which are not able to accurately describe the characteristics of the geometry, so that the parametric range may be inaccurate or non-representative, the topology structure may not accurately describe details and features for geometries with very complex, irregular shapes, resulting in losing some critical local shape information, the topology structure often having a certain fixity and standardability, resulting in the method lacking sufficient flexibility in the face of some special requirements or changes.
From the above, how to avoid the situation of losing the information of the original geometric figure, reduce the complexity of extracting the parameter line of the clipping geometric figure, and improve the accuracy of extracting the parameter line of the clipping geometric figure is a problem to be solved in the field.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, a device and a medium for extracting parameter lines of a clipping digital die surface, which can avoid the situation of losing the information of an original geometric figure, reduce the complexity of extracting the parameter lines of the clipping geometric figure, and improve the accuracy of extracting the parameter lines of the clipping geometric figure. The specific scheme is as follows:
in a first aspect, the application discloses a parameter line extraction method for cutting a digital die surface, which comprises the following steps:
acquiring a digital model for describing geometric elements of an aircraft, screening and configuring parameters of initial geometric figures in the digital model to obtain the geometric figures, and determining the extraction direction of parameter surfaces;
judging whether the geometric figure is a cutting plane or not, if the geometric figure is the cutting plane, extracting a corresponding parameter line from the geometric figure according to the extracting direction of the parameter plane;
and generating grid lines based on the geometric figure, carrying out intersection detection on the grid lines and the parameter lines, if the grid lines are intersected with the parameter lines, calculating a texture image level value at the intersection, dividing the grid lines by utilizing the texture image level value to obtain the divided grid lines, carrying out midpoint coordinate calculation and screening on the divided grid lines to obtain target midpoint coordinates, and extracting a target parameter line of the cutting geometric figure based on the target midpoint coordinates.
Optionally, the filtering and parameter configuring the initial geometry in the digital model includes:
Selecting an arbitrary initial geometry from the digital model;
Setting a texture image horizontal coordinate and a texture image vertical coordinate for the initial geometry.
Optionally, the generating grid lines based on the geometric figure includes:
and obtaining discrete points of all boundary lines of the geometric figure, and generating grid lines by using the discrete points.
Optionally, the intersecting detection of the grid lines and the parameter lines includes:
and calculating the shortest distance between the grid line and the parameter line, and determining whether the grid line and the parameter line intersect or not by using the shortest distance so as to complete intersection detection.
Optionally, if the grid line and the parameter line intersect, calculating a texture image level value at the intersection includes:
If the grid lines are intersected with the parameter lines, determining the length and the number of the intersected sections of parameter lines, and calculating a texture image level value at the intersection based on the length and the number of the intersected sections of parameter lines.
Optionally, the calculating and screening the midpoint coordinates of the segmented grid lines to obtain target midpoint coordinates includes:
acquiring all the divided grid lines, and performing midpoint coordinate calculation on all the divided grid lines to obtain midpoint coordinates;
And taking the midpoint coordinates meeting preset conditions as target midpoint coordinates.
Optionally, the taking the midpoint coordinate satisfying the preset condition as the target midpoint coordinate includes:
judging whether the midpoint coordinate is in the digital model or not, or judging whether the midpoint coordinate is on the digital model or not;
And if the midpoint coordinate is in the digital model or the midpoint coordinate is on the digital model, taking the midpoint coordinate as a target midpoint coordinate.
In a second aspect, the present application discloses a parameter line extracting device for cutting out a digital model surface, comprising:
The geometric figure determining module is used for acquiring a digital model for describing geometric elements of the aircraft, screening and parameter configuration are carried out on initial geometric figures in the digital model to obtain geometric figures, and the extraction direction of a parameter surface is determined;
The clipping plane judging module is used for judging whether the geometric figure is a clipping plane or not, and if the geometric figure is the clipping plane, extracting a corresponding parameter line from the geometric figure according to the extracting direction of the parameter plane;
and the target parameter line extraction module is used for generating grid lines based on the geometric figure, carrying out intersection detection on the grid lines and the parameter lines, calculating a texture image level value at an intersection position if the grid lines are intersected with the parameter lines, dividing the grid lines by utilizing the texture image level value to obtain the divided grid lines, carrying out midpoint coordinate calculation and screening on the divided grid lines to obtain target midpoint coordinates, and extracting target parameter lines for cutting the geometric figure based on the target midpoint coordinates.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
And the processor is used for executing the computer program to realize the parameter line extraction method for clipping the digital die surface.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the above disclosed method for extracting a parameter line for clipping a digital die surface.
The application provides a parameter line extraction method for cutting a digital model surface, which comprises the steps of obtaining a digital model for describing geometric elements of an aircraft, screening and parameter configuration of initial geometric figures in the digital model to obtain geometric figures, determining the extraction direction of the parameter surface, judging whether the geometric figures are cutting surfaces, if the geometric figures are cutting surfaces, extracting corresponding parameter lines from the geometric figures according to the extraction direction of the parameter surface, generating grid lines based on the geometric figures, intersecting the grid lines with the parameter lines, calculating a texture image level value at an intersecting position if the grid lines intersect with the parameter lines, dividing the grid lines by utilizing the texture image level value to obtain the divided grid lines, calculating and screening midpoint coordinates of the divided grid lines to obtain target midpoint coordinates, and extracting target parameter lines for cutting the geometric figures based on the target midpoint coordinates. According to the application, the initial geometric figure in the digital model for describing the geometric elements of the aircraft is screened and parameter configuration is carried out to obtain the geometric figure, the parameter plane extraction direction is determined, if the geometric figure is a cutting plane, the corresponding parameter line is extracted, the re-parameterization process of the geometric figure after cutting is avoided, so that the situation that the information of the original geometric figure is lost can be solved, grid lines are generated based on the geometric figure, intersecting detection is carried out on the grid lines and the parameter line, if the grid lines are intersected with the parameter line, the texture image level value at the intersecting position is calculated, the grid lines are divided, midpoint coordinate calculation and screening are carried out on the divided grid lines to obtain the target midpoint coordinate, thereby extracting the target parameter line of the cutting geometric figure, and by a method for intersecting detection of the grid lines and the parameter line, the complexity of parameter line extraction of the cutting geometric figure can be reduced, the calculation cost is reduced, the parameter line is rapidly generated, and the accuracy of the parameter line extraction of the cutting geometric figure is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only embodiments of the present invention, and other drawings may be obtained according to the provided drawings without inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a method for extracting parameter lines for cutting digital mold surfaces;
FIG. 2 is an exemplary diagram of all boundary lines and grid lines of a geometry according to the present disclosure;
FIG. 3 is a schematic diagram of a parameter line segmentation of the present disclosure;
FIG. 4 is a graph of the results of an extracted target parameter line according to the present disclosure;
FIG. 5 is a detailed flow chart of the parameter line extraction for implementing clipping geometry in accordance with the present disclosure;
FIG. 6 is a schematic diagram of a device for extracting a parameter line for clipping geometric figures according to the present application;
Fig. 7 is a block diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the related technical scheme, the method for extracting the parameter line of the digital model comprises an isoparameter curve method and a data fitting method, and in addition, some methods aiming at the cut geometric figure comprise a recommendable parameter line method, a parameter range calculation method and a topology structure-based method. Drawbacks of these schemes are that the re-parameterization method may lose information of the original geometry during the re-parameterization, e.g. complex textures, subtle shape changes, resulting in error accumulation, such methods often involve complex mathematical calculations and algorithms, which may be costly, the parametric range calculation method, which is often based on specific digital models or algorithms, which are not able to accurately describe the characteristics of the geometry, so that the parametric range may be inaccurate or non-representative, the topology structure may not accurately describe details and features for geometries with very complex, irregular shapes, resulting in losing some critical local shape information, the topology structure often having a certain fixity and standardability, resulting in the method lacking sufficient flexibility in the face of some special requirements or changes. From the above, how to avoid the situation of losing the information of the original geometric figure, reduce the complexity of extracting the parameter line of the clipping geometric figure, and improve the accuracy of extracting the parameter line of the clipping geometric figure is a problem to be solved in the field.
Referring to fig. 1, an embodiment of the present invention discloses a method for extracting a parameter line for cutting a digital die surface, which specifically includes:
step S11, a digital model for describing geometric elements of the aircraft is obtained, initial geometric figures in the digital model are screened and parameter configuration is carried out, so that geometric figures are obtained, and the extraction direction of the parameter surface is determined.
In this embodiment, a digital model for describing geometric elements of an aircraft is acquired, an arbitrary initial geometric figure is selected from the digital model, a texture image horizontal coordinate and a texture image vertical coordinate are set for the initial geometric figure to obtain a geometric figure, and a parameter face extraction direction is determined.
In CAD (Computer AIDED DESIGN ), a digital model is a model that describes and expresses precisely the geometric, physical, etc. characteristics of an object or system in a digital manner. In the CAD related art, UV values are values that relate to a UV coordinate system, which is a coordinate system for locating colors and details in a two-dimensional texture image, and U and V represent the horizontal and vertical axes of the texture image, respectively, similar to the X and Y axes in a two-dimensional plane. The UV value is a specific coordinate value of a certain point on the U axis and the V axis in the coordinate system, and is used for precisely determining the corresponding position of each point on the texture image on the three-dimensional model surface.
Specifically, a digital model is first imported, then a corresponding initial geometry for generating a parameter line is selected, then UV coordinates (i.e., texture image horizontal coordinates and texture image vertical coordinates) on the geometry are set, and a parameter plane extraction direction is determined.
And step S12, judging whether the geometric figure is a clipping plane, and if the geometric figure is the clipping plane, extracting a corresponding parameter line from the geometric figure according to the parameter plane extraction direction.
In this embodiment, whether the geometric figure is a clipping plane is determined, if the geometric figure is not the clipping plane, the process of extracting the parameter lines of the clipping geometric figure is ended, and if the geometric figure is the clipping plane, the corresponding parameter lines are extracted from the geometric figure according to the extracting direction of the parameter plane.
And S13, generating grid lines based on the geometric figure, carrying out intersection detection on the grid lines and the parameter lines, if the grid lines are intersected with the parameter lines, calculating a texture image level value at the intersection, dividing the grid lines by utilizing the texture image level value to obtain the divided grid lines, carrying out midpoint coordinate calculation and screening on the divided grid lines to obtain target midpoint coordinates, and extracting a target parameter line of the cutting geometric figure based on the target midpoint coordinates.
In this embodiment, discrete points of all boundary lines of the geometric figure are obtained, grid lines are generated by using the discrete points, shortest distances between the grid lines and the parameter lines are calculated, whether the grid lines and the parameter lines intersect or not is determined by using the shortest distances, so that intersection detection is completed, if the grid lines and the parameter lines intersect, the length and the number of sections of the intersecting parameter lines are determined, the texture image level value at the intersection position is calculated based on the length and the number of sections of the intersecting parameter lines, all the divided grid lines are obtained, midpoint coordinates of all the divided grid lines are calculated to obtain midpoint coordinates, the midpoint coordinates meeting preset conditions are used as target midpoint coordinates, and the target parameter lines of the cutting geometric figure are extracted based on the target midpoint coordinates.
The method comprises the steps of taking the midpoint coordinate meeting preset conditions as a target midpoint coordinate, judging whether the midpoint coordinate is in the digital model or not or judging whether the midpoint coordinate is on the digital model or not, and taking the midpoint coordinate as the target midpoint coordinate if the midpoint coordinate is in the digital model or on the digital model.
The specific extraction process of the target parameter line comprises (1) obtaining the discrete points of all boundary lines of the geometric figure, generating a new grid line FC_CON by using the discrete points, wherein the new grid line is shown in figure 2, a circle of discrete points of the digital model form FC_CON, the extracted parameter line CON exists on a part on the non-geometric figure, (2) carrying out intersection detection on a line segment formed by two adjacent discrete points of the FC_CON and the parameter line CON, wherein the intersection detection principle is shown in figure 3, and the principle is that the head and tail points P0 and Q0 of a first line segment and the head and tail points P1 and Q1 of a second line segment are assumed, and the two line segments can be expressed asAndAssume thatAndThe minimum distance between them is set. To seek,Only whenWith the minimum value of the total number of the components,Is perpendicular to at the same time,. I.e.
;
;
Further comprises the following steps:
;
The substitution equation is:
Is provided with ,,,,And is also provided with. The solution of the system of equations is:
;
;
If denominator is a denominator Then,Parallel to each other. By taking at willTo calculate. By arrangingThen. Can calculate,Distance of (2):
;
Can be back calculated by the shortest distance ,Further, whether the line segments are intersected or not can be determined;
Then, the u value (i.e. texture image level value) of the parameter line CON on the grid line is determined by the point on the parameter line CON where the intersecting discrete segment exists, assuming that the nth segment line segment (length lenth _n) of the parameter line CON and FC_CON are intersected, the total segment number N of the parameter line CON and the total length are Lenth, and the u value is
;
All segmentation u values are available:
;
Then, the extracted parameter line CON is divided at the above-mentioned obtained U value by first sorting the set U into:
;
Wherein, the When i >0, there are
As shown in fig. 3, the parameter line dividing principle is that a is a parameter line CON, and if the parameter line is divided into 3 segments, the division value at a isObtaining segments b and c, then dividing the segment on line c into segmentsObtaining line segments d and e. Dividing by analogy to obtain a plurality of divided grid lines;
Finally, for each grid line, the coordinates of the points are found, if the points are in the digital model or on the digital model, the points are reserved, if the points are located on the clipping plane, the points are deleted, so that the extraction of the parameter lines on the clipping plane is completed, and the result of the extracted target parameter lines is shown in fig. 4.
The method comprises the steps of obtaining a digital model for describing geometric elements of an aircraft, selecting any initial geometric figure, setting horizontal coordinates of a texture image and vertical coordinates of the texture image for the initial geometric figure to obtain the geometric figure, determining the extraction direction of the parameter surface, judging whether the geometric figure is a cutting surface, ending the extraction process if the geometric figure is not the cutting surface, extracting corresponding parameter lines from the geometric figure according to the extraction direction of the parameter surface if the geometric figure is the cutting surface, generating grid lines based on discrete points of all boundary lines of the geometric figure, intersecting the grid lines with the parameter lines, dividing the grid lines by using the horizontal coordinates of the texture image, calculating midpoint coordinates of the divided grid lines, judging whether the midpoint coordinates are in the digital model or on the digital model, and reserving the midpoint coordinates if the midpoint coordinates are in the digital model to extract target parameter lines of the cutting geometric figure.
The initial parameter line is extracted from the geometric figure before the original cutting, and the geometric figure surface after the cutting is not subjected to a re-parameterization process, so that the information of the original geometric figure is not further lost, errors are accumulated, and finally inaccurate simulation factors are generated.
In the embodiment, a digital model for describing geometric elements of an aircraft is obtained, an initial geometric figure in the digital model is screened and parameter configuration is carried out to obtain the geometric figure, a parameter face extraction direction is determined, whether the geometric figure is a cutting face or not is judged, if the geometric figure is the cutting face, a corresponding parameter line is extracted from the geometric figure according to the parameter face extraction direction, grid lines are generated based on the geometric figure, intersecting detection is carried out on the grid lines and the parameter lines, if the grid lines intersect with the parameter lines, a texture image level value at the intersecting position is calculated, the grid lines are segmented by utilizing the texture image level value to obtain the segmented grid lines, midpoint coordinates are calculated and screened on the segmented grid lines to obtain target midpoint coordinates, and a target parameter line of the cutting figure is extracted based on the target midpoint coordinates. According to the application, the initial geometric figure in the digital model for describing the geometric elements of the aircraft is screened and parameter configuration is carried out to obtain the geometric figure, the parameter plane extraction direction is determined, if the geometric figure is a cutting plane, the corresponding parameter line is extracted, the re-parameterization process of the geometric figure after cutting is avoided, so that the situation that the information of the original geometric figure is lost can be solved, grid lines are generated based on the geometric figure, intersecting detection is carried out on the grid lines and the parameter line, if the grid lines are intersected with the parameter line, the texture image level value at the intersecting position is calculated, the grid lines are divided, midpoint coordinate calculation and screening are carried out on the divided grid lines to obtain the target midpoint coordinate, thereby extracting the target parameter line of the cutting geometric figure, and by a method for intersecting detection of the grid lines and the parameter line, the complexity of parameter line extraction of the cutting geometric figure can be reduced, the calculation cost is reduced, the parameter line is rapidly generated, and the accuracy of the parameter line extraction of the cutting geometric figure is improved.
Referring to fig. 6, an embodiment of the present invention discloses a parameter line extraction device for cutting out a digital die surface, which may specifically include:
The geometric figure determining module 11 is used for acquiring a digital model for describing geometric elements of the aircraft, screening and parameter configuration are carried out on initial geometric figures in the digital model to obtain geometric figures, and the extraction direction of a parameter surface is determined;
The clipping plane judging module 12 is configured 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 extracting direction;
And the target parameter line extraction module 13 is configured to generate a grid line based on the geometric figure, perform intersection detection on the grid line and the parameter line, calculate a texture image level value at an intersection if the grid line and the parameter line intersect, segment the grid line by using the texture image level value to obtain the segmented grid line, perform midpoint coordinate calculation and screening on the segmented grid line to obtain a target midpoint coordinate, and extract a target parameter line for cutting the geometric figure based on the target midpoint coordinate.
In the embodiment, a digital model for describing geometric elements of an aircraft is obtained, an initial geometric figure in the digital model is screened and parameter configuration is carried out to obtain the geometric figure, a parameter face extraction direction is determined, whether the geometric figure is a cutting face or not is judged, if the geometric figure is the cutting face, a corresponding parameter line is extracted from the geometric figure according to the parameter face extraction direction, grid lines are generated based on the geometric figure, intersecting detection is carried out on the grid lines and the parameter lines, if the grid lines intersect with the parameter lines, a texture image level value at the intersecting position is calculated, the grid lines are segmented by utilizing the texture image level value to obtain the segmented grid lines, midpoint coordinates are calculated and screened on the segmented grid lines to obtain target midpoint coordinates, and a target parameter line of the cutting figure is extracted based on the target midpoint coordinates. According to the application, the initial geometric figure in the digital model for describing the geometric elements of the aircraft is screened and parameter configuration is carried out to obtain the geometric figure, the parameter plane extraction direction is determined, if the geometric figure is a cutting plane, the corresponding parameter line is extracted, the re-parameterization process of the geometric figure after cutting is avoided, so that the situation that the information of the original geometric figure is lost can be solved, grid lines are generated based on the geometric figure, intersecting detection is carried out on the grid lines and the parameter line, if the grid lines are intersected with the parameter line, the texture image level value at the intersecting position is calculated, the grid lines are divided, midpoint coordinate calculation and screening are carried out on the divided grid lines to obtain the target midpoint coordinate, thereby extracting the target parameter line of the cutting geometric figure, and by a method for intersecting detection of the grid lines and the parameter line, the complexity of parameter line extraction of the cutting geometric figure can be reduced, the calculation cost is reduced, the parameter line is rapidly generated, and the accuracy of the parameter line extraction of the cutting geometric figure is improved.
In some specific embodiments, the geometric determining module 11 may specifically include:
the model surface selection module is used for selecting any initial geometric figure from the digital model;
And the setting module is used for setting the horizontal coordinate of the texture image and the vertical coordinate of the texture image for the initial geometric figure.
In some specific embodiments, the target parameter line extracting module 13 may specifically include:
And the grid line generating module is used for acquiring the discrete points of all the boundary lines of the geometric figure and generating grid lines by utilizing the discrete points.
In some specific embodiments, the target parameter line extracting module 13 may specifically include:
and the intersection detection module is used for calculating the shortest distance between the grid lines and the parameter lines, and determining whether the grid lines and the parameter lines intersect or not by utilizing the shortest distance so as to finish intersection detection.
In some specific embodiments, the target parameter line extracting module 13 may specifically include:
And the horizontal value calculation module is used for determining the length and the number of the intersected sections of parameter lines if the grid lines are intersected with the parameter lines, and calculating the horizontal value of the texture image at the intersection position based on the length and the number of the intersected sections of parameter lines.
In some specific embodiments, the target parameter line extracting module 13 may specifically include:
The midpoint coordinate calculation module is used for acquiring all the divided grid lines and carrying out midpoint coordinate calculation on all the divided grid lines so as to obtain midpoint coordinates;
and the target midpoint coordinate determining module is used for taking the midpoint coordinate meeting the preset condition as the target midpoint coordinate.
In some specific embodiments, the target parameter line extracting module 13 may specifically include:
The judging module is used for judging whether the midpoint coordinate is in the digital model or not or judging whether the midpoint coordinate is on the digital model or not;
and the target midpoint coordinate determining module is used for taking the midpoint coordinate as a target midpoint coordinate if the midpoint coordinate is in the digital model or the midpoint coordinate is on the digital model.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 20 may include, in particular, 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. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement the relevant steps in the method for extracting a parameter line for clipping a digital profile, which is performed by an electronic device, as disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide working voltages for each hardware device on the electronic device 20, the communication interface 24 is capable of creating a data transmission channel with an external device for the electronic device 20, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein, and the input/output interface 25 is configured to obtain external input data or output data to the external device, and the specific interface type of the input/output interface may be selected according to the specific application needs and is not specifically limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the method of extracting the parameter line of clipping the digital die surface performed by the electronic device 20 as disclosed in any of the previous embodiments. The data 223 may include, in addition to data received by the parameter line extracting device for cutting out the digital die surface and transmitted from the external device, data collected by the own input/output interface 25, and the like.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the method for extracting the parameter line for cutting the digital model surface disclosed in any embodiment is realized.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The above detailed description of a method, an apparatus, a device and a storage medium for extracting a parameter line for clipping a digital molding surface provided by the present invention has been provided, and specific examples are provided herein to illustrate the principles and embodiments of the present invention, and the above examples are only for aiding in understanding of the method and core concept of the present invention, and meanwhile, to those skilled in the art, according to the concept of the present invention, there are variations in the specific embodiments and application ranges, so the disclosure should not be interpreted as limiting the present invention.

Claims (9)

1. The parameter line extraction method for cutting the digital molding surface is characterized by comprising the following steps of:
acquiring a digital model for describing geometric elements of an aircraft, screening and configuring parameters of initial geometric figures in the digital model to obtain the geometric figures, and determining the extraction direction of parameter surfaces;
judging whether the geometric figure is a cutting plane or not, if the geometric figure is the cutting plane, extracting a corresponding parameter line from the geometric figure according to the extracting direction of the parameter plane;
Generating grid lines based on the geometric figure, carrying out intersection detection on the grid lines and the parameter lines, if the grid lines are intersected with the parameter lines, calculating a texture image level value at the intersection, dividing the parameter lines by utilizing the texture image level value to obtain the divided parameter lines, carrying out midpoint coordinate calculation and screening on the divided parameter lines to obtain target midpoint coordinates, and extracting target parameter lines of the cutting geometric figure based on the target midpoint coordinates;
The method comprises the steps of generating grid lines based on geometric figures, conducting intersection detection on the grid lines and parameter lines, calculating texture image level values at the intersection positions if the grid lines and the parameter lines are intersected, dividing the parameter lines by the texture image level values to obtain divided parameter lines, obtaining discrete points of all boundary lines of the geometric figures, generating the grid lines by the discrete points, conducting intersection detection on line segments formed by two adjacent discrete points of the grid lines and the parameter lines, determining corresponding texture image level values on the grid lines by points with intersecting discrete segments on the parameter lines, and obtaining all texture image level values Dividing the parameter line at the texture image level value, namely finishing the set U into the following steps: Wherein, the method comprises the steps of, When i >0, there isAnd dividing by analogy in sequence to obtain a plurality of sections of divided parameter lines.
2. The method for extracting a parameter line for clipping a digital model surface according to claim 1, wherein the step of screening and parameter configuring an initial geometric figure in the digital model comprises the steps of:
Selecting an arbitrary initial geometry from the digital model;
Setting a texture image horizontal coordinate and a texture image vertical coordinate for the initial geometry.
3. The method of claim 1, wherein the intersecting detection of the grid lines and the parameter lines comprises:
and calculating the shortest distance between the grid line and the parameter line, and determining whether the grid line and the parameter line intersect or not by using the shortest distance so as to complete intersection detection.
4. The method of claim 1, wherein calculating a texture image level value at the intersection if the grid line and the parameter line intersect, comprises:
If the grid lines are intersected with the parameter lines, determining the length and the number of the intersected sections of parameter lines, and calculating a texture image level value at the intersection based on the length and the number of the intersected sections of parameter lines.
5. The method for extracting a parameter line for clipping a digital die surface according to any one of claims 1 to 4, wherein the calculating and screening the midpoint coordinates of the segmented parameter line to obtain target midpoint coordinates comprises:
Acquiring all the divided parameter lines, and performing midpoint coordinate calculation on all the divided parameter lines to obtain midpoint coordinates;
And taking the midpoint coordinates meeting preset conditions as target midpoint coordinates.
6. The method for extracting a parameter line for clipping a digital die surface according to claim 5, wherein the taking the midpoint coordinate satisfying a preset condition as a target midpoint coordinate comprises:
judging whether the midpoint coordinate is in the digital model or not, or judging whether the midpoint coordinate is on the digital model or not;
And if the midpoint coordinate is in the digital model or the midpoint coordinate is on the digital model, taking the midpoint coordinate as a target midpoint coordinate.
7. A parameter line extraction device for cutting out a digital die surface, comprising:
The geometric figure determining module is used for acquiring a digital model for describing geometric elements of the aircraft, screening and parameter configuration are carried out on initial geometric figures in the digital model to obtain geometric figures, and the extraction direction of a parameter surface is determined;
The clipping plane judging module is used for judging whether the geometric figure is a clipping plane or not, and if the geometric figure is the clipping plane, extracting a corresponding parameter line from the geometric figure according to the extracting direction of the parameter plane;
The target parameter line extraction module is used for generating grid lines based on the geometric figure, carrying out intersection detection on the grid lines and the parameter lines, calculating a texture image level value at an intersection position if the grid lines are intersected with the parameter lines, dividing the parameter lines by utilizing the texture image level value to obtain the divided parameter lines, carrying out midpoint coordinate calculation and screening on the divided parameter lines to obtain target midpoint coordinates, and extracting target parameter lines of the cutting geometric figure based on the target midpoint coordinates;
The method comprises the steps of generating grid lines based on geometric figures, conducting intersection detection on the grid lines and parameter lines, calculating texture image level values at the intersection positions if the grid lines and the parameter lines are intersected, dividing the parameter lines by the texture image level values to obtain divided parameter lines, obtaining discrete points of all boundary lines of the geometric figures, generating the grid lines by the discrete points, conducting intersection detection on line segments formed by two adjacent discrete points of the grid lines and the parameter lines, determining corresponding texture image level values on the grid lines by points with intersecting discrete segments on the parameter lines, and obtaining all texture image level values Dividing the parameter line at the texture image level value, namely finishing the set U into the following steps: Wherein, the method comprises the steps of, When i >0, there isAnd dividing by analogy in sequence to obtain a plurality of sections of divided parameter lines.
8. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the parameter line extraction method of clipping a digital die surface as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method for extracting a parameter line for clipping a digital profile according to any one of claims 1 to 6.
CN202510444152.9A 2025-04-10 2025-04-10 Parameter line extraction method, device, equipment and medium for cutting digital die surface Active CN119939791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510444152.9A CN119939791B (en) 2025-04-10 2025-04-10 Parameter line extraction method, device, equipment and medium for cutting digital die surface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510444152.9A CN119939791B (en) 2025-04-10 2025-04-10 Parameter line extraction method, device, equipment and medium for cutting digital die surface

Publications (2)

Publication Number Publication Date
CN119939791A CN119939791A (en) 2025-05-06
CN119939791B true CN119939791B (en) 2025-07-11

Family

ID=95541722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510444152.9A Active CN119939791B (en) 2025-04-10 2025-04-10 Parameter line extraction method, device, equipment and medium for cutting digital die surface

Country Status (1)

Country Link
CN (1) CN119939791B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116433767A (en) * 2023-04-18 2023-07-14 北京百度网讯科技有限公司 Target object detection method, device, electronic device and storage medium
CN116500680A (en) * 2022-01-21 2023-07-28 中国石油化工股份有限公司 A Method for Describing Geometric Elements of Fracture Surface Based on Structural Modeling

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117975031B (en) * 2024-01-02 2025-04-29 中国航空发动机研究院 Feature line extraction method, device, electronic equipment and computer readable storage medium
CN118334273B (en) * 2024-06-12 2024-08-23 柏意慧心(杭州)网络科技有限公司 Automatic extraction method, device and storage medium for aortic sinus ostium plane

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116500680A (en) * 2022-01-21 2023-07-28 中国石油化工股份有限公司 A Method for Describing Geometric Elements of Fracture Surface Based on Structural Modeling
CN116433767A (en) * 2023-04-18 2023-07-14 北京百度网讯科技有限公司 Target object detection method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN119939791A (en) 2025-05-06

Similar Documents

Publication Publication Date Title
KR20170068462A (en) 3-Dimensional Model Generation Using Edges
CN107622530B (en) An Efficient and Robust Triangulation Network Cutting Method
CN105631936A (en) Point cloud repair method and system
CN118456446B (en) Intelligent reinforcement cage binding method, device, equipment and medium based on three-dimensional reconstruction
CN116432329A (en) Computer-aided generation design with feature thickness control for manufacturing and structural performance
CN114332291A (en) Oblique photography model building outer contour rule extraction method
CN112966330A (en) Wall surface generation method of crossed wall body, computer equipment and readable storage medium
CN117710243A (en) Point cloud denoising method and device, electronic equipment and readable storage medium
CN119741437A (en) Surface subsidence prediction and analysis method and device for mining with arbitrary shapes and multiple working faces
CN105931297A (en) Data processing method applied to three-dimensional geological surface model
CN118965912B (en) Grid node position adjustment method and device based on geometric feature recognition
CN119939791B (en) Parameter line extraction method, device, equipment and medium for cutting digital die surface
CN114429535A (en) Smooth cutting method and device for triangular mesh curved surface
CN105869210A (en) Interpolation data processing method in three-dimensional geological surface model
CN114202642A (en) Method and device for filling oversized holes in three-dimensional triangulation network model
CN118070434A (en) Method and system for constructing process information model of automobile part
CN117893712A (en) Surface structure grid generation method and device
EP4092557A1 (en) Parameterization of digital irregular freeform geometries
CN113253675B (en) Two-dimensional-oriented three-axis tool location point operation method and system
CN113920248B (en) Method and device for detecting size and position of three-dimensional model of transformer substation and electronic equipment
CN115719403A (en) Method and device for constructing tool path, electronic equipment and storage medium
McLaurin et al. Repairing unstructured triangular mesh intersections
CN112800829B (en) Identification method for local damage degree of object based on three-dimensional measurement
CN109840945B (en) Finite element preprocessing method and device
WO2013116859A1 (en) Computer process for determining best-fitting materials for constructing architectural surfaces

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant