A bridge three-dimensional model creation method and device, electronic equipment and storage medium
By creating nodes and skeleton lines of the bridge's two-dimensional drawing data in a three-dimensional coordinate system, the problem of low efficiency in creating bridge three-dimensional models is solved, and fast and accurate three-dimensional model generation is achieved.
Patent Information
- Application Number
- CN202411669188.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2044-11-21
AI Technical Summary
Existing technologies for creating 3D bridge models are inefficient, relying on manual operation and making it difficult to quickly and accurately construct 3D models from 2D design drawings.
By creating the road centerline and pre-arch line in a preset three-dimensional coordinate system, extracting node information from the bridge's two-dimensional drawing data, creating skeleton lines based on positioning references and component identification information, and instantiating the skeleton lines to generate a three-dimensional bridge model.
It improves the efficiency and accuracy of creating 3D bridge models, enabling rapid and accurate conversion from 2D drawing data to 3D models.
Smart Images

Figure CN119693537B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of bridge technology, and more specifically, to a method, apparatus, electronic device, and storage medium for creating three-dimensional bridge models. Background Technology
[0002] With the rapid development of urbanization, bridges, as important transportation hubs connecting two places, occupy a pivotal position 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 dimensions and plan layout information, they have obvious shortcomings 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 designers with a more effective way to analyze the structural characteristics of bridges and optimize design schemes. However, currently, bridge 3D models mainly rely on manual creation based on 2D design drawings, resulting in relatively low model creation efficiency. Summary of the Invention
[0004] The problem addressed by this invention is how to improve the efficiency of creating 3D models of bridges.
[0005] To address the above problems, this invention provides a method for creating a three-dimensional model of a bridge, comprising:
[0006] Based on the acquired two-dimensional bridge diagram data, a road centerline and a pre-arch line are created on the same plane 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 diagram data includes the total road length, pre-arch type, pre-arch height, and main span length, the road centerline is determined based on the total road length, and the pre-arch line is determined based on the pre-arch type, the pre-arch height, and the main span length;
[0007] Extract all preset nodes and node information corresponding to each preset node from the bridge 2D diagram data; wherein, the node information includes node location information and component identification information, and the component identification information is used to indicate at least one preset component in the bridge 2D diagram data that is pre-associated with the preset node;
[0008] Each preset node is created in the preset three-dimensional coordinate system based on the node location information and the positioning reference information, and a skeleton line between the preset nodes is created based on the preset matching strategy and the component identification information;
[0009] A bridge skeleton is obtained based on the road centerline and the skeleton line, and a bridge three-dimensional model is obtained by instantiating the bridge skeleton; 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 the preset three-dimensional coordinate system based on the preset component instance template.
[0010] Optionally, the bridge two-dimensional map data further includes a bridge cross-section map and the road mileage corresponding to the bridge cross-section map; the node location information includes node two-dimensional coordinates; the positioning reference information is used to convert the node two-dimensional coordinates into node three-dimensional coordinates; obtaining the positioning reference information based on the road centerline and the pre-arch line includes:
[0011] The cross-sectional reference plane corresponding to the bridge cross-section diagram in the preset three-dimensional coordinate system is determined based on the road mileage, wherein the cross-sectional reference plane is perpendicular to the road centerline;
[0012] Obtain the reference two-dimensional coordinates corresponding to the preset reference points in the bridge cross-section diagram, and the reference three-dimensional coordinates of the preset reference points in the preset three-dimensional coordinate system. Based on the reference two-dimensional coordinates, the reference three-dimensional coordinates, and the cross-sectional reference plane, obtain the positioning reference information. The preset reference points include 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.
[0013] Optionally, the bridge 2D drawing data also includes multiple types of preset components, including arch rib main truss components, crossbeam components, and longitudinal beam components, with each preset component comprising at least one type of preset member; the creation of skeleton lines between the preset nodes based on a preset matching strategy and the member identification information includes:
[0014] Preset segmentation information is extracted from the bridge 2D diagram data, and all the preset nodes are divided into multiple node sets based on the preset segmentation information;
[0015] For each set of nodes, based on the component identification information, the corresponding preset node is matched for each preset component to obtain a node subset corresponding to each preset component;
[0016] For each subset of nodes corresponding to a preset component, a skeleton line corresponding to the node group is created based on the component identification information; wherein, a node group includes two preset nodes that are 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 chord, lower chord, and web; the step of creating the skeleton line corresponding to the node group based on the component identification information includes:
[0018] Based on the component identification information, the preset nodes that match the upper chord and the lower chord are extracted from the node subset respectively, 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 sequentially along the direction of the road centerline;
[0019] Each pair of adjacent preset nodes in the first node sequence and the second node sequence is taken as a node group, and a skeleton line is created between the preset nodes in each node group.
[0020] According to a preset sampling interval, the preset nodes are alternately extracted from the first node sequence and the second node sequence to obtain the third node sequence corresponding to the web. Each pair of adjacent preset nodes in the third node sequence is taken as a node group, and the skeleton line between the preset nodes in each node group is 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 the preset component instance template matching the skeleton line, including:
[0022] Based on the component identification information, the preset component that is commonly associated with the preset nodes at both ends of the skeleton line is determined, and the target component is obtained;
[0023] Select the preset component instance template that matches the type of the target component from the preset component instance template set, obtain the parameter information corresponding to the target component based on the bridge two-dimensional drawing data, and adjust the preset component instance template based on the parameter information.
[0024] Optionally, the preset component instance template includes surface instances and volume instances; each preset component instance template includes at least one positioning line; 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] The positioning information of the preset component instance template in the preset three-dimensional coordinate system is determined according to a preset positioning strategy that matches the type of the target component, and the instance corresponding to the skeleton line is obtained; 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, perpendicularity and forming 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 bridge 2D map data further includes road width and road thickness; the instantiation operation further includes:
[0028] A road surface instance is created based on the road centerline, the width of the road surface instance is constrained according to the road width, and the stretching thickness of 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] Obtain the preset nodes in the bridge skeleton that are not connected to the skeleton line to obtain the target node;
[0030] 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 lifting point node, a partition node, and a connection system node.
[0031] In this invention, the two-dimensional bridge diagram data typically contains key information such as the total road length, pre-arch type, pre-arch height, and main span length. This provides crucial data for creating the corresponding road centerline and pre-arch line in a preset three-dimensional coordinate system, ensuring the reliability of the road centerline and pre-arch line. It also provides fundamental positioning reference information for subsequent bridge frame components, improving the accuracy of the bridge's three-dimensional model. Based on this, the invention pre-sets multiple preset nodes based on the preset components and their corresponding positional relationships within the two-dimensional bridge diagram data. Each preset node is pre-associated with at least one preset component. Extracting each preset node and its corresponding node information, such as node location and component identification, from the two-dimensional bridge diagram data facilitates quickly understanding the positional distribution information of each preset component constituting the bridge. Furthermore, it allows for the effective extraction of massive parameters from the two-dimensional bridge diagram data, thereby improving the overall efficiency of creating the bridge's three-dimensional model. Based on this, each preset node can be created in the preset three-dimensional coordinate system according to the node location information and positioning reference information, thus mapping the positional distribution information of each preset component in the two-dimensional bridge diagram data to the preset three-dimensional coordinate system. Based on this, skeleton lines between preset nodes are created using a preset matching strategy and component identification information. This allows for an accurate description of the connection relationships between preset components in a preset 3D coordinate system. The bridge skeleton obtained based on the road centerline and skeleton lines provides a precise positioning reference for the subsequent generation of the bridge 3D model. This invention pre-sets corresponding preset component templates for different types of preset components. After obtaining the bridge skeleton, the preset components corresponding to the skeleton lines in the bridge 2D drawing data are determined based on the component identification information corresponding to the preset nodes at both ends of the skeleton lines. This allows for the matching of suitable preset component instance templates to the skeleton lines, thus instantiating them. In this invention, the component identification information corresponding to the preset nodes at both ends of the skeleton lines ensures the accuracy of matching preset component instance templates in the bridge 3D model, while the location of the skeleton lines further ensures the reliability of the locations corresponding to the preset component instance templates, thereby enabling the rapid and accurate creation of the bridge 3D model.
[0032] The present invention also provides a bridge three-dimensional model creation device, comprising:
[0033] The positioning reference module is used to create a road centerline and a pre-arch line on the same plane in a preset three-dimensional coordinate system based on the acquired two-dimensional bridge drawing data, and to obtain positioning reference information based on the road centerline and the pre-arch line; wherein, the two-dimensional bridge drawing data includes the total road length, pre-arch type, pre-arch height and main span length, the road centerline is determined based on the total road length, 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 is used to extract all preset nodes and node information corresponding to each preset node from the bridge 2D diagram data; wherein, the node information includes node location information and component identification information, and the component identification information is used to indicate at least one preset component in the bridge 2D diagram data that is pre-associated with the preset node;
[0035] The skeleton creation module 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 the preset matching strategy and the component identification information;
[0036] The 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 model of the bridge; wherein, the instantiation operation includes, for each skeleton line, matching a preset component instance template corresponding to the skeleton line 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 and the bridge 3D model creation method provided by this invention are basically the same as those of the prior art, and will not be repeated here.
[0038] The present invention also provides an electronic device, including a memory and a processor;
[0039] The memory is used to store computer programs;
[0040] The processor is used to implement the bridge 3D model creation method as described above when executing the computer program.
[0041] The electronic device provided by this invention has essentially the same advantages as the bridge 3D model creation method compared to the prior art, and will not be elaborated further here.
[0042] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the bridge 3D model creation method described above.
[0043] The advantages of the computer-readable storage medium and the bridge 3D model creation method provided by this invention are basically the same as those of the prior art, and will not be repeated here. Attached Figure Description
[0044] Figure 1 This is a flowchart illustrating the method for creating a three-dimensional bridge model according to an embodiment of the present invention.
[0045] Figure 2 This is a schematic diagram of the structure of the bridge three-dimensional model creation device according to an embodiment of the present invention;
[0046] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0047] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Although some embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the accompanying drawings and embodiments of the present invention are for illustrative purposes only 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. Furthermore, 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 "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc., mentioned in this invention are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0050] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0051] Bridges can be classified according to their structure into beam bridges, arch bridges, steel truss bridges, and composite system bridges. Because different types of bridges have different structural characteristics, the specific methods used to construct a 3D model of a bridge based on 2D bridge data may differ slightly. This embodiment uses a deck-type steel arch bridge as an example to introduce the method for creating a 3D bridge model.
[0052] like Figure 1As shown in the figure, an embodiment of the present invention provides a method for creating a three-dimensional model of a bridge, which includes the following steps:
[0053] S1: Based on the acquired two-dimensional bridge map data, create a road centerline and a pre-arch line on 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 map data includes the total road length, pre-arch type, pre-arch height and main span length, the road centerline is determined according to the total road length, and the pre-arch line is determined based on the pre-arch type, pre-arch height and main span length.
[0054] Specifically, the three-dimensional bridge model referred to in this embodiment represents the three-dimensional model of the components in a preset three-dimensional coordinate system of a preset modeling platform (such as CATIA). 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), as well as various data marked on the two-dimensional bridge drawing. The two-dimensional bridge drawing data may include the names, size parameters, and position parameters of each preset component (such as the upper chord, lower chord, and web corresponding to the main arch rib, and the top plate, bottom plate, side beam, and stiffener corresponding to the longitudinal beam). These parameters can be obtained by calling the software's built-in tools or by image recognition.
[0055] In one embodiment, a straight line can be created in a preset three-dimensional coordinate system, and the length of the straight line can be constrained based on the total length of the road to obtain the road centerline. Based on the road centerline, a pre-arch line corresponding to the bridge can be created on the plane where the road centerline is located (e.g., the projection plane corresponding to the main view in a bridge 2D drawing; for ease of understanding and description, this is referred to as the main view reference plane). For example, the bridge 2D drawing data can also include pre-arch information such as the pre-arch height, pre-arch type, and main span length of the bridge arch ribs. Based on a pre-associated mathematical model (e.g., a parabolic model) for the pre-arch type, information such as the total road length, bridge pre-arch height, and main span length can be input into the corresponding mathematical model, thereby generating the corresponding pre-arch line on the main view reference plane. Based on this, positioning reference information can be obtained from 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, and each endpoint can be mapped to the corresponding position in the bridge 2D drawing, thereby providing a positioning reference for determining the position of each preset component in the bridge 2D drawing within 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 bridge 2D drawing data. Based on this, a preset node can be set at preset intervals along the chord line, and each preset node can be associated with the suspension point component to obtain the component identification information corresponding to the preset node.
[0057] S2: Extract all preset nodes and the node information corresponding to each preset node from the bridge 2D diagram data; wherein, the node information includes node location information and component identification information, and the component identification information is used to indicate at least one preset component that is pre-associated with the preset node in the bridge 2D diagram data.
[0058] Specifically, the preset nodes referred to in this embodiment can be pre-set by the designer when creating the bridge 2D drawing. Preset nodes can be represented by specific identifiers (such as preset shapes or specific codes) in the bridge 2D drawing data, facilitating quick identification. After identifying the preset node, the node information corresponding to the preset node can be extracted from the bridge 2D drawing data. The node information referred to in this embodiment includes node location information (such as the 2D coordinates of the preset node in the preset 2D coordinate system corresponding to the bridge 2D drawing) 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 2D drawing data. The preset node can be associated with at least one preset component that has a contact relationship with it (such as point contact). For example, assuming node A in the bridge 2D drawing is located at one end of a preset component (such as the upper chord) (i.e., there is point contact between node A and the upper chord), and this end of the upper chord has no contact relationship with other preset components, then the component identification information corresponding to node A can be determined based on the upper chord (such as the component number corresponding to the upper chord). For example, if node A is also located at one end of another preset member (such as a web member connected to the upper chord), then the component identification information corresponding to node A can be determined based on the upper chord and the web member (such as the component number corresponding to the upper chord and the component number corresponding to the web member).
[0059] S3: Create each preset node in the preset three-dimensional coordinate system based on the node position information and positioning reference information, and create the skeleton line between the preset nodes based on the preset matching strategy and component identification information.
[0060] Specifically, in this embodiment, the specified positioning reference information can represent the two-dimensional coordinates of a preset node in a preset two-dimensional coordinate system corresponding to the two-dimensional bridge diagram. The two-dimensional coordinates can be transformed based on the positioning reference information to obtain the three-dimensional coordinates of the preset node in a preset three-dimensional coordinate system. Then, a corresponding preset node is created in the preset three-dimensional coordinate system based on these three-dimensional coordinates. For example, the positioning reference information can be determined based on the two-dimensional coordinates of the two endpoints of the road centerline and at least one endpoint of the pre-arch line in the two-dimensional bridge diagram and their three-dimensional coordinates in the preset three-dimensional coordinate system (e.g., determining the rotation, translation, and other transformation parameters between the preset two-dimensional and preset three-dimensional coordinate systems based on the two-dimensional and three-dimensional coordinates of three non-collinear points). Then, the three-dimensional coordinates of the preset node in the preset three-dimensional coordinate system are obtained based on its two-dimensional coordinates.
[0061] In one embodiment, matching rules between different preset nodes can be pre-defined based on the connection relationships between different preset components in the two-dimensional bridge diagram, thus obtaining a preset matching strategy. 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 component can be determined based on the component number. For example, assuming that the preset component type represented by P is the upper chord, then component numbers P1, P2, and P3 correspond to three adjacent upper chord components respectively. The component identification information corresponding to node A includes P1, the component identification information corresponding to node B includes P1 and P2, the component identification information corresponding to node C includes P2 and P3, and the component identification information corresponding to node D includes P4. Assuming that the preset matching strategy is that the upper chord components are connected sequentially, after creating nodes A, B, C, and D in the preset three-dimensional coordinate system, the skeleton lines between nodes A and B, B and C, and C and D can be created respectively.
[0062] S4: Obtain the bridge skeleton based on the road centerline and skeleton line, and instantiate the bridge skeleton to obtain the bridge 3D model; wherein, the instantiation operation includes, for each skeleton line, matching the corresponding preset component instance template for the skeleton line based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, and creating the instance corresponding to the skeleton line in the preset 3D coordinate system based on the preset component instance template.
[0063] Specifically, bridge design drawings typically contain numerous similar components (such as top chords, bottom chords, webs, stiffeners, suspension points, and diaphragms). Corresponding component instance templates (such as the envelope corresponding to suspension points) can be pre-created for different types of components. After constructing the skeleton lines between preset nodes, the bridge skeleton can be obtained based on the road centerline and the skeleton lines. The bridge skeleton can then be instantiated to obtain a 3D model of the bridge in a preset 3D coordinate system. For each skeleton line, the component identification information corresponding to the preset nodes at both ends reflects the location of the skeleton line and which specific component in the 2D bridge drawing it corresponds to. This determines the preset component instance template that matches the skeleton line, and an instance corresponding to that skeleton line is created in the preset 3D coordinate system based on the preset component instance template. Different positioning strategies can be pre-set for different preset component instance templates. For example, for a 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 of the upper chord instance template within the preset reference plane, constrain the preset reference plane to be parallel to the plane where the road center line and the pre-arch line are located (i.e., the main view 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 thus obtain the instance corresponding to the skeleton line.
[0064] In this embodiment, the bridge 2D model data typically includes key information such as the total road length, pre-arch type, pre-arch height, and main span length. This provides crucial data for creating the corresponding road centerline and pre-arch line in a preset 3D coordinate system, ensuring the reliability of the road centerline and pre-arch line. It also provides fundamental positioning reference information for subsequent bridge frame components, improving the accuracy of the bridge 3D model. Based on this, this embodiment pre-sets multiple preset nodes based on the preset components and their corresponding positional relationships in the bridge 2D model data. Each preset node is pre-associated with at least one preset component. Extracting each preset node and its corresponding node information, such as node location and component identification, from the bridge 2D model data facilitates quickly understanding the positional distribution information of each preset component constituting the bridge. Furthermore, it allows for the effective extraction of massive parameters from the bridge 2D model data, thereby improving the overall efficiency of creating the bridge 3D model. Based on this, each preset node can be created in the preset 3D coordinate system according to the node location information and positioning reference information, thus mapping the positional distribution information of each preset component in the bridge 2D model data to the preset 3D coordinate system. Based on this, skeleton lines are created between preset nodes using a preset matching strategy and component identification information. This allows for an accurate description of the connection relationships between preset components in a preset 3D coordinate system. The bridge skeleton obtained based on the road centerline and skeleton lines provides a precise positioning reference for the subsequent generation of the bridge 3D model. In this embodiment, corresponding preset component templates are pre-set for different types of preset components. After obtaining the bridge skeleton, the preset components corresponding to the preset nodes at both ends of the skeleton lines are determined in the bridge 2D drawing data based on the component identification information. Then, a suitable preset component instance template is matched to the skeleton lines, realizing the instantiation of the skeleton lines. Thus, in this embodiment, the component identification information corresponding to the preset nodes at both ends of the skeleton lines ensures the accuracy of matching preset component instance templates in the bridge 3D model, while the location of the skeleton lines further ensures the reliability of the corresponding positions of each instance, thereby quickly and accurately completing the creation of the bridge 3D model.
[0065] Optionally, the bridge 2D mapping data also includes bridge cross-sections and the corresponding road mileage; node location information includes node 2D coordinates; positioning reference information is used to convert the node 2D coordinates into node 3D coordinates; positioning reference information is obtained based on the road centerline and pre-camber line, including:
[0066] The cross-sectional reference plane corresponding to the bridge cross-section diagram in the preset three-dimensional coordinate system is determined based on the road mileage, wherein the cross-sectional reference plane is perpendicular to the road centerline;
[0067] Obtain the reference two-dimensional coordinates corresponding to the preset reference points in the bridge cross-section diagram, as well as 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, reference three-dimensional coordinates, and cross-sectional reference plane; wherein, the preset reference points include 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.
[0068] Specifically, during the 2D design process of bridges, multiple 2D images of the bridge are typically drawn in segments according to a preset segmentation strategy. Each 2D image can contain multiple views of that bridge segment, such as a front view, side view, and top view. In this embodiment, the bridge cross-section drawing can represent a side view projected onto the cross-sectional reference plane. Correspondingly, the front view corresponds to a segment of the bridge projected onto 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 based on the total road length in this embodiment (e.g., the length of the road centerline is equal to the total road length), numerous parallel planes can be determined perpendicular to the road centerline. Based on this, and based on the road mileage corresponding to the bridge cross-section drawing (e.g., 100m from the road endpoint), a unique plane perpendicular to the road centerline can be determined, thus obtaining the cross-sectional reference plane. For the 2D 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 preset reference points. In this diagram, the point corresponding to the road centerline on the bridge cross-section can be represented as the midpoint of the road surface, while the point corresponding to the pre-arch line on the bridge cross-section can be determined based on the structure of the arch ribs. For example, assuming that the arch ribs in the bridge cross-section are symmetrically arranged from two main arch ribs, the center point of the upper chord of the first main arch rib can be connected to the center point of the lower chord of the second main arch rib, and the center point of the lower chord of the first main arch rib can be connected to the center point of the upper chord of the second main arch rib. The point corresponding to the pre-arch line on the bridge cross-section can then be obtained from the intersection of these two lines.
[0069] In one embodiment, a preset three-dimensional coordinate system can be created based on the road centerline. To reduce the difficulty of coordinate transformation from node two-dimensional coordinates to node three-dimensional coordinates, the road centerline can be parallel to one of the coordinate axes in the preset three-dimensional coordinate system (for ease of understanding and description, this is referred to as the target axis). The cross-sectional reference plane is perpendicular to the road centerline, i.e., the cross-sectional reference plane is perpendicular to the target axis. Based on this, the reference two-dimensional coordinates of the preset reference point in the bridge cross-section diagram and the reference three-dimensional coordinates of the preset reference point in the preset three-dimensional coordinate system can be obtained respectively (i.e., the three-dimensional coordinates corresponding to the intersection of the road centerline and the cross-sectional reference plane and / or the intersection of the pre-camber line and the cross-sectional reference plane in the preset three-dimensional coordinate system). For each preset node in the bridge cross-section diagram, its coordinate value along the target axis in the preset three-dimensional coordinate system should be equal to the coordinate value of the preset reference point along the target axis. Therefore, based on the reference two-dimensional coordinates and reference three-dimensional coordinates of the preset reference point, the node two-dimensional coordinates corresponding to each preset node in the bridge cross-section diagram can be converted into the corresponding node three-dimensional coordinates in the preset three-dimensional coordinate system. Based on this, since the side view (i.e., the bridge cross-section) and the corresponding front view in the same two-dimensional bridge diagram reflect the projection of the bridge section in different directions, there must be common preset nodes between the side view and the front view corresponding to the bridge cross-section (for ease of understanding and description, these are referred to as common nodes). Therefore, based on the two-dimensional and three-dimensional coordinates of the nodes corresponding to the common nodes in the bridge cross-section diagram, coordinate transformation can be performed on the two-dimensional coordinates of the nodes corresponding to the common nodes and other preset nodes in the front view corresponding to the bridge cross-section diagram. For example, assuming that both the bridge cross-section diagram and the bridge front view include nodes A and B, after determining the two-dimensional and three-dimensional coordinates of the nodes corresponding to nodes A and B, the two-dimensional coordinates of the nodes corresponding to other preset nodes in the bridge front view can be determined based on the principle of coordinate translation transformation, using the two-dimensional coordinates of the nodes corresponding to nodes A and B in the bridge cross-section diagram and the bridge front view, respectively. Based on this, since the projection direction of the bridge main view is perpendicular to the projection direction of the bridge cross section, a target main view reference plane containing nodes A and 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 B on the target main view reference plane, the node two-dimensional coordinates corresponding to other preset nodes in the bridge main view are converted into node three-dimensional coordinates.
[0070] In this embodiment, since the road centerline is determined based on the total road length, the corresponding road mileage of the bridge cross-section can be used to determine the cross-sectional reference plane perpendicular to the road centerline in the preset three-dimensional coordinate system. This provides a precise reference for determining the position of the preset node in the preset three-dimensional coordinate system. Furthermore, this embodiment utilizes 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, as preset reference points. This facilitates the establishment of a coordinate transformation relationship between the bridge two-dimensional diagram and the preset three-dimensional coordinate system. Therefore, based on the reference two-dimensional coordinates, reference three-dimensional coordinates, and the cross-sectional reference plane corresponding to the preset reference points, the node's two-dimensional coordinates can be converted into the node's three-dimensional coordinates, providing a precise reference for establishing the preset node in the preset three-dimensional coordinate system.
[0071] Optionally, the bridge 2D drawing data also includes various types of preset components, including arch rib main truss components, crossbeam components, and longitudinal beam components. Each preset component includes at least one type of preset member. Skeleton lines between preset nodes are created based on preset matching strategies and member identification information, including:
[0072] Preset segmentation information is extracted from the bridge 2D diagram data, and all preset nodes are divided into multiple node sets based on the preset segmentation information;
[0073] For each set of nodes, based on the component identification information, a corresponding preset node is matched for each preset component to obtain a node subset corresponding to each preset component;
[0074] For each subset of nodes corresponding to a preset component, a skeleton line corresponding to the node group is created based on the component identification information; wherein, a node group includes two preset nodes that are pre-associated with the same preset component.
[0075] Specifically, in this embodiment, the types of preset components include arch rib main truss components, crossbeam components, and longitudinal beam components, etc., and each preset component includes at least one type of preset member. For example, the member types corresponding to the arch rib main truss component may include upper chord, lower chord, and web, etc. The member types corresponding to the longitudinal beam component may include top plate, bottom plate, web, side beam, and stiffener, etc. The preset segmentation information referred to in this embodiment can be set in advance by the designer according to construction and other requirements. For example, the preset segmentation information can divide the entire bridge into three segments, each segment can be represented by a corresponding mileage range (such as the first segment 0-100m). Then, based on the preset segmentation information, all preset nodes can be divided into multiple node sets, wherein the number of node sets can match the number of segments.
[0076] In one embodiment, after dividing the preset nodes into sets based on preset segmentation information, each preset node in each set can correspond to a different preset component (such as an arch rib main hoop component and a longitudinal beam component). Then, based on the component identification information corresponding to each preset node in the node set, a corresponding preset node can be matched for each preset component. For example, preset nodes associated with the upper chord, lower chord, and web in the component identification information can be associated with the arch rib main hoop component to obtain a node subset corresponding to the arch rib main hoop component. Based on this, at least one node group can be selected from each node subset according to the component identification information, and a skeleton line between two preset nodes in each node group can be created. 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. This allows for the initial division of a large number of preset nodes according to their spatial distribution, which helps reduce the amount of data processing required for subsequent node subset selection and improves the efficiency of skeleton line creation. After obtaining the node set corresponding to each preset segment, since the connection relationship between 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 to obtain the node subset corresponding to each preset component. This further divides the preset nodes in terms of structural relationships, which helps reduce the amount of data processing required for subsequent node group selection and further improves the efficiency of bridge 3D model creation. On this basis, two preset nodes that are pre-associated with the same preset component are grouped into a node group, and a skeleton line is created between the two preset nodes in the node group, which helps improve the accuracy and reliability of the skeleton line.
[0078] Optionally, the types of pre-defined components in the arch rib main truss assembly include upper chord, lower chord, and web; the skeleton lines corresponding to the node groups are created based on the component identification information, including:
[0079] Based on the component identification information, preset nodes matching the upper chord and lower chord are extracted from the node subset respectively, resulting in the first node sequence corresponding to the upper chord and the second node sequence corresponding to the lower chord; wherein, in the first node sequence and the second node sequence, the preset nodes are arranged sequentially along the direction of the road centerline;
[0080] Each pair of adjacent preset nodes in the first node sequence and the second node sequence is taken as a node group, and a skeleton line is created between the preset nodes in each node group.
[0081] According to the preset sampling interval, preset nodes are extracted alternately from the first node sequence and the second node sequence to obtain the third node sequence corresponding to the web. Each pair of adjacent preset nodes in the third node sequence is taken as a node group, and a skeleton line is created between the preset nodes in each node group.
[0082] Specifically, in this embodiment, the types of preset components in the arch rib main truss assembly include upper chord, lower chord, and web. The connection relationships between the preset components in the arch rib main truss assembly generally exhibit strong regularity. In this embodiment, based on component identification information, preset nodes matching the upper chord can be extracted from the node subset corresponding to the arch rib main truss according to the positional distribution of preset nodes to obtain the first node sequence corresponding to the upper chord. Similarly, preset nodes matching the lower chord can be extracted to obtain the second node sequence corresponding to the lower chord. For example, assuming the road centerline direction corresponds to a certain coordinate axis direction in a preset three-dimensional coordinate system (for ease of understanding and description, this is referred to as the target axis), preset nodes pre-associated with the upper chord component type in the subset can be obtained, and the preset nodes can be arranged in ascending order of their coordinate values along the target axis to obtain the first node sequence.
[0083] In one embodiment, since adjacent upper chords and adjacent lower chords in the main arch rib assembly of a bridge are typically connected sequentially, each pair of adjacent preset nodes in the first node sequence can be grouped into a node group, and each pair of adjacent preset nodes in the second node sequence can be grouped into a node group. Skeleton lines between the two preset nodes in each node group can then be created to obtain the skeleton lines corresponding to the upper chords and the lower chords. Furthermore, since the web is typically staggered between the upper and lower chords with a generally fixed interval, preset nodes can be alternately extracted from the first and second node sequences according to a 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. Based on this, assuming a preset sampling interval of 1, the second preset node in the first node sequence can be obtained as the third preset node in the third node sequence. This process is repeated, alternately extracting preset nodes from the first and second node sequences to form the third node sequence. Each pair of adjacent preset nodes in the third node sequence is grouped into a node group, and a skeleton line is created between the preset nodes in each node group, thus obtaining each skeleton line corresponding to the web.
[0084] In this embodiment, the types of components included in the arch rib main truss assembly of the bridge are relatively fixed, and the connection relationships between preset components of the same type and between preset components of different types are generally quite regular. The corresponding node sequence can be extracted based on the connection patterns between preset components, and each pair of adjacent preset nodes in the node sequence can be grouped into a node group. This allows for the creation of skeleton lines between preset nodes in each node group, which improves the efficiency of node group selection and further enhances the efficiency of skeleton line creation.
[0085] Optionally, a preset component instance template is pre-created based on a type of preset component; the preset component instance template is matched to the skeleton line based on the component identification information corresponding to the preset nodes at both ends of the skeleton line, including:
[0086] Based on the component identification information, the preset components that are commonly associated with the preset nodes at both ends of the skeleton line are determined, and the target component is obtained;
[0087] Select a preset component instance template that matches the type of the target component from the preset component instance template set, obtain the parameter information corresponding to the target component based on the bridge 2D drawing data, and adjust the preset component instance template based on the parameter information.
[0088] Specifically, in this embodiment, the component identification information corresponding to the preset node reflects the preset component pre-associated with the preset node. Therefore, the preset component commonly associated with the preset nodes at both ends of the skeleton line reflects the actual preset component at the corresponding position in the two-dimensional design drawing of the bridge represented by the skeleton line, and can be used as the target component. For bridges, there are generally many preset components of the same type, and the specific parameter values may differ between preset components of the same type. For example, a crossbeam assembly may include different types of small crossbeams, end crossbeams, and middle crossbeams, etc. Based on the structural characteristics corresponding to each different type of component, corresponding component instance templates can be set in advance.
[0089] In one embodiment, even among preset components of the same type, there may be differences in dimensional parameters (such as differences in aperture size, length, etc.). 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), the parameter information corresponding to the target component can be obtained from the bridge 2D drawing data, and the preset component instance template can be adjusted based on the parameter information. For example, for a certain preset component instance template, its preset adjustable parameters may include aperture. Therefore, the target aperture corresponding to the target component can be obtained from the bridge 2D drawing data, and the aperture size of the preset component instance template can be adjusted based on the target aperture.
[0090] In this embodiment, pre-setting corresponding component instance templates for each type of preset component helps to extract the structural commonalities of different preset components and reduce the modeling difficulty. Based on this, obtaining the parameter information corresponding to the target component from the bridge's 2D drawing data and adjusting the preset component instance templates based on this parameter information allows for targeted adjustments to the templates to address the differences in the dimensional parameters of different preset components, ensuring they match the actual dimensional parameters of the preset components and thus improving the accuracy of bridge 3D model creation.
[0091] Optionally, the preset component instance template includes surface instances and volume instances; each preset component instance template includes at least one positioning line; based on the preset component instance template, an instance corresponding to that skeleton line is created in a preset 3D coordinate system, including:
[0092] The positioning information of the preset component instance template in the preset three-dimensional coordinate system is determined according to the preset positioning strategy that matches the type of the target component, and the instance corresponding to the skeleton line is obtained; 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, perpendicularity and forming 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, and the volume instance corresponding to the skeleton line is obtained.
[0094] Specifically, in this embodiment, the preset component instance template may include surface instances (such as cross-sections) and volume instances (such as envelopes). Each preset component instance template includes at least one positioning line (such as the centerline corresponding to the cross-sectional contour in the surface instance). The positioning strategy can be determined in advance based on the structural characteristics of different types of components. When actually creating a bridge 3D model, the positioning information of the preset component instance template in the preset 3D coordinate system can be determined based on the type of the target component and the preset positioning strategy, thus obtaining the instance corresponding to the skeleton line. For example, assuming the instance corresponding to the web is a surface instance, its positioning line is the centerline corresponding to the web in the surface instance. The preset positioning strategy for the web may include the positioning line coinciding with the skeleton line and / or at least one endpoint of the positioning line coinciding with at least one preset node corresponding to the skeleton line. Optionally, to further improve the reliability of the preset component instance template positioning, the instance may also include at least one positioning reference plane. Assuming the positioning reference plane corresponding to the web is the plane where the surface instance is located, the preset positioning strategy for the web may also include the positioning reference plane being parallel to the plane where the road centerline 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 based on the parameter information corresponding to the target component, thereby obtaining the volume instance corresponding to the skeleton line.
[0096] In this embodiment, each preset component instance template includes at least one positioning line. Combined with a preset positioning strategy matching 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 helps improve the accuracy of positioning the preset component instance template in the preset three-dimensional coordinate system. Furthermore, the preset component instance template includes surface instances and volume instances, which helps adapt to the structural characteristics of different types of preset components. For preset components with relatively simple structures or almost unchanged dimensional parameters, their corresponding volume instances can be set in advance, which helps improve the creation speed of the bridge's three-dimensional model. For preset components with more complex structures or many adjustable dimensional parameters, their corresponding surface instances can be set in advance, which helps reduce the difficulty of adjusting the preset component instance template. When the preset component instance template is a surface instance, the stretching thickness corresponding to the surface instance can be quickly determined based on the parameter information, thereby obtaining the volume instance corresponding to the skeleton line and completing the instantiation operation of the skeleton line.
[0097] Optionally, the bridge 2D 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 of the road surface instance is constrained according to the road width, and the stretching thickness of the road surface instance is determined based on the road thickness to obtain a road volume instance. The road surface instance coincides with the road centerline and is perpendicular to the plane where the pre-camber line is located.
[0099] Obtain the preset nodes in the bridge skeleton that are not connected to the skeleton lines to 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 the following: lifting point node, partition node and connection system node.
[0101] Specifically, the 2D bridge drawing data also includes road width and road thickness. After obtaining the bridge framework, the road centerline can be instantiated. For example, a road surface can be created that coincides with the road centerline and is perpendicular to the plane containing the pre-arch line (i.e., the main view reference plane), serving as a road surface instance. Based on this, 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 stretching thickness corresponding to the road surface instance can be determined based on the road thickness, thus obtaining the road volume instance.
[0102] In one embodiment, since some preset nodes may not be connected to other preset nodes. For example, a suspension point node may be located on the skeleton line corresponding to the upper chord and there may be no connection between the suspension point nodes and other nodes; similarly, a connecting system node may be located on the skeleton line corresponding to the upper chord and there may be no connection between the connecting system nodes and other nodes. Therefore, after instantiating the skeleton line, preset nodes not connected to the skeleton line can be obtained as target nodes to be instantiated. Based on this, a corresponding preset component instance template can be matched to the target node according to the component identification information corresponding to the target node, and a corresponding instance can be created at the target node based on the preset component instance template. For example, assuming the target node is a suspension point node, a preset component instance template corresponding to the suspension point node can be obtained. This preset component instance template may include at least one positioning line and / or positioning point. The positioning point in the preset component instance template can then 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 centerline can also be instantiated to obtain an instance corresponding to the road surface. Based on this, for preset nodes in the bridge skeleton that are not connected to the skeleton line, such as suspension point nodes, diaphragm nodes, and connection system nodes, a corresponding preset component instance template can be matched to the target node according to the component identification information corresponding to the target node. Then, based on the preset component instance template, a corresponding instance is created at the target node. This effectively utilizes the structural characteristics of the road centerline, skeleton line, and preset nodes that are not connected to the skeleton line in the bridge, achieving efficient creation of the bridge's 3D model.
[0104] like Figure 2 As shown, an embodiment of the present invention provides a bridge three-dimensional model creation device 200, comprising:
[0105] The positioning reference module 210 is used to create a road centerline and a pre-arch line on the same plane in a preset three-dimensional coordinate system based on the acquired two-dimensional bridge drawing data, and to obtain positioning reference information based on the road centerline and the pre-arch line; wherein, the two-dimensional bridge drawing data includes the total road length, pre-arch type, pre-arch height and main span length, the road centerline is determined according to the total road length, and the pre-arch line is determined based on the pre-arch type, pre-arch height and main span length;
[0106] The node extraction module 220 is used to extract all preset nodes and the node information corresponding to each preset node from the bridge two-dimensional drawing data; wherein, the node information includes node location information and component identification information, and the component identification information is used to indicate at least one preset component in the bridge two-dimensional drawing data that is pre-associated with the preset node.
[0107] The skeleton creation module 230 is used to create each preset node in a preset three-dimensional coordinate system based on node position information and positioning reference information, and to create skeleton lines between preset nodes based on preset matching strategies and component identification information.
[0108] The model creation module 240 is used to obtain the bridge skeleton based on the road centerline and skeleton line, and to instantiate the bridge skeleton to obtain the bridge three-dimensional model. The instantiation operation includes matching a corresponding preset component instance template for each skeleton line 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.
[0109] The bridge 3D model creation device and bridge 3D model creation method provided in this embodiment can produce basically the same technical effects, and will not be described in detail here.
[0110] like Figure 3 As shown, an electronic device 300 provided in this embodiment of the 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 bridge 3D model creation method as described above when the computer program is executed.
[0111] Alternatively, 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 the computer program is executed:
[0112] Based on the acquired two-dimensional bridge diagram data, a road centerline and a pre-arch line are created on the same plane 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 diagram data includes the total road length, pre-arch type, pre-arch height, and main span length, the road centerline is determined based on the total road length, and the pre-arch line is determined based on the pre-arch type, the pre-arch height, and the main span length;
[0113] Extract all preset nodes and node information corresponding to each preset node from the bridge 2D diagram data; wherein, the node information includes node location information and component identification information, and the component identification information is used to indicate at least one preset component in the bridge 2D diagram data that is pre-associated with the preset node;
[0114] Each preset node is created in the preset three-dimensional coordinate system based on the node location information and the positioning reference information, and a skeleton line between the preset nodes is created based on the preset matching strategy and the component identification information;
[0115] A bridge skeleton is obtained based on the road centerline and the skeleton line, and a bridge three-dimensional model is obtained by instantiating the bridge skeleton; 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 the preset three-dimensional coordinate system based on the preset component instance template.
[0116] The electronic device and the bridge 3D model creation method provided in this embodiment can produce basically the same technical effects, and will not be described again here.
[0117] This invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the bridge 3D model creation method described above.
[0118] Alternatively, a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the following operations:
[0119] Based on the acquired two-dimensional bridge diagram data, a road centerline and a pre-arch line are created on the same plane 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 diagram data includes the total road length, pre-arch type, pre-arch height, and main span length, the road centerline is determined based on the total road length, and the pre-arch line is determined based on the pre-arch type, the pre-arch height, and the main span length;
[0120] Extract all preset nodes and node information corresponding to each preset node from the bridge 2D diagram data; wherein, the node information includes node location information and component identification information, and the component identification information is used to indicate at least one preset component in the bridge 2D diagram data that is pre-associated with the preset node;
[0121] Each preset node is created in the preset three-dimensional coordinate system based on the node location information and the positioning reference information, and a skeleton line between the preset nodes is created based on the preset matching strategy and the component identification information;
[0122] A bridge skeleton is obtained based on the road centerline and the skeleton line, and a bridge three-dimensional model is obtained by instantiating the bridge skeleton; 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 the preset three-dimensional coordinate system based on the preset component instance template.
[0123] The computer-readable storage medium and the bridge 3D model creation method provided in this embodiment can produce basically the same technical effects, and will not be described again here.
[0124] The present invention will now be described an electronic device 300 that can serve as a server or client of the present invention, which is an example of a hardware device that can be applied to various aspects of the present invention. Electronic device 300 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic device 300 can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0125] Electronic device 300 includes a computing unit that can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) or a computer program loaded from a storage unit into random access memory (RAM). The RAM may also store various programs and data required for device operation. The computing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.
[0126] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc. In this application, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention according to actual needs. Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units can be implemented in hardware or as software functional units.
[0127] While the present invention has been disclosed above, its scope of protection is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and all such changes and modifications will fall within the scope of protection of the present invention.
Claims
1. A method of creating a three-dimensional model of a bridge, characterized by, The method comprises the following steps: According to the acquired bridge two-dimensional graph data, a road center line 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 center line and the pre-arch line; wherein the bridge two-dimensional graph data comprises a total length of a road, a pre-arch type, a pre-arch height and a main span length, the road center line 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; All preset nodes and node information corresponding to each of the preset nodes are extracted from the bridge two-dimensional graph data; wherein the node information comprises node position information and component identification information, and the component identification information is used to indicate at least one preset component in the bridge two-dimensional graph data that is pre-associated with the preset node; Each of the preset nodes is created in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and a skeleton line between the preset nodes is created based on a preset matching strategy and the component identification information; A bridge skeleton is obtained based on the road center line and the skeleton line, and an instantiation operation is performed on the bridge skeleton to obtain a bridge three-dimensional model; wherein the instantiation operation comprises, for each of the skeleton lines, matching a corresponding preset component instance template for the skeleton line 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 bridge three-dimensional model creating method according to claim 1, characterized by, The bridge two-dimensional graph data further comprises a bridge cross-section graph and a road mileage corresponding to the bridge cross-section graph; the node position information comprises node two-dimensional coordinates; the positioning reference information is used to convert the node two-dimensional coordinates into node three-dimensional coordinates; the positioning reference information is obtained based on the road center line and the pre-arch line, comprising: determining a cross-sectional reference plane corresponding to the bridge cross-section graph in the preset three-dimensional coordinate system according to the road mileage, wherein the cross-sectional reference plane is perpendicular to the road center line; obtaining reference two-dimensional coordinates corresponding to a preset reference point in the bridge cross-section graph, and reference three-dimensional coordinates of the preset reference point in the preset three-dimensional coordinate system, and obtaining the positioning reference information based on the reference two-dimensional coordinates, the reference three-dimensional coordinates and the cross-sectional reference plane; wherein the preset reference point comprises an intersection of the road center line and the cross-sectional reference plane and / or an intersection of the pre-arch line and the cross-sectional reference plane.
3. The bridge three-dimensional model creating method according to claim 1, characterized by, The bridge two-dimensional graph data further comprises a plurality of types of preset components, the types of the preset components comprise arch rib main truss components, beam components and longitudinal beam components, and one of the preset components comprises at least one type of the preset components; The skeleton line between the preset nodes is created based on the preset matching strategy and the component identification information, comprising: 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 set, based on the component identification information, each of the preset components is matched with the corresponding preset node, and a node sub-set corresponding to each of the preset components is obtained; For each of the node sub-set corresponding to each of the preset components, a node group corresponding to the skeleton line is created according to the component identification information; wherein the node group includes two preset nodes pre-associated with the same preset component.
4. The bridge three-dimensional model creating method according to claim 3, wherein The type of the preset component corresponding to the arch rib main truss component includes top chord, bottom chord and web; the creation of the node group corresponding to the skeleton line according to the component identification information includes: Based on the component identification information, the preset nodes matched with the top chord and the bottom chord are extracted from the node sub-set, and a first node sequence corresponding to the top chord and a second node sequence corresponding to the bottom chord are obtained; wherein the preset nodes in the first node sequence and the second node sequence are arranged in sequence along the direction of the road center line; Each two adjacent preset nodes in the first node sequence and the second node sequence are taken as a node group, and the skeleton line between the preset nodes in each node group is created respectively; According to a preset sampling interval, the preset nodes are alternately extracted from the first node sequence and the second node sequence, and a third node sequence corresponding to the web is obtained; each two adjacent preset nodes in the third node sequence are taken as a node group, and the skeleton line between the preset nodes in each node group is created.
5. The bridge 3D model creating method according to claim 1, wherein One of the preset component instance templates is pre-created based on one type of the preset component; The matching of the preset component instance template corresponding to the skeleton line based on the component identification information of the preset nodes at both ends of the skeleton line includes: Based on the component identification information, the preset component associated with the preset nodes at both ends of the skeleton line is determined, and a target component is obtained; From the preset component instance template set, the preset component instance template matching the type of the target component is filtered out, the parameter information corresponding to the target component is obtained according to the bridge two-dimensional graph data, and the preset component instance template is adjusted based on the parameter information.
6. The bridge three-dimensional model creating method according to claim 5, wherein The preset component instance template includes a surface instance and a volume instance; each of the preset component instance templates includes at least one positioning line; the creation of the instance corresponding to the skeleton line based on the preset component instance template in the preset three-dimensional coordinate system includes: According to the preset positioning strategy matching the type of the target component, the positioning information of the preset component instance template in the preset three-dimensional coordinate system is determined, and the instance corresponding to the skeleton line is obtained; 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, perpendicularity and a preset included 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, and the volume instance corresponding to the skeleton line is obtained.
7. The bridge 3D model creating method according to claim 3, wherein The bridge two-dimensional graph data further comprises a road width and a road thickness; the instantiation operation further comprises: creating a road surface instance based on the road center line, constraining a width corresponding to the road surface instance according to the road width, and determining a stretched thickness corresponding to the road surface instance based on the road thickness, to obtain a road body instance; wherein the road surface instance coincides with the road center line and is perpendicular to a plane where the pre-arch line is located; obtaining the preset nodes in the bridge skeleton that are not connected to the skeleton lines, to obtain target nodes; for each target node, matching a corresponding preset component instance template for the target node according to the component identification information corresponding to the target node, and creating an instance at the target node based on the preset component instance template; wherein the target node comprises at least one of a hanging point node, a partition plate node and a joint node.
8. A bridge three-dimensional model creating apparatus characterized by comprising: comprise: a positioning reference module configured to create a road center line and a pre-arch line in a same plane in a preset three-dimensional coordinate system according to the obtained bridge two-dimensional graph data, and obtain positioning reference information based on the road center line and the pre-arch line; wherein the bridge two-dimensional graph data comprises a total road length, a pre-arch type, a pre-arch height and a main span length, the road center line is determined according to the total road length, 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 configured to extract all preset nodes and node information corresponding to each preset node from the bridge two-dimensional graph data; wherein the node information comprises node position information and component identification information, and the component identification information is used to indicate at least one preset component in the bridge two-dimensional graph data that is pre-associated with the preset node; a skeleton creation module configured to create each preset node in the preset three-dimensional coordinate system according to the node position information and the positioning reference information, and create skeleton lines between the preset nodes based on a preset matching strategy and the component identification information; a model creation module configured to obtain a bridge skeleton based on the road center line and the skeleton lines, and perform an instantiation operation on the bridge skeleton to obtain a bridge three-dimensional model; wherein the instantiation operation comprises, for each skeleton line, matching a corresponding preset component instance template for the skeleton line 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, comprising: comprise a memory and a processor; the memory is configured to store a computer program; the processor is configured to implement the bridge three-dimensional model creation method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, The storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the bridge three-dimensional model creation method of any one of claims 1 to 7 is implemented. The storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the bridge three-dimensional model creation method of 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