Three-dimensional roadway automatic modeling method and device based on topological structure and storage medium
Through the automatic modeling method of three-dimensional tunnels based on topology, the problem of low efficiency and low accuracy of three-dimensional tunnel model construction in the existing technology is solved, and faster and more accurate tunnel modeling is achieved to meet the needs of mine production.
Patent Information
- Application Number
- CN202411140318.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing three-dimensional tunnel model construction methods have problems in efficiency and accuracy, and are difficult to meet the needs of mining production for fast and accurate modeling.
A three-dimensional tunnel automatic modeling method based on topology is used to visually render the tunnel data in the mine engineering drawing file, determine the left and right sides of the tunnel, calculate the central axis, assign an elevation value, and establish the tunnel according to the preset elevation error threshold The connection relationship between them realizes three-dimensional modeling.
It improves the construction efficiency and accuracy of the three-dimensional tunnel model, can more accurately reflect the actual shape and geological characteristics of the tunnel, and provides technical support for mining.
Smart Images

Figure CN118656999A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mine technology, and in particular to a method, device, electronic equipment and storage medium for automatic modeling of three-dimensional tunnels based on topological structure. Background Art
[0002] As the core component of mine production, tunnels carry multiple functions such as transportation, ventilation and drainage, and are key factors in the economic benefits and production safety of coal mines. With the advancement of science and technology and the deepening of mining, the accuracy and practicality of tunnel models are increasingly required. The establishment of a true three-dimensional tunnel model can more accurately reflect the actual form, spatial location and geological characteristics of the tunnel, providing strong technical support and decision-making basis for mine design planning, engineering construction and safety rescue.
[0003] At present, the construction methods of three-dimensional tunnel models usually include manual drawing and programming generation. Manual drawing usually relies on professional drawing software and technicians, and is drawn according to the geological data of the mine and the tunnel design drawings. Although it can more intuitively show the shape of the tunnel, it is inefficient and it is difficult to ensure the accuracy and consistency of the model. Programming generation is to automatically generate a three-dimensional tunnel model based on the geological data of the mine and the tunnel design parameters by writing specific algorithms and programs. Although this method can improve the efficiency of model construction, the design of the algorithm and the adjustment of parameters have an important impact on the accuracy of the model.
[0004] Therefore, the existing three-dimensional tunnel model construction methods have obvious technical problems in terms of efficiency and accuracy, and it is difficult to meet the needs of mine production for fast and accurate modeling. Therefore, it is necessary to further research and develop new modeling technologies to improve the efficiency and accuracy of three-dimensional tunnel model construction. Summary of the invention
[0005] The present invention solves the problems of low construction efficiency and precision of three-dimensional lane models in the prior art by providing a method, device, electronic equipment and storage medium for automatic modeling of three-dimensional lanes based on topological structures.
[0006] In order to achieve the above object, the technical solution of the embodiment of the present invention is: In the first aspect, the present invention provides a method for automatic modeling of three-dimensional tunnels based on topological structure, including: visually rendering the tunnel data in the engineering drawing file of the target mine to obtain a visualized tunnel map; determining the left and right sides of each target tunnel from the tunnel map based on the approximate parallel and closest distance rules; calculating and drawing the central axis of the target tunnel based on the left and right sides of the target tunnel through a preset buffer algorithm; assigning an elevation value to the central axis based on the guide points and elevation values of the guide points of the target tunnel; establishing a connection relationship between each target tunnel based on a preset tunnel elevation error threshold; and performing three-dimensional modeling of the target tunnel based on the central axis, the elevation value of the central axis, and the connection relationship between the target tunnels to obtain a three-dimensional model of the target tunnel.
[0007] In some possible implementations, the tunnel data in the engineering drawing file of the target mine is visualized and rendered to obtain a visualized tunnel map, including: extracting data files related to the tunnels from the engineering drawing file of the target mine, and converting the data files related to the tunnels into DWG format files; wherein the engineering drawing file is in DXF format; performing graphic visualization rendering on the DWG format file to obtain a visualized tunnel map; wherein the tunnel map includes at least the tunnel, the guide wire points of the tunnel, and the elevation value data of the guide wire points.
[0008] In some possible implementations, based on the approximate parallelism and the closest distance rules, the left and right sides of each target lane are determined from the lane map, including: sorting the lines corresponding to the lanes in the lane map according to vectors to obtain a lane vector sequence; wherein the vectors in the lane vector sequence are determined based on the coordinates and lengths of the lines corresponding to the lanes; based on the approximate parallelism and the closest distance rules, the left and right sides of the target lane are determined from the lane vector sequence, and the left and right sides of the target lane are paired and marked; and the target lane is determined based on the paired marks.
[0009] In some possible implementations, an elevation value is assigned to the central axis based on the guide point of the target lane and the elevation value of the guide point, including: determining the projection distance from the guide point to the central axis; when the projection distance is less than the width of the target lane and the projection point is between the two end points of the central axis, the elevation value of the guide point is assigned to the projection point, and the elevation value corresponding to the projection point is used as the elevation value of the central axis.
[0010] In some possible implementations, the method further includes: calculating the elevation value of the endpoint of the central axis according to the elevation values of two projection points that are closest to the same endpoint on the central axis.
[0011] In some possible implementations, when the number of corresponding projection points on the central axis of the target tunnel is less than a preset threshold, the method further includes: obtaining wire points within a preset search circle, and interpolating the elevation value of the central axis by a preset inverse distance interpolation method.
[0012] In some possible implementations, after automatically establishing a connection relationship between target lanes based on a preset lane elevation error threshold, the method further includes: for target lanes for which a connection relationship cannot be automatically established, connecting the target lanes through manual intervention.
[0013] In the second aspect, the present invention provides a three-dimensional tunnel automatic modeling device based on a topological structure, including: a visualization rendering module, which is used to visualize the tunnel data in the engineering drawing file of the target mine to obtain a visualized tunnel map; a first determination module, which is used to determine the left and right sides of each target tunnel from the tunnel map based on the approximate parallel and closest distance rules; a central axis drawing module, which is used to calculate and draw the central axis of the target tunnel based on the left and right sides of the target tunnel through a preset buffer algorithm; an assignment module, which is used to assign elevation values to the central axis according to the guide points of the target tunnel and the elevation values of the guide points; a connection relationship establishment module, which is used to establish the connection relationship between each target tunnel based on a preset tunnel elevation error threshold; a three-dimensional modeling module, which is used to perform three-dimensional modeling of the target tunnel according to the central axis, the elevation value of the central axis and the connection relationship between the target tunnels to obtain a three-dimensional model of the target tunnel.
[0014] In a third aspect, the present invention provides an electronic device, comprising: a memory for storing executable instructions; and a processor for implementing the method provided in the first aspect of the present invention when executing the executable instructions or computer programs stored in the memory.
[0015] In a fourth aspect, the present invention provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implement the method provided in the first aspect of the present invention.
[0016] One or more technical solutions provided by the present invention have at least the following technical effects or advantages: In the present invention, the tunnel data in the engineering drawing file of the target mine is visualized and rendered to obtain a visualized tunnel map; based on the approximate parallel and closest distance rules, the left and right sides of each target tunnel are determined from the tunnel map; based on the left and right sides of the target tunnel, the central axis of the target tunnel is calculated and drawn through a preset buffer algorithm; according to the elevation values of the guide points and guide points of the target tunnel, the central axis is assigned an elevation value; based on the preset tunnel elevation error threshold, the connection relationship between the target tunnels is established; according to the central axis, the elevation value of the central axis and the connection relationship between the target tunnels, the target tunnel is three-dimensionally modeled to obtain a three-dimensional model of the target tunnel. In this way, the central axis is drawn for each target tunnel and the central axis is assigned an elevation value, and the connection relationship between the target tunnels is determined, so that the target tunnel is three-dimensionally modeled, and the construction efficiency and construction accuracy of the three-dimensional tunnel model are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to explain the present invention more clearly, the drawings required for use in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic diagram of an embodiment of a topological structure-based three-dimensional lane automatic modeling method provided by an embodiment of the present invention; Figure 2 is a schematic diagram of the structure of a conductor point in an embodiment of the present invention; Figure 3a It is a schematic diagram of the connection relationship when two intersecting tunnels are at the same height and interconnected; Figure 3b This is a schematic diagram of the connection relationship between two intersecting tunnels at different height levels; Figure 4 A schematic diagram of a process of a topological structure-based three-dimensional lane automatic modeling method in an embodiment of the present invention; Figure 5 Schematic diagram of the structure of a three-dimensional lane automatic modeling device based on topological structure in an embodiment of the present invention; Figure 6 The figure is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] In the relevant description of this embodiment, the terms "including, containing, having" and the like are open terms and are generally understood to include but not be limited to; the term "at least one" is generally understood to mean one or more, where "plurality" refers to two or more; the term "at least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items, for example, "at least one of a, b or c", or "at least one of a, b and c", can all represent: a, b, c, ab (i.e., a and b), ac, bc, or abc, where a, b, c can be single or multiple, respectively; the symbol "A / B" is used to describe the selection relationship of associated objects, generally indicating an "or" relationship before and after.
[0021] In the following description of the present embodiment, the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "an" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0022] Those skilled in the art should understand that in the following description of the embodiments of the present invention, the order of serial numbers does not mean the order of execution, some or all of the steps can be executed in parallel or sequentially, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0023] It will be appreciated by those skilled in the art that the numerical ranges in the embodiments of the present invention are to be understood as each intermediate value between the upper and lower limits of the scope being specifically disclosed. Each smaller range between the intermediate value in any stated value or stated range and any other stated value or intermediate value in the range is also included in the present invention. The upper and lower limits of these smaller ranges may be independently included or excluded in the scope.
[0024] Unless otherwise specified, the technical / scientific terms used herein have the same meanings as those generally understood by those skilled in the art to which the invention belongs. Although the present invention only describes preferred methods and materials, any methods and materials similar or equivalent to those herein may also be used in the implementation or testing of the present invention. All documents mentioned in this specification are incorporated by reference to disclose and describe methods and / or materials related to the documents. In the event of a conflict with any incorporated document, the content of this specification shall prevail.
[0025] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.
[0026] As the core component of mine production, tunnels carry multiple functions such as transportation, ventilation and drainage, and are key factors in the economic benefits and production safety of coal mines. With the advancement of science and technology and the deepening of mining, the accuracy and practicality of tunnel models are increasingly required. The establishment of a true three-dimensional tunnel model can more accurately reflect the actual form, spatial location and geological characteristics of the tunnel, providing strong technical support and decision-making basis for mine design planning, engineering construction and safety rescue.
[0027] At present, the construction methods of three-dimensional tunnel models usually include manual drawing and programming generation. Manual drawing usually relies on professional drawing software and technicians, and is drawn according to the geological data of the mine and the tunnel design drawings. Although it can more intuitively show the shape of the tunnel, it is inefficient and it is difficult to ensure the accuracy and consistency of the model. Programming generation is to automatically generate a three-dimensional tunnel model based on the geological data of the mine and the tunnel design parameters by writing specific algorithms and programs. Although this method can improve the efficiency of model construction, the design of the algorithm and the adjustment of parameters have an important impact on the accuracy of the model.
[0028] Therefore, the existing three-dimensional tunnel model construction methods have obvious technical problems in terms of efficiency and accuracy, and it is difficult to meet the needs of mine production for fast and accurate modeling. Therefore, it is necessary to further research and develop new modeling technologies to improve the efficiency and accuracy of three-dimensional tunnel model construction.
[0029] Based on this, the present invention solves the problem of low efficiency and accuracy in constructing three-dimensional lane models in the prior art by providing a method, device, electronic device and storage medium for automatic modeling of three-dimensional lanes based on topological structures. Specific embodiments are described below.
[0030] Figure 1 A schematic diagram of an embodiment of a topological structure-based three-dimensional lane automatic modeling method provided by an embodiment of the present invention, see Figure 1 As shown, the above method may include: S101, visually rendering the tunnel data in the engineering drawing file of the target mine to obtain a visualized tunnel map; The target mine may be a mine used to mine any type of mineral resources. For example, copper mines, iron mines, gold mines, coal mines, etc. In the embodiment of the present invention, the three-dimensional tunnel automatic modeling method is mainly used for coal mines. In the following description, the three-dimensional tunnel automatic modeling method provided by the embodiment of the present invention is described by taking a coal mine as an example.
[0031] It should be noted that engineering drawing files are an important basis for mine planning and construction. The engineering drawing files of mines usually contain a variety of data used for mine design, construction, production and management, such as tunnels, geological data, hydrological data, ventilation and safety system data, and production planning and indicators.
[0032] The engineering drawing file of the target mine may be a file in DXF (Drawing Exchange Format) format. DXF format files have good compatibility and a wide range of applications and are a common format for mine engineering drawing files. In an embodiment of the present invention, the engineering drawing file of the target mine may be obtained, and the tunnel data may be extracted from the engineering drawing file, so as to be visualized and rendered. Based on this, the above step S101 may include: S1011, extracting data files related to the tunnels from the engineering drawing files of the target mine, and converting the data files related to the tunnels into DWG (Drawing) format files; S1012, performing graphic visualization rendering on the DWG format file to obtain a visualized lane map.
[0033] Understandably, the DWG format is a proprietary format used by drawing software such as AutoCAD, which has powerful graphics editing and rendering capabilities. DXF is a vector-based ASCII text format, which is specially designed for data exchange between CAD and other software. DXF files are generally in ASCII format, which has good readability but occupies a large space. Converting the lane data to DWG format can make full use of the powerful functions of these software to edit and process the lane data more deeply. Perform graphic visualization rendering on the converted DWG format file. The abstract lane data can be converted into an intuitive graphic display, and the drawing interface of the DWG file is more intuitive and occupies less space, which is convenient for technicians to view and analyze. Through graphic visualization rendering, you can clearly see the spatial layout of the lane, the distribution of the wire points, and the relative position relationship between them.
[0034] In some embodiments, the lane map includes at least lanes, guide wire points of the lanes, and elevation value data of the guide wire points.
[0035] The traverse point is an important reference point for tunnel measurement and modeling, and its elevation data is the necessary information for building a 3D model. With this information, the actual shape and spatial position of the tunnel can be restored more accurately, providing strong data support for subsequent 3D modeling work.
[0036] S102, based on the approximate parallelism and the closest distance rule, determining the left and right sides of each target lane from the lane map; In some embodiments, the above step S102 may include: S1021, sorting the lines corresponding to the lanes in the lane map according to the vectors to obtain a lane vector sequence; wherein the vectors in the lane vector sequence are determined based on the coordinates and lengths of the lines corresponding to the lanes; S1022, based on the approximate parallelism and the closest distance rule, determine the left and right sides of the target lane from the lane vector sequence, and perform pairing identification on the left and right sides of the target lane; S1023: Determine the target lane based on the pairing identifier.
[0037] It is understandable that on a CAD drawing, the left and right sides of a lane are usually presented in the form of separate lines. These line drawings only represent the outline of the lane on the plane, and the correspondence between them is not clearly marked. Therefore, when performing three-dimensional modeling, each lane needs to be identified and matched to ensure the correct pairing of the left and right sides, so as to construct an accurate three-dimensional lane model. In order to improve the matching efficiency, a search method based on lane vectors is adopted in an embodiment of the present invention. First, the lane vector corresponding to each lane is determined based on the coordinates and length information of the lines used to represent the lanes in the lane map. These vectors not only reflect the direction of the lanes, but also include the spatial relationship between the lanes. Then, these vectors are sorted according to specific rules, and vectors with similarities will be closer, so that the left and right sides that may match can be located more quickly.
[0038] In an embodiment of the present invention, the left and right sides of the lane are searched according to the approximate parallel and closest distance rules. The approximate parallel rule can be used to determine the consistency of the lane direction, ensuring that the searched left and right sides match each other in direction; and the closest distance rule is used to ensure that the searched left and right sides are adjacent in spatial position, further improving the accuracy of the matching. By pairing and marking the identified left and right sides, the left and right sides of each lane can be clearly identified, and which lines belong to the left and right sides of the same lane can be clearly identified, thereby ensuring that the actual shape of the lane can be accurately restored during the three-dimensional modeling process. Through this sorted search method, the search range can be narrowed to avoid unnecessary matching attempts on irrelevant or distant lanes. At the same time, since the sorted lane vectors have a clearer logical order, this order can be used to optimize the matching algorithm to further improve the matching efficiency.
[0039] S103, based on the left and right sides of the target lane, calculate and draw the central axis of the target lane by using a preset buffer algorithm; It can be understood that the buffer algorithm is a tool for proximity analysis, which is mainly used to identify the influence of a certain geographic entity or spatial object on its surrounding features. It will establish a strip area with a certain width around a specific geographic entity or spatial object. This strip area is called a buffer zone. The establishment of a buffer zone can be carried out for different geometric types such as points, lines, and surfaces. For point features, the buffer zone is usually obtained by taking the point as the center and drawing a circle with the set buffer radius as the radius; for line features, the buffer zone is based on the line as the axis, and a strip area parallel to the line is constructed on both sides, and semicircular arc segments are added at both ends of the line to form a complete strip buffer zone; for surface features, the buffer zone is based on the boundary of the surface, and parallel lines are constructed on both sides inside and outside. The area between the parallel lines and the boundary is the surface buffer zone.
[0040] In the embodiment of the present invention, the buffer zone of the central axis is to extend the corresponding buffer distance to both sides along the central axis, and the buffer distances on both sides can be the same or different, corresponding to the left and right side lines of the lane. The present invention reversely infers the central axis from the two side lines of the lane according to the buffer zone algorithm. Therefore, the above step S103 is actually an application of the reverse inference of the buffer zone algorithm.
[0041] Specifically, first draw parallel lines to the line, then draw perpendicular lines at the end point of the linear element and use the buffer distance as the starting point of the left and right side lines of the radius. At other inflection points, the intersection of the two adjacent line segments associated with the point is used to determine. This method is to obtain the central axis with equal distance from the two sides of the roadway, so that the original two-side model of the roadway can be restored in the subsequent modeling.
[0042] For example, the width of the lane can be determined based on the line data of the left and right sides of the lane. Then, by setting a suitable buffer distance between the left and right sides of the lane, and finally taking the midpoint of the lane vertical line between the left and right sides and connecting them, a center line consistent with the direction of the lane can be drawn. This center line is the central axis of the target lane. The central axis is located at the geometric center of the lane and can accurately reflect the direction and length of the lane. Among them, the buffer distance can be determined according to the actual width of the lane and modeling requirements.
[0043] It is understandable that the existing method of drawing the central axis of the target lane is usually to compare the slope, pitch, and line spacing parameters of the straight lines in the layer through coordinate transformation and matrix transformation, so as to analyze and draw the center line of the lane. However, at the intersection of the lanes, it is easy to cause the lane connection to be disordered based only on the slope, pitch, and line spacing parameters of the straight lines in the layer. In the embodiment of the present invention, the central axis of each target lane is drawn separately through the buffer algorithm, and there will be no disorder at the intersection of the lanes.
[0044] S104, assigning an elevation value to the central axis according to the guide point of the target lane and the elevation value of the guide point; In some embodiments, the above step S104 may include: S1041, determining the projection distance from the guide wire point to the central axis; S1042, when the projection distance is less than the width of the target lane and the projection point is between the two end points of the central axis, the elevation value of the conductor point is assigned to the projection point, and the elevation value corresponding to the projection point is used as the elevation value of the central axis.
[0045] The lane map generated from the lane data extracted from the engineering drawings usually has the position, coordinates and other related information of the conductor point marked. In the embodiment of the present invention, the conductor point data can be directly read from the lane map.
[0046] For example, Figure 2 FIG. 1 is a schematic diagram of the structure of the conductor point in the embodiment of the present invention. Figure 2 As shown in the figure, the conductor point data includes the conductor point symbol, the conductor point name and the conductor point elevation. Among them, the conductor point symbol is used to mark the position of each conductor point on the drawing. It can be a point, a circle, a cross, etc. The style and color of the conductor point symbol can vary according to the characteristics and measurement standards of the mine tunnel. Through the conductor point symbol, you can intuitively see the distribution of the conductor points in the tunnel, and then understand the overall layout of the tunnel. The conductor point name is a specific identification of each conductor point. The conductor point name can be named according to certain rules or sequences, such as naming according to the tunnel name, serial number or a specific coding system. The conductor point name can be used to accurately identify each conductor point, which is convenient for reference and query in subsequent data processing and analysis. The elevation of the conductor point is the vertical height of the conductor point relative to a certain reference plane, reflecting the spatial position of the conductor point in the mine tunnel. Through the elevation data of the conductor point, you can understand the ups and downs, slope and other information of the tunnel.
[0047] It can be understood that when the projection distance from the conductor point to the central axis is less than the width of the target lane, it means that the conductor point is within the effective width range of the lane. At the same time, if the projection point is also located between the two endpoints of the central axis, this further ensures that the conductor point is on the straight section of the lane, rather than the curve or end portion. Under such conditions, the conductor point can more accurately represent the spatial position of the lane at its projection point. At this time, the elevation value of the conductor point can be directly assigned to the corresponding projection point to describe the height of the lane at this position. In this way, not only the data processing process is simplified, but also the accuracy and reliability of the lane height data are improved.
[0048] On the other hand, when the projection distance from the traverse point to the central axis is greater than the width of the target lane, it means that the traverse point is not directly above the lane, but deviates from the actual position of the lane. Such a traverse point may be affected by factors such as the surrounding terrain, other lanes or structures, and its elevation value cannot truly reflect the height of the target lane. At this time, if the elevation value of the traverse point is still used to describe the height of the target lane, significant errors may be introduced.
[0049] In summary, the comparison between the projection distance from the traverse point to the central axis and the width of the target roadway directly determines whether the traverse point can be used to describe the height of the target roadway. Only when the traverse point is within the effective width of the roadway and the projection point is on the straight line segment of the central axis, can the elevation value of the traverse point be used to accurately describe the height of the roadway. This not only helps to better understand and utilize the traverse point data, but also provides strong support for improving the measurement and modeling accuracy of mine roadways.
[0050] In some embodiments, the above method may further include: calculating the elevation value of the endpoint of the central axis according to the elevation values of the two projection points that are closest to the same endpoint on the central axis.
[0051] It is understandable that since the central axis is usually generated based on the wire point data, and the wire point is not necessarily located exactly at the end point of the axis, it is necessary to infer the elevation value of the end point through the existing data.
[0052] In some embodiments, based on the principle of linear interpolation or approximate approximation, the elevation data of the two projection points closest to the endpoint can be used to perform interpolation calculations to obtain an approximate elevation value. Alternatively, the average of the elevation values of the two projection points obtained can be directly used as the elevation value of the endpoint. Alternatively, the elevation value of the endpoint can be comprehensively determined by the slope of the extension line of the elevation value coordinates of the two projection points and the distance between the projection point and the endpoint. The specific method of calculating the elevation value of the endpoint of the central axis according to the elevation values of the two projection points can be selected based on the needs of the actual calculation process, and the embodiments of the present invention do not specifically limit this.
[0053] It can be understood that the elevation value of the end point of the central axis is calculated based on the elevation values of the two projection points that are closest to the same end point on the central axis, making full use of the existing wire point data and avoiding errors caused by lack of direct measurement data. For example, through linear interpolation calculation, a relatively accurate and continuous elevation value can be obtained, which helps to maintain the continuity and smoothness of the spatial form of the roadway and can improve the accuracy and reliability of roadway modeling to a certain extent.
[0054] In some embodiments, when the number of corresponding projection points on the central axis of the target lane is less than a preset threshold, the method further includes: Get the wire points within the preset search circle, and interpolate the elevation value of the central axis using the preset inverse distance interpolation method.
[0055] Among them, Inverse Distance Weighting (IDW) is a commonly used spatial interpolation method. IDW is based on the principle of proximity and similarity, that is, the closer the distance between two objects, the more similar their properties are; the farther the distance, the less similar they are. This method infers the attribute values of unknown points through the attribute values of known points. In the inverse distance interpolation method, the attribute value of the unknown point is equal to the weighted average of the attribute value of the known point and the reciprocal of the distance. The closer the known point is to the unknown point, the greater the weight is assigned, while the farther the known point is from the unknown point, the smaller the weight is assigned.
[0056] It is understandable that in the process of mine tunnel modeling, when there is insufficient data for certain projection points on the central axis, it will lead to the inability to directly obtain their elevation values to accurately assign elevation values to the target tunnel. In this case, the prior art usually directly assigns elevation values to the target tunnel based on the elevation values of the intersection positions of the intersecting tunnels as a reference, which only considers the height in a single direction, resulting in low accuracy in assigning elevation values to target tunnels with insufficient data for certain projection points on the central axis. In an embodiment of the present invention, by searching for the wire points involved in the valuation within a set search circle, different weights are assigned by considering the distance between the wire points and the points to be interpolated, thereby achieving accurate estimation of the endpoint elevation values.
[0057] Specifically, first, a search circle can be set, and the radius of the search circle can be determined according to the needs of the actual application process. It is usually based on comprehensive considerations such as lane width, measurement accuracy, and distribution density of wire points. The search circle can search for wire points participating in the valuation within a certain range to ensure that there are enough data points for interpolation calculation. Secondly, search for wire points participating in the valuation within the search circle. These wire points can have a certain distribution density and representativeness, and can reflect the spatial form and elevation changes of the lane in the area. The searched wire points can be used as the basic data for interpolation calculation. Then, the inverse distance interpolation method is used to interpolate these wire points. During the calculation process, the weight value of each wire point can be determined according to the distance between the wire point and the point to be interpolated. The specific calculation formula can be selected according to actual needs, such as the common power function type inverse distance weighted interpolation method. By weighted averaging, the elevation value estimate of the point to be interpolated can be obtained. Finally, the calculated endpoint elevation value is assigned to the central axis.
[0058] In the embodiment of the present invention, the elevation value obtained by the inverse distance interpolation method can make up for the problem of insufficient projection points on the central axis and improve the accuracy and completeness of the tunnel modeling.
[0059] In some embodiments, after obtaining the wire points within the preset search circle, the elevation value of the central axis can also be interpolated using the Kriging interpolation method. The Kriging interpolation method is also called the spatial autocovariance optimal interpolation method. It is a random interpolation technique based on the general least squares algorithm, using the variance map as a weight function, and is widely used in any phenomenon that requires point data to estimate its distribution on the surface.
[0060] After obtaining the wire points within the preset search circle, these data are processed by using the Kriging interpolation method. Based on the principle of spatial statistics, the elevation value of the unknown position is optimally estimated unbiased by considering the spatial relationship between the wire points and the autocorrelation of the elevation values. The elevation information of the known points can be effectively utilized, and the elevation values of each point on the central axis can be inferred through weight allocation and model fitting. In the embodiment of the present invention, the specific difference method used for interpolation can be selected based on parameters such as the needs or accuracy requirements in the actual application process.
[0061] S105, establishing a connection relationship between target lanes based on a preset lane elevation error threshold; It is understandable that there are usually certain errors between different tunnels in a mine. When the elevation difference between the tunnel endpoints is within the preset elevation error threshold, the tunnels can be considered to be connected. When the elevation difference between the tunnel endpoints exceeds the elevation value range, the tunnels can be considered to be not connected.
[0062] In some embodiments, a reasonable tunnel elevation error threshold can be set according to the actual situation of the mine and the accuracy requirements of the modeling. This threshold can be used to reflect the expectation of modeling accuracy, and also determines the sensitivity of the tunnel connection relationship. The smaller the threshold is set, the stricter the judgment of the connection relationship, and vice versa. According to the error threshold, the endpoint elevation values of each target tunnel are automatically compared. If the endpoint elevation difference of two adjacent target tunnels is within the set threshold range, the two target tunnels are considered to be connected, and the corresponding connection relationship is established in the model. On the contrary, if the elevation difference exceeds the threshold, then it can be considered that the two target tunnels are not connected, and the connection relationship will not be established in the model.
[0063] For example, the elevation error threshold may be 0.5 meters, and when the elevation error between the two target lanes does not exceed 0.5 meters, a connection relationship between the two target lanes is established. If the error exceeds 0.5 meters, no connection relationship is established.
[0064] It can be understood that in the lane map, at the intersection of the lanes, for the target lanes located at the same height layer, the lanes that intersect with each other are interconnected at the intersection. When lanes at different height layers intersect with each other, although they are also shown as intersections on the plane in the lane map, the two lanes are actually located at different height layers. At this time, it is necessary to ensure that the two sections of the lanes at the corresponding height layers are connected respectively. As shown in Figure 3, Figure 3 is a structural schematic diagram of establishing the connection relationship between the target lanes in an embodiment of the present invention. Among them, Figure 3a This is a schematic diagram of the connection relationship when two intersecting tunnels are at the same height and interconnected. Figure 3b Schematic diagram of the connection relationship between two intersecting tunnels at different height levels.
[0065] In an embodiment of the present invention, the center line of the lane can be first drawn using the buffer algorithm described above. At the intersection of two lanes, the center line of each lane is extended to the center point of the lane intersection, and then the lane is judged whether it is connected or not based on the elevation difference of the lane intersection. Among them, whether the lane center line can be extended can be determined by searching within a preset lane width range. Within the width range, if there is other center line data, it is extended, otherwise it is not extended. The elevation value of the extension line can also be assigned using the above-mentioned inverse distance interpolation method, or other existing assignment methods can be used to assign values to the extension line, and the embodiment of the present invention does not specifically limit this.
[0066] See also Figure 3a to Figure 3bAs shown in the figure, blue lines 1, 2, 3, and 4 represent the center lines of the corresponding target lanes, the red dashed line is the extension of the lane center line, and the red solid circle represents the lane center intersection. If the elevation difference of the extension of center lines 1, 2, 3, and 4 at the lane center intersection is within a certain error threshold, the four target lanes are connected lanes, and the lane center intersection is the common point among the four lanes. The connection relationship between the lanes can be as follows: Figure 3a As shown. Figure 3b In the example, if the elevation difference between the extension lines of center lines 1 and 2 at the intersection of the center of the lane is less than the error threshold, and the elevation difference between the extension lines of center lines 3 and 4 at the intersection of the center of the lane is less than the error threshold, it indicates that the lanes corresponding to center lines 1 and 2 are connected, and the lanes corresponding to center lines 3 and 4 are connected. If the elevation difference between the lane corresponding to the line 1 and 2 and the lane corresponding to the line 3 and 4 is greater than the error threshold, it is considered that the lanes corresponding to 1 and 2 are not connected to the lanes corresponding to 3 and 4, indicating that the two lanes may be located at different stratum heights.
[0067] In an embodiment of the present invention, the corresponding target lane is determined by identifying the lane map, and the central axis of the target lane is drawn. After the elevation value is assigned to the central axis, the connection relationship between the target lanes is determined by the elevation error between the target lanes. By comparing the difference in elevation values between different target lanes, if the elevation error is within a preset threshold range, the two target lanes are considered to be interconnected; otherwise, they are considered to be disconnected. This method has higher accuracy and reliability than the traditional technology of directly comparing the slope, pitch, line spacing and other parameters of the straight lines in the layer. By determining the target lanes according to the lane vectors respectively, and then establishing the connection relationship between the target lanes, the different situations of the connection relationship caused by the lanes being at different geological layer heights are taken into account, and the connection relationship judgment errors caused by direct judgment of parameters such as slope, pitch, line spacing, etc. are avoided, thereby improving the accuracy of lane modeling.
[0068] In some embodiments, for target lanes that do not have a connection relationship, they can be distinguished by different texture rendering or different colors during the three-dimensional modeling process.
[0069] In some embodiments, after step S105, the method may further include: For target lanes that cannot be automatically connected, they can be connected through manual intervention.
[0070] It is understandable that when establishing a connection relationship for the target tunnel, there may be a situation where the preset tunnel elevation error threshold cannot be automatically connected. In this case, connecting the target tunnel through manual intervention can be used as a supplementary means. First of all, due to factors such as data accuracy and the particularity of the actual tunnel, it may not be possible to handle all situations. When the elevation difference exceeds the preset threshold, or the tunnel shape and direction are so complex that the connection relationship cannot be accurately judged by a simple algorithm, the automatic connection method will fail. At this time, by manually viewing and analyzing the data, the actual shape and direction of the tunnel can be more accurately understood, and which tunnels should be connected and which should not be connected can be judged. The model can be fine-tuned based on actual experience and the specific conditions of the mine to ensure that the connection relationship of the tunnel is in line with the actual situation. Manual intervention and automatic establishment of connection relationships can cooperate with each other. The automatic method improves the efficiency of modeling, while manual intervention ensures the accuracy of the model. When the automatic method cannot handle complex or special situations, manual intervention can be used as an effective supplement to ensure the integrity and accuracy of the model.
[0071] Therefore, for target tunnels that cannot be automatically connected, manual intervention is a necessary measure. It is a supplement to the automatic method and an important guarantee for the accuracy and reliability of the model. Combined with the automatic method, we can complete the 3D modeling of mine tunnels more efficiently and accurately.
[0072] S106, performing three-dimensional modeling on the target lane according to the central axis, the elevation value of the central axis and the connection relationship between the target lanes to obtain a three-dimensional model of the target lane.
[0073] In an embodiment of the present invention, based on the acquired central axis and its elevation value, combined with the established connection relationship between the target tunnels, these data and connection relationships can be converted into a three-dimensional and intuitive three-dimensional model through professional modeling software and technical means, thereby clearly showing the spatial form, direction and connection status of the target tunnel.
[0074] The following is a specific example to illustrate the topological structure-based three-dimensional lane automatic modeling method of the present invention.
[0075] Figure 4 FIG. 1 is a flow chart of a method for automatic modeling of a three-dimensional laneway based on a topological structure in an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps: S41, parsing the DWG format file of the lane data and drawing a visual lane map; S42, calculating and drawing the central axis of the target lane through a preset buffer algorithm; S43, extracting the elevation value data of the conductor point; S44, assigning an elevation value to the central axis according to the guide point of the target lane and the elevation value of the guide point; wherein step S44 includes the following steps S441 to S443; S441, calculating the projection distance from the conductor point to the central axis, and when the projection distance is less than the width of the target lane and the projection point is between the two end points of the central axis, assigning the elevation value of the conductor point to the projection point, and using the elevation value corresponding to the projection point as the elevation value of the central axis; S442, calculating the elevation value of the endpoint of the central axis according to the elevation values of the two projection points closest to the same endpoint on the central axis; S443, when the number of corresponding projection points on the central axis of the target lane is less than a preset threshold, interpolating the elevation value of the central axis based on an inverse distance interpolation method; S45, automatically establishing a connection relationship between target lanes based on a preset lane elevation error threshold; S46, for the target lanes that cannot be automatically connected, connecting the target lanes through manual intervention; S47, performing three-dimensional modeling on the target lane according to the central axis, the elevation value of the central axis and the connection relationship between the target lanes to obtain a three-dimensional model of the target lane.
[0076] In this way, the above-mentioned automatic modeling of three-dimensional tunnels based on topological structure is realized.
[0077] In an embodiment of the present invention, the tunnel data in the engineering drawing file of the target mine is visualized and rendered to obtain a visualized tunnel map; based on the approximate parallel and closest distance rules, the left and right sides of each target tunnel are determined from the tunnel map; based on the left and right sides of the target tunnel, the central axis of the target tunnel is calculated and drawn through a preset buffer algorithm; according to the elevation values of the guide points and guide points of the target tunnel, the central axis is assigned an elevation value; based on the preset tunnel elevation error threshold, the connection relationship between the target tunnels is established; according to the central axis, the elevation value of the central axis and the connection relationship between the target tunnels, the target tunnel is three-dimensionally modeled to obtain a three-dimensional model of the target tunnel. In this way, the central axis is drawn for each target tunnel and the central axis is assigned an elevation value, and the connection relationship between the target tunnels is determined, so that the target tunnel is three-dimensionally modeled, which improves the construction efficiency and construction accuracy of the three-dimensional tunnel model.
[0078] Based on the same inventive concept, an embodiment of the present invention also provides a three-dimensional tunnel automatic modeling device based on topological structure. Figure 5 FIG. 1 is a schematic diagram of a topological structure-based automatic three-dimensional lane modeling device in an embodiment of the present invention. Figure 5As shown, the topological structure-based three-dimensional tunnel automatic modeling device 500 may include: a visualization rendering module 501, which is used to visualize the tunnel data in the engineering drawing file of the target mine to obtain a visualized tunnel map; a first determination module 502, which is used to determine the left and right sides of each target tunnel from the tunnel map based on the approximate parallel and closest distance rules; a central axis drawing module 503, which is used to calculate and draw the central axis of the target tunnel based on the left and right sides of the target tunnel through a preset buffer algorithm; an assignment module 504, which is used to assign elevation values to the central axis according to the guide points of the target tunnel and the elevation values of the guide points; a connection relationship establishment module 505, which is used to establish the connection relationship between each target tunnel based on a preset tunnel elevation error threshold; a three-dimensional modeling module 506, which is used to perform three-dimensional modeling on the target tunnel according to the central axis, the elevation value of the central axis and the connection relationship between the target tunnels to obtain a three-dimensional model of the target tunnel.
[0079] In some possible implementations, the visualization rendering module 501 is also used to extract data files related to the tunnels from the engineering drawing files of the target mine, and convert the data files related to the tunnels into DWG format files; wherein the engineering drawing files are in DXF format; the DWG format files are graphically rendered to obtain a visualized tunnel map; wherein the tunnel map includes at least the tunnels, the guide wire points of the tunnels, and the elevation value data of the guide wire points.
[0080] In some possible implementations, the first determination module 502 is further used to sort the lines corresponding to the lanes in the lane map according to vectors to obtain a lane vector sequence; wherein the vectors in the lane vector sequence are determined based on the coordinates and lengths of the lines corresponding to the lanes; based on the approximate parallel and closest distance rules, the left and right sides of the target lane are determined from the lane vector sequence, and the left and right sides of the target lane are paired and marked; and the target lane is determined based on the paired markings.
[0081] In some possible implementations, the assignment module 504 is also used to determine the projection distance from the conductor point to the central axis; when the projection distance is less than the width of the target laneway and the projection point is between the two end points of the central axis, the elevation value of the conductor point is assigned to the projection point, and the elevation value corresponding to the projection point is used as the elevation value of the central axis.
[0082] In some possible implementations, the value assignment module 504 is further configured to calculate the elevation value of the endpoint of the central axis according to the elevation values of the two projection points that are closest to the same endpoint on the central axis.
[0083] In some possible implementations, the assignment module 504 is also used to obtain the wire points within a preset search circle when the number of corresponding projection points on the central axis of the target lane is less than a preset threshold, and to interpolate the elevation value of the central axis by a preset inverse distance interpolation method.
[0084] Based on the same inventive concept, an embodiment of the present invention provides an electronic device, which may be consistent with the topological structure-based three-dimensional lane automatic modeling method in one or more of the above embodiments. Figure 6 FIG. 1 is a schematic diagram of the structure of an electronic device in an embodiment of the present invention, see Figure 6 As shown, the electronic device 600 may adopt general computer hardware, including a processor 601 and a memory 602 .
[0085] In some possible implementations, at least one processor may constitute any physical device having a circuit that performs a logical operation on one or more inputs. For example, at least one processor may include one or more integrated circuits (ICs), including application specific integrated circuits (ASICs), microchips, microcontrollers, microprocessors, all or part of a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a field programmable gate array (FPGA), or other circuits suitable for executing instructions or performing logical operations. The instructions executed by at least one processor may be preloaded, for example, into a memory integrated with or embedded in a controller, or may be stored in a separate memory. The memory may include a random access memory (RAM), a read-only memory (ROM), a hard disk, an optical disk, a magnetic medium, a flash memory, other permanent, fixed or volatile memory, or any other mechanism capable of storing instructions. In some embodiments, more than one processor may be included. Each processor may have a similar structure, or the processors may have different configurations that are electrically connected or disconnected from each other. For example, the processor may be a separate circuit or integrated in a single circuit. When more than one processor is used, the processors may be configured to operate independently or collaboratively. The processors may be coupled electrically, magnetically, optically, acoustically, mechanically, or by other means that allow them to interact.
[0086] Based on the same inventive concept, the present invention provides a computer storage medium storing computer executable instructions. After the computer executable instructions are executed by a processor, a three-dimensional tunnel automatic modeling method based on topological structure as described in one or more of the above embodiments can be implemented.
[0087] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other. Each embodiment focuses on the differences from other embodiments.
[0088] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the present invention.
Claims
1. A three-dimensional tunnel automatic modeling method based on topological structure, characterized in that: include: Visually render the tunnel data in the engineering drawing file of the target mine to obtain a visualized tunnel map; Based on the approximate parallelism and the closest distance rule, the left and right sides of each target lane are determined from the lane map; Based on the left and right sides of the target lane, a central axis of the target lane is calculated and drawn by a preset buffer algorithm; Assigning an elevation value to the central axis of the target lane according to the guide wire point of the target lane and the elevation value of the guide wire point; Based on a preset lane elevation error threshold, establishing a connection relationship between the target lanes; According to the central axis, the elevation value of the central axis and the connection relationship between the target lanes, three-dimensional modeling is performed on the target lane to obtain a three-dimensional model of the target lane.
2. The method according to claim 1, characterized in that The step of visually rendering the tunnel data in the engineering drawing file of the target mine to obtain a visualized tunnel map includes: Extracting a data file related to the laneway from the engineering drawing file of the target mine, and converting the data file related to the laneway into a DWG format file; wherein the engineering drawing file is in a DXF format; The DWG format file is subjected to graphic visualization rendering to obtain the visualized lane map; wherein the lane map at least includes the lane, the wire points of the lane and the elevation value data of the wire points.
3. The method according to claim 2, characterized in that The method of determining the left and right sides of each target lane from the lane map based on the approximate parallelism and the closest distance rule includes: Sorting the lines corresponding to the lanes in the lane map according to vectors to obtain a lane vector sequence; wherein the vectors in the lane vector sequence are determined based on the coordinates and lengths of the lines corresponding to the lanes; Based on the approximate parallelism and the closest distance rule, the left and right sides of the target lane are determined from the lane vector sequence, and the left and right sides of the target lane are paired and marked; The target lane is determined based on the pairing identifier.
4. The method according to claim 3, characterized in that The step of assigning an elevation value to the central axis according to the guide wire point of the target lane and the elevation value of the guide wire point comprises: Determining the projection distance from the guide wire point to the central axis; When the projection distance is smaller than the width of the target laneway and the projection point is between the two end points of the central axis, the elevation value of the wire point is assigned to the projection point, and the elevation value corresponding to the projection point is used as the elevation value of the central axis.
5. The method according to claim 4, characterized in that The method further comprises: The elevation value of the endpoint of the central axis is calculated based on the elevation values of the two projection points that are closest to the same endpoint on the central axis.
6. The method according to claim 5, characterized in that When the number of the projection points corresponding to the central axis of the target lane is less than a preset threshold, the method further includes: The wire points within a preset search circle are obtained, and the elevation value of the central axis is interpolated using a preset inverse distance interpolation method.
7. The method according to claim 1, characterized in that After automatically establishing the connection relationship between the target lanes based on the preset lane elevation error threshold, the method further includes: For the target lanes for which a connection relationship cannot be automatically established, the target lanes are connected through manual intervention.
8. A three-dimensional tunnel automatic modeling device based on topological structure, characterized in that: include: A visualization rendering module is used to perform visualization rendering on the tunnel data in the engineering drawing file of the target mine to obtain a visualized tunnel map; A first determination module is used to determine the left and right sides of each target lane from the lane map based on the approximate parallelism and the closest distance rule; A central axis drawing module, used for calculating and drawing the central axis of the target lane based on the left and right sides of the target lane by a preset buffer zone algorithm; An assignment module, used for assigning an elevation value to the central axis according to the guide wire point of the target lane and the elevation value of the guide wire point; A connection relationship establishing module, used to establish a connection relationship between the target lanes based on a preset lane elevation error threshold; The three-dimensional modeling module is used to perform three-dimensional modeling on the target lane according to the central axis, the elevation value of the central axis and the connection relationship between the target lanes to obtain a three-dimensional model of the target lane.
9. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; A processor, configured to implement the method according to any one of claims 1 to 7 when executing the executable instructions or computer programs stored in the memory.
10. A computer-readable storage medium storing executable instructions or a computer program, characterized in that: When the executable instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Mine three-dimensional roadway fast automatic generation method based on DXF
CN103578140A
Three-dimensional roadway model building method and device, electronic equipment and storage medium
CN114818065A
Three-dimensional mineral exploitation model construction method and system
CN117610436A
Cited By
Method and system for synchronously and automatically updating roadway information in real time
CN119397663A
