Road sign structure assembly design and preview method and device based on BIM three-dimensional virtual environment, electronic equipment and storage medium
By constructing and transforming sign models in a 3D virtual environment, the problem of low assembly efficiency is solved, and the precise placement of sign positions and the flexibility of 3D preview are achieved, thereby improving design efficiency and accuracy.
Patent Information
- Application Number
- CN202510443467.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-04-09
AI Technical Summary
In existing technologies, the assembly efficiency of road sign components in a 3D virtual environment is low and the preview of the assembly effect is not flexible enough.
By constructing a sign model, obtaining bounding box data to determine base point coordinates, reading interactive interface data to calculate the offset transformation matrix, and updating the 3D design viewport in real time based on the base point coordinates and matrix transformation model to display the adjusted model.
It improves the efficiency of precise placement of signs, enhances the realism and accuracy of 3D previews, and improves design efficiency.
Smart Images

Figure CN120509073B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of road-related computer-aided architectural design, in particular to a road sign structure assembly design and preview method and device based on a BIM three-dimensional virtual environment, an electronic device and a storage medium. BACKGROUND
[0002] With the rapid development of the national economy and the informatization transformation of road engineering design, the design of road traffic signs is a key content in the intelligent design of traffic engineering, and the design and assembly of sign components are a key and difficult point in the field of traffic engineering. Different types of sign components can be assembled through the relative relationship of their key three-dimensional points, and the assembly effect can be dynamically generated in a three-dimensional virtual environment and viewed in a three-dimensional preview window. The existing similar design tools have the disadvantages of low assembly efficiency and inflexible three-dimensional assembly effect viewing. SUMMARY
[0003] The present application provides a road sign structure assembly design and preview method, device, electronic device and storage medium based on a BIM three-dimensional virtual environment, which solves the technical problems of low assembly efficiency and inflexible preview assembly effect of sign components in a three-dimensional virtual environment in the prior art.
[0004] To achieve the above-mentioned purpose, the present application provides a road sign structure assembly design and preview method based on a BIM three-dimensional virtual environment, comprising: constructing a first sign model, obtaining bounding box data of the first sign model, and obtaining sign base point coordinates according to the bounding box data; reading sign position data in an interactive interface, calculating a first offset transformation matrix according to the sign position data; transforming the first sign model according to the first offset transformation matrix based on the sign base point coordinates to obtain a second sign model, replacing the first sign model with the second sign model in a three-dimensional design viewport, and updating the three-dimensional design viewport to obtain a three-dimensional preview graph containing the second sign model.
[0005] The application further provides a road sign structure assembly design and preview device based on a BIM three-dimensional virtual environment, comprising: a sign model construction module, configured to construct a first sign model, acquire bounding box data of the first sign model, and obtain sign base point coordinates according to the bounding box data; a sign model position calculation module, configured to read sign position data in an interactive interface, and calculate a first offset transformation matrix according to the sign position data; and a sign model preview module, configured to transform the first sign model according to the first offset transformation matrix based on the sign base point coordinates, obtain a second sign model, replace the first sign model with the second sign model in a three-dimensional design viewport, and update the three-dimensional design viewport to obtain a three-dimensional preview graph containing the second sign model.
[0006] The application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the road sign structure assembly design and preview method based on a BIM three-dimensional virtual environment when executing the computer program.
[0007] The application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program implements the steps in the road sign structure assembly design and preview method based on a BIM three-dimensional virtual environment when executed by a processor.
[0008] Compared with the prior art, the application has the following beneficial effects:
[0009] The road sign structure assembly design and preview method has the advantages that the position of the sign is adjusted by setting parameters in the interactive interface, which is beneficial to the accurate placement of the sign; the sign model can display its adjusted state in the three-dimensional preview window in real time, which can greatly improve the design efficiency compared with the traditional manual design method, and the real-time display of the three-dimensional model improves the authenticity and accuracy of the assembly process.
[0010] Preferably, the construction of the first sign model comprises: traversing a sign plane layout model in a two-dimensional design viewport and acquiring attribute information of the model; generating a layout unit model in a three-dimensional design viewport according to the sign plane layout model and the attribute information; and arranging and combining each layout unit model to obtain the first sign model.
[0011] Preferably, the generating the layout cell model in the three-dimensional design viewport according to the sign layout model and the attribute information thereof comprises: creating a sign model object for each sign layout model, each of the sign model objects storing an object name, the sign layout model and the attribute information thereof; reading a search keyword in an interactive interface, screening a sign model object containing the search keyword in the object name as a target sign model object; and generating the layout cell model in the three-dimensional design viewport according to the target sign model object.
[0012] Preferably, the attribute information comprises sign position data, sign design information and a base point coordinate of the sign, the arranging and combining each of the layout cell models to obtain a first sign model comprises: arranging the layout cell models and calculating a first rotation transformation matrix according to the sign design information, and updating the sign position data; combining the arranged layout cell models to construct an initial sign model, and updating the sign base point coordinate; and rotating the initial sign model based on the sign base point coordinate according to the sign position data and the first rotation transformation matrix to obtain the first sign model.
[0013] Preferably, the road sign structure assembly design and preview method further comprises: constructing a first structure component model, determining a plugged-in point coordinate of a plugged-in model and an insertion point coordinate of the first structure component model, calculating a second offset transformation matrix according to the plugged-in point coordinate and the insertion point coordinate, and calculating a second rotation transformation matrix according to an orientation of the second sign model and an orientation of the first structure component model; obtaining a second structure component model according to the second offset transformation matrix and the second rotation transformation matrix; replacing the first structure component model with the second structure component model in the three-dimensional preview window, and updating the three-dimensional preview window to obtain a three-dimensional preview drawing containing the second structure component model.
[0014] Preferably, the calculating the second offset transformation matrix according to the plugged-in point coordinate and the insertion point coordinate comprises: setting a geometric constraint of a distance between the plugged-in point and the insertion point as 0; and calculating the second offset transformation matrix according to the geometric constraint, the plugged-in point coordinate and the insertion point coordinate, so as to offset the second structure component model to the insertion point of the second structure component model coinciding with the plugged-in point.
[0015] Preferably, the plugged-in point coordinate is determined according to a relative position between the plugged-in point and the plugged-in model, and the insertion point coordinate is determined according to a relative position between the insertion point and the first structure component model. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. Obviously, the drawings described in the following are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0017] Figure 1 The flow chart of the road sign structure assembly design and preview method based on the BIM three-dimensional virtual environment provided by the embodiments of the present application is shown in the figure.
[0018] Figure 2 The sign model object screening interactive interface provided by the embodiments of the present application is shown in the figure.
[0019] Figure 3 The initial position of the layout unit model provided by the embodiments of the present application is shown in the figure.
[0020] Figure 4 The initial sign model provided by the embodiments of the present application is shown in the figure.
[0021] Figure 5 The sign model in the three-dimensional design viewport provided by the embodiments of the present application is shown in the figure.
[0022] Figure 6 The structural schematic diagram of the road sign structure assembly design and preview device based on the BIM three-dimensional virtual environment provided by the embodiments of the present application is shown in the figure. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical scheme and advantages of the embodiments of the present application more clear, the technical scheme of the embodiments of the present application will be described clearly and completely in the following by combining the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort belong to the protection scope of the present application.
[0024] Figure 1 The flow chart of the road sign structure assembly design and preview method based on the BIM three-dimensional virtual environment provided by the embodiments of the present application is shown in the figure. Figure 1 As shown in the figure, the embodiments of the present application provide a road sign structure assembly design and preview method based on the BIM three-dimensional virtual environment, which comprises:
[0025] Step S101: constructing a first sign model, obtaining the bounding box data of the first sign model, and obtaining the sign base point coordinates according to the bounding box data.
[0026] Specifically, the construction of the first sign model comprises:
[0027] Step S201: Traverse the sign layout model in the 2D design viewport and obtain the model's attribute information.
[0028] The sign layout model is a 2D model created based on the road plan in a 2D viewport. Each sign layout model has independent attribute information. The sign layout model is bound to the sign reference library file path, sign location data, sign design information, sign base point coordinates, and insertion point coordinates, etc., to express the sign's planar position, layout content, and other information.
[0029] Step S202: Generate a layout unit model in the 3D design viewport based on the sign layout model and its attribute information.
[0030] In some preferred embodiments, to facilitate obtaining the desired sign layout model for addition to the 3D design viewport, the step of generating a layout unit model in the 3D design viewport based on the sign layout model and its attribute information includes:
[0031] Step S301: Create a sign model object for each sign layout model. Each sign model object stores the object name, the sign layout model, and its attribute information.
[0032] Create a corresponding signage model object for one or more signage layout models. To facilitate filtering of models based on desired attribute information in subsequent steps, keywords or their corresponding codes that express the attribute information of the signage layout model can be added to the object name. When a signage model object contains multiple signage layout models, keywords or their corresponding codes that express the common attribute information of these models can be added to the object name. Create a corresponding signage model sub-object for each signage layout model. The signage model sub-object stores the object name, the signage layout model, and its attribute information. Keywords or their corresponding codes that express the attribute information of this model can be added to the object name.
[0033] Step S302: Read the search keywords in the interactive interface, and filter the sign model objects whose names contain the search keywords as the target sign model objects.
[0034] The filtering of object names containing the search keyword can be either filtering object names that contain one or more sign layout models, or filtering object names that contain a sign layout sub-object.
[0035] likeFigure 2 As shown, in one specific implementation, the user's interactive interface displays the object names of all sign model objects. The user enters the keyword "sign" in the interactive interface, and the system iterates through the object names of each sign model object and sign model sub-object, filters out the sign model objects and sign model sub-objects whose names contain "sign" and displays them in the interactive interface. At this time, object names that do not contain the keyword can be hidden from display in the interactive interface.
[0036] Step S303: Generate a layout unit model in the 3D design viewport based on the target sign model object.
[0037] Based on the sign reference library file path of the target sign layout model, the center point of the sign layout model is used as the base point, and the origin of the coordinate system in the 3D design viewport is used as the insertion point. The corresponding sign layout model of the target sign model object is then inserted into the 3D design viewport. All sign layout models are inserted so that their base points coincide with the insertion points, resulting in a layout unit model with 3D sign position data. The base points of the sign layout models are also correspondingly converted into layout unit model base points with 3D coordinates. The initial Z-axis coordinate of the layout unit model is set to 0, so the initial position of the layout unit model is located in the plane containing the XY axes. The relative positions of each layout unit model in the 3D design viewport can be adjusted in subsequent steps. The aforementioned base point and insertion point are not limited to the model center point and coordinate origin; they can be freely chosen according to actual needs.
[0038] Step S203: Arrange and combine each of the page unit models to obtain the first sign model.
[0039] In some preferred embodiments, to avoid misalignment due to different base points when rotating the various page unit models, the arrangement and combination of the various page unit models specifically includes:
[0040] Step S401: Arrange the layout unit models according to the sign design information and calculate the first rotation transformation matrix to update the sign position data.
[0041] like Figure 3 As shown, in one specific implementation, "Beijing Road" and "Laoshan" are two page unit models, both initially located at the origin of the coordinate system in the 3D design viewport. In the sign design information, "Beijing Road" is positioned above and adjacent to "Laoshan". After arranging "Beijing Road" and "Laoshan", as shown... Figure 4As shown, by translating the base points of the two page unit models, "Beijing Road" and "Laoshan" are in the upper and lower adjacent positions, and the signboard position data is updated to the current position data of the two page unit models. In the signboard design information, "Beijing Road" and "Laoshan" are placed vertically, and the rotation transformation matrix is calculated for the spatial position adjustment of the two page unit models.
[0042] Step S402: combining the arranged page unit models, constructing an initial signboard model, and updating the signboard base point coordinates.
[0043] As shown, in a specific embodiment, the base point of any one of the page unit models "Beijing Road" and "Laoshan" can be taken as the signboard base point of the initial signboard model, or the center point O of the initial signboard model unit can be obtained by obtaining the bounding box data of the initial signboard model, and the center point O or any other point can be taken as the signboard base point of the initial signboard model. Figure 4
[0044] Step S403: rotating the initial signboard model based on the signboard base point coordinates according to the signboard position data and the first rotation transformation matrix, to obtain a first signboard model.
[0045] In a specific embodiment, the initial signboard model composed of the page unit models "Beijing Road" and "Laoshan" is rotated around the X-axis based on the common signboard base point O, so that it is rotated from the XY horizontal plane to the XZ plane perpendicular to the horizontal plane, to complete the adjustment of the spatial position, and the signboard base point coordinates also change accordingly. In another specific embodiment, the initial signboard model is further rotated around the Y-axis by a preset angle to complete the adjustment of the spatial position.
[0046] Step S102: reading the signboard position data in the interactive interface, and calculating a first offset transformation matrix according to the signboard position data.
[0047] The signboard position data in the interactive interface can be the three-dimensional space coordinates of a point. At this time, the first offset transformation matrix can be determined according to the signboard base point coordinates of the first signboard model and the space point coordinates input by the interactive interface. The signboard position data in the interactive interface can also be a space vector. At this time, the first offset transformation matrix can be determined according to the space vector.
[0048] Step S103: transforming the first signboard model according to the first offset transformation matrix based on the signboard base point coordinates, to obtain a second signboard model, replacing the first signboard model with the second signboard model in the three-dimensional design viewport, and updating the three-dimensional design viewport to obtain a three-dimensional preview diagram containing the second signboard model.
[0049] As shown in Figure 5 the base point of the signboard model is moved from the O point to the space point P input in the interactive interface, and the signboard model in the three-dimensional design viewport is displayed in the new position, and the point coordinates and the base point coordinates are changed synchronously.
[0050] By setting parameters in the interactive interface to adjust the position of the signboard, the accurate placement of the signboard position is facilitated; the attribute information such as the point coordinates and the base point coordinates is saved in the model and can change synchronously with the model formation, size and position adjustment, or the adjustment of the insertion point and the inserted point on the model, avoiding the inconsistency with the modified model; the signboard model can display its adjusted state in real time in the three-dimensional preview window, which can greatly improve the design efficiency compared with the traditional manual design method, and improve the reality and accuracy of the assembly process through real-time display of the three-dimensional model.
[0051] Specifically, the road signboard structure assembly design and preview method further comprises:
[0052] Step S501: constructing a first structure component model, determining the inserted point coordinates of the inserted model and the insertion point coordinates of the first structure component model, calculating a second offset transformation matrix according to the inserted point coordinates and the insertion point coordinates, and calculating a second rotation transformation matrix according to the orientation of the second signboard model and the orientation of the first structure component model.
[0053] The structure component is a component in the road traffic sign except the signboard, such as foundation, flange, column, column cap, beam, sliding groove aluminum and hoop. Various types of structure components can be pre-stored in the structure component library, and the assembly of specific structure components can be realized by calling in the assembly process. In the structure component library, a plurality of structure components and their attribute information are stored, and the attribute information includes the storage path, type, design parameter and the like of the structure component. The design parameters of the structure components in the structure component library can be modified before calling according to the assembly needs. The called structure component model can be directly generated in the three-dimensional design viewport and inserted into the preset initial position of the structure component model.
[0054] The structure component model needs to be finally inserted into the correct position in sequence and ensure that the structure component model and the signboard model are in the same plane. Therefore, according to the signboard design information and the design parameters of the structure component, the inserted point of the signboard model, the insertion point on the structure component model, the associated components and their inserted points are determined, and the orientations of the structure component model and the signboard model are determined, so that the structure component model to be inserted can be assembled to the target position of the inserted model in sequence.
[0055] In some preferred embodiments, the inserted point coordinate is determined according to the relative position of the inserted point and the inserted model; and the insertion point coordinate is determined according to the relative position of the insertion point and the first structural component model, so that the inserted point coordinate and the insertion point coordinate can be changed correspondingly after the model position or size is adjusted.
[0056] For the called structural component model, its insertion point is first inserted into a preset initial position as the structural component model to be inserted in the three-dimensional design viewport, which can be the three-dimensional coordinate origin or other points obtained based on the position relationship with the generated structural component model; then, the associated components and their inserted points of the structural component model to be inserted are searched and the coordinates of the insertion point and the inserted point are determined; then, the offset transformation matrix is calculated according to the coordinates of the insertion point and the inserted point.
[0057] For example, when inserting the sliding groove aluminum model, according to the design parameters of the structural component, it is determined that the signboard model is the associated component of the sliding groove aluminum, and the insertion point, number, arrangement direction and arrangement spacing of the sliding groove aluminum are determined; then, a sliding groove aluminum model is generated in the three-dimensional design viewport, so that its insertion point coincides with the three-dimensional coordinate origin, and then other sliding groove aluminum models are generated in sequence according to the insertion point, number, arrangement direction and arrangement spacing of the sliding groove aluminum; then, the inserted point coordinates of the signboard model are determined according to the signboard design information; then, the offset transformation matrix is calculated according to the coordinates of the insertion point and the inserted point, which is used to insert the sliding groove aluminum model into the desired position.
[0058] For example, when inserting the sliding groove aluminum model, according to the design parameters of the structural component, it is determined that the signboard model is the associated component of the sliding groove aluminum, and the insertion point, number, arrangement direction and arrangement spacing of the sliding groove aluminum are determined; then, a sliding groove aluminum model is generated in the three-dimensional design viewport, so that its insertion point coincides with the three-dimensional coordinate origin, and then other sliding groove aluminum models are generated in sequence according to the insertion point, number, arrangement direction and arrangement spacing of the sliding groove aluminum; then, the inserted point coordinates of the signboard model are determined according to the signboard design information; then, the offset transformation matrix is calculated according to the coordinates of the insertion point and the inserted point, which is used to insert the sliding groove aluminum model into the desired position.
[0059] In some preferred embodiments, to avoid errors in the insertion position of the structural component caused by the adjustment of the model position or size, the calculation of the second offset transformation matrix according to the inserted point coordinate and the insertion point coordinate comprises:
[0060] Step S601, setting a geometric constraint that the distance between the inserted point and the insertion point is 0;
[0061] Step S602, calculating a second offset transformation matrix according to the geometric constraint, the inserted point coordinate and the insertion point coordinate, so that the second structural component model is offset to the insertion point of the second structural component model coinciding with the inserted point.
[0062] Step S502: obtaining a second structural component model according to the second offset transformation matrix and the second rotation transformation matrix, replacing the first structural component model with the second structural component model in the three-dimensional preview window, and updating the three-dimensional preview window to obtain a three-dimensional preview containing the second structural component model.
[0063] A structural component model data object can be created for each type of structural component model that can be called, for storing the structural component model and its attribute information. A sign structural assembly data object is created, and the structural component model data object and the sign model object are respectively stored in the sign structural assembly data object, and overall information such as assembly time, name, milepost number, rotation angle, route name, etc. is stored in the sign structural assembly data object, for obtaining sign and structural component assembly information.
[0064] Figure 6 A structural schematic diagram of the road sign structural assembly design and preview device based on a BIM three-dimensional virtual environment provided by the embodiment is shown in FIG. 1. As shown in FIG. 1, the embodiment provides a road sign structural assembly design and preview device based on a BIM three-dimensional virtual environment, which includes a sign model construction module 11, a sign model position calculation module 12, and a sign model preview module 13. Figure 6 The sign model construction module 11 is configured to construct a first sign model, obtain bounding box data of the first sign model, and obtain a sign base point coordinate according to the bounding box data. The sign model position calculation module 12 is configured to read sign position data in an interactive interface and calculate a first offset transformation matrix according to the sign position data. The sign model preview module 13 is configured to transform the first sign model according to the first offset transformation matrix based on the sign base point coordinate, obtain a second sign model, replace the first sign model with the second sign model in a three-dimensional design viewport, and update the three-dimensional design viewport to obtain a three-dimensional preview containing the second sign model.
[0065] Specifically, the sign model construction module 11 includes a sign plane layout model acquisition unit configured to traverse a sign plane layout model in a two-dimensional design viewport and acquire attribute information of the model; a layout unit model generation unit configured to generate a layout unit model in a three-dimensional design viewport according to the sign plane layout model and the attribute information thereof; and a sign model generation unit configured to arrange and combine each layout unit model to obtain a first sign model.
[0066] Specifically, the layout unit model generating unit comprises: a signboard model object generating subunit configured to create a signboard model object for each signboard layout model, each of the signboard model objects storing an object name, the signboard layout model and attribute information thereof; a signboard model object screening subunit configured to read a search keyword in an interactive interface, and screen a signboard model object containing the search keyword in the object name as a target signboard model object; and a layout unit model generating subunit configured to generate a layout unit model in a three-dimensional design viewport according to the target signboard model object.
[0067] Specifically, the attribute information comprises signboard position data, signboard design information and a base point coordinate of the signboard, and the signboard model generating unit comprises: a layout unit model arrangement subunit configured to arrange the layout unit models according to the signboard design information, calculate a first rotation transformation matrix and update the signboard position data; a layout unit model combination subunit configured to combine the arranged layout unit models, construct an initial signboard model and update the signboard base point coordinate; and a layout unit model rotation subunit configured to rotate the initial signboard model based on the signboard base point coordinate according to the signboard position data and the first rotation transformation matrix, to obtain a first signboard model.
[0068] Specifically, the device further comprises a structure member model constructing module 14 configured to construct a first structure member model, determine a plugged-in point coordinate of a plugged-in model and an insertion point coordinate of the first structure member model, calculate a second offset transformation matrix according to the plugged-in point coordinate and the insertion point coordinate, and calculate a second rotation transformation matrix according to an orientation of the second signboard model and an orientation of the first structure member model; a structure member model transforming module 15 configured to obtain a second structure member model according to the second offset transformation matrix and the second rotation transformation matrix; and a structure member model previewing module 16 configured to replace the first structure member model with the second structure member model in the three-dimensional preview window, and update the three-dimensional preview window to obtain a three-dimensional preview map containing the second structure member model.
[0069] Specifically, the structure member model constructing module 14 comprises: a geometric constraint setting unit configured to set a geometric constraint with a plugged-in point and an insertion point distance of 0; and an offset transformation matrix calculating unit configured to calculate a second offset transformation matrix according to the geometric constraint, the plugged-in point coordinate and the insertion point coordinate, so as to offset the second structure member model to the insertion point of the second structure member model and the plugged-in point.
[0070] The embodiment provides an electronic device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, and the processor implements the steps in the road sign structure assembly design and preview method based on a BIM three-dimensional virtual environment when executing the computer program.
[0071] The embodiment provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps in the road sign structure assembly design and preview method based on a BIM three-dimensional virtual environment when executed by a processor.
[0072] It should be noted that the related parts of the road sign structure assembly design and preview device based on a BIM three-dimensional virtual environment, the electronic device and the computer readable storage medium disclosed in the embodiment of the application are described in detail in the corresponding part of the road sign structure assembly design and preview method based on a BIM three-dimensional virtual environment provided by the embodiment of the application, and will not be described here. In addition, the parts of the above technical solutions provided by the embodiment of the application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as not to be too verbose.
[0073] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the related parts can be referred to the method part.
[0074] The skilled person can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of the two. In order to clearly show the interchangeability of hardware and software, the components and steps of each example have been described in the above description. Whether the functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.
[0075] The steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0076] It is also to be noted that, as used in this specification and the appended claims, the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component" or "the component" can include a single component or a plurality of components, and this specification and the claims can include both singular and plural referents unless the context clearly dictates otherwise. It is also to be noted that the use of "or" in the context of describing various embodiments is to be interpreted as open, i.e., the use of "or" in the context of describing various embodiments will be understood to cover a single item, for example, X, or a plurality of items, for example, X, Y, and Z, individually or in any combination of X, Y, and Z. Furthermore, it is to be noted that the use of "including," "comprising," or "having" will be understood to encompass the inclusion of zero, one, or more steps or components, and that the use of "adapted to" will be understood to encompass that the item is adapted to perform one or more steps or components. It is also to be noted that the use of "connected to" will be understood to encompass a direct connection between items, or an indirect connection between items, for example, through one or more other items.
[0077] The above description of various embodiments of the application has been presented for the purpose of description and description. It is not intended to be exhaustive or to limit the application to a single disclosed embodiment. As discussed above, various alternatives and modifications to the described embodiments will be apparent to those of ordinary skill in the art. Therefore, although some alternative embodiments have been discussed specifically, other embodiments will be apparent to those of ordinary skill in the art, or can be derived from the detailed description of the application by a relatively minor modification. It is the intent, therefore, to include all such alternatives, modifications and variations in the scope of the present application as measured by the appended claims.
[0078] While the application has been depicted by way of example and not limitation in the drawings and description herein, it is to be understood that variations and modifications will occur to those skilled in the art without departing from the spirit of the application, the scope of which is to be measured by the appended claims.
Claims
1. A method for road sign structure assembly design and preview based on BIM three-dimensional virtual environment, comprising: traversing a sign plane layout model in a two-dimensional design viewport and obtaining attribute information of the model, the attribute information including sign position data, sign design information, and base point coordinates of the sign; creating a sign model object for each sign plane layout model, each of the sign model objects storing an object name, the sign plane layout model, and its attribute information; reading a search keyword in an interactive interface, filtering sign model objects having the search keyword in the object name as target sign model objects; generating a layout unit model in a three-dimensional design viewport according to the target sign model objects; arranging the layout unit model according to the sign design information and calculating a first rotation transformation matrix to update the sign position data; combining the arranged layout unit model to construct an initial sign model and updating the sign base point coordinates; rotating the initial sign model based on the sign base point coordinates according to the sign position data and the first rotation transformation matrix to construct a first sign model, obtaining bounding box data of the first sign model, and obtaining the sign base point coordinates according to the bounding box data; reading sign position data in an interactive interface and calculating a first offset transformation matrix according to the sign position data; transforming the first sign model based on the sign base point coordinates according to the first offset transformation matrix to obtain a second sign model, replacing the first sign model with the second sign model in the three-dimensional design viewport, and updating the three-dimensional design viewport to obtain a three-dimensional preview view containing the second sign model.
2. The method of claim 1, wherein, Further comprising: constructing a first structure component model, determining an insertion point coordinate of an inserted model and an insertion point coordinate of the first structure component model, calculating a second offset transformation matrix according to the insertion point coordinate and the insertion point coordinate, and calculating a second rotation transformation matrix according to an orientation of the second sign model and an orientation of the first structure component model; obtaining a second structure component model according to the second offset transformation matrix and the second rotation transformation matrix; replacing the first structure component model with the second structure component model in the three-dimensional preview view window, and updating the three-dimensional preview view window to obtain a three-dimensional preview view containing the second structure component model.
3. The method of claim 2, wherein, The calculation of the second offset transformation matrix according to the insertion point coordinate and the insertion point coordinate comprises: setting a geometric constraint with a distance of 0 between the insertion point and the insertion point; and calculating the second offset transformation matrix according to the geometric constraint, the insertion point coordinate, and the insertion point coordinate, so that the insertion point of the second structure component model coincides with the insertion point of the inserted model.
4. The method of claim 2, wherein, The insertion point coordinate is determined according to the relative position of the insertion point and the inserted model, and the insertion point coordinate is determined according to the relative position of the insertion point and the first structure component model. 5.A device for road sign structure assembly design and preview based on BIM three-dimensional virtual environment, comprising: The signboard model construction module is configured to construct a first signboard model, acquire bounding box data of the first signboard model, and obtain signboard base point coordinates according to the bounding box data. The signboard model construction module includes: a signboard plane layout model acquisition unit configured to traverse signboard plane layout models in a two-dimensional design viewport and acquire attribute information of the models, the attribute information including signboard position data, signboard design information, and base point coordinates of the signboard; a layout unit model generation unit configured to generate layout unit models in a three-dimensional design viewport according to the signboard plane layout models and their attribute information; and a signboard model generation unit configured to arrange and combine the layout unit models to obtain a first signboard model. The layout unit model generation unit includes: a signboard model object generation subunit configured to create a signboard model object for each signboard plane layout model, each signboard model object storing an object name, the signboard plane layout model, and its attribute information; a signboard model object screening subunit configured to read a search keyword in an interactive interface, and screen signboard model objects containing the search keyword in the object names as target signboard model objects; and a layout unit model generation subunit configured to generate a layout unit model in a three-dimensional design viewport according to the target signboard model objects. The signboard model generation unit includes: a layout unit model arrangement subunit configured to arrange the layout unit models according to signboard design information, calculate a first rotation transformation matrix, and update signboard position data; a layout unit model combination subunit configured to combine the arranged layout unit models to construct an initial signboard model, and update the signboard base point coordinates; and a layout unit model rotation subunit configured to rotate the initial signboard model based on the signboard base point coordinates according to the signboard position data and the first rotation transformation matrix to obtain a first signboard model. The signboard model position calculation module is configured to read signboard position data in an interactive interface, and calculate a first offset transformation matrix according to the signboard position data. The signboard model preview module is configured to transform the first signboard model according to the first offset transformation matrix based on the signboard base point coordinates to obtain a second signboard model, replace the first signboard model with the second signboard model in a three-dimensional design viewport, and update the three-dimensional design viewport to obtain a three-dimensional preview image containing the second signboard model.
6. An electronic device having stored thereon a computer program, characterized in that The computer program is stored on the computer readable storage medium and is executed by the processor to implement the steps of the method of any one of claims 1 to 4.
7. A computer readable storage medium, the computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Traffic sign board rapid parameterization BIM dynamic modeling method and traffic sign board BIM modeling system
CN112560131A
Model display method, electronic equipment and storage medium
CN116630499A