Geometric model-based round face recognition method and device, equipment and medium
By using virtual geometry processing, rounded corners in geometric models are identified, solving the problems of insufficient accuracy and slow speed in existing technologies, and achieving fast and accurate rounded corner recognition.
Patent Information
- Application Number
- CN202411415757.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-10-10
AI Technical Summary
Existing technologies are not accurate enough and are slow in recognizing rounded corners of geometric models, especially in domestic CAE preprocessing software.
The virtual geometry processing method is used to process the edges of all faces in the geometric model, identify the transition edges on the faces, determine the transition faces that conform to the rounded corner characteristics, select two connecting faces that connect to the transition faces, determine two connecting faces that conform to the support face characteristics, and determine the transition face that makes the support face transition smoothly as the rounded corner face.
It achieves efficient and accurate identification of rounded corners in geometric models, speeds up the identification process, and does not require analyzing the analytical equations of geometric surfaces; it can quickly identify them using only edge information, thus improving identification accuracy.
Smart Images

Figure CN119337448B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer graphics, computational geometry, and CAE simulation technology, and in particular to a method, apparatus, device, and medium for rounded corner recognition based on a geometric model. Background Technology
[0002] The identification and removal of fillet surfaces in CAE (Computer-Aided Engineering) geometric models is a frequently used function in CAE preprocessing and a crucial step in CAE simulation preprocessing. Removing complex fillets from the geometric model reduces the complexity of the generated mesh, improves the quality of the region mesh, and accelerates the simulation calculation process. However, in practice, geometric models imported into CAE software often lack parametric modeling processes, making it impossible to identify modeling features. Therefore, accurately and quickly identifying fillet surfaces in the geometric model has become one of the important performance evaluation criteria for CAE preprocessing software.
[0003] Foreign CAE preprocessing software (such as HyperMesh and ANSA) all have functions related to rounded corner recognition, while domestic CAE preprocessing software is almost non-existent in this field. Even industry-leading CAE preprocessing software HyperMesh still has problems such as insufficient recognition accuracy and slow recognition speed for large models. Summary of the Invention
[0004] The purpose of this invention is to provide a method, apparatus, device, and medium for recognizing rounded corners based on geometric models, thereby solving the problems of insufficient accuracy and slow recognition speed when using existing technologies to recognize rounded corners of geometric models.
[0005] To solve the above-mentioned technical problems, one technical solution adopted by the present invention is to provide a rounded corner face recognition method based on a geometric model. The method includes the following steps: performing virtual geometric processing on the edges of all faces in the geometric model to obtain transition edges on the recognition surface. The virtual geometric processing refers to treating multiple consecutive short edges as a composite edge, and the transition edge belongs to the composite edge; determining the recognition surface that conforms to the rounded corner features as the transition surface; selecting two connecting surfaces connected to the transition surface, and the two connecting surfaces respectively connecting the two ends of the transition edge; determining the two connecting surfaces that conform to the support surface features as the first support surface and the second support surface, and the support surface features are features unique to the two support surfaces that are connected by the rounded corner face transition; determining the transition surface that makes the first support surface and the second support surface transition smoothly as the rounded corner face.
[0006] In some embodiments, before performing virtual geometry processing on the edges of all faces in the geometric model, the method further includes the step of: recording the dependency relationship between the faces contained in the geometric model and the geometric model to obtain a face set, wherein the face set includes all faces of the geometric model.
[0007] In some embodiments, performing virtual geometry processing on the edges of all faces in the face set to obtain transition edges on the identification face includes the following steps: storing multiple short edges that are connected and tangent in sequence into a data container to form a composite edge; determining the first tangent vector and the second tangent vector corresponding to the two endpoints of the composite edge respectively; if there is an angle between the first tangent vector and the second tangent vector, then determining the composite edge as the transition edge.
[0008] In some embodiments, determining that the identification surface conforming to the surface fillet feature is a transition surface includes the steps of: calculating the surface deflection angle and the radius of the surface fillet of the identification surface, and retaining the identification surfaces whose surface deflection angle and the radius of the surface fillet are within the expected range as transition surfaces.
[0009] In some embodiments, calculating the surface deflection angle of the identification surface includes the steps of: determining the first tangential vector and the second tangential vector corresponding to the two endpoints of the transition edge, constructing a cosine formula for the vector angle based on the first tangential vector and the second tangential vector, solving for the vector angle, and obtaining the surface deflection angle.
[0010] In some embodiments, determining that the two connecting surfaces conforming to the support surface characteristics are a first support surface and a second support surface includes the following steps: calculating the connecting surface normal vectors corresponding to the two connecting surfaces respectively; determining whether the two connecting surfaces conform to the support surface characteristics based on whether the two connecting surface normal vectors are parallel vectors; wherein, if the two connecting surface normal vectors are parallel vectors, then the two connecting surfaces are parallel to each other, and it is determined that the two connecting surfaces do not conform to the support surface characteristics; if the two connecting surface normal vectors are not parallel vectors, then the two connecting surfaces conform to the support surface characteristics; if the two connecting surfaces conform to the support surface characteristics, then the two connecting surfaces are determined to be a first support surface and a second support surface respectively.
[0011] In some embodiments, determining that the transition surface that allows the first support surface and the second support surface to transition smoothly is a rounded corner surface includes the steps of: calculating the transition surface normal vector of the transition surface, the transition surface normal vector including a first normal vector and a second normal vector, the first normal vector being the normal vector on the common edge of the transition surface and the first support surface, and the second normal vector being the normal vector on the common edge of the transition surface and the second support surface; and detecting whether the transition surface smoothly transitions with the first support surface and the second support surface based on the transition surface normal vector and the support surface normal vectors corresponding to the first support surface and the second support surface.
[0012] The present invention also provides a rounded corner surface recognition device based on a geometric model. The device includes: a model processing unit, used to perform virtual geometric processing on the edges of all surfaces in the geometric model to obtain transition edges on the recognition surface, wherein the virtual geometric processing refers to treating multiple consecutive short edges as a composite edge, and the transition edge belongs to the composite edge; a transition surface determination unit, used to determine the recognition surface that conforms to the rounded corner feature as a transition surface; a support surface determination unit, used to select two connecting surfaces connected to the transition surface, wherein the two connecting surfaces respectively connect to the two ends of the transition edge, and determine that the two connecting surfaces that conform to the support surface feature are a first support surface and a second support surface, wherein the support surface feature is a feature unique to the two support surfaces connected by the rounded corner transition; and a rounded corner surface determination unit, used to determine that the transition surface that makes the first support surface and the second support surface transition smoothly is a rounded corner surface.
[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the steps of the method described above.
[0014] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method.
[0015] The beneficial effects of this invention are as follows: This invention discloses a method, apparatus, device, and medium for rounded corner face recognition based on a geometric model. The method includes the following steps: performing virtual geometric processing on the edges of all faces in the geometric model to obtain transition edges on the recognition surface. Virtual geometric processing refers to treating multiple consecutive short edges as a composite edge, and the transition edge belongs to the composite edge; determining the recognition surface that conforms to the rounded corner characteristics as the transition surface; selecting two connecting surfaces connected to the transition surface, with the two connecting surfaces respectively connecting the two ends of the transition edge; determining the two connecting surfaces that conform to the support surface characteristics as the first support surface and the second support surface, with the support surface characteristics being unique to the two support surfaces connected by the rounded corner face transition; and determining the transition surface that makes the first support surface and the second support surface transition smoothly as the rounded corner face. The rounded corner face recognition method of this invention can handle the situation of broken edges of rounded corner faces based on the idea of virtual geometry. It does not require calculating the analytical equation of the geometric surface; it can quickly identify rounded corner faces in the geometric model based solely on the edge information, greatly accelerating the recognition process and achieving high accuracy. Attached Figure Description
[0016] Figure 1 This is a flowchart of an embodiment of a rounded corner surface recognition method based on a geometric model according to the present invention;
[0017] Figure 2 This is a flowchart of step S1 in one embodiment of a rounded corner surface recognition method based on a geometric model according to the present invention.
[0018] Figure 3 This is a partial schematic diagram of the geometric model used in one embodiment of the rounded corner surface recognition method based on a geometric model according to the present invention;
[0019] Figure 4 yes Figure 3 Enlarged view of region A in the image;
[0020] Figure 5 This is a partial schematic diagram of a geometric model containing the tangential vectors of the transition edge at both ends in one embodiment of a geometric model-based rounded surface recognition method of the present invention;
[0021] Figure 6 This is a flowchart of step S3 in one embodiment of a rounded corner surface recognition method based on a geometric model according to the present invention.
[0022] Figure 7 This is a partial schematic diagram of a geometric model containing the normal vector of the connecting surface in one embodiment of a rounded surface recognition method based on a geometric model according to the present invention;
[0023] Figure 8 This is a flowchart of step S4 in one embodiment of the rounded corner surface recognition method based on a geometric model of the present invention;
[0024] Figure 9 This is a partial schematic diagram of a geometric model containing a transition surface normal vector in one embodiment of a geometric model-based rounded surface recognition method of the present invention;
[0025] Figure 10 This is a recognition result diagram of an embodiment of the rounded corner surface recognition method based on a geometric model according to the present invention;
[0026] Figure 11 This is a recognition result diagram of another embodiment of the rounded corner surface recognition method based on a geometric model of the present invention;
[0027] Figure 12 This is a structural block diagram of a rounded corner surface recognition device based on a geometric model according to the present invention;
[0028] Figure 13 This is a schematic diagram of the architecture of an embodiment of an electronic device according to the present invention;
[0029] Figure 14 This is a schematic block diagram of an embodiment of a computer-readable storage medium according to the present invention. Detailed Implementation
[0030] To facilitate understanding of the present invention, a more detailed description is provided below with reference to the accompanying drawings and specific embodiments. Preferred embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of the invention.
[0031] It should be noted that, unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items.
[0032] First, it should be noted that fillet surfaces are commonly used in CAD design to achieve a smooth transition between two adjacent or intersecting surfaces, ensuring a smoother and more natural transition at the edges of geometric objects. Therefore, common fillet surfaces in geometric models typically have the following characteristics: the fillet surface itself is smooth, with no sharp edges / points inside; the fillet surface and the two connecting surfaces form a smooth G1 continuity transition, where G1 continuity, also known as tangent continuity, refers to a smooth transition between two objects; the fillet surface has at least one transition edge to achieve a smooth transition between the two connecting surfaces; and the fillet surface is usually a cylindrical or toroidal surface.
[0033] like Figure 1The figure shows a method for recognizing rounded corners based on a geometric model according to the present invention. The method includes the following steps:
[0034] Step S1: Perform virtual geometry processing on the edges of all faces in the geometric model to obtain the transition edges on the recognition face.
[0035] Before performing virtual geometry processing on the edges of all faces in the geometric model, the process includes the following steps: recording the dependency relationships between the faces contained in the geometric model and the geometric model itself, resulting in a face set. The face set includes all faces of the geometric model, including curved surfaces connecting two connected faces. Then, based on the face set, virtual geometry processing can be performed sequentially on the edges of all faces in the face set.
[0036] It should be noted that virtual geometry processing is based on the concept of virtual geometry (non-Euclidean geometry), challenging and redefining the fundamental principles of geometry. It treats multiple consecutive short edges as a single composite edge, combining the data of multiple short edges into a virtual composite edge. This requires no modification to the underlying data of the short edges; only a temporary combination of the short edges is used. The resulting composite edge can be considered a virtual set, and such an edge does not actually exist. The recognition surface is the currently recognized surface with multiple short edges. A transition edge is an edge located on the recognition surface that connects to two adjacent surfaces at both ends. Since a transition edge on a rounded surface is never a straight line, it is a composite edge.
[0037] For all faces in the face set, there exist recognition faces containing multiple short edges. The tangent of each short edge at its endpoints is checked. If multiple short edges are sequentially connected and tangent, these edges are stored in a data container and processed using virtual geometry principles to form a composite edge. Simultaneously, since the transition edge of a rounded face is never a straight line, there is an angle between its tangent lines at the start and end points. Therefore, it is necessary to determine whether an angle exists between the tangents at both endpoints of the composite edge to identify the transition edge on the recognition face.
[0038] Specifically, such as Figure 2 As shown, step S1 includes the following sub-steps:
[0039] Step S11: Store multiple short edges that are connected and tangent in sequence into a data container to form a composite edge.
[0040] It should be noted that when multiple short edges are identified on a surface, the tangent at each endpoint of the short edge needs to be calculated. Then, by using the tangent at the intersection of two connected short edges (the tangent at the corresponding endpoint of the short edge), it is determined whether the two connected short edges are tangent. This determines whether multiple short edges are sequentially connected and tangent. Finally, multiple sequentially connected and tangent short edges are placed into the same data container, which can be considered as a composite edge. Specifically, if the tangent at the intersection of two connected short edges is the same, then the two short edges are connected and tangent, and can be placed into a data container.
[0041] like Figures 3-5 As shown, a geometric model 1 is displayed, in which a recognition surface S has four connected short sides, and the four short sides are connected sequentially through three intersection points (J1, J2, and J3). First, the tangent of each of the four connected short sides at its respective endpoints is calculated. Then, it is determined whether the tangents of any two connected short sides at their corresponding intersection points are the same. For the three intersection points in the figure, if the tangents of any two connected short sides at their corresponding intersection points are the same, that is, the four short sides are sequentially connected and tangent, then the four short sides are stored in a data container, and these four short sides can form a composite edge 2.
[0042] In this embodiment, the four short sides are regarded as a composite edge 2. The surface deflection angle of the rounded surface can be obtained by calculating the edge deflection angle of the composite edge 2, making the calculation of the surface deflection angle more accurate.
[0043] Step S12: Determine the first tangent vector and the second tangent vector corresponding to the two endpoints of the composite edge.
[0044] like Figure 5 As shown, the first tangential vectors corresponding to the two endpoints of the composite edge 2 are displayed. Second tangential vector
[0045] Step S13: If there is an angle between the first tangential vector and the second tangential vector, then the composite edge is determined to be a transition edge.
[0046] like Figure 5 As shown, the first tangential vector is obviously Second tangential vector There is an angle between them, therefore, compound edge 2 is a transition edge.
[0047] In this embodiment, after obtaining the transition edge, the required rounded surface can be identified by the length and deflection direction of the transition edge.
[0048] Step S2: Identify the recognition surface that conforms to the rounded corner feature as the transition surface.
[0049] It should be noted that the face fillet feature is a feature used to blend non-adjacent, discontinuous faces. It allows users to specify a common fillet radius for two or more faces, thereby creating a smooth transition effect between faces. The implementation of the face fillet feature is based on selecting two or more faces and specifying a common fillet radius. Therefore, the face fillet feature includes both the face deflection angle of the fillet face and the radius of the corresponding fillet within a specific range. In this application, the identified face conforming to the face fillet feature refers to the identified face whose face deflection angle and fillet radius are within the expected range. The fillet can be regarded as the deflection angle of the fillet face, and the angle of the fillet is equal to the arc of the transition edge. Then, by calculating the face deflection angle and fillet radius of the identified face, the identified faces whose face deflection angle and fillet radius are within the expected range are retained as transition faces.
[0050] In most cases, the change angle of the rounded corner is replaced by the change angle of the transition edge, that is, the face deflection angle is equal to the edge deflection angle of the transition edge. Therefore, the calculation of the face deflection angle of the identified face includes the following steps: determining the first tangential vector and the second tangential vector corresponding to the two endpoints of the transition edge, constructing the cosine formula of the vector angle based on the first tangential vector and the second tangential vector, solving the vector angle, and obtaining the edge deflection angle.
[0051] The formula for the cosine of the angle between the vectors is:
[0052]
[0053] Where θ is the first tangential vector Second tangential vector The angle between the vectors corresponds to a side deflection angle of 180°-θ.
[0054] In this embodiment, the desired range of the face deflection angle is between 15° and 150°, that is, the transition edge with a deflection angle between 15° and 150° meets the user's expectations.
[0055] It should be noted that if the edge deflection angle is less than 15°, the recognition surface is approximately planar; however, if the edge deflection angle exceeds 150°, a smooth transition between the transition surface and the connecting surface cannot be guaranteed. Therefore, recognition surfaces with edge deflection angles between 15° and 150° are retained as transition surfaces, while recognition surfaces with angles exceeding 15°-150° are not within the scope of recognition.
[0056] Secondly, the radius of the fillet is the ratio of the side length L of the transition edge to the side deflection angle 180°-θ, that is, the radius of the fillet is R = L / (180°-θ). The radius R of the fillet is compared with the user input value, and the recognition surface within the user's expected range is selected as the transition surface.
[0057] In this process, by controlling the parameters of the edge deflection angle of the transition edge and the radius of the fillet, the fillet features in the geometric model can be quickly identified, and the identification surface that meets the fillet features can be determined as the transition surface, ensuring that the fillet surface determined later meets the actual needs.
[0058] Step S3: Select two connecting surfaces that are connected to the transition surface, and the two connecting surfaces are respectively connected to the two ends of the transition edge. Determine that the two connecting surfaces that meet the characteristics of the support surface are the first support surface and the second support surface.
[0059] It should be noted that the support surface feature is a fundamental characteristic unique to the two support surfaces connected by the rounded corner transition, including the fact that the two support surfaces are not parallel.
[0060] In this system, the two connecting surfaces connected by the transition edge each coincide with the transition surface and have two common edges. The normal vectors of the two connecting surfaces on the two common edges are calculated. If the normal vectors of the two connecting surfaces are parallel, then the two connecting surfaces are parallel or coincident, and the transition surface and the two connecting surfaces may belong to the same surface. If there is an angle between the normal vectors of the two connecting surfaces, then the two connecting surfaces are not parallel, and the transition surface and the two connecting surfaces definitely do not belong to the same surface. This allows us to filter out and remove cases where the transition edge is a planar curve.
[0061] Specifically, such as Figure 6 As shown, step S3 includes the following sub-steps:
[0062] Step S31: Calculate the normal vectors of the two connecting surfaces respectively.
[0063] In this embodiment, as Figure 7 As shown, for both connecting surfaces (L1 and L2), the midpoint of the common edge between the connecting surface (L1 / L2) and the transition surface M is taken, and the normal vector of the connecting surface (L1 / L2) on the corresponding connecting surface is calculated. The normal vectors of the two connecting surfaces are respectively...
[0064]
[0065] In some other embodiments, other points on the common edge can also be selected, and the normal vector of the connection surface on the corresponding connection surface can be calculated.
[0066] Step S32: Based on whether the normal vectors of the two connecting surfaces are parallel vectors, determine whether the two connecting surfaces conform to the characteristics of a support surface.
[0067] Specifically, when two connecting surfaces are parallel to each other, it is determined that the two connecting surfaces do not meet the characteristics of a supporting surface. If the normal vectors of the two connecting surfaces are parallel vectors, then the two connecting surfaces are parallel to each other, and it is determined that the two connecting surfaces do not meet the characteristics of a supporting surface; if the normal vectors of the two connecting surfaces are not parallel vectors, then the two connecting surfaces meet the characteristics of a supporting surface, and proceed to step S33.
[0068] Step S33: If the two connecting surfaces meet the characteristics of a support surface, then the two connecting surfaces are determined to be the first support surface and the second support surface, respectively.
[0069] like Figure 7 and Figure 9 As shown, the normal vectors of the two connecting surfaces Since they are not parallel vectors, the two connecting surfaces (L1 and L2) conform to the characteristics of support surfaces. Therefore, the two connecting surfaces (L1 and L2) are determined to be the first support surface D1 and the second support surface D2, respectively.
[0070] In this embodiment, by selecting two connecting surfaces that meet the characteristics of the support surface through steps S3 and S4, namely the first support surface D1 and the second support surface D2, it can be ensured that the two support surfaces obtained are not parallel.
[0071] Step S4: Determine that the transition surface that allows the first support surface and the second support surface to transition smoothly is a rounded corner surface.
[0072] Specifically, by calculating the normal vectors corresponding to the transition surface, the first support surface, and the second support surface, it is determined whether the transition surface smoothly transitions with the first support surface and the second support surface, respectively, based on the corresponding normal vectors.
[0073] Specifically, such as Figure 8 As shown, step S4 includes the following sub-steps:
[0074] Step S41: Calculate the transition surface normal vector of the transition surface.
[0075] like Figure 9 As shown, the normal vector of the transition surface includes the first normal vector. Second normal vector First normal vector Let M be the normal vector of the transition surface M on the common edge where the transition surface M and the first support surface D1 coincide, and let D be the second normal vector. Let be the normal vector of the transition surface M on the common edge where the transition surface M and the second support surface D2 coincide.
[0076] In this embodiment, the first normal vector is obtained by taking the midpoint of the common edge. Second normal vector
[0077] Step S42: Based on the transition surface normal vector and the support surface normal vectors of the first and second support surfaces, detect whether the transition surface smoothly transitions with the first and second support surfaces respectively.
[0078] It should be noted that the normal vectors of the first and second support surfaces correspond to the normal vectors of the two connecting surfaces mentioned in step S3, respectively.
[0079] In this embodiment, combined with Figure 7 The normal vectors of the first support surface D1 and the second support surface D2 are respectively If the normal vector of the first support surface D1 is With the first normal vector There exists an angle, and / or the normal vector of the second support surface D2. Second normal vector If an angle exists between the transition surface M and the first support surface D1 and / or the second support surface D2, it indicates that the transition surface M is not a smooth transition, and the corresponding transition surface M is not a rounded surface; if the normal vector of the support surface of the first support surface D1 is... With the first normal vector Coincident, the normal vector of the second support surface D2 With the second normal vector If they coincide, it means that the transition surface M smoothly transitions with the first support surface D1 and the second support surface D2 respectively, and the corresponding transition surface M belongs to the rounded corner surface.
[0080] It should be noted that, because the points selected when calculating the support surface normal vector and the transition surface normal vector are both the midpoints of the common edge, if the support surface normal vector of the first support surface D1... With the first normal vector Coincident, the support surface normal vector of the second support surface D2 With the second normal vector If they coincide, it indicates that the transition surface M smoothly transitions with the first support surface D1 and the second support surface D2, respectively.
[0081] In some other embodiments, when calculating the support surface normal vector and the transition surface normal vector, points other than the midpoint of the common edge can also be selected. If different points are selected, the calculation is based on the support surface normal vector of the first support surface D1. With the first normal vector Parallel to each other, the normal vectors of the support surfaces of the second support surface D2 With the second normal vector The surfaces are parallel to each other, and the transition surface M is determined to smoothly transition with the first support surface D1 and the second support surface D2 respectively.
[0082] like Figure 10 and Figure 11As shown, multiple rounded faces in two geometric models are identified using the rounded face recognition method of this application, with each rounded face highlighted in blue. The transition between each rounded face and its corresponding two connecting faces is achieved through G1 continuity, ensuring a smooth visual transition without abrupt interruptions.
[0083] Based on the same inventive concept, such as Figure 12 As shown, the present invention also provides a rounded corner surface recognition device based on a geometric model, the device comprising:
[0084] The model processing unit 101 is used to perform virtual geometric processing on the edges of all faces in the geometric model to obtain the transition edges on the recognition face. Virtual geometric processing refers to treating multiple consecutive short edges as a composite edge. The transition edge belongs to the composite edge.
[0085] The transition surface determination unit 102 is used to determine the identification surface that conforms to the rounded corner feature as the transition surface.
[0086] The support surface determination unit 103 is used to select two connecting surfaces that are connected to the transition surface, and the two connecting surfaces are respectively connected to the two ends of the transition edge. The two connecting surfaces that meet the support surface characteristics are the first support surface and the second support surface, and the support surface characteristics are the characteristics unique to the two support surfaces connected by the rounded corner transition.
[0087] The rounded corner surface determination unit 104 is used to determine that the transition surface that makes the first support surface and the second support surface transition smoothly is a rounded corner surface.
[0088] In this application, the other technical features of the rounded corner surface recognition device based on the geometric model are the same as those disclosed in the above method embodiments, and will not be repeated here.
[0089] Based on the same inventive concept, this application also provides an electronic device, which includes a processor, a memory, and a communication circuit, wherein the processor is connected to the memory and the communication circuit respectively; wherein the communication circuit is used for communication connection, the memory is used to store a computer program, and the processor is used to execute the computer program to implement the above method.
[0090] Please see Figure 13 The electronic device described in this application embodiment may specifically include a processor 210 and a memory 220. The memory 220 is coupled to the processor 210.
[0091] Processor 210 is used to control the operation of electronic devices. Processor 210 can also be referred to as a CPU (Central Processing Unit). Processor 210 may be an integrated circuit chip with signal processing capabilities. Processor 210 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor, or processor 210 can be any conventional processor.
[0092] Memory 220 is used to store computer programs and may be RAM, ROM, or other types of storage terminals. Specifically, memory 220 may include one or more computer-readable storage media, which may be non-transitory or transient. Memory 220 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage terminals or flash memory terminals. In some embodiments, the non-transitory computer-readable storage media in memory 220 is used to store at least one line of program code.
[0093] The processor 210 is used to execute computer programs stored in the memory 220 to implement the methods described in the various method embodiments of this application.
[0094] In some embodiments, the electronic device may further include: a peripheral terminal interface 230 and at least one peripheral terminal. The processor 210, memory 220, and peripheral terminal interface 230 can be connected via a bus or signal line. Each peripheral terminal can be connected to the peripheral terminal interface 230 via a bus, signal line, or circuit board. Specifically, the peripheral terminal includes at least one of: a radio frequency circuit 240, a display screen 250, an audio circuit 260, and a power supply 270.
[0095] The peripheral terminal interface 230 can be used to connect at least one I / O (Input / Output) related peripheral terminal to the processor 210 and the memory 220. In some embodiments, the processor 210, memory 220 and peripheral terminal interface 230 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 210, memory 220 and peripheral terminal interface 230 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0096] The radio frequency (RF) circuit 240 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 240 communicates with communication networks and other IoT devices via electromagnetic signals; it is the communication circuit of the electronic device. The RF circuit 240 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 240 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, an operator identification module card, etc. The RF circuit 240 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 240 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0097] Display screen 250 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 250 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 210 for processing. In this case, display screen 250 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 250, located on the front panel of the electronic device; in other embodiments, there may be at least two display screens, located on different surfaces of the electronic device or in a folded design; in still other embodiments, display screen 250 may be a flexible display screen, located on a curved or folded surface of the electronic device. Furthermore, display screen 250 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. Display screen 250 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0098] The audio circuit 260 may include a microphone and a speaker. The microphone is used to collect sound waves from the operator and the environment, converting the sound waves into electrical signals that are input to the processor 210 for processing, or input to the radio frequency circuit 240 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned in a different part of the electronic device. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 210 or the radio frequency circuit 240 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 260 may also include a headphone jack.
[0099] Power supply 270 is used to supply power to various components in an electronic device. Power supply 270 can be alternating current, direct current, a disposable battery, or a rechargeable battery. When power supply 270 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, while a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0100] For a detailed description of the functions and execution processes of each functional module or component in the electronic device embodiments of this application, please refer to the descriptions in the above-described method embodiments of this application, which will not be repeated here.
[0101] In the embodiments provided in this application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the embodiments of the electronic devices described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0103] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0104] Based on the same inventive concept, this application also provides a computer-readable storage medium storing a computer program that can be executed by a processor to implement the above-described method.
[0105] Please see Figure 14 If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in computer-readable storage medium 300. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions / computer programs to cause an Internet of Things device (which may be a personal computer, server, or network terminal, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, as well as electronic terminals such as computers, mobile phones, laptops, tablets, and cameras that have the aforementioned storage media.
[0106] The description of the execution process of program data in a computer-readable storage medium can be found in the descriptions in the various method embodiments of this application above, and will not be repeated here.
[0107] Therefore, this invention discloses a method, apparatus, device, and medium for rounded corner face recognition based on a geometric model. The method includes the following steps: performing virtual geometric processing on the edges of all faces in the geometric model to obtain transition edges on the recognition surface. Virtual geometric processing refers to treating multiple consecutive short edges as a composite edge, and the transition edge belongs to the composite edge; determining the recognition surface that conforms to the rounded corner characteristics as the transition surface; selecting two connecting surfaces that connect to the transition surface, with the two connecting surfaces respectively connecting to the two ends of the transition edge; determining the two connecting surfaces that conform to the support surface characteristics as the first support surface and the second support surface, with the support surface characteristics being unique to the two support surfaces that connect the rounded corner face transition; and determining the transition surface that makes the first support surface and the second support surface transition smoothly as the rounded corner face. The rounded corner face recognition method of this invention can handle the situation of broken edges of rounded corner faces based on the idea of virtual geometry. It does not require calculating the analytical equation of the geometric surface; it can quickly identify rounded corner faces in the geometric model based solely on the edge information, greatly accelerating the recognition process and achieving a high degree of accuracy.
[0108] The above are merely embodiments of the present invention and do not limit the scope of protection of the present invention. Any equivalent structural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are included within the scope of protection of the present invention.
Claims
1. A method for recognizing rounded corner surfaces based on a geometric model, characterized in that, The method includes the following steps: Virtual geometry processing is performed on the edges of all faces in the geometric model to obtain transition edges on the recognition face. The virtual geometry processing refers to treating multiple consecutive short edges as a composite edge, and the transition edge belongs to the composite edge. The identification surface that conforms to the rounded corner feature is determined to be a transition surface; Two connecting surfaces are selected to connect with the transition surface, and the two connecting surfaces are respectively connected to the two ends of the transition edge. The two connecting surfaces that meet the support surface characteristics are the first support surface and the second support surface, and the support surface characteristics are the characteristics unique to the two support surfaces connected by the rounded corner transition. The transition surface that allows for a smooth transition between the first support surface and the second support surface is determined to be a rounded corner surface; The step of performing virtual geometry processing on the edges of all faces in the geometric model to obtain transition edges on the identification face includes the following steps: storing multiple short edges that are connected and tangent in sequence into a data container to form a composite edge; determining the first tangent vector and the second tangent vector corresponding to the two endpoints of the composite edge respectively; if there is an angle between the first tangent vector and the second tangent vector, then the composite edge is determined to be the transition edge. The step of determining that the two connecting surfaces conforming to the support surface characteristics are the first support surface and the second support surface includes the following steps: calculating the normal vectors of the connecting surfaces corresponding to the two connecting surfaces respectively; determining whether the two connecting surfaces conform to the support surface characteristics based on whether the normal vectors of the two connecting surfaces are parallel vectors; wherein, if the normal vectors of the two connecting surfaces are parallel vectors, then the two connecting surfaces are parallel to each other, and it is determined that the two connecting surfaces do not conform to the support surface characteristics; if the normal vectors of the two connecting surfaces are not parallel vectors, then the two connecting surfaces conform to the support surface characteristics; if the two connecting surfaces conform to the support surface characteristics, then the two connecting surfaces are determined to be the first support surface and the second support surface respectively.
2. The rounded corner surface recognition method according to claim 1, characterized in that, Before performing virtual geometry processing on the edges of all faces in the geometric model, the following steps are also included: Record the relationships between the faces contained in the geometric model and the geometric model to obtain a face set, which includes all faces of the geometric model.
3. The rounded corner surface recognition method according to claim 1, characterized in that, The process of determining that the identified surface conforming to the rounded corner feature is a transition surface includes the following steps: Calculate the deflection angle and radius of the fillet of the identification surface, and retain the identification surfaces whose deflection angle and radius of the fillet are within the expected range as transition surfaces.
4. The rounded corner surface recognition method according to claim 3, characterized in that, The calculation of the surface deflection angle of the identification surface includes the following steps: Determine the first tangential vector and the second tangential vector corresponding to the two endpoints of the transition edge, respectively. Construct a cosine formula for the vector angle based on the first tangential vector and the second tangential vector, and solve for the vector angle to obtain the surface deflection angle.
5. The rounded corner surface recognition method according to claim 1, characterized in that, The step of determining that the transition surface that allows for a smooth transition between the first support surface and the second support surface is a rounded corner surface includes the following steps: Calculate the transition surface normal vector of the transition surface. The transition surface normal vector includes a first normal vector and a second normal vector. The first normal vector is the normal vector on the common edge of the transition surface and the first support surface. The second normal vector is the normal vector on the common edge of the transition surface and the second support surface. Based on the transition surface normal vector and the support surface normal vectors corresponding to the first and second support surfaces, it is detected whether the transition surface smoothly transitions with the first and second support surfaces, respectively.
6. A rounded corner surface recognition device based on a geometric model, characterized in that, The device includes: The model processing unit is used to perform virtual geometric processing on the edges of all faces in the geometric model to obtain transition edges on the identification faces. This includes: storing multiple consecutive and tangent short edges into a data container to form a composite edge; determining the first tangent vector and the second tangent vector corresponding to the two endpoints of the composite edge; if there is an angle between the first tangent vector and the second tangent vector, then determining the composite edge as the transition edge; the virtual geometric processing refers to treating multiple consecutive short edges as a single composite edge, and the transition edge belongs to the composite edge. A transition surface determination unit is used to determine the identification surface that conforms to the surface fillet feature as a transition surface; A support surface determination unit is used to select two connecting surfaces connected to the transition surface, wherein the two connecting surfaces respectively connect to the two ends of the transition edge, and determine that the two connecting surfaces conforming to the support surface characteristics are a first support surface and a second support surface, including: calculating the connecting surface normal vectors corresponding to the two connecting surfaces respectively; determining whether the two connecting surfaces conform to the support surface characteristics based on whether the two connecting surface normal vectors are parallel vectors; wherein, if the two connecting surface normal vectors are parallel vectors, then the two connecting surfaces are parallel to each other, and it is determined that the two connecting surfaces do not conform to the support surface characteristics; if the two connecting surface normal vectors are not parallel vectors, then the two connecting surfaces conform to the support surface characteristics; if the two connecting surfaces conform to the support surface characteristics, then it is determined that the two connecting surfaces are a first support surface and a second support surface, respectively; the support surface characteristics are characteristics unique to the two support surfaces connected by the rounded corner transition. A rounded corner surface determination unit is used to determine that the transition surface that makes the first support surface and the second support surface transition smoothly is a rounded corner surface.
7. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Virtual geometry display method and system and storage medium
CN117237564A
Reconstructing an object
US20210150078A1