Electromagnetic occlusion judgment method based on surface element normal and ray triangle intersection algorithm
Through the surface element normal and ray triangle intersection algorithm, combined with the Möller-Trumbore algorithm, the accuracy and efficiency problems of surface element occlusion judgment in high-frequency electromagnetic calculations are solved, and more accurate and efficient occlusion judgment is achieved.
Patent Information
- Application Number
- CN202410537327.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-04-30
AI Technical Summary
In high-frequency electromagnetic calculations, it is difficult for existing surface element occlusion judgment methods to balance judgment accuracy and calculation efficiency, and the cubic bounding box division leads to an increase in errors and calculations.
An electromagnetic occlusion judgment method based on the surface element normal and ray triangle intersection algorithm is used. The initial judgment is made through the dot multiplication of the surface element normal vector and the radiation source direction vector. The projection distance ranking is calculated. The Möller-Trumbore algorithm is used for occlusion judgment and converted into rays. For intersection problems with triangular surface elements, the judgment result can be obtained directly without solving the system of equations.
The calculation efficiency is improved, the number of panel occlusion judgments is reduced, the judgment accuracy is enhanced, and errors caused by cubic bounding box division are avoided. The Möller-Trumbore algorithm is directly used to improve the calculation efficiency.
Smart Images

Figure CN118135228B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electromagnetic computing technology, and in particular to an electromagnetic shielding judgment method based on a facet normal and ray triangle intersection algorithm. Background Art
[0002] At present, when a large-size target is used for electromagnetic calculation using the PO (Physical Optics) method, it is often divided into tens of thousands or even millions of facets. The most accurate and simple occlusion judgment method requires occlusion judgment between facets two by two. Occlusion judgment between two facets will undoubtedly lead to a huge workload and reduce calculation efficiency.
[0003] In order to reduce the workload and improve the computational efficiency, in the electromagnetic occlusion judgment method based on spatial diversity of face elements, face elements are packed with cubic bounding boxes. There are multiple face elements in each cubic bounding box. If there is no occlusion between the cubic bounding box and a face element, then there is no occlusion between the face element and all the face elements used in the cube. Although the computational efficiency can be improved by this spatial diversity method, the division of the cubic bounding box will bring errors and lead to inaccurate judgments. In addition, when calculating whether occlusion occurs between two face elements, the method proposed in the invention first solves a set of equations, and then determines whether occlusion occurs based on the range of the solution of the set of equations. Each occlusion judgment requires solving the set of equations, which will increase the amount of calculation and reduce the computational efficiency. Summary of the invention
[0004] The technical problem to be solved by the present invention is how to address the problem that the existing facet occlusion judgment method is difficult to strike a balance between judgment accuracy and computational efficiency in high-frequency electromagnetic calculations; in view of this, the present invention provides an electromagnetic occlusion judgment method based on facet normal and ray-triangle intersection algorithm.
[0005] The technical solution adopted by the present invention is an electromagnetic shielding judgment method based on a facet normal and ray triangle intersection algorithm, comprising:
[0006] Step 1, divide the target into multiple triangular face elements;
[0007] Step 2, using the result of the dot product of the normal vector of the face element and the radiation source direction vector, to make an initial judgment on the occlusion of the face element to confirm the shadow area and the illuminated area in the face element;
[0008] Step 3, in the illumination area, determining the projection of the center vector of each facet on the radiation source direction vector to obtain the corresponding projection distance;
[0009] Step 4, sorting the used facets from near to far from the radiation source according to the projection distance;
[0010] Step 5: According to the current sorting, the face element and all currently determined bright face elements are subjected to occlusion judgment using a preset ray-triangle intersection algorithm. If all currently determined bright face elements cannot occlude the face element, the face element is a bright face element.
[0011] Step 6: Determine the radar cross-section of each bright facet and the accumulated radar cross-section of the target.
[0012] In one embodiment, the ray-triangle intersection algorithm includes:
[0013] Determine the location of the radiation source and the direction of the unit ray;
[0014] Use the configured ray-triangle intersection formula to determine the correlation coefficient;
[0015] If the correlation coefficient meets the algorithm condition, the current surface element is blocked by the determined surface element, otherwise it is not blocked.
[0016] In one embodiment, the ray-triangle intersection formula specifically includes:
[0017] [ β u v ] = 1 SC F 2 ⃗ × ( CA ) ⋅ ( BA ) [ (SA) × (BA) ⋅ ( CA ) SC F 2 ⃗ × ( CA ) ⋅ ( S − A ) (SA) × (BA) ⋅ SC F 2 ⃗ ]
[0018] Among them, a point S in space represents the radiation source, and the surface element and They are bright face elements and face elements to be judged, points A, B, and C are face elements respectively. The three vertices, radiation source S and surface center The lines connecting the , if the ray Intersecting with triangle ABC, it represents the surface element Quilt Block.
[0019] In one embodiment, the algorithm conditions include:
[0020] Correlation coefficient , , ,satisfy .
[0021] In one embodiment, in step S1, the target is divided into a plurality of triangular facets that meet the requirements of the PO method.
[0022] Another aspect of the present invention further provides an electromagnetic shielding judgment device based on a facet normal and ray triangle intersection algorithm, comprising:
[0023] A partitioning unit configured to partition the target into a plurality of triangular face elements;
[0024] A first judgment unit is configured to make a preliminary judgment on the occlusion of the face element by using a result pair of a dot product of the normal vector of the face element and the direction vector of the radiation source, so as to confirm the shadow area and the illumination area in the face element;
[0025] A projection distance calculation unit, configured to determine the projection of the center vector of each facet on the radiation source direction vector in the illumination area to obtain a corresponding projection distance;
[0026] A sorting unit, configured to sort the used facets from near to far from the radiation source according to the projection distance;
[0027] A second judgment unit is configured to perform occlusion judgment on the face element and all currently determined bright face elements according to the current sorting by using a preset ray-triangle intersection algorithm, and if all currently determined bright face elements cannot occlude the face element, the face element is a bright face element;
[0028] The radar cross-sectional area calculation unit is configured to determine the radar cross-sectional area of each bright surface element and the radar cross-sectional area of the accumulated target.
[0029] Another aspect of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the electromagnetic occlusion judgment method based on the face element normal and ray triangle intersection algorithm as described in any one of the above items.
[0030] Another aspect of the present invention provides a computer storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the electromagnetic occlusion judgment method based on the face element normal and ray triangle intersection algorithm as described in any of the above items are implemented.
[0031] Compared with the prior art, the present invention has at least the following advantages:
[0032] 1) The present invention makes full use of the difference information of spatial positions between facets through the initial judgment based on facet normal and the sorting of projection distance, reduces the facet pairs that need to be judged for facet occlusion, and improves the calculation efficiency;
[0033] 2) When performing occlusion judgment on two facets, the present invention assumes the position of the radiation source based on the far field approximation and the radiation source direction, and converts the facet occlusion problem into the problem of the intersection of rays and triangular facets, making the occlusion judgment more accurate;
[0034] 3) The present invention directly uses the Möller-Trumbore algorithm to obtain the judgment result without solving the equation group, thereby improving the calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 1 is a flow chart of an electromagnetic shielding judgment method based on a facet normal and ray triangle intersection algorithm according to an embodiment of the present invention;
[0036] Figure 2 A logical schematic diagram of an electromagnetic shielding judgment method based on a facet normal and ray triangle intersection algorithm according to an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of calculating the facet projection distance according to an embodiment of the present invention;
[0038] Figure 4 Schematic diagram of facet occlusion judgment of a ray-triangle intersection algorithm according to an embodiment of the present invention;
[0039] Figure 5 A satellite model and its RCS calculation result according to an embodiment of the present invention;
[0040] Figure 6 This is a rendering of an example of occlusion judgment according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose, the present invention is described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0042] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. It should also be understood that terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and will not be interpreted in an idealized or overly formal sense unless explicitly defined in this article.
[0043] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0044] The embodiment of the present invention provides an electromagnetic shielding judgment method based on a facet normal and ray triangle intersection algorithm, such as Figure 1 As shown, including:
[0045] Step 1, divide the target into multiple triangular face elements;
[0046] Step 2, using the result of the dot product of the normal vector of the face element and the radiation source direction vector, to make an initial judgment on the occlusion of the face element to confirm the shadow area and the illuminated area in the face element;
[0047] Step 3, in the illumination area, determining the projection of the center vector of each facet on the radiation source direction vector to obtain the corresponding projection distance;
[0048] Step 4, sorting the used facets from near to far from the radiation source according to the projection distance;
[0049] Step 5: According to the current sorting, the face element and all currently determined bright face elements are subjected to occlusion judgment using a preset ray-triangle intersection algorithm. If all currently determined bright face elements cannot occlude the face element, the face element is a bright face element.
[0050] Step 6: Determine the radar cross-section of each bright facet and the accumulated radar cross-section of the target.
[0051] refer to Figure 2 , the method provided in this embodiment will be described in detail step by step below.
[0052] Step 1: Divide the target into triangular facets that meet the requirements of the PO method. Each facet is recorded as .
[0053] Among them, physical optics (PO) is an important high-frequency electromagnetic calculation method, which is often used to solve the scattering characteristics of various electrically large-sized targets. The PO method divides the target into wavelength-level facets, assuming that the facets are independent of each other, and finally obtains the scattering characteristics of the entire target by solving the scattering characteristics of a single facet. According to the assumption of the PO method, only the facets irradiated by the incident electromagnetic wave can generate an induced current, and then backscattering occurs. Therefore, when solving the scattering characteristics of a single facet, it is necessary to determine whether the facet is blocked by other facets. If blocked, the induced current of the facet is zero, and no backscattering occurs. When judging facet occlusion, it is necessary to analyze the occlusion situation of each facet, which is very complicated and requires a lot of calculation.
[0054] It should be noted that meeting the requirements of the PO method specifically refers to the general requirement of using the physical optics method for electromagnetic calculations. The panel size of .
[0055] Step 2: Using the surface normal vector and the radiation source direction vector The result of the dot product is used to make a preliminary judgment on the occlusion of the face element. The judgment is based on:
[0056]
[0057] Step 3: Calculate the center vector of the surface element In the direction of the radiation source vector The projection on Figure 3 , the panel center vector is the radius vector from the origin of the (target system) coordinate system to the center of the surface element. The calculation formula for the projection distance is:
[0058]
[0059] Step 4: Sort the used facets from near to far from the radiation source according to the facet center projection distance. The sorting result is recorded as .
[0060] Step 5: Follow The face element and all the bright face elements that have been determined are sequentially compared using the Möller-Trumbore algorithm (ray-triangle intersection algorithm) to determine if they are blocked. If all the bright face elements that have been determined cannot block the face element, then the face element is a bright face element. Since the projection distance is the shortest, it can be illuminated by electromagnetic waves and can be used as the first bright surface element)
[0061] Specifically, the Möller-Trumbore algorithm is efficient and concise, and is widely used in practice in fields such as ray tracing and collision detection. Its calculation process is relatively fast and can handle a variety of situations, including ray-triangle intersection, parallelism, and coplanarity. Due to the advantages of this algorithm, it has become one of the main algorithms for ray-triangle intersection detection in computer graphics. Möller-Trumbore can quickly obtain the intersection point and barycentric coordinates through vector and matrix calculations without pre-calculating the plane equation containing the triangle.
[0062] exist Figure 4 In the schematic diagram, a point S in space represents the radiation source, and the surface element and They are bright face elements and face elements to be judged, points A, B, and C are face elements respectively. The three vertices of . Need to determine the face element Whether it is bounded Occlusion, radiation source S and surface center The lines connecting the , if the ray If it intersects with triangle ABC, then the face element Quilt Occlusion, the occlusion judgment problem of the face element is converted into the problem of whether the ray intersects with the triangle face element.
[0063] However, when calculating the electromagnetic scattering characteristics of the far field, the distance to the radiation source S is not known, only the direction vector of the radiation source is known. , since the target is located close to the origin in the body coordinate system, it can be assumed that the radiation source is located at Place, that is ,in is an infinite positive number, generally 1e9 can be used, which can satisfy both the far-field condition and the radiation source direction. At this point, the surface element occlusion judgment problem can be solved using the Möller-Trumbore algorithm. The process is:
[0064] 1) Calculate the radiation source position , calculate the unit ray direction .
[0065] 2) According to the Möller-Trumbore algorithm, calculate the three coefficients separately , , .
[0066] [ β u v ] = 1 SC F 2 ⃗ × ( CA ) ⋅ ( BA ) [ (SA) × (BA) ⋅ ( CA ) SC F 2 ⃗ × ( CA ) ⋅ ( S − A ) (SA) × (BA) ⋅ SC F 2 ⃗ ]
[0067] 3) If satisfied , facet Quilt is blocked, otherwise it is not blocked.
[0068] Step 6: Calculate the radar cross section (RCS) of each bright surface element and the accumulated RCS of the target. Figure 5 This is a satellite model and its RCS calculation results at a pitch angle of 0° and an azimuth angle of 0~360°.
[0069] Figure 6 The effect of the high-frequency electromagnetic occlusion judgment method based on the surface element normal and the Möller-Trumbore algorithm on a tank model after the surface element occlusion judgment is performed. The radiation source direction is along the positive x-axis direction. Compared with the occlusion judgment method based on the surface element normal, the method proposed in the present invention is more accurate in judging the occlusion. For example, the wheels of the tank are about half still in Figure (b), but are completely blocked in Figure (c). In fact, the wheels will be completely blocked by the tracks. Therefore, Figure (c) is more in line with the actual situation in detail, and the occlusion judgment is more accurate.
[0070] Compared with the prior art, this embodiment has at least the following effects:
[0071] 1) The present invention makes full use of the difference information of spatial positions between facets through the initial judgment based on facet normal and the sorting of projection distance, reduces the facet pairs that need to be judged for facet occlusion, and improves the calculation efficiency;
[0072] 2) When performing occlusion judgment on two facets, the present invention assumes the position of the radiation source based on the far field approximation and the radiation source direction, and converts the facet occlusion problem into the problem of the intersection of rays and triangular facets, making the occlusion judgment more accurate;
[0073] 3) The present invention directly uses the Möller-Trumbore algorithm to obtain the judgment result without solving the equation group, thereby improving the calculation efficiency.
[0074] In summary, the present invention makes maximum use of prior information and reduces the number of judgments through reasonable process design. Through reasonable modeling and derivation, the Möller-Trumbore algorithm can be applied to the current problem, thereby quickly and accurately completing the face element occlusion judgment.
[0075] The second embodiment of the present invention corresponds to the first embodiment. This embodiment introduces an electromagnetic shielding judgment device based on a facet normal and ray triangle intersection algorithm, comprising the following components:
[0076] A partitioning unit configured to partition the target into a plurality of triangular face elements;
[0077] A first judgment unit is configured to make a preliminary judgment on the occlusion of the face element by using a result pair of a dot product of the normal vector of the face element and the direction vector of the radiation source, so as to confirm the shadow area and the illumination area in the face element;
[0078] A projection distance calculation unit, configured to determine the projection of the center vector of each facet on the radiation source direction vector in the illumination area to obtain a corresponding projection distance;
[0079] A sorting unit, configured to sort the used facets from near to far from the radiation source according to the projection distance;
[0080] A second judgment unit is configured to perform occlusion judgment on the face element and all currently determined bright face elements according to the current sorting by using a preset ray-triangle intersection algorithm, and if all currently determined bright face elements cannot occlude the face element, the face element is a bright face element;
[0081] The radar cross-sectional area calculation unit is configured to determine the radar cross-sectional area of each bright surface element and the radar cross-sectional area of the accumulated target.
[0082] A third embodiment of the present invention is an electronic device, which can be understood as a physical device, including a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the following operations are performed:
[0083] Step 1, divide the target into multiple triangular face elements;
[0084] Step 2, using the result of the dot product of the normal vector of the face element and the radiation source direction vector, to make an initial judgment on the occlusion of the face element to confirm the shadow area and the illuminated area in the face element;
[0085] Step 3, in the illumination area, determining the projection of the center vector of each facet on the radiation source direction vector to obtain the corresponding projection distance;
[0086] Step 4, sorting the used facets from near to far from the radiation source according to the projection distance;
[0087] Step 5: According to the current sorting, the face element and all currently determined bright face elements are subjected to occlusion judgment using a preset ray-triangle intersection algorithm. If all currently determined bright face elements cannot occlude the face element, the face element is a bright face element.
[0088] Step 6: Determine the radar cross-section of each bright facet and the accumulated radar cross-section of the target.
[0089] The fourth embodiment of the present invention, the process of the electromagnetic occlusion judgment method based on the face element normal and ray triangle intersection algorithm of this embodiment is the same as that of the first, second or third embodiment, the difference is that in engineering implementation, this embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the method of the present invention can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for a device to execute the method described in the embodiment of the present invention.
[0090] Through the description of the specific implementation methods, a deeper and more specific understanding of the technical means and effects adopted by the present invention to achieve the predetermined purpose should be obtained. However, the accompanying drawings are only for reference and illustration purposes and are not intended to limit the present invention.
Claims
1. An electromagnetic occlusion judgment method based on surface element normal and ray triangle intersection algorithm, characterized in that: include: Step 1, divide the target into multiple triangular face elements; Step 2, using the result of the dot product of the normal vector of the face element and the radiation source direction vector, to make an initial judgment on the occlusion of the face element to confirm the shadow area and the illuminated area in the face element; Step 3, in the illumination area, determining the projection of the center vector of each facet on the radiation source direction vector to obtain the corresponding projection distance; Step 4, sorting the facets of the illumination area from near to far from the radiation source according to the projection distance, wherein the facet with the closest distance is determined as the first bright facet; Step 5: According to the current sorting, the face element and all currently determined bright face elements are subjected to occlusion judgment using a preset ray-triangle intersection algorithm. If all currently determined bright face elements cannot occlude the face element, the face element is a bright face element. Wherein, the ray-triangle intersection algorithm includes: Determine the location of the radiation source and the direction of the unit ray; The correlation coefficient is determined using the configured ray-triangle intersection formula, wherein the ray-triangle intersection formula specifically includes: Among them, a point S in space represents the radiation source, the face elements F1 and F2 are the bright face element and the face element to be judged respectively, points A, B, and C are the three vertices of the face element F1 respectively, and the radiation source S and the face element center C are F2 The lines connecting the If the ray Intersecting with triangle ABC, it indicates that face element F2 is blocked by face element F1; If the correlation coefficient satisfies the algorithm condition, the current face element is blocked by the determined face element, otherwise it is not blocked, wherein the algorithm condition includes: The correlation coefficient β, u, v satisfies β>0 and 0<u,v≤1 and u+v≤1; Step 6: Determine the radar cross-section of each bright facet and the accumulated radar cross-section of the target.
2. The electromagnetic shielding judgment method based on the surface element normal and ray triangle intersection algorithm according to claim 1 is characterized in that: In the step 1, the target is divided into a plurality of triangular face elements that meet the requirements of the PO method.
3. An electromagnetic shielding judgment device based on the surface element normal and ray triangle intersection algorithm, characterized in that: include: A partitioning unit configured to partition the target into a plurality of triangular face elements; A first judgment unit is configured to make a preliminary judgment on the occlusion of the face element by using a result pair of a dot product of the normal vector of the face element and the direction vector of the radiation source, so as to confirm the shadow area and the illumination area in the face element; A projection distance calculation unit, configured to determine the projection of the center vector of each facet on the radiation source direction vector in the illumination area to obtain a corresponding projection distance; A sorting unit, configured to sort the face elements of the illumination area from near to far from the radiation source according to the projection distance, wherein the face element with the closest distance is determined as the first bright face element; A second judgment unit is configured to perform occlusion judgment on the face element and all currently determined bright face elements according to the current sorting by using a preset ray-triangle intersection algorithm, and if all currently determined bright face elements cannot occlude the face element, the face element is a bright face element; Wherein, the ray-triangle intersection algorithm includes: Determine the location of the radiation source and the direction of the unit ray; The correlation coefficient is determined using the configured ray-triangle intersection formula, wherein the ray-triangle intersection formula specifically includes: Among them, a point S in space represents the radiation source, the face elements F1 and F2 are the bright face element and the face element to be judged respectively, points A, B, and C are the three vertices of the face element F1 respectively, and the radiation source S and the face element center C are F2 The lines connecting the If the ray Intersecting with triangle ABC, it indicates that face element F2 is blocked by face element F1; If the correlation coefficient satisfies the algorithm condition, the current face element is blocked by the determined face element, otherwise it is not blocked, wherein the algorithm condition includes: The correlation coefficient β, u, v satisfies β>0 and 0<u,v≤1 and u+v≤1; The radar cross-sectional area calculation unit is configured to determine the radar cross-sectional area of each bright surface element and the radar cross-sectional area of the accumulated target.
4. An electronic device, characterized in that: The electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the electromagnetic occlusion judgment method based on the face element normal and ray triangle intersection algorithm as described in any one of claims 1 to 2 are implemented.
5. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the electromagnetic occlusion judgment method based on the face element normal and ray triangle intersection algorithm as described in any one of claims 1 to 2.
