A high-precision slope intersection cutting method and system for roadbed BIM model
Calculate slope intersection points through line-surface or surface-surface intersection algorithms and automatically cut cross-section lines. This solves the problems of errors and low efficiency in slope intersection cutting in existing roadbed BIM modeling, and achieves a high-precision and efficient three-dimensional roadbed model. generate.
Patent Information
- Application Number
- CN202410934020.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Existing roadbed BIM modeling methods have problems with calculation errors and low efficiency when cutting slopes at intersections. They cannot accurately calculate intersection points, resulting in inaccurate models and the need for a lot of manual modification.
The line-surface intersection algorithm or surface-surface intersection algorithm is used to calculate the slope intersection point of the roadbed model, and the cross-section lines are automatically cut to generate an accurate three-dimensional model.
It improves the accuracy and efficiency of slope intersection cutting, reduces the time and manpower of manual modification, and improves the accuracy and efficiency of modeling.
Smart Images

Figure CN118485795B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of BIM (Building Information System) and highway engineering, and in particular to a high-precision slope intersection clipping method and system for a roadbed BIM model. Background Art
[0002] The current application of BIM technology in the field of highway engineering is rapid mold remodeling. During the mold remodeling process, the design data is obtained from the design drawings, the drawings are three-dimensionalized, and the horizontal, vertical and horizontal information of the roadbed and the structural information of bridges and tunnels are accurately expressed through the BIM model. The road major also enters the superelevation data provided by the design into a customized cross-section assembly with superelevation function to achieve accurate mold remodeling of the roadbed BIM model.
[0003] Conventional 3D BIM modeling methods for roadbeds usually involve the following steps: collecting relevant data for roadbed projects, including design drawings, terrain data, engineering specifications, and material information; using terrain data and survey data to create a terrain model for the roadbed; and based on the design drawings and specifications, creating a 3D model of the roadbed on the terrain model and establishing the roadbed’s basic structures, such as embankments, retaining walls, slopes, etc.
[0004] In the existing roadbed modeling methods, it is usually based on design drawings and specifications, with the help of three-dimensional high-precision aerial survey terrain, and the known road center line, roadbed width or roadbed shoulder line to determine the accurate distribution of each component of the roadbed model (such as median strip, earth shoulder, driving lane, shoulder wall, fill slope, embankment wall, ditch, cutting wall, excavation slope, etc.), and obtain the cross-sectional design results. By connecting the cross-sectional design results of adjacent key pile numbers, the three-dimensional model of the roadbed is obtained. After many years of engineering practice, this model basically meets the requirements of conventional highway design and rapid modeling, but it also has quite a few limitations. It is mainly reflected in the fact that the modeling details are not fine enough and the design results cannot be accurately and completely reflected in the three-dimensional scene. For example: slope intersection clipping problems, nose modeling problems, etc.
[0005] The problem of intersecting slopes and cutting is that when generating a BIM model, two or three intersecting surfaces cannot be accurately connected due to errors, which makes them appear misaligned in the BIM model. In the field of highway design, the existing solution to the problem of intersecting slopes and cutting is to draw a two-dimensional cross-sectional design drawing through the cross-sectional design drawings of adjacent routes, and then manually modify the slopes of the cross-sectional design drawings to make them generally reasonable.
[0006] The main problems with this method are:
[0007] (1) The calculated intersection is inaccurate. The two-dimensional cross-section line is directly extended to intersect with the center line of another route, and the cross-section line with the pile number corresponding to the intersection is placed on the same plane as the original cross-section line, and the intersection of the two cross-section lines is used as the approximate intersection. The schematic diagram of the approximate intersection is shown in the figure below. Figure 1 As shown, Line A and Line B intersect. To perform slope intersection cutting, you need to find the intersection point first. Usually, the intersection point a in Line A is extended perpendicular to the side line to produce a ray, which intersects the center line of Line B at point b. The pile number of Line B is found at point b, and the cross-section design lines corresponding to the pile numbers are extracted respectively. The intersection point is obtained directly from the two cross-section design lines. This method does not take into account the elevation difference or the curvature of Line A and Line B during calculation. The method of drawing an extension line from Line A to find the intersection point and pile number of Line B is only an approximate calculation (the actual pile number should be the pile number of point C). This method cannot accurately calculate the position where the cross-section line ends, and is an engineering approximation.
[0008] (2) Low efficiency. After placing two cross-section lines on the same plane, there is an approximate intersection. Designers need to manually add some design intentions before and after the approximate intersection to meet the needs, such as side ditches. This method requires manual modification of a large number of cross-section lines, requires the participation of a large number of designers, and is time-consuming and laborious.
[0009] In addition, in the field of roadbed 3D modeling, the existing rapid modeling methods mainly calculate a single route to obtain the cross-section design line. Since the cross-section design line is only calculated by its own latitude and terrain file and the terrain, and no intersection and clipping calculation is performed with other routes, there is no good way to solve the slope intersection and clipping problem when two or more routes are close and intersect.
[0010] like Figure 2 As shown, Figure 2 The BIM model generated when the slope is not cut is given. Based on the existing technology, if accurate slope intersection cutting is to be achieved, a large amount of slope specific data needs to be obtained for recalculation and correction, and the efficiency of slope intersection cutting is low. Summary of the invention
[0011] Aiming at the problem of slope intersection and clipping in the three-dimensional BIM modeling process of highway engineering roadbed, a line-surface intersection algorithm or a surface-surface intersection algorithm is used to calculate the precise slope intersection points between the main route and the secondary route. The present invention proposes a high-precision slope intersection and clipping method and system for the roadbed BIM model, which can accurately and efficiently calculate the slope intersection and clipping points, and automatically clip the cross-section lines to directly obtain an accurate three-dimensional roadbed model including the slope.
[0012] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions:
[0013] A high-precision slope intersection cutting method for a roadbed BIM model comprises the following steps:
[0014] Step 1, obtaining the cross section of the route at a preset interval, and obtaining the cross section design line data array of the route;
[0015] Step 2: Obtain the intersection area of the two routes and determine the cross-section design line data array in the intersection area;
[0016] Step 3: According to the cross-section design line data array, a line-surface intersection algorithm or a surface-surface intersection algorithm is used to obtain the slope intersection point of the two intersecting routes;
[0017] Step 4, connecting the slope intersection points to generate a slope cutting line for slope cutting;
[0018] Step 5: Draw the 3D BIM model of the roadbed based on the slope cutting line.
[0019] As a preferred solution, step 3 specifically includes using a line-surface intersection algorithm or a surface-surface intersection algorithm to calculate the coordinates of the slope intersection point in a certain intersection area of the two routes.
[0020] As a preferred solution, the line-surface intersection algorithm comprises the following steps:
[0021] Extracting the pile number interval and the cross-section line coordinate array of the intersection area of two routes from the cross-section design line data array as input data, the two routes include a main route and a sub-route;
[0022] Calculate the model surfaces of the main route and the secondary route respectively according to the input data, wherein the model surfaces are the road surfaces between two cross sections of adjacent sampling pile numbers;
[0023] Starting from the main route, traverse each sampled cross-section line corresponding to the cross-section line coordinate array in the main route, and calculate whether there is an intersection between the cross-section line of the main route and a group of model surfaces of the secondary route. If so, use the geometric ray and three-dimensional surface intersection algorithm to calculate the intersection coordinates. The set of intersection coordinates is the first intersection coordinate set, and the first intersection coordinate set is used as the slope intersection coordinates for slope clipping.
[0024] As a preferred solution, the line-surface intersection algorithm also includes: starting from the secondary route, traversing each sampled cross-sectional line corresponding to the cross-sectional line coordinate array in the secondary route, calculating whether there is an intersection between the cross-sectional line of the secondary route and a group of model surfaces of the main route, if so, using the geometric ray and three-dimensional surface intersection algorithm to calculate the intersection coordinates, obtain the second intersection coordinates, merge the first intersection coordinate set and the second intersection coordinates into an intersection set, and the lines connecting the point coordinates along the route direction in the intersection set are used for slope clipping.
[0025] As a preferred solution, step 3 also includes using an internal turning point algorithm to obtain turning points that affect slope clipping in addition to the slope intersection coordinates, wherein the turning points are not on the cross-section line and are points generated by the intersection of multiple faces.
[0026] As a preferred solution, the method of obtaining the turning point using the internal turning point algorithm comprises the following steps:
[0027] Taking intersection A as the center, take points on both sides of the cross-section line where intersection A is located to obtain the first series of feature points, with M points; taking another intersection B as the center, take points on both sides of the cross-section line where intersection B is located to obtain the second series of feature points, with N points. There are M×N lines between the first series of feature points and the second series of feature points. Determine whether these M×N lines belong to the actual modeling intersection lines between the routes where intersection A and intersection B are located and other objects. If so, for all the actual modeling intersection lines, determine whether they have an intersection C with a group of model surfaces of another route, and intersection C is located between the cross-sections where intersections A and B are located. If so, retain these line segments, delete other line segments, and retain these intersection points C. These intersection points C are the turning points required to achieve accurate slope cutting.
[0028] As a preferred solution, using the face-to-face intersection algorithm to calculate the coordinates of the intersection point of the slopes in a certain intersection area of two routes includes the following steps:
[0029] Extract the stake number and coordinate array of the intersection area of the two routes as input data;
[0030] Calculate the model surfaces of the main route and the secondary route respectively according to the input data;
[0031] Starting from the main route, the main route model surface is traversed in sequence. For each group of main route model surfaces, the sub-route model surfaces are traversed respectively to calculate whether there is an intersection between the two groups of model surfaces. If so, the geometric surface intersection algorithm is used to find the accurate intersection coordinates. The set of intersection coordinates is the third intersection coordinate set, and the third intersection coordinate set is used as the slope intersection for slope clipping.
[0032] As a preferred solution, step 4 specifically includes the following steps:
[0033] According to the coordinates of the slope intersection point, the horizontal and vertical offsets of the corresponding route cross-section design line are calculated to obtain the slope shear point;
[0034] The cross-section design line is obtained according to the coordinates of the slope shear point.
[0035] As a preferred solution, step 5 specifically includes the following steps:
[0036] The model surface is generated according to the clipped cross-section line, and a three-dimensional surface is constructed; several three-dimensional surfaces are connected to form the slope surface in the three-dimensional BIM model of the roadbed.
[0037] Based on the same concept, a high-precision slope intersection and clipping system in a roadbed BIM model is also proposed, comprising at least one processor and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the above-mentioned high-precision slope intersection and clipping methods for the roadbed BIM model.
[0038] Compared with the prior art, the present invention has the following beneficial effects: the method of the present invention can effectively solve the problem of errors in the intersection and clipping of slopes. Since all intersection points used for clipping slopes can be found, including the intersection points of two intersecting surfaces and the intersection points of three or more intersecting surfaces, the slopes can be accurately clipped, thereby improving the accuracy and efficiency of modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of obtaining an approximate intersection point in the background technology of the present invention;
[0040] Figure 2 A schematic diagram of a BIM model generated when the slope is not cut in the background technology of the present invention;
[0041] Figure 3 This is a flow chart of a method for cutting slope intersections in a three-dimensional BIM model of a roadbed in Embodiment 1 of the present invention;
[0042] Figure 4 A schematic diagram showing a cross-sectional line corresponding to each stake number in the intersecting lines in Embodiment 1 of the present invention;
[0043] Figure 5 is a schematic diagram of forming a valid intersection point by the intersection area in Example 1 of the present invention;
[0044] Figure 6 A schematic top view of a main route or a secondary route in Embodiment 1 of the present invention;
[0045] Figure 7 This is a diagram of the line-surface intersection algorithm under the horizontal two-dimensional plane in Example 1 of the present invention;
[0046] Figure 8 A schematic diagram of forming a turning point in Example 1 of the present invention;
[0047] Fig. 9 A schematic diagram of using an internal turning point algorithm to obtain a turning point in Embodiment 1 of the present invention;
[0048] Fig.10This is a schematic diagram of the collapse of the cross-sectional feature points in Example 1 of the present invention;
[0049] Fig.11 This is a schematic diagram of the collapse of the cross-sectional feature points in Example 1 of the present invention;
[0050] Fig.12 This is a schematic diagram of the lower span and the upper span in Example 1 of the present invention;
[0051] Fig.13 This is a schematic diagram of the connection lines in the down-span-up algorithm in Example 1 of the present invention. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below in conjunction with test examples and specific implementation methods. However, this should not be understood as the scope of the above subject matter of the present invention being limited to the following embodiments, and all technologies realized based on the content of the present invention belong to the scope of the present invention.
[0053] Example 1
[0054] A method for cutting slope intersections in a three-dimensional BIM model of a roadbed. The flow chart is as follows: Figure 3 As shown, the following steps are included:
[0055] Step 1: Obtain the cross section of the route at a preset interval, and obtain the cross section design line data array of the route.
[0056] Step 2: Obtain the intersection area of the two routes and determine the cross-section design line data array within the intersection area.
[0057] Step 3: Based on the cross-section design line data array, a line-surface intersection algorithm or a surface-surface intersection algorithm is used to obtain the slope intersection point of the two intersecting routes.
[0058] Step 4: Connect the slope intersection points to generate slope cutting lines for slope cutting.
[0059] Step 5: Draw the 3D BIM model of the roadbed based on the slope cutting line.
[0060] Step 1 specifically includes:
[0061] (1) Sampling data. Generally, the route is sampled from small pile numbers to large pile numbers at a certain sampling interval, such as 10-meter sections. When encountering special places such as transition curves, circular transition curves, and the junction of bridges, tunnels, and roadbeds, the sampling interval can be appropriately reduced to obtain a more refined model expression.
[0062] (2) Under each pile number, use the latitude and longitude file parameters and high-precision terrain calculation to calculate the cross-section design line under that pile number. Figure 4As shown, there are two intersecting lines A and B. +10, +20, +30, +40, +50, +60... are the stake numbers of line A, and each stake number corresponds to a cross-section design line.
[0063] A cross-section design line corresponds to a pile number, and a cross-section design line is composed of several feature points. The line segment between each two adjacent feature points represents a part of the roadbed, which belongs to one of the following roadbed types: median strip, earth shoulder, driving lane, shoulder wall, fill slope, embankment wall, ditch, cutting wall, cut slope, etc.
[0064] A feature point includes the three-dimensional coordinates of the point and the feature number. The feature number is unique in the same cross section, and is used to indicate what type of roadbed the feature point can form with the adjacent feature points before and after it. The feature numbers are in order, which is consistent with the geometric arrangement of the roadbed types. For example, from the center line of the road to both sides of the roadside (from the inside to the outside), they are: median strip, earth shoulder, driving lane, earth shoulder, shoulder wall, fill slope, embankment wall, ditch, cutting wall, excavation slope, etc. The feature numbers are coded from the inside to the outside. All route cross sections need to use the same order of feature numbering rules.
[0065] (3) Save the result of the previous step (i.e., the characteristic points corresponding to the cross-section design line) as a cross-section design line data array. The array consists of several cross-section design lines, and a cross-section design line consists of a pile number and a characteristic point data set. The array is sorted from small to large by pile number.
[0066] The goal of step 2 is to calculate the intersection area of the slopes of the two routes, obtain the corresponding pile number intervals, left and right side information of the routes, cross-section design line data arrays, etc. of the two routes, in preparation for generating intersection lines before subsequent cutting. The non-intersecting parts do not consider the problem of slope cutting.
[0067] The step 2 specifically includes:
[0068] (1) Calculate the slope edge of each route. Connect the coordinates of the outermost points on the left and right sides of each route in a clockwise or counterclockwise order to form a closed curve, which is the slope edge.
[0069] From the perspective of looking down at the road surface, taking clockwise as an example, the left point coordinates are connected from small pile numbers to large pile numbers to form the left curve point coordinate array, including [Point L1 , Point L2 ,…Point LN ], and then connect the right point coordinates from large stake to small stake to form the right curve point coordinate array, including [Point RN ,…,Point R2 , Point R1], in the intersection area, the left side line and the right side line of the route are connected to form a closed curve.
[0070] The two arrays are connected into one array, which is the coordinate array of the closed slope edge line, representing the slope edge line of the route. L1 , Point L2 ,…Point LN , Point RN ,…,Point R2 , Point R1 ].
[0071] (2) Each route corresponds to a coordinate array of a closed slope edge line. When the slopes of two routes intersect, the closed slope edge lines of the two routes also have an intersection point.
[0072] (3) Calculate the starting and ending pile numbers of the intersection area through the intersection of the closed slope lines of the two routes, and determine whether the intersection point is on the left or right side of the route, and record it. The specific method for finding the intersection of the slope lines of the two routes is: if the three-dimensional coordinates of each point that constitutes the closed slope line in the two routes are known, the closed slope line can be outlined to obtain the intersection point and the pile number corresponding to the intersection point. It is necessary to pay attention to whether one of the routes crosses the other route to form a "closure". Crossing is defined as the coordinates of the two points in the array that are adjacent to the intersection point are located inside and outside the closure of the other curve respectively. The intersection points that do not form a crossing need to be discarded, and the remaining intersection points are valid intersection points. For example Figure 5 As shown, the area between points AB is a valid intersection area, but BC is not. This is because point C does not cross the closure formed by the edge of the other slope and cannot form a valid intersection slope. For the case of a valid intersection point, the arrays of the two routes are sorted from small to large according to the main route pile number, and each two are grouped together to form an intersection area.
[0073] The starting and ending pile numbers of the two routes are calculated through the starting point and the end intersection point respectively. The intersection point is determined to be on the left or right side of the road centerline according to the road centerline. The closed area formed by the coordinate points corresponding to the left pile number of one route (such as the main route) and the coordinate points corresponding to the right pile number of the other route (such as the secondary route) with the starting point and the end intersection point as the boundary is the intersection area. Each intersection area is composed of the starting and ending pile numbers of the main route, the roadside of the main route, the starting and ending pile numbers of the secondary route, and the roadside of the secondary route. Two routes can have multiple intersection areas. In addition to the closed area formed by the coordinate points corresponding to the left pile number of the main route and the right pile number of the secondary route mentioned above, there are also four situations: the left side of the main route intersects with the left side of the secondary route, the right side of the main route intersects with the left side of the secondary route, and the right side of the main route intersects with the right side of the secondary route.
[0074] The goal of step 3 is to accurately calculate the coordinates of the intersection point of the slopes in a certain intersection area of the two routes. The algorithm is a line-surface intersection algorithm or a surface-surface intersection algorithm.
[0075] The specific steps of the line-surface intersection algorithm are as follows:
[0076] (1) Extract the pile number interval and cross-section design line coordinate array of the intersection area as input data. One is used as the main route and the other is used as the secondary route. An intersection area consists of the starting and ending pile numbers of the main route, the main route roadside, the starting and ending pile numbers of the secondary route, and the secondary route roadside.
[0077] (2) Calculate the model surfaces of the main and secondary routes respectively.
[0078] The set of model surfaces is composed of the road surface between two cross sections of adjacent sampling pile numbers. Specifically, the points with the same feature number in the two cross sections are connected into a line, and there are four feature points in the two connecting lines of adjacent feature numbers. There are four three-dimensional point coordinates for the four feature points. If two spatial triangular faces that do not overlap and the four points are completely contained in the vertices can be drawn, they are considered to be valid spatial triangular faces. A set of model surfaces is composed of a route, a starting pile number, an ending pile number, and a set of valid spatial triangular faces. The set of valid spatial triangular faces is a set of valid triangular faces formed by connecting the cross sections of two adjacent pile numbers sampled on the route according to the above method. Figure 6 As shown, Figure 6 The top view schematic diagram of the main route or the secondary route, the two straight lines represent the two cross-section lines, points A and D are the characteristic points on the edge line of the same cross-section, points B and C are the characteristic points on the edge line of another adjacent cross-section, that is, there are four characteristic points on the two connecting lines of adjacent characteristic numbers, A, B, C, D correspond to four three-dimensional point coordinates, A, C, D constitute a spatial triangular surface, A, B, C constitute a spatial triangular surface, therefore, the two triangular surfaces are valid spatial triangular surfaces, and subsequent processing can be performed. If the area of the spatial triangular surface formed by the four characteristic points A, B, C, D is greater than 0, it is a valid spatial triangular surface, otherwise it is an invalid spatial triangular surface and cannot be processed subsequently, and the cross section and characteristic points should be re-acquired.
[0079] (3) Starting from the main route, traverse each sampled cross-section line and calculate whether it has an intersection with a set of model surfaces of the secondary route. If so, use the geometric ray and three-dimensional surface intersection algorithm to calculate the exact intersection coordinates and record them. The reference for the geometric ray and three-dimensional surface intersection algorithm is Möller T, Trumbore B. Fast, minimum-storage ray-triangle intersection [J]. Journal of Graphics Tools, 1997, 2(1):21-28. The basic principle is:
[0080] like Figure 7 As shown, points A, B, and C form a space triangle, and the equation of the point P inside the triangle is:
[0081] AP=Uac+Vab, that is: PA=u(CA)+v(BA)
[0082] P=(1-uv)A+vB+uC
[0083] (u≥0, v≥0, u+v≤1)
[0084] The equation for any point on a space ray:
[0085] 0+tD(t≥0)
[0086] O is the starting point, D is the ray direction (direction vector), t is the weight, and the equation of point P and the equation of any point on the ray are combined to obtain:
[0087] 0+tD=(1-uv)A+vB+uC
[0088] Simplified to:
[0089] 0-A=-tD+(BA)v+(CA)u
[0090] There are three unknowns t, u, v, and an equation, which can be expressed by matrix multiplication as:
[0091]
[0092] Solve according to Cramer's rule and vector mixed product theorem:
[0093]
[0094] Through the above principle, the problem of finding the intersection point is converted into a parameter calculation problem. All three parameters t, u, and v are found. The three parameters are used to determine whether they intersect. If they do not meet the range, they do not intersect. If they meet the range, they intersect. The above geometric ray and three-dimensional surface intersection algorithm can determine whether they intersect and find the intersection point at the same time. O is the starting point, E is the end point, and D=EA is set. After finding t, it is judged that 0≤t≤1, which means that the ray intersects with the triangle.
[0095] (4) Starting from the secondary route, traverse each sampling cross-section line and calculate whether it has an intersection with a set of model surfaces of the main route. If so, use the geometric ray and three-dimensional surface intersection algorithm to calculate the exact intersection coordinates and record them.
[0096] Starting from the main route, the cross section is obtained at a preset interval, and the intersection coordinates determined by the cross section are traversed to obtain the first intersection coordinate set. Starting from the secondary route, the cross section is obtained at a preset interval, and the intersection coordinates determined by the cross section are traversed to obtain the second intersection coordinate set. The first intersection set and the second intersection set are merged into an intersection set, and the line connecting the point coordinates in the intersection set is used for slope clipping. The sampling accuracy determines the subsequent calculation accuracy of the slope clipping. With high accuracy, the slope intersection line can be generated according to the intersection coordinates when the intersection coordinates are found from the main route. However, high accuracy will lead to large calculation amount and low calculation efficiency. Therefore, the second intersection coordinate set obtained by the secondary route can be used to expand the first intersection coordinate set and increase the intersection density. When the accuracy is reduced, the edge line obtained by the intersection coordinates remains accurate. At the same time, after the first intersection coordinate set and the second intersection coordinate set, it can be further ensured that the turning points in the route are not missed.
[0097] (5) For other intersection points between two adjacent sampling pile number cross sections of the route (i.e., intersection points that are not located on the design lines of the cross sections of the two sampling pile numbers), the fundamental reason for the existence of turning points is that when sampling at fixed pile number intervals to obtain the cross section line data array of the route, the sampling step size cannot be too small to accurately sample the cross section line where the intersection point formed by different roadbed components with different shapes inside the cross section line is located. For example, Figure 8 Each broken line in the fold is a different part of the roadbed. These turning points are not on the cross-section line, but have an impact on the slope cutting. They need to be found as other intersection points for special processing (it can also be understood that due to the influence of the terrain, there are three or more intersection points where the faces intersect. These intersection points are not on the cross-section line, but have an impact on the slope cutting). A special algorithm, the "internal turning point algorithm", is used to calculate the coordinates of the intersection points affected by the turning points.
[0098] In the above case, although the intersection coordinates (such as Figure 8 However, due to the sparseness of the cross-sections, the line connecting two adjacent intersections cannot represent the cutting line, and there are turning points between the two intersections (for example, two intersecting lines A and B, the intersection of the slope surface of A, the slope surface of B and the slope platform surface of point B, the intersection of the slope surface of A, the roadbed surface of B and the slope surface of B, etc.). Figure 8 The left part is a schematic diagram of the turning point. Figure 8 The circle on the left is the turning point formed by the intersection of multiple faces. This turning point is generated by the intersection of multiple faces. It is impossible to find the turning point completely through the above scheme, so the internal turning point algorithm is used.
[0099] The principle of the internal turning point algorithm is summarized as follows: determine whether the main route has intersecting line segments with other objects. If so, extract the line segments as the first intersection line, which is represented by the corresponding point coordinate data array; determine whether the first intersection line has an intersection with a group of model surfaces of the secondary route; if there is an intersection, determine whether the first intersection point is located between the cross sections where the endpoints of the first intersection line are located. If so, retain these line segments, delete other line segments, and retain these intersection points. These intersection points are the turning points required to achieve accurate slope cutting.
[0100] Specifically, we first need to determine whether there is a turning point between two adjacent intersection points, and then obtain the turning point using the internal turning point algorithm. The schematic diagram of using the internal turning point algorithm to obtain the turning point is as follows: Fig. 9 As shown, the method is: take the intersection point A as the center (intersection point A comes from the first intersection point or the second intersection point mentioned above), on the cross-section line where the intersection point A is located, take points on both sides of the intersection point A to obtain the first series of feature points, the number of points is M, take another intersection point B (intersection points A and B are from the same route, respectively located on the cross-section lines of two adjacent stake numbers) as the center, on the cross-section line where the intersection point B is located, take points on both sides of the intersection point B to obtain the second series of feature points, the number of points is N, then there are M×N lines between the first series of feature points and the second series of feature points, judge this Whether any of the M×N lines are actually existing modeling intersection lines, for all actually existing modeling intersection lines, determine one by one whether they have an intersection C with a set of model surfaces of another route, and the intersection C is located between the cross sections where the intersections A and B are located. If so, retain these line segments, delete other line segments, and retain these intersection points C. These intersection points C are the turning points required to achieve accurate slope clipping. These turning points are also used as slope intersection points for clipping, and the slope intersection points are connected in sequence into clipping lines in coordinate order to perform slope clipping.
[0101] A specific internal turning point algorithm steps are as follows:
[0102] (1) Collapse of cross-section feature points. Collapse multiple feature points with the same three-dimensional coordinates of a cross section (in actual engineering, some roadbed types may not exist, such as "fill slope" instead of "cut slope". In this case, the series of feature points of the cut slope still exist on the cross-section line due to the drawing algorithm requirements, but the coordinates are the same) into one point. The schematic diagram of the collapse of cross-section feature points is shown in the figure below. Fig.10As shown, for example, 62 feature points (i.e., 62 coordinate points) are obtained. The 62 feature points are points defined by the general method. Then, according to the different cross sections of each line, they are collapsed according to the actual situation. The collapsed point needs to be calculated as one point. Specifically, not every point is used to find the slope intersection line, so multiple points can be collapsed into one point to improve the efficiency in the process of finding the slope intersection line. Therefore, the 62 feature points are classified into the feature points of the secondary excavation slope, the feature points of the secondary excavation platform, the feature points of the primary excavation slope, the feature points of the primary excavation platform, the feature points of the ditch, and the feature points of the road surface. According to the actual situation, the feature points are reduced from 62 to 10, which greatly reduces the amount of calculation for obtaining the slope intersection line. The collapsed point is regarded as one point, and the level is corrected to reduce the calculation. There is a level between adjacent feature points (different roadbed types correspond to different levels. For example, the secondary excavation platform and the primary excavation platform are adjacent, and the two adjacent platforms are connected by the primary excavation slope. Then the primary excavation platform, the primary excavation slope and the secondary excavation platform are different levels respectively). The intersection is located between different levels, spanning the levels.
[0103] The feature number uses L and R to distinguish the left or right side of the midpoint of the road. The left model includes all road models and feature numbers containing L, and the right model includes all road models and feature numbers containing R. The purpose of retaining the road model is to be able to cut when the slope of one route intersects with the road surface of another route.
[0104] For a roadside model, its feature points can be arranged from the inside to the outside, that is, from the road surface to the slope, to form a feature point sequence array. A feature point has a unique subscript in the array.
[0105] Collapse multiple feature points with the same three-dimensional coordinates of a cross section into one point. Use [i,j] to represent the feature points from subscript 𝑖 to 𝑗 collapsed into one point, where i≤j. , when i=j, it means that the collapsed feature point has only one feature point, and its coordinates are different from all other feature points. The collapsed point is called the collapsed feature point, and [i,j] is called the subscript array of the collapsed feature point (since the collapsed feature points are different from each other, the subscript array can also represent a collapsed feature point, and the following expressions can be universal).
[0106] After multiple feature points with the same three-dimensional coordinates are collapsed, different collapsed feature points have different three-dimensional coordinates, and the subscript arrays of the collapsed feature points do not overlap. Fig.11 shown.
[0107] (2) Determine whether the intersection point spans different levels of feature points (adjacent intersection points spanning different levels is a prerequisite for the existence of turning points).
[0108] For other intersection points between the cross sections of two adjacent sampling pile numbers of the route (i.e., the intersection points that are not located on the design lines of the cross sections of the two sampling pile numbers), the essence is that the intersection points found on the design lines of the two cross sections are respectively located between different levels of their respective cross sections. The two intersection points are connected across the actual characteristic point line, and there is one level between the collapse points.
[0109] Cur and Next are used to represent two adjacent sampling cross sections. [𝑖,𝑗] and [𝑝,𝑞] are respectively the subscript arrays of the collapsed feature points at different levels that are different from and adjacent to the intersection point (the intersection point is the first or second intersection point calculated in the above step), where i≤j<p≤q, Then there are two forms of spanning: lower spanning upper spanning (j cur ≥p next ) and upper and lower (p cur ≤j next ), the schematic diagram of the lower span and the upper span is as follows Fig.12 The condition for connection is that the arrays of two points overlap.
[0110] Two types: under-cross and up-cross
[0111] (3) If yes, obtain all combinations of intersection points that span feature points.
[0112] The following stride up (j cur ≥p next ) as an example, the schematic diagram of the down-cross-up algorithm is as follows Fig.13 As shown, the algorithm is described as follows:
[0113] 1) Find the upper and lower bounds of all possible collapse feature points.
[0114] The upper limit of the Cur cross section is obviously [i cur ,j cur ] represents the point, if the lower boundary point of Cur cross section is [m cur ,n cur ], the interval must contain exactly p next , that is, m cur ≤p next ≤n cur The number of collapse feature points between the upper and lower bounds on the Cur cross section is denoted as K.
[0115] NextThe lower limit of the cross section is obviously [p next ,q next ] represents the point, if the upper boundary point of the Next cross section is [r next ,s next ], the interval must contain exactly j cur , that is, r next ≤j cur ≤snext The number of collapse feature points between the upper and lower bounds of the Next cross section is recorded as T.
[0116] 2) Traverse from the upper and lower bounds of the Cur cross section and the upper and lower bounds of the Next cross section respectively, and calculate K*T times in total. If the two intervals overlap, they can be connected (in each calculation, the subscript array interval values of the collapse feature points of the two cross sections are compared. If the two intervals overlap, they can be connected). The line connecting the two points that can be connected represents the existence of a real modeling line. If the line intersects with a set of model surfaces of another route, there must be an internal turning point. Record the coordinate sets of all connectable collapse feature points. The connectable collapse feature point coordinate sets, each two collapse feature points are a group, and are located on the design lines of two adjacent sampling cross sections.
[0117] (4) Using the geometric ray and three-dimensional surface intersection algorithm, the accurate slope intersection point can be obtained based on the obtained set of coordinates of the connected collapse feature points.
[0118] (5) For the obtained intersection points, find the corresponding line stake numbers, integrate them with the first and second groups of intersection points calculated previously, and connect them in the order of stake numbers to form the intersection line for slope cutting.
[0119] As another embodiment, the specific steps of the face-to-face intersection algorithm are as follows:
[0120] (1) Extract the intersection area of the two routes as input data. One is the main route and the other is the secondary route. An intersection area consists of the starting and ending pile numbers of the main route, the roadside of the main route, the starting and ending pile numbers of the secondary route, and the roadside of the secondary route.
[0121] (2) Calculate the model surfaces of the main and secondary routes respectively.
[0122] (3) Starting from the main route, traverse each set of model faces and calculate whether there is an intersection with a set of model faces of the secondary route. If there is, use the geometric surface intersection algorithm to calculate the exact coordinates of the intersection and record them.
[0123] (4) Record the interval information of the intersection. Record the intersection coordinates, the main route, roadside, starting pile number, and ending pile number of the main route model surface corresponding to the intersection, and the secondary route, roadside, starting pile number, and ending pile number of the secondary route model surface corresponding to the intersection, to improve the search speed later (this step is not necessary).
[0124] (5) Starting from the secondary route, traverse each set of model faces and calculate whether there is an intersection with a set of model faces of the main route. If so, use the geometric surface intersection algorithm to calculate the accurate intersection coordinates and record them. The surface intersection calculation can calculate more intersection points, with high accuracy, larger calculation amount and slow speed, but some points in the calculation process are unnecessary. The line-surface intersection algorithm improves efficiency and ensures accuracy.
[0125] The principle of the geometric face intersection algorithm refers to the document: DEVILLERS O, GUIGUE P. Faster triangle-triangle intersection tests, TR 4488[R]. [s.1]: INRIA, 2002.
[0126] (6) Sort all the calculated intersection points in ascending order according to the main route pile number.
[0127] (7) For the intersection point, calculate the corresponding route stake number. If the stake number is not in the corresponding stake number set of the sampled cross-section design line, add the cross-section design line. Use the latitude and longitude file parameters and high-precision terrain calculation to calculate the cross-section design line under the stake number. Add the cross-section design line to the above cross-section design line data array in the order of the stake number.
[0128] The step 4 specifically includes:
[0129] (1) Set the slope shear point. Calculate the horizontal and vertical offsets of the corresponding route cross-section design line through the coordinates of the slope intersection point (or shear point).
[0130] (2) Cut the cross-section design line according to the coordinates of the cutting point. All feature points on the side of the route outside the cutting point (the road surface facing the slope direction is outward) are collapsed to the coordinates of the cutting point and merged into a collapsed feature point.
[0131] The method for finally drawing and outputting the BIM three-dimensional roadbed model (the specific steps of step 5) specifically includes:
[0132] The trimmed cross-section design line is used to construct a three-dimensional surface using the same method as the model surface. Specifically, the points with the same feature number in the two cross-sections are connected into a line, and there are four feature points in the two lines connecting adjacent feature numbers. The four feature points have four three-dimensional point coordinates. If two spatial triangular surfaces that do not overlap and the four points are completely contained in the vertices can be drawn, they are considered to be valid spatial triangular surfaces.
[0133] Since the line segment between every two adjacent feature points represents a part of the roadbed, this part belongs to a roadbed type, such as: median strip, earth shoulder, driving lane, shoulder wall, fill slope, embankment wall, ditch, cutting wall, excavation slope, etc. Different colors and materials can be assigned to different roadbed models to achieve a perfect model display effect. This process is the process of modeling and outputting the model.
[0134] The method proposed in this invention aims to solve the problem of slope intersection and cutting in the process of 3D BIM modeling of highway engineering roadbed. It has the following distinct advantages:
[0135] 1) Fully automatic
[0136] The entire process, from intersection areas, slope intersection, shear point setting to model drawing, is an automated process, which can effectively solve the time-consuming and labor-intensive problem of manual modification of slope intersection and cutting problems in the highway design field, greatly improving efficiency.
[0137] 2) High accuracy
[0138] The intersection points obtained by the present invention are all accurate intersection points with negligible errors, and the slopes can be accurately cut. The road surface effect presented in the BIM modeling field is excellent. At the same time, in the field of highway design, the original engineering approximation method can be effectively improved because the termination position of the cross-section line is accurately calculated.
[0139] 3) Fast speed
[0140] The present invention only needs 20% more time than the original modeling to accurately cut out the accurate slope effect. In addition, thanks to the reasonable loading and calculating strategy and the appropriate progress bar setting, the user's perception of the time change is not obvious.
[0141] The invention can automatically, accurately and efficiently calculate the slope intersection cutting point and automatically cut the cross section line. The invention can also be applied to accurate slope intersection cutting during roadbed design.
[0142] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A high-precision slope intersection cutting method for a roadbed BIM model, characterized in that: The following steps are involved: Step 1, obtaining the cross section of the route at a preset interval, and obtaining the cross section design line data array of the route; Step 2: Obtain the intersection area of the two routes and determine the cross-section design line data array in the intersection area; Step 3: According to the cross-section design line data array, a line-surface intersection algorithm or a surface-surface intersection algorithm is used to obtain the slope intersection point of the two intersecting routes; Step 4, connecting the slope intersection points to generate a slope cutting line for slope cutting; Step 5: Draw the 3D BIM model of the roadbed according to the slope cutting line; The line-surface intersection algorithm comprises the following steps: Extracting the pile number interval and the cross-section line coordinate array of the intersection area of two routes from the cross-section design line data array as input data, the two routes include a main route and a sub-route; Calculate the model surfaces of the main route and the secondary route respectively according to the input data, wherein the model surfaces are the road surfaces between two cross sections of adjacent sampling pile numbers; Starting from the main route, traverse each sampled cross-section line corresponding to the cross-section line coordinate array in the main route, calculate whether there is an intersection between the cross-section line of the main route and a group of model surfaces of the secondary route, and if so, use the geometric ray and three-dimensional surface intersection algorithm to calculate the intersection coordinates, and the set of intersection coordinates is the first intersection coordinate set, and the first intersection coordinate set is used as the slope intersection coordinates for slope clipping; Step 3 also includes using an internal turning point algorithm to obtain turning points that affect slope clipping in addition to the slope intersection coordinates, wherein the turning points are not on the cross-section line and are points generated by the intersection of multiple faces; The method of obtaining the turning point using the internal turning point algorithm includes the following steps: Taking intersection A as the center, take points on both sides of the cross-section line where intersection A is located to obtain the first series of feature points, with M points; taking another intersection B as the center, take points on both sides of the cross-section line where intersection B is located to obtain the second series of feature points, with N points. There are M×N lines between the first series of feature points and the second series of feature points. Determine whether these M×N lines belong to the actual modeling intersection lines between the routes where intersection A and intersection B are located and other objects. If so, for all the actual modeling intersection lines, determine whether they have an intersection C with a group of model surfaces of another route, and intersection C is located between the cross-sections where intersections A and B are located. If so, retain these line segments, delete other line segments, and retain these intersection points C. These intersection points C are the turning points required to achieve accurate slope cutting.
2. A high-precision slope intersection cutting method for a roadbed BIM model as claimed in claim 1, characterized in that: Step 3 specifically includes using a line-surface intersection algorithm or a surface-surface intersection algorithm to calculate the coordinates of the slope intersection point in a certain intersection area of the two routes.
3. A high-precision slope intersection cutting method for a roadbed BIM model as claimed in claim 1, characterized in that: The line-surface intersection algorithm also includes: starting from the secondary route, traversing each sampled cross-sectional line corresponding to the cross-sectional line coordinate array in the secondary route, calculating whether there is an intersection between the cross-sectional line of the secondary route and a group of model surfaces of the main route, and if so, using a geometric ray and three-dimensional surface intersection algorithm to calculate the intersection coordinates to obtain a second intersection coordinate, merging the first intersection coordinate set and the second intersection coordinate set into an intersection set, and connecting the point coordinates along the route direction in the intersection set for slope clipping.
4. A high-precision slope intersection cutting method for a roadbed BIM model as claimed in claim 2, characterized in that: The calculation of the coordinates of the slope intersection point in a certain intersection area of two routes using the surface intersection algorithm includes the following steps: Extract the stake number and coordinate array of the intersection area of the two routes as input data; Calculate the model surfaces of the main route and the secondary route respectively according to the input data; Starting from the main route, the main route model surface is traversed in sequence. For each group of main route model surfaces, the sub-route model surfaces are traversed respectively to calculate whether there is an intersection between the two groups of model surfaces. If so, the geometric surface intersection algorithm is used to find the accurate intersection coordinates. The set of intersection coordinates is the third intersection coordinate set, and the third intersection coordinate set is used as the slope intersection for slope clipping.
5. A high-precision slope intersection cutting method for a roadbed BIM model as claimed in claim 1, characterized in that: Step 4 specifically includes the following steps: According to the coordinates of the slope intersection point, the horizontal and vertical offsets of the corresponding route cross-section design line are calculated to obtain the slope shear point; The cross-section design line is obtained according to the coordinates of the slope shear point.
6. A high-precision slope intersection cutting method for a roadbed BIM model as claimed in claim 1, characterized in that: Step 5 specifically includes the following steps: The model surface is generated according to the clipped cross-section line, and a three-dimensional surface is constructed; several three-dimensional surfaces are connected to form the slope surface in the three-dimensional BIM model of the roadbed.
7. A high-precision slope intersection cutting system for roadbed BIM model, characterized in that: The method comprises at least one processor and a memory in communication with the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a high-precision slope intersection clipping method for a roadbed BIM model according to any one of claims 1 to 6.
