Railway four-electricity digital engineering space position information detection method based on triangular mesh
By converting the digital engineering model of railway electrical equipment into a triangular mesh model and obtaining the minimum bounding box for detection, the problem of high detection complexity of different formats is solved, and efficient and unified spatial location information detection is achieved.
Patent Information
- Application Number
- CN202410545936.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2044-05-06
AI Technical Summary
Existing technologies for detecting spatial location information of digital engineering products in different formats are highly complex, making it difficult to standardize and reducing practicality.
The digital engineering models of railway electrical equipment in different formats are converted into triangular mesh models, and the minimum bounding box of each triangle is obtained and merged. Spatial location information is detected based on the minimum bounding box.
It reduces the complexity of detection, improves detection efficiency and versatility, and enables unified detection of digital engineering data in different formats.
Smart Images

Figure CN118470095B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of spatial location information detection technology for railway electrical, electronic, and electrical engineering, specifically to a method for detecting spatial location information in railway electrical, electronic, and electrical engineering based on triangular meshes. Background Technology
[0002] Digital engineering certification refers to third-party conformity assessment activities that evaluate the product and service quality capabilities of digital engineering providers. Through standards, certification, and testing, the delivery level of digital engineering services can be effectively improved, collaboration efficiency among project stakeholders can be optimized, and project quality can be enhanced.
[0003] To standardize and promote the development of railway digital engineering technology, the construction of a railway digital engineering certification system is urgently needed. Establishing a standardized system is a crucial component of this system, serving as a key technical document to guide and regulate digital engineering certification operations. By establishing comprehensive technical standards for railway digital engineering certification (system), the effective implementation of the certification system can be further promoted, driving high-quality development of digital engineering services in the railway industry, better integrating digital information into the entire lifecycle of the railway industry, and developing new business models for digital engineering certification. Among these standards, the "Standard for Spatial Location Information Testing of Digital Engineering Products in Railway Electrical, Electronic, and Electrical Engineering Professions" is a vital component of digital engineering testing.
[0004] During the spatial location information detection process of digital engineering products, the digital engineering projects submitted by various manufacturers and digital engineering creation units vary greatly in quality and type, such as Revit, Bentely, BIMLite, etc. Performing different detections for each format would inevitably increase the difficulty and reduce practicality, and would also contradict the principle of standardization. Triangle Mesh, a polygonal mesh composed entirely of triangles, is widely used in computer graphics and modeling to simulate the surfaces of complex objects and has strong versatility. By converting different types of digital engineering projects into a unified Triangle Mesh format before detection, the complexity of the detection process is reduced. Summary of the Invention
[0005] This application provides a method for detecting spatial location information of railway electrical engineering digital engineering based on triangular mesh, in order to solve the problem that the existing technology requires different detection methods for spatial location information of digital engineering products of different formats, which is highly complex, increases the difficulty and reduces the practicality.
[0006] According to the first aspect, one embodiment provides a method for detecting spatial location information in railway electrical, signaling, and electronic engineering based on triangular meshes, the method comprising:
[0007] The digital engineering models of railway electrical equipment in different formats were separated into graphic and model forms and converted into triangular mesh models.
[0008] Traverse the triangular faces in the triangular mesh model and obtain the minimum bounding box of each triangular face. Merge the minimum bounding boxes of all triangular faces to obtain the minimum bounding box of the railway electrical equipment triangular mesh entity.
[0009] The detection results are obtained by using the minimum bounding box of the triangular mesh entity of the four electrical equipment of the railway to detect the spatial position information between the four electrical equipment.
[0010] Furthermore, the constructed digital engineering models of railway electrical equipment in different formats are separated into graphic and model representations and converted into triangular mesh models, specifically including:
[0011] The model attribute data and equipment IDs of the digital engineering model of railway electrical equipment are extracted and stored in the attribute database.
[0012] Furthermore, the constructed digital engineering models of railway electrical equipment in different formats are subjected to model-drawing separation and converted into triangular mesh models, specifically including:
[0013] Extract the wireframe composed of all faces of the digital engineering model of the railway's four electrical equipment;
[0014] Traverse the multiple lines and curves in the wireframe, and take points for each line at preset intervals to obtain a triangular mesh set;
[0015] Based on the triangular network point set, obtain the set of all points on the same face and create a Deloni triangulation, and create a triangular mesh entity for railway electrical equipment to complete the conversion of the triangular mesh model;
[0016] The obtained triangular mesh model is matched with the exported device attribute database using device IDs.
[0017] Furthermore, the triangular faces in the triangular mesh model are traversed and the minimum bounding box of each triangular face is obtained. The minimum bounding boxes of all triangular faces are merged to obtain the minimum bounding box of the railway electrical equipment triangular mesh entity, specifically including:
[0018] Traverse the triangular faces in the triangular mesh entity of the railway's four electrical equipment units;
[0019] Based on the coordinates of the three vertices {x,y,z} of the triangle, determine the two corner points Min(x,y,z) and Max(x,y,z) of the minimum bounding box of the triangle, thus forming the minimum bounding box of the triangle {Min(x,y,z); Max(x,y,z)}.
[0020] The minimum bounding box of the triangular facets in the triangular facet mesh entity of the railway electrical equipment is obtained by performing a union calculation on all triangular faces.
[0021] Furthermore, based on the minimum bounding box of the triangular mesh entities of the railway's four electrical equipment, the spatial position information between the four electrical equipment is detected to obtain the detection results, specifically including:
[0022] Internal testing:
[0023] Perform internal checks on the minimum bounding boxes {Min1(x,y,z);Max1(x,y,z)} and {Min2(x,y,z);Max2(x,y,z)} of the triangular mesh entity one of the railway electrical equipment and the minimum bounding boxes {Min2(x,y,z);Max2(x,y,z)} of the triangular mesh entity two of the railway electrical equipment. Determine whether both Min1(x,y,z) and Max1(x,y,z) are inside {Min2(x,y,z);Max2(x,y,z)}. If both are inside, it means that {Min1(x,y,z);Max1(x,y,z)} is inside {Min2(x,y,z);Max2(x,y,z)}.
[0024] Furthermore, based on the minimum bounding box of the triangular mesh entities of the railway's four electrical equipment, the spatial position information between the four electrical equipment is detected to obtain the detection results, specifically including:
[0025] Intersection detection:
[0026] An intersection check is performed on the minimum bounding boxes {Min1(x,y,z);Max1(x,y,z)} of the first triangular mesh entity of the railway electrical equipment and {Min2(x,y,z);Max2(x,y,z)} of the second triangular mesh entity of the railway electrical equipment. The check determines whether Min1(x,y,z) and Max1(x,y,z) are inside {Min2(x,y,z);Max2(x,y,z)}. If only one of them is inside {Min2(x,y,z);Max2(x,y,z)}, it means that {Min1(x,y,z);Max1(x,y,z)} and {Min2(x,y,z);Max2(x,y,z)} intersect.
[0027] Furthermore, based on the minimum bounding box of the triangular mesh entities of the railway's four electrical equipment, the spatial position information between the four electrical equipment is detected to obtain the detection results, specifically including:
[0028] Top and bottom detection:
[0029] For the minimum bounding boxes {Min1(x,y,z); Max1(x,y,z)} and {Min2(x,y,z); Max2(x,y,z)} of the railway electrical equipment triangular mesh entity one, perform top-bottom checks to determine if the Z values of Min1(x,y,z) and Max1(x,y,z) are both greater than the Z value of Max2(x,y,z). If both are greater, it means that {Min1(x,y,z); Max1(x,y,z)} is not bounding. 1(x,y,z);Max1(x,y,z)} is above {Min2(x,y,z);Max2(x,y,z)}; Determine whether the Z values of Min1(x,y,z) and Max1(x,y,z) are both less than the Z value of Min2(x,y,z). If they are both less, it means that {Min1(x,y,z);Max1(x,y,z)} is below {Min2(x,y,z);Max2(x,y,z)}.
[0030] According to a second aspect, one embodiment provides a spatial location information detection system for railway electrical, signaling, and electronic engineering based on a triangular mesh, the system comprising:
[0031] The model conversion module is used to separate the graphic from the model of the constructed digital engineering models of railway electrical equipment in different formats and convert them into triangular mesh models;
[0032] The minimum bounding box acquisition module is used to traverse the triangular faces in the triangular face mesh model and obtain the minimum bounding box of each triangular face, and merge the minimum bounding boxes of all triangular faces to obtain the minimum bounding box of the railway electrical equipment triangular face mesh entity.
[0033] The position detection module is used to detect the spatial position information between railway electrical equipment based on the minimum bounding box of the triangular mesh entity of the railway electrical equipment and obtain the detection result.
[0034] According to a third aspect, one embodiment provides a railway electrical engineering spatial location information detection device based on a triangular mesh, the device comprising: a processor and a memory;
[0035] The memory is used to store one or more program instructions;
[0036] The processor is configured to run one or more program instructions to perform the steps of a method for detecting spatial location information in railway electrical engineering based on a triangular mesh, as described in any of the preceding claims.
[0037] According to a fourth aspect, one embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of a method for detecting spatial location information in railway electrical engineering based on a triangular mesh, as described in any of the preceding claims.
[0038] This application provides a method for detecting spatial location information in railway electrical engineering digital projects based on triangular meshes. The method involves separating the constructed digital engineering models of railway electrical equipment in different formats into a triangular mesh model; traversing the triangular faces in the mesh model and obtaining the minimum bounding box of each face; merging the minimum bounding boxes of all faces to obtain the minimum bounding box of the railway electrical equipment triangular mesh entity; and detecting the spatial location information between the railway electrical equipment based on the minimum bounding box of the railway electrical equipment triangular mesh entity to obtain the detection result. This invention unifies the complexity of detecting spatial location information in digital engineering projects from different manufacturers and of different types into a single method for detecting spatial location information in triangular mesh models, ultimately improving the efficiency and versatility of spatial location information detection in railway electrical engineering digital projects. Attached Figure Description
[0039] Figure 1 A flowchart illustrating a method for detecting spatial location information in railway electrical, electronic, and electronic engineering based on triangular meshes, as provided in one embodiment of the present invention;
[0040] Figure 2 This invention provides a method for detecting the spatial location information of railway electrical equipment based on triangular meshes in an embodiment of the present invention, which includes a digital engineering model and attribute features of railway electrical equipment.
[0041] Figure 3 The wireframe of the digital engineering model of railway electrical equipment is provided in a method for detecting spatial location information of railway electrical equipment based on triangular mesh in an embodiment of the present invention.
[0042] Figure 4 This invention provides a method for separating the image and model of railway electrical engineering equipment in a spatial location information detection method based on triangular mesh, as an embodiment of the present invention.
[0043] Figure 5 In a method for detecting spatial location information of railway electrical engineering based on triangular mesh, one embodiment of the present invention provides a method for converting railway electrical engineering equipment into Triangle Mesh entities.
[0044] Figure 6The bounding box of the Triangle Mesh device entity in a method for detecting spatial location information of railway electrical engineering based on triangular mesh is provided in one embodiment of the present invention.
[0045] Figure 7 This invention provides a method for detecting the spatial location information of railway electrical, electronic, and electronic systems based on triangular meshes, specifically for detecting the inner frame of equipment within a given area.
[0046] Figure 8 This invention provides a method for detecting the spatial location information of railway electrical, electronic, and electronic systems based on triangular meshes, specifically for detecting the intersection of equipment bounding boxes in one embodiment of the present invention.
[0047] Figure 9 This invention provides a method for detecting the spatial location information of railway electrical, electronic, and electronic systems based on triangular meshes, including the detection of the upper and lower bounding boxes of equipment in one embodiment of the present invention.
[0048] Figure 10 This is a schematic diagram of the logical structure of a railway electrical, electronic, and electronic engineering spatial location information detection system based on a triangular mesh, as provided in one embodiment of the present invention. Detailed Implementation
[0049] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. Similar elements in different embodiments are referred to by associated similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of the present application. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to the present application are not shown or described in the specification. This is to avoid obscuring the core parts of the present application with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.
[0050] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.
[0051] The first embodiment of this invention provides a method for detecting spatial location information in railway electrical engineering digital projects based on triangular meshes. This invention, in accordance with the requirements for detecting spatial location information in railway electrical engineering, unifies the diverse and varied formats of digital engineering projects into a Triangle Mesh model. Detection is performed using the bounding box spatial location, reducing detection complexity and difficulty, and improving detection efficiency. The following is a detailed explanation... Figure 1 Please provide a detailed explanation.
[0052] like Figure 1 As shown, in step S100, the constructed digital engineering models of railway electrical equipment in different formats are separated into graphic models and converted into triangular mesh models.
[0053] The above steps specifically include:
[0054] S110: Based on the organizational framework of railway electrical engineering digital engineering, perform attribute extraction: First, traverse the model and sub-models to obtain model attributes and corresponding equipment IDs, and import the equipment attributes in the railway electrical engineering digital engineering model into the database;
[0055] S120: Organizational framework for railway electrical engineering, traversing the model and sub-models, and extracting the wireframe composed of all faces of the model;
[0056] S130: Traverse the polylines and curves in the model wireframe and take points at the dist distance. That is, take a point for each line every dist distance to obtain the triangular mesh point set. The dist distance can be set manually to obtain triangular mesh models with different precision.
[0057] S140: Obtain the set of lines that make up the same face, the set of points that make up the face, create a Delonix triangulation for the set of points on the face, ensuring that the circumscribed spheres of all triangles do not contain other points as much as possible, and create a Mesh entity for the triangulation formed by the same device model, thereby realizing the conversion of the Triangle Mesh model.
[0058] S150: The Triangle Mesh entity is identified and matched with the exported device attribute database for device ID.
[0059] like Figure 1 As shown, in step S200, the triangular faces in the triangular mesh model are traversed and the minimum bounding box of each triangular face is obtained. The minimum bounding boxes of all triangular faces are merged to obtain the minimum bounding box of the railway electrical equipment triangular mesh entity.
[0060] The above steps specifically include:
[0061] S210, Traverse the triangles in the Triangle Mesh device Mesh entity;
[0062] S220. Based on the coordinates of the three vertices {x,y,z} of the triangle, determine the two corner points Min(x,y,z) and Max(x,y,z) of the minimum bounding box BoundingBox of the triangle, thus forming the minimum bounding box BoundingBox{Min(x,y,z); Max(x,y,z)} of the triangle.
[0063] S230. Perform union calculation on the minimum bounding boxes of all triangles in the Triangle Mesh device Mesh entity to obtain the BoundingBox of the device Mesh entity.
[0064] like Figure 1 As shown, in step S300, the spatial position information between the four railway electrical equipment is detected based on the minimum bounding box of the triangular mesh entity of the railway electrical equipment to obtain the detection result.
[0065] The above steps specifically include: detecting the spatial position information between the equipment by using the smallest bounding box of the railway electrical equipment entities. The detection content includes internal detection (entity A is inside entity B, and the bounding box of entity A is completely contained within the bounding box of entity B), intersection detection (entity A intersects with entity B, and the bounding box of entity A partially intersects with the bounding box of entity B), and top / bottom detection (entity A is above or below entity B).
[0066] The following describes a method for detecting spatial location information in railway electrical, electronic, and electronic systems based on a triangular mesh, using a digital engineering model of power supply equipment as an example. The method includes the following steps:
[0067] S1: As Figure 2 As shown, a digital engineering project for a power supply device is created using MicroStation CONNECT Edition;
[0068] S2: Extract model attributes and corresponding device IDs from the digital engineering of power supply equipment and import them into the attribute database;
[0069] S3: As Figure 3 As shown, extract the digital engineering wireframe of the power supply equipment;
[0070] S4: Traverse the polylines and curves in the digital engineering wireframe of the power supply equipment, and take points at 1cm intervals to obtain the triangular mesh set;
[0071] S5: The point set that makes up the face, performs Delonix triangulation on all face point sets, and creates the device mesh entity, realizing the conversion of the Triangle Mesh model; the model separation process is as follows. Figure 4 As shown; Figure 5 Convert railway electrical, electronic, and communication digital engineering equipment into Triangle Mesh entities;
[0072] S6: Match device IDs between the digital engineering triangular mesh model of the power supply equipment and the exported device attribute database;
[0073] S7: As Figure 6 As shown, the process iterates through the triangles in the Triangle Mesh entity power device, calculates the bounding boxes {Min(x,y,z);Max(x,y,z)} for the three vertices of each triangle, and merges all the bounding boxes to obtain the bounding box of the device Mesh entity.
[0074] S8: As Figure 7 As shown, an internal check is performed on the BoundingBox1{Min1(x,y,z); Max1(x,y,z)} and BoundingBox2{Min2(x,y,z); Max2(x,y,z)} of two Triangle Mesh entities. It is determined whether Min1(x,y,z) and Max1(x,y,z) are both inside BoundingBox2. If they are both inside BoundingBox2, it means that BoundingBox1 is inside BoundingBox2.
[0075] S9: such as Figure 8 As shown, an intersection check is performed on the BoundingBox1{Min1(x,y,z); Max1(x,y,z)} and BoundingBox2{Min2(x,y,z); Max2(x,y,z)} of two Triangle Mesh entities. It is determined whether both Min1(x,y,z) and Max1(x,y,z) are inside BoundingBox2. If only one of them is inside BoundingBox2, it means that BoundingBox1 and BoundingBox2 intersect.
[0076] S10: As Figure 9As shown, the BoundingBox1{Min1(x,y,z); Max1(x,y,z)} and BoundingBox2{Min2(x,y,z); Max2(x,y,z)} of two Triangle Mesh entities are checked for top and bottom. If the Z values of Min1(x,y,z) and Max1(x,y,z) are both greater than the Z value of Max2(x,y,z) of BoundingBox2, it means that BoundingBox1 is on top of BoundingBox2. If the Z values of Min1(x,y,z) and Max1(x,y,z) are both less than the Z value of Min2(x,y,z) of BoundingBox2, it means that BoundingBox1 is below BoundingBox2.
[0077] This invention provides a method for detecting spatial location information in railway electrical engineering digital projects based on triangular meshes. The method involves separating the constructed digital engineering models of railway electrical equipment in different formats into a triangular mesh model; traversing the triangular faces in the mesh model and obtaining the minimum bounding box of each face; merging the minimum bounding boxes of all faces to obtain the minimum bounding box of the railway electrical equipment triangular mesh entity; and detecting the spatial location information between the railway electrical equipment based on the minimum bounding box of the railway electrical equipment triangular mesh entity to obtain the detection result. This invention unifies the detection of spatial location information in digital engineering projects from different manufacturers and of different types into a single method for detecting spatial location information in triangular mesh models, ultimately improving the efficiency and versatility of spatial location information detection in railway electrical engineering digital projects.
[0078] Corresponding to the above-disclosed method for detecting spatial location information in railway electrical engineering based on triangular mesh, this invention also discloses a system for detecting spatial location information in railway electrical engineering based on triangular mesh, such as... Figure 10 As shown, it specifically includes:
[0079] The model conversion module is used to separate the graphic from the model of the constructed digital engineering models of railway electrical equipment in different formats and convert them into triangular mesh models;
[0080] The minimum bounding box acquisition module is used to traverse the triangular faces in the triangular face mesh model and obtain the minimum bounding box of each triangular face, and merge the minimum bounding boxes of all triangular faces to obtain the minimum bounding box of the railway electrical equipment triangular face mesh entity.
[0081] The position detection module is used to detect the spatial position information between railway electrical equipment based on the minimum bounding box of the triangular mesh entity of the railway electrical equipment and obtain the detection result.
[0082] It should be noted that for a detailed description of the spatial location information detection system for railway electrical engineering based on triangular mesh provided in the embodiments of the present invention, please refer to the relevant description of the spatial location information detection method for railway electrical engineering based on triangular mesh provided in the embodiments of this application, which will not be repeated here.
[0083] This invention also provides a spatial location information detection device for railway electrical, electronic, and electronic engineering based on triangular mesh, the device comprising: a processor and a memory;
[0084] The memory is used to store one or more program instructions;
[0085] The processor is configured to run one or more program instructions to perform the steps of a method for detecting spatial location information in railway electrical engineering based on a triangular mesh, as described in any of the preceding claims.
[0086] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for detecting spatial location information in railway electrical engineering based on triangular mesh as described in any of the preceding embodiments.
[0087] Those skilled in the art will understand that all or part of the functions of the various methods in the above embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, which may include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to achieve the above functions. For example, the program can be stored in the memory of a device, and when the program in the memory is executed by the processor, all or part of the above functions can be achieved. In addition, when all or part of the functions in the above embodiments are implemented by computer programs, the program can also be stored in a server, another computer, disk, optical disk, flash drive, or external hard drive, etc., and can be downloaded or copied to the memory of a local device, or the system of the local device can be updated. When the program in the memory is executed by the processor, all or part of the functions in the above embodiments can be achieved.
[0088] The above examples illustrate the present invention only to aid in understanding it and are not intended to limit the scope of the invention. Those skilled in the art can make various simple deductions, modifications, or substitutions based on the ideas of this invention.
Claims
1. A method for detecting spatial location information in railway electrical, signaling, and electronic engineering based on triangular meshes, characterized in that, The method includes: The digital engineering models of railway electrical equipment in different formats were separated into graphic and model forms and converted into triangular mesh models. Traverse the triangular faces in the triangular mesh model and obtain the minimum bounding box of each triangular face. Merge the minimum bounding boxes of all triangular faces to obtain the minimum bounding box of the railway electrical equipment triangular mesh entity. The detection results are obtained by using the minimum bounding box of the triangular mesh entity of the four electrical equipment of the railway to detect the spatial position information between the four electrical equipment of the railway. in: The digital engineering models of railway electrical equipment in different formats were separated into graphic and model parts and converted into triangular mesh models, specifically including: Extract the wireframe composed of all faces of the digital engineering model of the railway's four electrical equipment; Traverse the multiple lines and curves in the wireframe, and take points for each line at preset intervals to obtain a triangular mesh set; Based on the triangular network point set, obtain the set of all points on the same face and create a Deloni triangulation, and create a triangular mesh entity for railway electrical equipment to complete the conversion of the triangular mesh model; The obtained triangular mesh model is matched with the exported device attribute database using device IDs. Traverse the triangular faces in the triangular mesh model and obtain the minimum bounding box of each triangular face. Merge the minimum bounding boxes of all triangular faces to obtain the minimum bounding box of the railway electrical equipment triangular mesh entity, specifically including: Traverse the triangular faces in the triangular mesh entity of the railway's four electrical equipment units; Based on the coordinates of the three vertices {x,y,z} of the triangle, determine the two corner points Min(x,y,z) and Max(x,y,z) of the minimum bounding box of the triangle, thus forming the minimum bounding box of the triangle {Min(x,y,z);Max(x,y,z)}. The minimum bounding box of the triangular facets in the triangular facet mesh entity of the railway electrical equipment is obtained by performing a union calculation on all triangular faces.
2. The method for detecting spatial location information of railway electrical, signaling, and electronic engineering systems based on triangular meshes as described in claim 1, characterized in that, The digital engineering models of railway electrical equipment in different formats were separated into graphic and model parts and converted into triangular mesh models, specifically including: The model attribute data and equipment IDs of the digital engineering model of railway electrical equipment are extracted and stored in the attribute database.
3. The method for detecting spatial location information of railway electrical, signaling, and electronic engineering based on triangular mesh as described in claim 1, characterized in that, The detection results are obtained by using the minimum bounding box of the triangular mesh entity of the four electrical equipment of the railway to detect the spatial position information between them. Specifically, the results include: Internal testing: Perform an internal check on the minimum bounding boxes {Min1(x,y,z);Max1(x,y,z)} and {Min2(x,y,z);Max2(x,y,z)} of the triangular mesh entity one of the railway electrical equipment and the minimum bounding boxes {Min2(x,y,z);Max2(x,y,z)} of the triangular mesh entity two of the railway electrical equipment. Determine whether both Min1(x,y,z) and Max1(x,y,z) are inside {Min2(x,y,z);Max2(x,y,z)}. If both are inside, it means that {Min1(x,y,z);Max1(x,y,z)} is inside {Min2(x,y,z);Max2(x,y,z)}.
4. The method for detecting spatial location information of railway electrical, signaling, and electronic engineering based on triangular mesh as described in claim 1, characterized in that, The detection results are obtained by using the minimum bounding box of the triangular mesh entity of the four electrical equipment of the railway to detect the spatial position information between them. Specifically, the results include: Intersection detection: An intersection check is performed on the minimum bounding boxes {Min1(x,y,z);Max1(x,y,z)} and {Min2(x,y,z);Max2(x,y,z)} of the triangular mesh entity one of the railway electrical equipment and the minimum bounding boxes {Min2(x,y,z);Max2(x,y,z)} of the triangular mesh entity two of the railway electrical equipment. It is determined whether Min1(x,y,z) and Max1(x,y,z) are inside {Min2(x,y,z);Max2(x,y,z)}. If only one of them is inside {Min2(x,y,z);Max2(x,y,z)}, it means that {Min1(x,y,z);Max1(x,y,z)} and {Min2(x,y,z);Max2(x,y,z)} intersect.
5. The method for detecting spatial location information of railway electrical, signaling, and electronic engineering systems based on triangular meshes as described in claim 1, characterized in that, The detection results are obtained by using the minimum bounding box of the triangular mesh entity of the four electrical equipment of the railway to detect the spatial position information between them. Specifically, the results include: Top and bottom detection: Perform top-bottom checks on the minimum bounding boxes {Min1(x,y,z);Max1(x,y,z)} and {Min2(x,y,z);Max2(x,y,z)} of the railway electrical equipment triangular mesh entity one and the railway electrical equipment triangular mesh entity two. Determine whether the Z values of Min1(x,y,z) and Max1(x,y,z) are both greater than the Z value of Max2(x,y,z). If both are greater, it means that {Min1(x,y,z);Max1(x,y,z)} is above {Min2(x,y,z);Max2(x,y,z)}. Determine whether the Z values of Min1(x,y,z) and Max1(x,y,z) are both less than the Z value of Min2(x,y,z). If both are less, it means that {Min1(x,y,z);Max1(x,y,z)} is below {Min2(x,y,z);Max2(x,y,z)}.
6. A spatial location information detection system for railway electrical, signaling, and electronic engineering based on triangular meshes, characterized in that, The system is used to implement the method according to any one of claims 1-5, comprising: The model conversion module is used to separate the graphic from the model of the constructed digital engineering models of railway electrical equipment in different formats and convert them into triangular mesh models; The minimum bounding box acquisition module is used to traverse the triangular faces in the triangular face mesh model and obtain the minimum bounding box of each triangular face, and merge the minimum bounding boxes of all triangular faces to obtain the minimum bounding box of the railway electrical equipment triangular face mesh entity. The position detection module is used to detect the spatial position information between railway electrical equipment based on the minimum bounding box of the triangular mesh entity of the railway electrical equipment and obtain the detection result. in: The digital engineering models of railway electrical equipment in different formats were separated into graphic and model parts and converted into triangular mesh models, specifically including: Extract the wireframe composed of all faces of the digital engineering model of the railway's four electrical equipment; Traverse the multiple lines and curves in the wireframe, and take points for each line at preset intervals to obtain a triangular mesh set; Based on the triangular network point set, obtain the set of all points on the same face and create a Deloni triangulation, and create a triangular mesh entity for railway electrical equipment to complete the conversion of the triangular mesh model; The obtained triangular mesh model is matched with the exported device attribute database using device IDs. Traverse the triangular faces in the triangular mesh model and obtain the minimum bounding box of each triangular face. Merge the minimum bounding boxes of all triangular faces to obtain the minimum bounding box of the railway electrical equipment triangular mesh entity, specifically including: Traverse the triangular faces in the triangular mesh entity of the railway's four electrical equipment units; Based on the coordinates of the three vertices {x,y,z} of the triangle, determine the two corner points Min(x,y,z) and Max(x,y,z) of the minimum bounding box of the triangle, thus forming the minimum bounding box of the triangle {Min(x,y,z);Max(x,y,z)}. The minimum bounding box of the triangular facets in the triangular facet mesh entity of the railway electrical equipment is obtained by performing a union calculation on all triangular faces.
7. A spatial location information detection device for railway electrical, signaling, and electronic engineering based on triangular mesh, characterized in that, The device includes: a processor and a memory; The memory is used to store one or more program instructions; The processor is configured to run one or more program instructions to perform the steps of the spatial location information detection method for railway electrical engineering based on triangular mesh as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method for detecting spatial location information in railway electrical engineering based on a triangular mesh, as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method for creating IFC4 entity information and spatial position conforming to railway four-electric engineering
CN111666349A
Processing method for triangular mesh model, processing terminal, and storage medium
WO2020062472A1