Bridge three-dimensional model creation method and device, electronic equipment and storage medium
By automatically creating three-dimensional models using two-dimensional graph data in bridge design, the problem of low efficiency in bridge creation under traditional methods is solved, and a more efficient and accurate model creation process is achieved.
Patent Information
- Application Number
- CN202411669188.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-11-21
AI Technical Summary
The creation efficiency of bridge 3D models under traditional methods is low, mainly due to the reliance on manual operation for model creation.
By creating road center lines and prearch lines in preset three-dimensional coordinate systems based on bridge two-dimensional graph data, preset nodes and their node information are extracted, and skeleton lines are created based on this information, and the automated creation of the bridge three-dimensional model is finally realized.
It improves the efficiency of creating a bridge three-dimensional model, ensures the accuracy and reliability of the model, and reduces the steps and time of manual operation.
Smart Images

Figure CN119693537A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bridges, and in particular to a method, device, electronic device and storage medium for creating a three-dimensional bridge model. Background Art
[0002] With the rapid development of urbanization, bridges, as important transportation hubs connecting two places, play a pivotal role in the modern transportation network. However, in the design stage of bridges such as steel arch bridges, although traditional two-dimensional design drawings can provide detailed dimensioning and plane layout information, they are obviously insufficient in expressing complex structures and spatial relationships.
[0003] In recent years, with the continuous development of computer-aided design technology and 3D modeling software, building 3D models based on 2D design drawings has become an important trend in the field of bridge design, providing a more effective way for designers to analyze bridge structural characteristics and optimize design solutions. However, the current 3D bridge model mainly relies on manual creation based on 2D design drawings, and the model creation efficiency is relatively low. Summary of the invention
[0004] The problem solved by the present invention is how to improve the efficiency of creating a three-dimensional bridge model.
[0005] In order to solve the above problems, the present invention provides a method for creating a three-dimensional bridge model, comprising:
[0006] According to the acquired two-dimensional bridge map data, a road centerline and a pre-arch line in the same plane are created in a preset three-dimensional coordinate system, and positioning reference information is obtained based on the road centerline and the pre-arch line; wherein the two-dimensional bridge map data includes the total length of the road, the pre-arch type, the pre-arch height and the main span length, the road centerline is determined according to the total length of the road, and the pre-arch line is determined based on the pre-arch type, the pre-arch height and the main span length;
[0007] Extracting all preset nodes and node information corresponding to each preset node from the two-dimensional bridge graph data; wherein the node information includes node position information and component identification information, and the component identification information is used to indicate at least one preset component pre-associated with the preset node in the two-dimensional bridge graph data;
[0008] Creating each of the preset nodes in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and creating skeleton lines between the preset nodes based on a preset matching strategy and the component identification information;
[0009] A bridge skeleton is obtained based on the road centerline and the skeleton line, and an instantiation operation is performed on the bridge skeleton to obtain a three-dimensional model of the bridge; wherein the instantiation operation includes, for each of the skeleton lines, matching the skeleton line with a corresponding preset component instance template based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and creating an instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template.
[0010] Optionally, the two-dimensional bridge map data also includes a bridge cross-section map and a road mileage corresponding to the bridge cross-section map; the node position information includes a node two-dimensional coordinate; the positioning reference information is used to convert the node two-dimensional coordinate into a node three-dimensional coordinate; the positioning reference information obtained based on the road centerline and the pre-arch line includes:
[0011] Determine the cross-section reference plane corresponding to the bridge section view in the preset three-dimensional coordinate system according to the road mileage, wherein the cross-section reference plane is perpendicular to the center line of the road;
[0012] Obtain the reference two-dimensional coordinates corresponding to the preset reference point in the bridge cross-section view, and the reference three-dimensional coordinates of the preset reference point in the preset three-dimensional coordinate system, and obtain the positioning reference information based on the reference two-dimensional coordinates, the reference three-dimensional coordinates and the cross-section reference plane; wherein the preset reference point includes the intersection of the road centerline and the cross-section reference plane and / or the intersection of the pre-arch line and the cross-section reference plane.
[0013] Optionally, the bridge two-dimensional diagram data further includes multiple types of preset components, the types of the preset components include arch rib main truss components, beam components and longitudinal beam components, and one of the preset components includes at least one type of the preset component; the skeleton lines between the preset nodes are created based on the preset matching strategy and the component identification information, including:
[0014] Extracting preset segmentation information from the bridge two-dimensional graph data, and dividing all the preset nodes into a plurality of node sets based on the preset segmentation information;
[0015] For each of the node sets, matching the corresponding preset nodes for each of the preset components based on the component identification information, to obtain a node subset corresponding to each of the preset components;
[0016] For the node subset corresponding to each preset component, the skeleton line corresponding to the node group is created according to the component identification information; wherein one node group includes two preset nodes pre-associated with the same preset component.
[0017] Optionally, the types corresponding to the preset components in the arch rib main truss assembly include upper chords, lower chords and webs; and the step of creating the skeleton line corresponding to the node group according to the component identification information includes:
[0018] Based on the component identification information, the preset nodes matching the upper chord and the lower chord are respectively extracted from the node subset to obtain a first node sequence corresponding to the upper chord and a second node sequence corresponding to the lower chord; wherein, in the first node sequence and the second node sequence, the preset nodes are arranged in sequence along the direction of the centerline of the road;
[0019] Respectively taking every two adjacent preset nodes in the first node sequence and the second node sequence as a node group, and respectively creating the skeleton lines between the preset nodes in each node group;
[0020] The preset nodes are extracted alternately from the first node sequence and the second node sequence respectively according to a preset sampling interval to obtain a third node sequence corresponding to the web, every two adjacent preset nodes in the third node sequence are taken as a node group, and the skeleton lines between the preset nodes in each node group are created.
[0021] Optionally, a preset component instance template is pre-created based on a type of preset component; the component identification information corresponding to the preset nodes at both ends of the skeleton line is used to match the skeleton line with the corresponding preset component instance template, including:
[0022] Determine the preset components commonly associated with the preset nodes at both ends of the skeleton line based on the component identification information to obtain a target component;
[0023] The preset component instance template that matches the type of the target component is selected from the preset component instance template set, parameter information corresponding to the target component is obtained according to the two-dimensional bridge diagram data, and the preset component instance template is adjusted based on the parameter information.
[0024] Optionally, the preset component instance template includes a surface instance and a body instance; each of the preset component instance templates includes at least one positioning line; and the step of creating an instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template includes:
[0025] Determine the positioning information of the preset component instance template in the preset three-dimensional coordinate system according to a preset positioning strategy matching the type of the target component, and obtain the instance corresponding to the skeleton line; wherein the positioning information includes the positional relationship between the positioning line and the skeleton line, and the positional relationship includes at least one of coincidence, verticality, and a preset angle;
[0026] When the preset component instance template is the surface instance, the stretching thickness corresponding to the surface instance is determined according to the parameter information to obtain the body instance corresponding to the skeleton line.
[0027] Optionally, the two-dimensional bridge map data further includes road width and road thickness; and the instantiation operation further includes:
[0028] A road surface instance is created based on the road centerline, a width corresponding to the road surface instance is constrained according to the road width, and a stretching thickness corresponding to the road surface instance is determined based on the road thickness, to obtain a road body instance; wherein the road surface instance coincides with the road centerline and is perpendicular to the plane where the pre-arch line is located;
[0029] Acquire the preset node in the bridge skeleton that is not connected to the skeleton line to obtain a target node;
[0030] For each of the target nodes, the corresponding preset component instance template is matched for the target node according to the component identification information corresponding to the target node, and the instance is created at the target node based on the preset component instance template; wherein the target node includes at least one of a hanging point node, a partition node and a connection system node.
[0031] In the present invention, the two-dimensional bridge data usually contains key information such as the total length of the road, the pre-arch type, the pre-arch height and the main span length, which can provide important data basis for creating the corresponding road centerline and pre-arch line of the bridge in the preset three-dimensional coordinate system, ensure the reliability of the road centerline and the pre-arch line, and provide the most basic positioning reference information for the components of the subsequent bridge skeleton, which is conducive to improving the accuracy of the three-dimensional model of the bridge. On this basis, the present invention pre-sets a plurality of preset nodes based on each preset component of the two-dimensional bridge data and its corresponding positional relationship, and each preset node is pre-associated with at least one preset component. Extracting each preset node and its corresponding node information such as node position and component identification from the two-dimensional bridge data is conducive to quickly grasping the position distribution information of each preset component constituting the bridge on the one hand, and on the other hand, it can also effectively refine the massive parameters in the two-dimensional bridge data, thereby improving the creation efficiency of the overall three-dimensional bridge model. Based on this, each preset node can be created in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and then the position distribution information of each preset component in the two-dimensional bridge data is mapped to the preset three-dimensional coordinate system. On this basis, by creating skeleton lines between preset nodes based on preset matching strategies and component identification information, the connection relationship between each preset component can be accurately described in the preset three-dimensional coordinate system, and the bridge skeleton obtained based on the road centerline and the skeleton line can provide an accurate positioning reference for the subsequent generation of the three-dimensional bridge model. The present invention pre-sets corresponding preset component templates for different types of preset components. After obtaining the bridge skeleton, based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, the preset component corresponding to the skeleton line in the two-dimensional bridge image data can be determined, and then the skeleton line is matched with a suitable preset component instance template to realize the instantiation of the skeleton line. In this way, the component identification information corresponding to the preset nodes at both ends of the skeleton line in the present invention ensures the accuracy of the matching of each preset component instance template in the three-dimensional bridge model, and the position of the skeleton line further ensures the reliability of the position corresponding to each preset component instance template, thereby quickly and accurately completing the creation of the three-dimensional bridge model.
[0032] The present invention also provides a device for creating a three-dimensional bridge model, comprising:
[0033] A positioning reference module, which is used to create a road centerline and a pre-arch line in the same plane in a preset three-dimensional coordinate system according to the acquired two-dimensional bridge map data, and obtain positioning reference information based on the road centerline and the pre-arch line; wherein the two-dimensional bridge map data includes the total length of the road, the pre-arch type, the pre-arch height and the main span length, the road centerline is determined according to the total length of the road, and the pre-arch line is determined based on the pre-arch type, the pre-arch height and the main span length;
[0034] A node extraction module, which is used to extract all preset nodes and node information corresponding to each preset node from the two-dimensional bridge graph data; wherein the node information includes node position information and component identification information, and the component identification information is used to indicate at least one preset component pre-associated with the preset node in the two-dimensional bridge graph data;
[0035] A skeleton creation module, which is used to create each of the preset nodes in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and to create skeleton lines between the preset nodes based on a preset matching strategy and the component identification information;
[0036] A model creation module is used to obtain a bridge skeleton based on the road centerline and the skeleton line, and to instantiate the bridge skeleton to obtain a three-dimensional bridge model; wherein the instantiation operation includes, for each of the skeleton lines, matching the skeleton line with a corresponding preset component instance template based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and creating an instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template.
[0037] The advantages of the bridge 3D model creation device provided by the present invention and the bridge 3D model creation method compared with the prior art are basically the same, and will not be repeated here.
[0038] The present invention also provides an electronic device, comprising a memory and a processor;
[0039] The memory is used to store computer programs;
[0040] The processor is used to implement the above-mentioned method for creating a three-dimensional bridge model when executing the computer program.
[0041] The advantages of the electronic device provided by the present invention and the method for creating a three-dimensional bridge model are basically the same as those of the prior art, and will not be described in detail here.
[0042] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for creating a three-dimensional bridge model is implemented.
[0043] The advantages of the computer-readable storage medium provided by the present invention and the bridge three-dimensional model creation method compared with the prior art are basically the same, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of a flow chart of a method for creating a three-dimensional bridge model according to an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of the structure of a device for creating a three-dimensional model of a bridge according to an embodiment of the present invention;
[0046] Figure 3 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with 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 interpreted as being limited to the embodiments described 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.
[0048] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0049] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0050] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0051] According to the structural classification, bridges can be divided into beam bridges, arch bridges, steel frame bridges, and combined system bridges. Due to the different structural characteristics of different types of bridges, there may be some slight differences in the specific methods used when constructing a three-dimensional bridge model based on the two-dimensional bridge image data. This embodiment now takes a supported steel arch bridge as an example to introduce a method for creating a three-dimensional bridge model.
[0052] like Figure 1As shown, a method for creating a three-dimensional bridge model provided by an embodiment of the present invention includes the following steps:
[0053] S1: Based on the acquired two-dimensional bridge data, create a road centerline and pre-arch line in the same plane in a preset three-dimensional coordinate system, and obtain positioning reference information based on the road centerline and the pre-arch line; wherein the two-dimensional bridge data includes the total length of the road, the pre-arch type, the pre-arch height and the main span length, the road centerline is determined according to the total length of the road, and the pre-arch line is determined based on the pre-arch type, the pre-arch height and the main span length.
[0054] Specifically, the three-dimensional bridge model referred to in this embodiment represents a three-dimensional model of a component in a preset three-dimensional coordinate system of a preset modeling platform (such as CATIA, etc.). The two-dimensional bridge drawing data referred to in this embodiment may include a two-dimensional bridge drawing created in advance based on two-dimensional drawing software (such as CAD, etc.), and various types of data annotated in the two-dimensional bridge drawing. The two-dimensional bridge drawing data may include the name, size parameters, position parameters, etc. corresponding to each preset component (such as the upper chord, lower chord, and web corresponding to the main rib of the arch, and the top plate, bottom plate, side beam, and stiffener corresponding to the longitudinal beam), which can be obtained by calling the built-in tool of the software or based on image recognition.
[0055] In one embodiment, a straight line can be created in a preset three-dimensional coordinate system, and the road centerline can be obtained based on the length of the road total length constraint straight line. On the basis of the road centerline, a pre-arch line corresponding to the bridge can be created on the plane where the road centerline is located (such as the projection plane corresponding to the main view in the two-dimensional bridge diagram, which is recorded as the main view reference plane for ease of understanding and description). For example, the two-dimensional bridge diagram data can also include pre-arch information such as the pre-arch height, pre-arch type, and main span length of the bridge arch rib. According to the mathematical model (such as a parabola model) pre-associated with the pre-arch type, the total length of the road, the bridge pre-arch height, and the main span length, etc., can be input into the corresponding mathematical model, and then the corresponding pre-arch line can be generated on the main view reference plane. On this basis, positioning reference information can be obtained according to the road centerline and the pre-arch line. For example, the three-dimensional coordinates of the corresponding endpoints of the road centerline and the pre-arch line in the preset three-dimensional model can be obtained respectively, and each of the endpoints can be mapped to the corresponding position of the two-dimensional bridge diagram, thereby providing a positioning reference for determining the position of each preset component in the two-dimensional bridge diagram in the preset three-dimensional coordinate system.
[0056] Optionally, in this embodiment, preset nodes corresponding to different preset components can be pre-generated according to a preset strategy. For example, the chord line corresponding to the upper chord can be obtained from the two-dimensional bridge image data. On this basis, a preset node can be set at a preset distance along the chord line, and each preset node can be associated with a suspension point component to obtain the component identification information corresponding to the preset node.
[0057] S2: extracting all preset nodes and node information corresponding to each preset node from the two-dimensional bridge graph data; wherein the node information includes node position information and component identification information, and the component identification information is used to indicate at least one preset component pre-associated with the preset node in the two-dimensional bridge graph data.
[0058] Specifically, the preset node referred to in this embodiment can be pre-set by the designer when creating the bridge two-dimensional diagram, and the preset node can be represented by a specific identifier (such as a preset shape or a specific code) in the bridge two-dimensional diagram data, so as to facilitate the rapid identification of the preset node. After the preset node is identified, the node information corresponding to the preset node can be extracted from the bridge two-dimensional diagram data. The node information referred to in this embodiment includes node position information (such as the two-dimensional coordinates of the preset node in the preset two-dimensional coordinate system corresponding to the bridge two-dimensional diagram) and component identification information. In this embodiment, the component identification information is used to indicate at least one preset component pre-associated with the preset node in the bridge two-dimensional diagram data, wherein the preset node can be associated with at least one preset component with which there is a contact relationship (such as point contact). For example, assuming that the A node in the bridge two-dimensional diagram is at an end point of a preset component (such as an upper chord rod) (that is, there is a point contact between the A node and the upper chord rod), and there is no contact relationship between this end point of the upper chord rod and other preset components, then the component identification information corresponding to the A node can be determined according to the upper chord rod (such as the component number corresponding to the upper chord rod). For another example, assuming that node A is also at an end point of another preset member (such as a web connected to the upper chord), the component identification information corresponding to node A can be determined based on the upper chord and the web (such as the component number corresponding to the upper chord and the component number corresponding to the web).
[0059] S3: creating each preset node in a preset three-dimensional coordinate system according to the node position information and the positioning reference information, and creating skeleton lines between the preset nodes based on the preset matching strategy and the component identification information.
[0060] Specifically, the positioning reference information specified in this embodiment can represent the two-dimensional coordinates of the preset node in the preset two-dimensional coordinate system corresponding to the two-dimensional diagram of the bridge, and the two-dimensional coordinates can be converted according to the positioning reference information to obtain the three-dimensional coordinates of the preset node in the preset three-dimensional coordinate system, and then create the corresponding preset node in the preset three-dimensional coordinate system according to the three-dimensional coordinates. For example, the positioning reference information can be determined according to the two-dimensional coordinates of the two end points of the road centerline and at least one end point of the pre-arch line in the two-dimensional diagram of the bridge and the three-dimensional coordinates in the preset three-dimensional coordinate system (such as determining the conversion parameters such as rotation and translation between the preset two-dimensional coordinate system and the preset three-dimensional coordinate system based on the two-dimensional coordinates and three-dimensional coordinates corresponding to three non-collinear points), and then the corresponding three-dimensional coordinates in the preset three-dimensional coordinate system are obtained according to the two-dimensional coordinates of the preset node.
[0061] In one embodiment, the matching rules between different preset nodes can be set in advance according to the connection relationship between different preset components in the two-dimensional diagram of the bridge, and the preset matching strategy can be obtained. For example, assuming that the component identification information corresponding to the preset node includes the component number corresponding to the preset component, the type of the component can be determined according to the component number. For example, assuming that the preset component type represented by P is the upper chord, the component numbers P1, P2, and P3 correspond to three adjacent upper chord components respectively. The component identification information corresponding to the A node includes P1, the component identification information corresponding to the B node includes P1 and P2, the component identification information corresponding to the C node includes P2 and P3, and the component identification information corresponding to the D node includes P4. Assuming that the preset matching strategy is that the upper chord components are connected in sequence, after creating nodes A, B, C, and D in the preset three-dimensional coordinate system, the skeleton line between node A and node B, the skeleton line between node B and node C, and the skeleton line between node C and node D can be created respectively.
[0062] S4: Obtain a bridge skeleton based on the road centerline and the skeleton line, and instantiate the bridge skeleton to obtain a three-dimensional model of the bridge; wherein the instantiation operation includes, for each skeleton line, matching the skeleton line with a corresponding preset component instance template based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and creating an instance corresponding to the skeleton line in a preset three-dimensional coordinate system based on the preset component instance template.
[0063] Specifically, for a bridge design drawing, it usually contains a large number of components of the same type (such as upper chords, lower chords, webs, stiffeners, suspension points, and partitions, etc.), and corresponding component instance templates (such as the envelope corresponding to the suspension points) can be created in advance for different types of components. After constructing the skeleton line between the preset nodes, the bridge skeleton can be obtained according to the road centerline and the skeleton line, and the bridge skeleton can be instantiated to obtain a three-dimensional model of the bridge in a preset three-dimensional coordinate system. Among them, for each skeleton line, the component identification information corresponding to the preset nodes at both ends of the skeleton line can reflect the location of the skeleton line, and which specific component in the two-dimensional bridge diagram the skeleton line corresponds to, and then determine the preset component instance template matching the skeleton line, and create the instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template. Different positioning strategies can be set in advance for different preset component instance templates. For example, for the preset component instance template corresponding to the upper chord, the positioning strategy can be to obtain the preset reference plane in the upper chord instance template and the longest side of the outer contour corresponding to the upper chord instance template in the preset reference plane, constrain the preset reference plane to be parallel to the plane where the road centerline and the pre-arch line are located (i.e., the main viewing reference plane), and make the longest side coincide with the skeleton line and at least one preset node corresponding to the skeleton line, so as to determine the placement position of the preset component instance template in the preset three-dimensional coordinate system, and then obtain the instance corresponding to the skeleton line.
[0064] In an embodiment, the two-dimensional bridge map data generally includes key information such as the total length of the road, the pre-arch type, the pre-arch height, and the main span length, which can provide important data basis for creating the corresponding road centerline and pre-arch line of the bridge in the preset three-dimensional coordinate system, ensure the reliability of the road centerline and the pre-arch line, and provide the most basic positioning reference information for the subsequent components of the bridge skeleton, which is conducive to improving the accuracy of the three-dimensional model of the bridge. On this basis, this embodiment pre-sets a plurality of preset nodes based on each preset component of the two-dimensional bridge map data and its corresponding positional relationship, and each preset node is pre-associated with at least one preset component. Extracting each preset node and its corresponding node information such as node position and component identification from the two-dimensional bridge map data is conducive to quickly grasping the position distribution information of each preset component constituting the bridge on the one hand, and on the other hand, it can also effectively refine the massive parameters in the two-dimensional bridge map data, thereby improving the creation efficiency of the overall three-dimensional bridge model. Based on this, each preset node can be created in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and then the position distribution information of each preset component in the two-dimensional bridge map data is mapped to the preset three-dimensional coordinate system. On this basis, by creating skeleton lines between preset nodes based on the preset matching strategy and component identification information, the connection relationship between each preset component can be accurately described in the preset three-dimensional coordinate system, and the bridge skeleton obtained based on the road centerline and the skeleton line can provide an accurate positioning reference for the subsequent generation of the three-dimensional bridge model. In this embodiment, corresponding preset component templates are set for different types of preset components in advance. After obtaining the bridge skeleton, the preset component corresponding to the skeleton line in the two-dimensional bridge image data can be determined based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and then the skeleton line is matched with a suitable preset component instance template to realize the instantiation of the skeleton line. In this way, the component identification information corresponding to the preset nodes at both ends of the skeleton line in this embodiment ensures the accuracy of the matching of each preset component instance template in the three-dimensional bridge model, and the position of the skeleton line further ensures the reliability of the corresponding position of each instance, thereby quickly and accurately completing the creation of the three-dimensional bridge model.
[0065] Optionally, the two-dimensional bridge image data also includes a bridge cross-section view and a road mileage corresponding to the bridge cross-section view; the node position information includes the two-dimensional coordinates of the node; the positioning reference information is used to convert the two-dimensional coordinates of the node into three-dimensional coordinates of the node; the positioning reference information is obtained based on the road centerline and the pre-arch line, including:
[0066] Determine the cross-section reference plane corresponding to the bridge section view in the preset three-dimensional coordinate system according to the road mileage, wherein the cross-section reference plane is perpendicular to the center line of the road;
[0067] Obtain the reference two-dimensional coordinates corresponding to the preset reference points in the bridge cross-section drawing, and the reference three-dimensional coordinates of the preset reference points in the preset three-dimensional coordinate system, and obtain positioning reference information based on the reference two-dimensional coordinates, the reference three-dimensional coordinates and the cross-section reference plane; wherein the preset reference points include the intersection of the road centerline and the cross-section reference plane and / or the intersection of the pre-arch line and the cross-section reference plane.
[0068] Specifically, since the bridge is usually segmented and drawn according to a preset segmentation strategy during the two-dimensional drawing design process to obtain multiple two-dimensional bridge images, each two-dimensional bridge image can contain multiple views of the bridge section, such as a main view, a side view, and a top view, etc., and the bridge cross-section view referred to in this embodiment can represent a side view obtained by projecting a section of the bridge on the cross-sectional reference plane. Correspondingly, the main view can correspond to a section of the bridge projected on the plane where the road centerline and the pre-arch line are located (i.e., the main view reference plane). Since the road centerline is pre-determined and constructed based on the total length of the road in this embodiment (such as the length of the road centerline is equal to the total length of the road), countless parallel planes can be determined perpendicular to the road centerline. On this basis, based on the road mileage corresponding to the bridge cross-section view (such as 100m from the road end point), the only plane perpendicular to the road centerline can be determined to obtain the cross-sectional reference plane. For the two-dimensional design drawing of the bridge, the intersection of the road centerline and the cross-sectional reference plane and / or the intersection of the pre-arch line and the cross-sectional reference plane can be used as a preset reference point. Among them, the point corresponding to the road centerline on the bridge section diagram can be expressed as the corresponding midpoint of the road surface, and the point corresponding to the pre-arch line on the bridge section diagram can be determined based on the structure of the arch rib. For example, assuming that the corresponding arch rib in the bridge section diagram is obtained by symmetrical arrangement of two arch rib main trunnions, the center point of the upper chord corresponding to the main trunnion of the first arch rib can be connected with the midline point of the lower chord corresponding to the main trunnion of the second arch rib, and the center point of the lower chord corresponding to the main trunnion of the first arch rib can be connected with the midline point of the upper chord corresponding to the main trunnion of the second arch rib, and the point corresponding to the pre-arch line on the bridge section diagram can be obtained according to the corresponding intersection points of the two connecting lines.
[0069] In one embodiment, the preset three-dimensional coordinate system can be created based on the road centerline. In order to reduce the difficulty of coordinate conversion from the node two-dimensional coordinate to the node three-dimensional coordinate, the road centerline can be parallel to a coordinate axis direction in the preset three-dimensional coordinate system (for ease of understanding and expression, it is recorded as the target axis), and the cross-section reference plane is perpendicular to the road centerline, that is, the cross-section reference plane is perpendicular to the target axis. On this basis, the reference two-dimensional coordinates of the preset reference point in the bridge cross-section view and the reference three-dimensional coordinates of the preset reference point in the preset three-dimensional coordinate system (that is, the three-dimensional coordinates corresponding to the intersection of the road centerline and the cross-section reference plane and / or the intersection of the pre-arch line and the cross-section reference plane in the preset three-dimensional coordinate system) can be obtained respectively. For each preset node in the bridge cross-section view, its coordinate value along the target axis in the preset three-dimensional coordinate system should be equal to the coordinate value corresponding to the preset reference point on the target axis. Then, according to the reference two-dimensional coordinates and the reference three-dimensional coordinates of the preset reference point, the node two-dimensional coordinates corresponding to each preset node in the bridge cross-section view can be converted into the corresponding node three-dimensional coordinates in the preset three-dimensional coordinate system. On this basis, since in the two-dimensional diagram of the same section of the bridge, its side view (i.e., the cross section of the bridge) and the corresponding main view reflect the projection of the section of the bridge in different directions, there must be the same preset nodes between the side view and the main view corresponding to the cross section of the bridge (for ease of understanding and expression, they are recorded as common nodes). Then, according to the two-dimensional coordinates of the nodes corresponding to the common nodes in the cross-sectional diagram of the bridge and the three-dimensional coordinates of the nodes, the two-dimensional coordinates of the nodes corresponding to the common nodes and other preset nodes in the main view corresponding to the cross-sectional diagram of the bridge can be converted into coordinates. For example, assuming that the cross-sectional diagram of the bridge and the main view of the bridge both include nodes A and B, after determining the two-dimensional node coordinates and three-dimensional node coordinates corresponding to nodes A and B. Based on the principle of coordinate translation transformation, the two-dimensional coordinates of the nodes corresponding to nodes A and B in the cross-sectional diagram of the bridge and the main view of the bridge can be used to determine the two-dimensional coordinates of the nodes corresponding to other preset nodes in the main view of the bridge. On this basis, since the projection direction corresponding to the main view of the bridge is perpendicular to the projection direction of the bridge cross-section view, a target main view reference plane containing node A and node B and perpendicular to the cross-section reference plane can be created in the preset three-dimensional coordinate system. Then, based on the node two-dimensional coordinates and node three-dimensional coordinates corresponding to nodes A and node B on the target main view reference plane, the node two-dimensional coordinates corresponding to other preset nodes in the main view of the bridge are converted into node three-dimensional coordinates.
[0070] In this embodiment, since the road centerline is determined based on the total length of the road, based on the road mileage corresponding to the bridge cross section, the cross-section reference plane perpendicular to the road centerline corresponding to the bridge cross section in the preset three-dimensional coordinate system can be determined, providing an accurate reference for determining the position of the preset node in the preset three-dimensional coordinate system. On this basis, this embodiment uses the intersection of the road centerline and the cross-section reference plane and / or the intersection of the pre-arch line and the cross-section reference plane as the preset reference point, which is conducive to establishing the coordinate conversion relationship between the bridge two-dimensional diagram and the preset three-dimensional coordinate system, and then based on the reference two-dimensional coordinates corresponding to the preset reference point, the reference three-dimensional coordinates and the cross-section reference plane can convert the node two-dimensional coordinates into the node three-dimensional coordinates, providing an accurate reference basis for the establishment of the preset node in the preset three-dimensional coordinate system.
[0071] Optionally, the bridge two-dimensional diagram data further includes multiple types of preset components, the types of preset components include arch rib main truss components, beam components and longitudinal beam components, and one preset component includes at least one type of preset component; based on the preset matching strategy and component identification information, skeleton lines between preset nodes are created, including:
[0072] Extracting preset segmentation information from the two-dimensional bridge graph data, and dividing all preset nodes into a plurality of node sets based on the preset segmentation information;
[0073] For each node set, the corresponding preset nodes are matched for each preset component based on the component identification information to obtain a node subset corresponding to each preset component;
[0074] For each node subset corresponding to the preset component, a skeleton line corresponding to the node group is created according to the component identification information; wherein a node group includes two preset nodes pre-associated with the same preset component.
[0075] Specifically, the types of preset components in this embodiment include arch rib main truss components, crossbeam components and longitudinal beam components, etc., and a preset component includes at least one type of preset component. For example, the component types corresponding to the arch rib main truss component may include upper chords, lower chords and webs, etc. The component types corresponding to the longitudinal beam component may include top plates, bottom plates, webs, side beams and stiffeners, etc. The preset segmentation information referred to in this embodiment can be set in advance by the designer according to construction requirements. For example, the preset segmentation information can be for dividing the entire bridge into three sections, and each section can be represented by a corresponding mileage range (such as the first section 0-100m). All preset nodes can be divided into multiple node sets based on the preset segmentation information, wherein the number of node sets can match the number of sections.
[0076] In one embodiment, after the preset nodes are divided into sets based on the preset segmentation information, each preset node in each set may correspond to a different preset component (such as an arch rib main trunnion component and a longitudinal beam component, etc.). Then, the corresponding preset node may be matched for each preset component based on the component identification information corresponding to each preset node in the node set. For example, the preset nodes associated with the upper chord, the lower chord, and the web in the component identification information may be associated with the arch rib main trunnion component to obtain a node subset corresponding to the arch rib main trunnion component. On this basis, at least one node group may be screened out from each node subset according to the component identification information, and a skeleton line between two preset nodes in each node group may be created, wherein a node group includes two preset nodes pre-associated with the same preset component.
[0077] In this embodiment, all preset nodes are divided into multiple node sets based on preset segmentation information, and more preset nodes can be preliminarily divided according to spatial distribution, which is conducive to reducing the amount of data processing required for subsequent node subset screening and improving the efficiency of skeleton line creation. After obtaining the node set corresponding to each preset segment, since the connection relationship between the preset components of the same preset component is relatively close, the corresponding preset nodes can be matched for each preset component based on the component identification information, and the node subset corresponding to each preset component can be obtained, and then the preset nodes can be further divided in the structural relationship, which is conducive to reducing the amount of data processing required for subsequent screening of node groups and further improving the efficiency of bridge three-dimensional model creation. On this basis, two preset nodes pre-associated with the same preset component are formed into a node group, and the corresponding skeleton line between the two preset nodes in the node group is created, which is conducive to improving the accuracy and reliability of the skeleton line.
[0078] Optionally, the types corresponding to the preset components in the arch rib main truss assembly include an upper chord, a lower chord and a web; and the skeleton line corresponding to the node group is created according to the component identification information, including:
[0079] Based on the component identification information, preset nodes matching the upper chord and the lower chord are respectively extracted from the node subset to obtain a first node sequence corresponding to the upper chord and a second node sequence corresponding to the lower chord; wherein, in the first node sequence and the second node sequence, the preset nodes are arranged in sequence along the direction of the road centerline;
[0080] Each two adjacent preset nodes in the first node sequence and the second node sequence are respectively regarded as a node group, and skeleton lines between the preset nodes in each node group are respectively created;
[0081] Preset nodes are alternately extracted from the first node sequence and the second node sequence according to the preset sampling interval to obtain a third node sequence corresponding to the web, every two adjacent preset nodes in the third node sequence are taken as a node group, and skeleton lines between the preset nodes in each node group are created.
[0082] Specifically, in this embodiment, the types corresponding to the preset components in the arch rib main truss assembly include upper chords, lower chords and webs, and the connection relationship between the preset components in the arch rib main truss assembly generally has a strong regularity. In this embodiment, based on the component identification information, the preset nodes matching the upper chord can be extracted from the node subset corresponding to the arch rib main truss according to the position distribution of the preset nodes to obtain the first node sequence corresponding to the upper chord. And the preset nodes matching the lower chord are extracted to obtain the second node sequence corresponding to the lower chord. For example, assuming that the direction of the centerline of the road corresponds to a certain coordinate axis direction in the preset three-dimensional coordinate system (for ease of understanding and expression, it is recorded as the target axis), then the preset nodes pre-associated with the upper chord type of the component type in the subset can be obtained, and the preset nodes can be arranged in order from small to large according to the coordinate values of each preset node in the target axis to obtain the first node sequence.
[0083] In one embodiment, since each adjacent upper chord in the main rib assembly of the bridge is usually connected in sequence, each adjacent lower chord is also connected in sequence. Then, every two adjacent preset nodes in the first node sequence can be regarded as a node group, and every two adjacent preset nodes in the second node sequence can be regarded as a node group, and the skeleton lines between the two preset nodes in each node group are respectively created to obtain the skeleton line corresponding to the upper chord and the skeleton line corresponding to the lower chord. On this basis, since the web is usually staggered between the upper and lower chords, and the interval generally has a fixed rule. Then, the preset nodes can be alternately extracted from the first node sequence and the second node sequence according to the preset sampling interval to obtain the third node sequence corresponding to the web. For example, the first preset node in the first node sequence can be obtained as the first preset node in the third node sequence, and then the first preset node in the second node sequence can be obtained as the second preset node in the third node sequence. On this basis, assuming that the preset sampling interval is 1, the second preset node in the first node sequence can be continuously obtained as the third preset node in the third node sequence. This cycle is repeated, and preset nodes are alternately extracted from the first node sequence and the second node sequence to finally form a third node sequence. Every two adjacent preset nodes in the third node sequence are taken as a node group, and skeleton lines between the preset nodes in each node group are created, thereby obtaining each skeleton line corresponding to the web.
[0084] In this embodiment, for the arch rib main truss assembly of the bridge, the corresponding component types are relatively fixed, and the connection relationship between the preset components of the same type and between the preset components of different types is generally regular. The corresponding node sequence can be extracted based on the connection regularity between the preset components, and every two adjacent preset nodes in the node sequence are regarded as a node group, and then the skeleton line between the preset nodes in each node group is created, which is conducive to improving the screening efficiency of the node group and further improving the efficiency of creating the skeleton line.
[0085] Optionally, a preset component instance template is pre-created based on a type of preset component; matching the corresponding preset component instance template for the skeleton line based on component identification information corresponding to preset nodes at both ends of the skeleton line includes:
[0086] Determine the preset components commonly associated with the preset nodes at both ends of the skeleton line based on the component identification information to obtain the target component;
[0087] A preset component instance template matching the type of the target component is selected from the preset component instance template set, parameter information corresponding to the target component is obtained according to the two-dimensional bridge diagram data, and the preset component instance template is adjusted based on the parameter information.
[0088] Specifically, the component identification information corresponding to the preset node in this embodiment reflects the preset component pre-associated with the preset node, then the preset components commonly associated with the preset nodes at both ends of the skeleton line can reflect the actual preset components at the corresponding positions in the two-dimensional design drawing of the bridge represented by the skeleton line, which can be used as the target component. For bridges, there are generally a large number of preset components of the same type, and the specific parameter values of the same type of preset components may be different. For example, the beam assembly can include different types of small beams, end beams, and middle beams. Based on the structural characteristics corresponding to each different type of component, the corresponding component instance template can be set in advance.
[0089] In one embodiment, even preset components of the same type may have differences in size parameters (such as differences in parameters such as aperture size and length). After selecting a preset component instance template that matches the type of the target component from the preset component instance template set (i.e., a template that matches the component type corresponding to the target component), parameter information corresponding to the target component can be obtained according to the two-dimensional bridge image data, and the preset component instance template can be adjusted based on the parameter information. For example, for a preset component instance template, its preset adjustable parameters may include aperture, then the target aperture corresponding to the target component can be obtained from the two-dimensional bridge image data, and the aperture size corresponding to the preset component instance template can be adjusted based on the target aperture.
[0090] In this embodiment, setting a corresponding component instance template in advance for each type of preset component is conducive to refining the structural commonalities of different preset components and reducing the difficulty of modeling. On this basis, the parameter information corresponding to the target component is obtained according to the bridge two-dimensional image data, and the preset component instance template is adjusted based on the parameter information, which is conducive to targeted adjustment of the template according to the differences in the size parameters of different preset components, so that it is adapted to the actual size parameters of the preset components, thereby improving the accuracy of the creation of the bridge three-dimensional model.
[0091] Optionally, the preset component instance template includes a surface instance and a body instance; each preset component instance template includes at least one positioning line; and creating an instance corresponding to the skeleton line in a preset three-dimensional coordinate system based on the preset component instance template includes:
[0092] Determine the positioning information of the preset component instance template in the preset three-dimensional coordinate system according to the preset positioning strategy matching the type of the target component, and obtain the instance corresponding to the skeleton line; wherein the positioning information includes the positional relationship between the positioning line and the skeleton line, and the positional relationship includes at least one of coincidence, verticality and a preset angle;
[0093] When the preset component instance template is a surface instance, the stretching thickness corresponding to the surface instance is determined according to the parameter information to obtain the body instance corresponding to the skeleton line.
[0094] Specifically, in this embodiment, the preset component instance template may include a surface instance (such as a cross section) and a body instance (such as an envelope), and each preset component instance template includes at least one positioning line (such as the center line corresponding to the cross-section profile in the surface instance). The corresponding positioning strategy can be determined in advance according to the structural characteristics of different types of components. When the three-dimensional model of the bridge is actually created, the positioning information of the preset component instance template in the preset three-dimensional coordinate system can be determined according to the type of the target component and the preset positioning strategy to obtain the instance corresponding to the skeleton line. For example, assuming that the instance corresponding to the web is a surface instance, its positioning line is the center line corresponding to the web in the surface instance. The preset positioning strategy corresponding to the web may include that the positioning line coincides with the skeleton line and / or at least one end point of the positioning line coincides with at least one preset node corresponding to the skeleton line. Optionally, in order to further improve the reliability of the positioning of the preset component instance template, the instance may also include at least one positioning reference plane. Assuming that the positioning reference plane corresponding to the web is the plane where the surface instance is located, the preset positioning strategy corresponding to the web may also include that the positioning reference plane is parallel to the plane where the road center line and the pre-arch line are located.
[0095] In one embodiment, after determining the positioning information of the preset component instance template in the preset three-dimensional coordinate system, when the preset component instance template is a surface instance, it is usually difficult to accurately reflect the actual structure of the target component in the preset three-dimensional coordinate system. At this time, the stretching thickness corresponding to the surface instance can be further determined according to the parameter information corresponding to the target component, and then the volume instance corresponding to the skeleton line can be obtained.
[0096] In this embodiment, each preset component instance template includes at least one positioning line. Combined with the preset positioning strategy that matches the type of the target component, the positioning information of the preset component instance template in the preset three-dimensional coordinate system is determined, which is conducive to improving the accuracy of positioning the preset component instance template in the preset three-dimensional coordinate system. On this basis, the preset component instance template includes a surface instance and a body instance, which is conducive to adapting to the structural characteristics of different types of preset components. For preset components with relatively simple structures or almost unchanged dimensional parameters, the corresponding body instance can be set in advance, which is conducive to improving the creation speed of the three-dimensional model of the bridge. For preset components with relatively complex structures or more adjustable dimensional parameters, the corresponding surface instance can be set in advance, which is conducive to reducing the difficulty of adjusting the preset component instance template. When the preset component instance template is a surface instance, the tensile thickness corresponding to the surface instance can be quickly determined according to the parameter information, and then the body instance corresponding to the skeleton line is obtained, and the instantiation operation of the skeleton line is completed.
[0097] Optionally, the two-dimensional bridge map data also includes road width and road thickness; the instantiation operation also includes:
[0098] A road surface instance is created based on the road centerline, the width corresponding to the road surface instance is constrained according to the road width, and the extrusion thickness corresponding to the road surface instance is determined based on the road thickness, so as to obtain a road body instance; wherein the road surface instance coincides with the road centerline and is perpendicular to the plane where the pre-arch line is located;
[0099] Obtain the preset nodes that are not connected to the skeleton line in the bridge skeleton and obtain the target node;
[0100] For each target node, a corresponding preset component instance template is matched for the target node according to the component identification information corresponding to the target node, and an instance is created at the target node based on the preset component instance template; wherein the target node includes at least one of a hanging point node, a partition node and a connection system node.
[0101] Specifically, the two-dimensional bridge data also includes road width and road thickness. After obtaining the bridge skeleton, the road centerline can also be instantiated. For example, a road surface that coincides with the road centerline and is perpendicular to the plane where the pre-arch line is located (i.e., the main viewing reference plane) can be created as a road surface instance. On this basis, the width corresponding to the road surface instance can be constrained according to the road width (e.g., the corresponding width of the road surface is equal to the road width), and the tensile thickness corresponding to the road surface instance can be determined based on the road thickness, thereby obtaining a road body instance.
[0102] In one embodiment, some preset nodes may not have a connection relationship with other preset nodes. For example, the suspension point node may be located on the skeleton line corresponding to the upper chord rod and there is no connection relationship between the suspension point nodes, and the connection system node may be located on the skeleton line corresponding to the upper chord rod and there is no connection relationship between the connection system nodes. After the skeleton line is instantiated, the preset node that is not connected to the skeleton line can be obtained as the target node that needs to be instantiated. On this basis, the corresponding preset component instance template can be matched for the target node according to the component identification information corresponding to the target node, and the corresponding instance can be created at the target node based on the preset component instance template. For example, assuming that the target node is a suspension point node, the preset component instance template corresponding to the suspension point node can be obtained, and the preset component instance template can include at least one positioning line and / or positioning point. Then the positioning point in the preset component instance template can be overlapped with the target node to obtain the instance corresponding to the target node.
[0103] In this embodiment, after completing the instantiation operation corresponding to the skeleton line, the road center line can also be instantiated to obtain the instance corresponding to the road surface. On this basis, for the preset nodes such as suspension point nodes, partition nodes and connection system nodes that are not connected to the skeleton line in the bridge skeleton, the corresponding preset component instance template can be matched for the target node according to the component identification information corresponding to the target node, and the corresponding instance is created at the target node based on the preset component instance template, so as to reasonably utilize the structural characteristics of the parts corresponding to the road center line, skeleton line and preset nodes not connected to the skeleton line in the bridge, so as to realize the efficient creation of the bridge three-dimensional model.
[0104] like Figure 2 As shown, a bridge three-dimensional model creation device 200 provided in an embodiment of the present invention includes:
[0105] A positioning reference module 210 is used to create a road centerline and a pre-arch line in the same plane in a preset three-dimensional coordinate system according to the acquired two-dimensional bridge map data, and obtain positioning reference information based on the road centerline and the pre-arch line; wherein the two-dimensional bridge map data includes the total length of the road, the pre-arch type, the pre-arch height and the main span length, the road centerline is determined according to the total length of the road, and the pre-arch line is determined based on the pre-arch type, the pre-arch height and the main span length;
[0106] A node extraction module 220 is used to extract all preset nodes and node information corresponding to each preset node from the two-dimensional bridge graph data; wherein the node information includes node position information and component identification information, and the component identification information is used to indicate at least one preset component pre-associated with the preset node in the two-dimensional bridge graph data;
[0107] A skeleton creation module 230, which is used to create each preset node in a preset three-dimensional coordinate system according to the node position information and the positioning reference information, and to create skeleton lines between the preset nodes based on the preset matching strategy and the component identification information;
[0108] The model creation module 240 is used to obtain a bridge skeleton based on a road centerline and a skeleton line, and to instantiate the bridge skeleton to obtain a three-dimensional model of the bridge; wherein the instantiation operation includes, for each skeleton line, matching the skeleton line with a corresponding preset component instance template based on component identification information corresponding to preset nodes at both ends of the skeleton line, and creating an instance corresponding to the skeleton line in a preset three-dimensional coordinate system based on the preset component instance template.
[0109] The technical effects that can be produced by the bridge 3D model creation device and bridge 3D model creation method provided in this embodiment are basically the same, and will not be repeated here.
[0110] like Figure 3 As shown, an electronic device 300 provided by an embodiment of the present invention includes a memory 310 and a processor 320; the memory 310 is used to store a computer program; the processor 320 is used to implement the above-mentioned method for creating a three-dimensional bridge model when executing the computer program.
[0111] In other words, an electronic device 300 includes a memory 310 and a processor 320 coupled to the memory 310; the memory 310 is configured to store a computer program; and the processor 320 is configured to perform the following operations when executing the computer program:
[0112] According to the acquired two-dimensional bridge map data, a road centerline and a pre-arch line in the same plane are created in a preset three-dimensional coordinate system, and positioning reference information is obtained based on the road centerline and the pre-arch line; wherein the two-dimensional bridge map data includes the total length of the road, the pre-arch type, the pre-arch height and the main span length, the road centerline is determined according to the total length of the road, and the pre-arch line is determined based on the pre-arch type, the pre-arch height and the main span length;
[0113] Extracting all preset nodes and node information corresponding to each preset node from the two-dimensional bridge graph data; wherein the node information includes node position information and component identification information, and the component identification information is used to indicate at least one preset component pre-associated with the preset node in the two-dimensional bridge graph data;
[0114] Creating each of the preset nodes in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and creating skeleton lines between the preset nodes based on a preset matching strategy and the component identification information;
[0115] A bridge skeleton is obtained based on the road centerline and the skeleton line, and an instantiation operation is performed on the bridge skeleton to obtain a three-dimensional model of the bridge; wherein the instantiation operation includes, for each of the skeleton lines, matching the skeleton line with a corresponding preset component instance template based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and creating an instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template.
[0116] The technical effects that can be produced by the electronic device and the bridge three-dimensional model creation method provided in this embodiment are basically the same, and will not be repeated here.
[0117] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for creating a three-dimensional bridge model is implemented.
[0118] In other words, a non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor performs the following operations:
[0119] According to the acquired two-dimensional bridge map data, a road centerline and a pre-arch line in the same plane are created in a preset three-dimensional coordinate system, and positioning reference information is obtained based on the road centerline and the pre-arch line; wherein the two-dimensional bridge map data includes the total length of the road, the pre-arch type, the pre-arch height and the main span length, the road centerline is determined according to the total length of the road, and the pre-arch line is determined based on the pre-arch type, the pre-arch height and the main span length;
[0120] Extracting all preset nodes and node information corresponding to each preset node from the two-dimensional bridge graph data; wherein the node information includes node position information and component identification information, and the component identification information is used to indicate at least one preset component pre-associated with the preset node in the two-dimensional bridge graph data;
[0121] Creating each of the preset nodes in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and creating skeleton lines between the preset nodes based on a preset matching strategy and the component identification information;
[0122] A bridge skeleton is obtained based on the road centerline and the skeleton line, and an instantiation operation is performed on the bridge skeleton to obtain a three-dimensional model of the bridge; wherein the instantiation operation includes, for each of the skeleton lines, matching the skeleton line with a corresponding preset component instance template based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and creating an instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template.
[0123] The computer-readable storage medium provided in this embodiment and the method for creating a three-dimensional bridge model can produce substantially the same technical effects, which will not be described in detail herein.
[0124] An electronic device 300 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 300 is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 300 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described and / or required herein.
[0125] The electronic device 300 includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The computing unit, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0126] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0127] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A method for creating a three-dimensional bridge model, characterized in that: include: According to the acquired two-dimensional bridge map data, a road centerline and a pre-arch line in the same plane are created in a preset three-dimensional coordinate system, and positioning reference information is obtained based on the road centerline and the pre-arch line; wherein the two-dimensional bridge map data includes the total length of the road, the pre-arch type, the pre-arch height and the main span length, the road centerline is determined according to the total length of the road, and the pre-arch line is determined based on the pre-arch type, the pre-arch height and the main span length; Extracting all preset nodes and node information corresponding to each preset node from the two-dimensional bridge graph data; wherein the node information includes node position information and component identification information, and the component identification information is used to indicate at least one preset component pre-associated with the preset node in the two-dimensional bridge graph data; Creating each of the preset nodes in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and creating skeleton lines between the preset nodes based on a preset matching strategy and the component identification information; A bridge skeleton is obtained based on the road centerline and the skeleton line, and an instantiation operation is performed on the bridge skeleton to obtain a three-dimensional model of the bridge; wherein the instantiation operation includes, for each of the skeleton lines, matching the skeleton line with a corresponding preset component instance template based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and creating an instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template.
2. The method for creating a three-dimensional bridge model according to claim 1, characterized in that: The two-dimensional bridge map data also includes a bridge cross-section map and the road mileage corresponding to the bridge cross-section map; the node position information includes the two-dimensional coordinates of the node; the positioning reference information is used to convert the two-dimensional coordinates of the node into the three-dimensional coordinates of the node; the positioning reference information obtained based on the road centerline and the pre-arch line includes: Determine the cross-section reference plane corresponding to the bridge section view in the preset three-dimensional coordinate system according to the road mileage, wherein the cross-section reference plane is perpendicular to the center line of the road; Obtain the reference two-dimensional coordinates corresponding to the preset reference point in the bridge cross-section view, and the reference three-dimensional coordinates of the preset reference point in the preset three-dimensional coordinate system, and obtain the positioning reference information based on the reference two-dimensional coordinates, the reference three-dimensional coordinates and the cross-section reference plane; wherein the preset reference point includes the intersection of the road centerline and the cross-section reference plane and / or the intersection of the pre-arch line and the cross-section reference plane.
3. The method for creating a three-dimensional bridge model according to claim 1, characterized in that: The two-dimensional bridge image data also includes multiple types of preset components, the types of the preset components include arch rib main truss components, cross beam components and longitudinal beam components, and one type of the preset components includes at least one type of the preset components; The creating a skeleton line between the preset nodes based on the preset matching strategy and the component identification information includes: Extracting preset segmentation information from the bridge two-dimensional graph data, and dividing all the preset nodes into a plurality of node sets based on the preset segmentation information; For each of the node sets, matching the corresponding preset nodes for each of the preset components based on the component identification information, to obtain a node subset corresponding to each of the preset components; For the node subset corresponding to each preset component, the skeleton line corresponding to the node group is created according to the component identification information; wherein one node group includes two preset nodes pre-associated with the same preset component.
4. The method for creating a three-dimensional bridge model according to claim 3, characterized in that: The types of the preset components in the arch rib main truss assembly include upper chords, lower chords and webs; and the skeleton line corresponding to the node group is created according to the component identification information, including: Based on the component identification information, the preset nodes matching the upper chord and the lower chord are respectively extracted from the node subset to obtain a first node sequence corresponding to the upper chord and a second node sequence corresponding to the lower chord; wherein, in the first node sequence and the second node sequence, the preset nodes are arranged in sequence along the direction of the centerline of the road; Respectively taking every two adjacent preset nodes in the first node sequence and the second node sequence as a node group, and respectively creating the skeleton lines between the preset nodes in each node group; The preset nodes are extracted alternately from the first node sequence and the second node sequence respectively according to a preset sampling interval to obtain a third node sequence corresponding to the web, every two adjacent preset nodes in the third node sequence are taken as a node group, and the skeleton lines between the preset nodes in each node group are created.
5. The method for creating a three-dimensional bridge model according to claim 1, characterized in that: A preset component instance template is pre-created based on a type of preset component; The component identification information corresponding to the preset nodes at both ends of the skeleton line is a preset component instance template corresponding to the skeleton line matching, including: Determine the preset components commonly associated with the preset nodes at both ends of the skeleton line based on the component identification information to obtain a target component; The preset component instance template that matches the type of the target component is selected from the preset component instance template set, parameter information corresponding to the target component is obtained according to the two-dimensional bridge diagram data, and the preset component instance template is adjusted based on the parameter information.
6. The method for creating a three-dimensional bridge model according to claim 5, characterized in that: The preset component instance template includes a surface instance and a body instance; each of the preset component instance templates includes at least one positioning line; and the step of creating an instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template includes: Determine the positioning information of the preset component instance template in the preset three-dimensional coordinate system according to a preset positioning strategy matching the type of the target component, and obtain the instance corresponding to the skeleton line; wherein the positioning information includes the positional relationship between the positioning line and the skeleton line, and the positional relationship includes at least one of coincidence, verticality, and a preset angle; When the preset component instance template is the surface instance, the stretching thickness corresponding to the surface instance is determined according to the parameter information to obtain the body instance corresponding to the skeleton line.
7. The method for creating a three-dimensional bridge model according to claim 3, characterized in that: The two-dimensional bridge map data also includes road width and road thickness; the instantiation operation also includes: A road surface instance is created based on the road centerline, a width corresponding to the road surface instance is constrained according to the road width, and a stretching thickness corresponding to the road surface instance is determined based on the road thickness, to obtain a road body instance; wherein the road surface instance coincides with the road centerline and is perpendicular to the plane where the pre-arch line is located; Acquire the preset node in the bridge skeleton that is not connected to the skeleton line to obtain a target node; For each of the target nodes, the corresponding preset component instance template is matched for the target node according to the component identification information corresponding to the target node, and the instance is created at the target node based on the preset component instance template; wherein the target node includes at least one of a hanging point node, a partition node and a connection system node.
8. A device for creating a three-dimensional bridge model, characterized in that: include: A positioning reference module, which is used to create a road centerline and a pre-arch line in the same plane in a preset three-dimensional coordinate system according to the acquired two-dimensional bridge map data, and obtain positioning reference information based on the road centerline and the pre-arch line; wherein the two-dimensional bridge map data includes the total length of the road, the pre-arch type, the pre-arch height and the main span length, the road centerline is determined according to the total length of the road, and the pre-arch line is determined based on the pre-arch type, the pre-arch height and the main span length; A node extraction module, which is used to extract all preset nodes and node information corresponding to each preset node from the two-dimensional bridge graph data; wherein the node information includes node position information and component identification information, and the component identification information is used to indicate at least one preset component pre-associated with the preset node in the two-dimensional bridge graph data; A skeleton creation module, which is used to create each of the preset nodes in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and to create skeleton lines between the preset nodes based on a preset matching strategy and the component identification information; A model creation module is used to obtain a bridge skeleton based on the road centerline and the skeleton line, and to instantiate the bridge skeleton to obtain a three-dimensional bridge model; wherein the instantiation operation includes, for each of the skeleton lines, matching the skeleton line with a corresponding preset component instance template based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and creating an instance corresponding to the skeleton line in the preset three-dimensional coordinate system based on the preset component instance template.
9. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the bridge three-dimensional model creation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method for creating a three-dimensional bridge model as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Modeling method of beam lattice bridge structure based on CATIA software
CN108595766A
Bridge three-dimensional model construction method, device and equipment and storage medium
CN114021232A
Modeling method and plane unfolding method for three-dimensional linear model of steel box girder bridge
CN117994415A
Cited By
Bridge and tunnel engineering three-dimensional model automatic modeling method and system
CN121962477A