Steel bar modeling method suitable for linear structure, computer equipment and storage medium
By calculating the normal and virtual sections, two-dimensional conversion and steel bar structure information are performed, and finally reversely deduced to three-dimensional space, solving the problem of the inability to reuse the steel bar modeling function and low freedom in the existing technology, and achieving application High-efficiency steel bar modeling in linear structures.
Patent Information
- Application Number
- CN202411286687.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-02-14
AI Technical Summary
When the existing three-dimensional modeling software for steel bars is processed by linear structures, the steel bar modeling function cannot be reused and has low freedom, making it difficult to meet the needs of structural reinforcement in transportation projects.
By obtaining the route three-dimensional model, linear structure three-dimensional model and reinforcement mileage parameters, calculating the normal and virtual sections, performing two-dimensional transformation and drawing of steel bar structure information, and finally inversely deducing it to the three-dimensional space to establish steel bar construction suitable for linear structures. Modification method.
It improves the versatility and efficiency of steel bar modeling, expands the freedom of the software, and is suitable for the reinforcement requirements of linear structures.
Smart Images

Figure CN119442572A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of BIM, and in particular to a steel bar modeling method, computer equipment and storage medium suitable for linear structures. Background Art
[0002] Steel bars excel in improving tensile strength, enhancing durability, improving structural toughness, controlling crack development, and improving earthquake resistance. By combining steel bars with concrete, the overall mechanical properties of the structure can be greatly improved, allowing modern buildings and infrastructure to meet higher technical requirements and safety standards.
[0003] With the development of BIM, the use of BIM modeling software for three-dimensional steel bar modeling has gradually become the mainstream. The current three-dimensional steel bar modeling software mainly embeds the steel bar design parameters into a specific three-dimensional model. Although the steel bar modeling can be completed quickly, there are problems such as the steel bar modeling function cannot be reused and the degree of freedom is low. For structures under traffic engineering, such as tunnels, roadbeds, ditches, retaining walls and other structures, the cross-sectional style is not fixed and they are arranged along the route for a long distance. It is urgent to provide a general steel bar modeling method arranged along the route, which is of great significance to the realization of the reinforcement of structures under traffic engineering. Summary of the invention
[0004] Based on the above background, the present invention provides a steel bar modeling method suitable for linear structures to improve the versatility and efficiency of reinforcement of structures in traffic engineering. The following technical solutions are specifically adopted to achieve the technical purpose:
[0005] A first aspect of the present invention provides a steel bar modeling method applicable to a linear structure, comprising:
[0006] Obtain the three-dimensional model of the route, the three-dimensional model of the linear structure and the reinforcement mileage parameters;
[0007] Calculate the normal line at the starting mileage of the reinforcement, establish a virtual section plane along the normal line direction, and cut it with the three-dimensional model of the linear structure to obtain a three-dimensional section line;
[0008] A conversion matrix is established for each 3D point on the 3D section line with the 3D point of the route where the mileage is located as the base point, and the 3D section line is converted into 2D to draw the 2D section line;
[0009] Draw the steel bar structure information on the two-dimensional cutting section line to obtain a two-dimensional steel bar model;
[0010] Based on the reinforcement mileage parameters, each point in the two-dimensional steel bar model is reversely calculated into the three-dimensional space in turn to establish a three-dimensional steel bar model.
[0011] Furthermore, the three-dimensional model of the route includes a plane line of the route, a longitudinal section line of the route and a three-dimensional line of the route.
[0012] Furthermore, the three-dimensional model of the linear structure is obtained by stretching the cross section along the route.
[0013] Furthermore, the reinforcement mileage parameters include a reinforcement starting mileage, a reinforcement ending mileage and a reinforcement spacing, and the mileage range formed by the reinforcement starting mileage and the reinforcement ending mileage is within the mileage range where the linear structure is located.
[0014] Furthermore, the calculation of the normal line at the starting mileage of the reinforcement, establishing a virtual section plane along the normal line direction, and cutting the three-dimensional model of the linear structure to obtain a three-dimensional section line includes:
[0015] Calculate the tangent direction TanVec and normal direction NorVec of the starting mileage of reinforcement. The tangent direction and normal direction are perpendicular to each other.
[0016] A virtual section plane VirtualPlane is established along the normal direction NorVec, and the virtual section plane is used to section the linear structure 3D model to obtain a 3D section plane Sec3D, which is expressed as a series of closed line strings, forming a 3D section line Sec3Dline.
[0017] Furthermore, the process of establishing a transformation matrix with each 3D point on the 3D section line taking the 3D point of the route where the mileage is located as a base point, performing a 2D transformation on the 3D section line, and drawing the 2D section line includes:
[0018] Calculate the three-dimensional point of the route at the starting mileage of reinforcement, recorded as P (x3, y3, z3);
[0019] Take each 3D point on the 3D section line Sec3DLine as the base point P, take the horizontal distance from the base point as dx, the point on the left side of the route as negative, the point on the right side as positive, take the height difference from the base point as dy, the point above the route as positive, and the point below the route as negative, to establish the transformation matrix T;
[0020] The three-dimensional section line is converted into a two-dimensional section line based on the transformation matrix T to obtain a two-dimensional section line Sec2DLine in the xy plane.
[0021] Furthermore, drawing the steel bar structure information on the two-dimensional section line to obtain the two-dimensional steel bar model includes:
[0022] Obtain the steel bar line data drawn on the two-dimensional section line, the steel bar line data includes the steel bar endpoint coordinate array Rebar2DPts and the line function, the endpoint coordinates are the x-coordinate and y-coordinate of the steel bar endpoint from the origin; in the two-dimensional plane, with the origin as the base point, the x value represents the directed horizontal distance from the base point, negative on the left and positive on the right, and the y value represents the height difference from the base point, negative at the bottom and positive at the top;
[0023] Save all reinforcement line data to form a two-dimensional reinforcement model.
[0024] Furthermore, based on the reinforcement mileage parameter, each point in the two-dimensional steel bar model is reversely calculated into the three-dimensional space in turn to establish the three-dimensional steel bar model, which includes:
[0025] Calculate the segment mileage array set according to the reinforcement start mileage, reinforcement end mileage and reinforcement spacing in the reinforcement mileage parameters;
[0026] Calculate the tangent direction and normal direction at each mileage in the segmented mileage array set, establish the inverse transformation matrix T2, reversely calculate each point of the steel bar endpoint coordinate array Rebar2DPts in the two-dimensional steel bar model into three-dimensional space according to the T2 transformation matrix, and re-solve based on the line function to obtain the actual position Rebar3DPts of the three-dimensional steel bar line;
[0027] After traversing each mileage in the segmented mileage array collection, all three-dimensional steel bar modeling is completed.
[0028] The second aspect of the present invention also provides a computer device, including a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method described in the first aspect above by executing the computer instructions.
[0029] The third aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described in the first aspect is implemented.
[0030] The beneficial effects of the present invention are as follows:
[0031] The target three-dimensional objects applicable to the present invention are linear structures. Such structures are combined with highway routes, and are arranged along the route considering the factors of route plane and longitudinal section, and have the characteristics of line length and undulation. The method proposed in the present invention has strong versatility and is closely integrated with the route, providing a good solution for solving the reinforcement of linear structures. In practice, after the method of the present invention is implemented, it can greatly expand the degree of freedom of steel bar modeling software and improve the efficiency of steel bar modeling of linear structures. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the process of an embodiment of the steel bar modeling method of the present invention.
[0033] Figure 2 It is a schematic diagram of the route plane line and three-dimensional structure in the embodiment of the steel bar modeling method of the present invention.
[0034] Figure 3 It is a schematic diagram of a three-dimensional cut section line in an embodiment of the steel bar modeling method of the present invention.
[0035] Figure 4 It is a schematic diagram of a two-dimensional cut section line in an embodiment of the steel bar modeling method of the present invention.
[0036] Figure 5 A schematic diagram of a two-dimensional steel bar model is drawn in an embodiment of the steel bar modeling method of the present invention.
[0037] Figure 6 It is a schematic diagram of a three-dimensional steel bar model in an embodiment of the steel bar modeling method of the present invention.
[0038] Figure 7 It is a detailed drawing of the three-dimensional steel bar model at the starting position in the embodiment of the steel bar modeling method of the present invention. DETAILED DESCRIPTION
[0039] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0040] See also Figure 1 The embodiment of the present invention provides a steel bar modeling method applicable to linear structures, comprising the following steps:
[0041] S1. Obtain the three-dimensional model of the route, the three-dimensional model of the linear structure and the reinforcement mileage parameters.
[0042] See also Figure 2 In this embodiment, the route three-dimensional model includes the route plane line, the route longitudinal section line and the route three-dimensional line, and the three are combined to form a complete route model.
[0043] The three-dimensional model of the linear structure is obtained by stretching the cross section along the route. The linear structure Solid is closely related to the three-dimensional model of the route and is obtained by stretching the cross section along the route. In this embodiment, the starting mileage Cml1 of the linear structure is DK1+160, and the ending mileage Cml2 is DK4+660.
[0044] In this embodiment, the reinforcement mileage parameters include the reinforcement start mileage Cml3 (DK1+200), the reinforcement end mileage Cml4 (DK4+600) and the reinforcement spacing d (0.5m). The mileage range formed by the reinforcement start mileage and the reinforcement end mileage is within the mileage range of the linear structure, that is,
[0045] S2. Calculate the normal line at the starting mileage of the reinforcement, establish a virtual section plane along the direction of the normal line, and cut it with the three-dimensional model of the linear structure to obtain a three-dimensional section line.
[0046] See also Figure 3 In this embodiment, according to the reinforcement starting mileage Cml3, the tangent direction TanVec and the normal direction NorVec at the reinforcement starting mileage Cml3 (DK1+200) are calculated, and the tangent direction and the normal direction are perpendicular to each other. A virtual section plane VirtualPlane is established along the normal direction NorVec, and the virtual section plane is used to cut the linear structure three-dimensional model to obtain a three-dimensional section plane Sec3D, which is expressed as a series of closed line strings, forming a three-dimensional section line Sec3DLine.
[0047] S3. Establish a transformation matrix for each 3D point on the 3D section line with the 3D point of the route where the mileage is located as the base point, perform a 2D transformation on the 3D section line, and draw the 2D section line.
[0048] See also Figure 4 In this embodiment, the three-dimensional point of the route at the starting mileage of reinforcement Cml3 (DK1+200) is first calculated, recorded as P (x3, y3, z3); each three-dimensional point on the three-dimensional cutting section line Sec3DLine is taken as the base point P, the horizontal distance from the base point is dx, the point on the left side of the route is negative, the point on the right side is positive, the height difference from the base point is dy, the point above the route is positive, and the point below the route is negative, and the conversion matrix T is established. Then, based on the conversion matrix T, the three-dimensional cutting section line is converted into two dimensions to obtain the two-dimensional cutting section line Sec2DLine in the xy plane, which is convenient for users to interactively draw steel bar lines.
[0049] S4. Draw the steel bar structure information on the two-dimensional cutting section line to obtain a two-dimensional steel bar model.
[0050] See also Figure 5In this embodiment, the data of the steel bar line (including 4 endpoints, connected in sequence in the order of ABCD) freely drawn by the user on the two-dimensional section line is obtained. Each steel bar line data includes the steel bar endpoint coordinate array Rebar2DPts and the line function. The endpoint coordinates are the x-coordinate and y-coordinate of the steel bar endpoint from the origin. In the two-dimensional plane, the origin is taken as the base point. The x value represents the directed horizontal distance from the base point, which is negative on the left and positive on the right. The y value represents the height difference from the base point, which is negative at the bottom and positive at the top. Figure 5 The coordinate array of the end points of the steel bar line shown is Rebar2DPts = {A(-18,25), B(-18,-7), C(18,-7), D(18,10)}. By saving all the steel bar line data on the 2D section line, a 2D steel bar model can be constructed.
[0051] S5. Based on the reinforcement mileage parameters, each point in the two-dimensional steel bar model is reversely calculated into the three-dimensional space in turn to establish a three-dimensional steel bar model.
[0052] In this embodiment, first, the segmented mileage array is calculated according to the reinforcement starting mileage, reinforcement ending mileage and reinforcement spacing in the reinforcement mileage parameters, that is, the steel bars are arranged at intervals of 0.5 m in the range of DK1+200 to DK4+600 with a total length of 3400 m. The corresponding mileage array can be expressed as a set D={DK1+200, DK1+200.5, DK1+201,..., DK4+599, DK4+599.5, DK4+600}. Then, the tangent direction and normal direction at each mileage in the segmented mileage array set D are calculated, and the inverse transformation matrix T2 is established. Each point of the steel bar endpoint coordinate array Rebar2DPts in the two-dimensional steel bar model is reversely calculated into the three-dimensional space according to the T2 transformation matrix, and the actual position of the three-dimensional steel bar line Rebar3DPts is re-solved based on the line function. Finally, after traversing each mileage in the segmented mileage array set, all three-dimensional steel bar modeling is completed, and the obtained Figure 6 The 3D steel bar model of the route layout is shown in the figure. The detailed drawing of the 3D steel bar model at the starting position is as follows: Figure 7 shown.
[0053] Another embodiment of the present invention further provides a computer device, including a memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the method described in the first aspect above by executing the computer instructions.
[0054] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0055] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the above method.
[0056] Another embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described in the first aspect above is implemented.
[0057] The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above types of memory.
[0058] It should be noted that the method of the embodiment of the present invention can be performed by a single device, such as a computer or a server. The method of this embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present invention, and the multiple devices will interact with each other to complete the described method.
[0059] It should be noted that some embodiments of the present invention are described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0060] The embodiments of the present invention are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the present invention.
Claims
1. A steel bar modeling method suitable for linear structures, characterized in that: include: Obtain the three-dimensional model of the route, the three-dimensional model of the linear structure and the reinforcement mileage parameters; Calculate the normal line at the starting mileage of the reinforcement, establish a virtual section plane along the normal line direction, and cut it with the three-dimensional model of the linear structure to obtain a three-dimensional section line; A conversion matrix is established for each 3D point on the 3D section line with the 3D point of the route where the mileage is located as the base point, and the 3D section line is converted into 2D to draw the 2D section line; Draw the steel bar structure information on the two-dimensional cutting section line to obtain a two-dimensional steel bar model; Based on the reinforcement mileage parameters, each point in the two-dimensional steel bar model is reversely calculated into the three-dimensional space in turn to establish a three-dimensional steel bar model.
2. The steel bar modeling method applicable to linear structures according to claim 1, characterized in that: The route three-dimensional model includes a route plane line, a route longitudinal section line and a route three-dimensional line.
3. The steel bar modeling method applicable to linear structures according to claim 2, characterized in that: The three-dimensional model of the linear structure is obtained by stretching the cross section along the route.
4. The steel bar modeling method applicable to linear structures as claimed in claim 3, characterized in that: The reinforcement mileage parameters include the reinforcement starting mileage, the reinforcement ending mileage and the reinforcement spacing. The mileage range formed by the reinforcement starting mileage and the reinforcement ending mileage is within the mileage range where the linear structure is located.
5. The steel bar modeling method applicable to linear structures according to claim 4, characterized in that: The calculation of the normal line at the starting mileage of the reinforcement, establishing a virtual section plane along the normal line direction, and cutting the three-dimensional model of the linear structure to obtain a three-dimensional section line includes: Calculate the tangent direction TanVec and normal direction NorVec of the starting mileage of reinforcement. The tangent direction and normal direction are perpendicular to each other. A virtual section plane VirtualPlane is established along the normal direction NorVec, and the virtual section plane is used to section the linear structure 3D model to obtain a 3D section plane Sec3D, which is expressed as a series of closed line strings, forming a 3D section line Sec3Dline.
6. The steel bar modeling method applicable to linear structures according to claim 5, characterized in that: The method of establishing a conversion matrix with each 3D point on the 3D section line taking the 3D point of the route where the mileage is located as a base point, converting the 3D section line into 2D, and drawing the 2D section line includes: Calculate the three-dimensional point of the route at the starting mileage of reinforcement, recorded as P (x3, y3, z3); Take each 3D point on the 3D section line Sec3DLine as the base point P, take the horizontal distance from the base point as dx, the points on the left side of the route as negative, the points on the right side as positive, take the height difference from the base point as dy, the points above the route as positive, and the points below the route as negative, to establish a transformation matrix T; The three-dimensional section line is converted into a two-dimensional section line based on the transformation matrix T to obtain a two-dimensional section line Sec2DLine in the xy plane.
7. The steel bar modeling method applicable to linear structures according to claim 6, characterized in that: Drawing the steel bar structure information on the two-dimensional cutting section line to obtain a two-dimensional steel bar model comprises: Obtain the steel bar line data drawn on the two-dimensional section line, the steel bar line data includes the steel bar endpoint coordinate array Rebar2DPts and the line function, the endpoint coordinates are the x-coordinate and y-coordinate of the steel bar endpoint from the origin; in the two-dimensional plane, with the origin as the base point, the x value represents the directed horizontal distance from the base point, negative on the left and positive on the right, and the y value represents the height difference from the base point, negative at the bottom and positive at the top; Save all reinforcement line data to form a two-dimensional reinforcement model.
8. The steel bar modeling method applicable to linear structures according to claim 7, characterized in that: The method of reversely calculating each point in the two-dimensional steel bar model to the three-dimensional space based on the reinforcement mileage parameter to establish the three-dimensional steel bar model includes: Calculate the segment mileage array set according to the reinforcement start mileage, reinforcement end mileage and reinforcement spacing in the reinforcement mileage parameters; Calculate the tangent direction and normal direction at each mileage in the segmented mileage array set, establish the inverse transformation matrix T2, reversely calculate each point of the steel bar endpoint coordinate array Rebar2DPts in the two-dimensional steel bar model into three-dimensional space according to the T2 transformation matrix, and re-solve based on the line function to obtain the actual position Rebar3DPts of the three-dimensional steel bar line; After traversing each mileage in the segmented mileage array collection, all three-dimensional steel bar modeling is completed.
9. A computer device, characterized in that: The invention comprises a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method as claimed in any one of claims 1 to 8 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.