Road sign board structure assembly design and preview method and device based on BIM three-dimensional virtual environment, electronic equipment and storage medium
By constructing and changing the signboard model in a three-dimensional virtual environment, the problem of inefficient assembly is solved, the precise placement of signboard positions and the flexibility of three-dimensional preview are achieved, and the design efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510443467.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2045-04-09
AI Technical Summary
In the prior art, the assembly efficiency of the signboard components is inefficient in a three-dimensional virtual environment, and the preview assembly effect is not flexible enough.
By building a signboard model, obtaining the bounding box data to determine the base point coordinates, reading the interactive interface data to calculate the offset transformation matrix, and based on the base point coordinates and matrix transformation model, the three-dimensional design viewport is updated in real time to display the adjusted model.
It improves the precise placement efficiency of signboard positions, enhances the authenticity and accuracy of three-dimensional previews, and improves design efficiency.
Smart Images

Figure CN120509073A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of road-related computer-aided architectural design, and in particular to a method, device, electronic device and storage medium for designing and previewing a road sign structure based on a BIM three-dimensional virtual environment. Background Art
[0002] With the rapid development of the national economy and the informatization of road engineering design, the design of road traffic signs is a key component of digital and intelligent traffic engineering. The design and assembly of sign components is a key and challenging area in traffic engineering. Different types of sign components can be assembled based on the relative relationships between their key 3D points. The assembly results are dynamically generated in a 3D virtual environment and can be viewed in a 3D preview window. Current design tools have drawbacks such as low assembly efficiency and limited flexibility in viewing 3D assembly results. Summary of the Invention
[0003] The purpose of the present invention is to provide a method, device, electronic device and storage medium for designing and previewing the structure of road signs based on a BIM three-dimensional virtual environment, so as to solve the technical problems in the prior art of low assembly efficiency of sign components in a three-dimensional virtual environment and insufficient flexibility in previewing assembly effects.
[0004] To achieve the above-mentioned objectives, the present invention 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 the sign base point coordinates according to the bounding box data; reading the sign position data in an interactive interface, and calculating a first offset transformation matrix according to the sign position data; based on the sign base point coordinates, transforming the first sign model according to the first offset transformation matrix 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 image including the second sign model.
[0005] The present invention also provides a road sign structure assembly design and preview device based on a BIM three-dimensional virtual environment, comprising: a sign model construction module, used to construct a first sign model, obtain bounding box data of the first sign model, and obtain the sign base point coordinates according to the bounding box data; a sign model position calculation module, used to read the sign position data in an interactive interface, and calculate a first offset transformation matrix according to the sign position data; a sign model preview module, used to transform the first sign model according to the first offset transformation matrix based on the sign base point coordinates to 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 image containing the second sign model.
[0006] The present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the method for designing and previewing the structure assembly of road signs based on a BIM three-dimensional virtual environment are implemented.
[0007] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the road sign structure assembly design and preview method based on the BIM three-dimensional virtual environment are implemented.
[0008] Compared with the prior art, the present invention has the following beneficial effects:
[0009] The road sign structure assembly design and preview method of the present invention adjusts the position of the sign by setting parameters in an interactive interface, which is conducive to the precise placement of the sign. The sign model can display its adjusted state in real time in a three-dimensional preview window, which can greatly improve design efficiency compared to traditional manual design methods. The realism and accuracy of the assembly process are improved by displaying the three-dimensional model in real time.
[0010] Preferably, the construction of the first signboard model includes: traversing the signboard plane layout model in the two-dimensional design viewport and obtaining the attribute information of the model; generating a layout unit model in the three-dimensional design viewport based on the signboard plane layout model and its attribute information; arranging and combining each of the layout unit models to obtain the first signboard model.
[0011] Preferably, generating a layout unit model in a three-dimensional design viewport based on the signboard plane layout model and its attribute information includes: creating 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; reading a search keyword in an interactive interface, filtering signboard model objects whose object names contain the search keyword as target signboard model objects; and generating a layout unit model in a three-dimensional design viewport based on the target signboard model object.
[0012] Preferably, the attribute information includes signboard position data, signboard design information and the base point coordinates of the signboard, and the permutation and combination of each of the layout unit models to obtain the first signboard model includes: according to the signboard design information, arranging the layout unit models and calculating the first rotation transformation matrix, updating the signboard position data; combining the arranged layout unit models to construct an initial signboard model, and updating the signboard base point coordinates; according to the signboard position data and the first rotation transformation matrix, rotating the initial signboard model based on the signboard base point coordinates to obtain the first signboard model.
[0013] Preferably, the road sign structure assembly design and preview method further includes: constructing a first structural component model, determining the inserted point coordinates of the inserted model and the insertion point coordinates of the first structural component model, calculating a second offset transformation matrix based on the inserted point coordinates and the insertion point coordinates, and calculating a second rotation transformation matrix based on the orientation of the second sign model and the orientation of the first structural component model; obtaining a second structural component model based on 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 image including the second structural component model.
[0014] Preferably, the calculating of the second offset transformation matrix based on the inserted point coordinates and the insertion point coordinates includes: setting a geometric constraint that the distance between the inserted point and the insertion point is 0; calculating the second offset transformation matrix based on the geometric constraint, the inserted point coordinates and the insertion point coordinates, so as to offset the second structural component model to the point where the insertion point of the second structural component model coincides with the inserted point.
[0015] Preferably, the coordinates of the inserted point are determined according to the relative position between the inserted point and the inserted model; and the coordinates of the insertion point are determined according to the relative position between the insertion point and the first structural component model. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 A flowchart of a road sign structure assembly design and preview method based on a BIM three-dimensional virtual environment provided by an embodiment of the present invention;
[0018] Figure 2 A schematic diagram of a signboard model object screening interactive interface provided by an embodiment of the present invention;
[0019] Figure 3 A schematic diagram of the initial position of a layout unit model provided in an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of an initial signboard model provided in an embodiment of the present invention;
[0021] Figure 5 A schematic diagram of a signboard model in a three-dimensional design viewport provided by an embodiment of the present invention;
[0022] Figure 6 A schematic diagram of the structure of a road sign structure assembly design and preview device based on a BIM three-dimensional virtual environment provided by an embodiment of the invention. DETAILED DESCRIPTION
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0024] Figure 1 This is a flow chart of the road sign structure assembly design and preview method based on the BIM three-dimensional virtual environment provided in this embodiment. Figure 1 As shown, this embodiment provides a road sign structure assembly design and preview method based on a BIM three-dimensional virtual environment, including:
[0025] Step S101: construct a first signboard model, obtain bounding box data of the first signboard model, and obtain the coordinates of the signboard base point according to the bounding box data.
[0026] Specifically, constructing the first signboard model includes:
[0027] Step S201: traverse the signboard plane layout model in the two-dimensional design viewport and obtain the attribute information of the model.
[0028] A sign layout model is a 2D model created in a 2D viewport based on a road plan. Each sign layout model has independent attribute information. The sign layout model is bound to model attributes such as the sign reference library file path, sign location data, sign design information, sign base point coordinates, and insertion point coordinates. This information is then used to express the sign's planar position, layout content, and other information in conjunction with the model.
[0029] Step S202: Generate a layout unit model in a three-dimensional design viewport according to the signboard plane layout model and its attribute information.
[0030] In some preferred embodiments, to facilitate obtaining a desired signboard layout model for adding to a three-dimensional design viewport, generating a layout unit model in the three-dimensional design viewport based on the signboard layout model and its attribute information includes:
[0031] Step S301: creating a signboard model object for each signboard plane layout model, wherein each signboard model object stores an object name, the signboard plane layout model and its attribute information.
[0032] Create a corresponding signboard model object for one or more signboard layout models. To facilitate the screening of models according to the desired attribute information in subsequent steps, keywords that can express the attribute information of the signboard layout model or the codes corresponding to the keywords can be added to the object name; when a signboard model object contains multiple signboard layout models, keywords that can express the attribute information shared by these models or the codes corresponding to the keywords can be added to the object name, and a corresponding signboard model sub-object is created for each signboard layout model. The signboard model sub-object stores the object name, the signboard layout model and its attribute information, and keywords that can express the attribute information of the model or the codes corresponding to the keywords can be added to the object name.
[0033] Step S302: reading a search keyword in the interactive interface, and screening signboard model objects whose object names contain the search keyword as target signboard model objects.
[0034] The filtering of the object names containing the search keyword may be filtering the object names of signboard model objects containing one or more signboard floor plan models, or filtering the object names of signboard model sub-objects containing one signboard floor plan model.
[0035] like Figure 2 As shown, in a specific embodiment, the object names of all signboard model objects are displayed on the user's interactive interface. The user enters the keyword "sign" in the interactive interface, and the system traverses the object names of each signboard model object and signboard model sub-object, and filters out the signboard model objects and signboard model sub-objects with "sign" in their names and displays them in the interactive interface. At this time, the object names that do not contain the keyword may not be displayed in the interactive interface.
[0036] Step S303: generating a layout unit model in a three-dimensional design viewport according to the target signboard model object.
[0037] According to the sign reference library file path of the target sign plane layout model, the center point of the sign plane layout model is used as the base point, and the coordinate origin in the three-dimensional design viewport is used as the inserted point. The sign plane layout model corresponding to the target sign model object is inserted into the three-dimensional design viewport, and all sign plane layout models are inserted so that their base points coincide with the inserted points, thereby obtaining a layout unit model with three-dimensional sign position data. The base points of the sign plane layout model are also converted into layout unit model base points with three-dimensional 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 where the XY axis is located. The relative positions of each layout unit model in the three-dimensional design viewport can be adjusted in subsequent steps. The above-mentioned base points and inserted points are not limited to the model center point and the coordinate origin, and can be freely selected according to actual needs.
[0038] Step S203: Arrange and combine the layout unit models to obtain a first signboard model.
[0039] In some preferred embodiments, in order to avoid misalignment due to different base points when rotating each layout unit model, the arrangement and combination of each layout unit model specifically includes:
[0040] Step S401: Arrange the layout unit models according to the signboard design information, calculate a first rotation transformation matrix, and update the signboard position data.
[0041] like Figure 3 As shown in FIG, in a specific embodiment, "Beijing Road" and "Laoshan" are two layout unit models, and initially both base points are located at the coordinate origin in the 3D design viewport. In the signboard design information, "Beijing Road" is located above "Laoshan" and the two are adjacent. After arranging "Beijing Road" and "Laoshan", as shown in FIG. Figure 4As shown, by translating the base points of the two layout unit models, "Beijing Road" and "Laoshan" are positioned adjacent to each other, and the sign's position data is updated to the current position data of the two layout unit models. In the sign design information, "Beijing Road" and "Laoshan" are placed vertically, and a rotation transformation matrix is calculated to adjust the spatial position of the two layout unit models.
[0042] Step S402: Combining and arranging the layout unit models, constructing an initial signboard model, and updating the signboard base point coordinates.
[0043] like Figure 4 As shown, in a specific embodiment, the base point of any one of the layout unit models "Beijing Road" and "Laoshan" can be used as the signboard base point of the initial signboard model, or the coordinates of 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 used as the signboard base point of the initial signboard model.
[0044] Step S403: rotating the initial signboard model based on the signboard base point coordinates according to the signboard position data and a first rotation transformation matrix to obtain a first signboard model.
[0045] In one specific embodiment, the initial sign model, consisting of the layout unit models "Beijing Road" and "Laoshan," is rotated around the X-axis based on a common sign base point O, rotating it from the XY horizontal plane to the XZ plane perpendicular to the horizontal plane, thereby adjusting its spatial position and causing the coordinates of the sign base point to change accordingly. In another specific embodiment, the initial sign model is further rotated around the Y-axis by a preset angle to complete the spatial position adjustment.
[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 sign position data in the interactive interface can be the three-dimensional spatial coordinates of a point. In this case, the first offset transformation matrix can be determined based on the sign base point coordinates of the first sign model and the spatial point coordinates input in the interactive interface. The sign position data in the interactive interface can also be a spatial vector. In this case, the first offset transformation matrix can be determined based on the spatial vector.
[0048] Step S103: Based on the signboard base point coordinates, the first signboard model is transformed according to the first offset transformation matrix to obtain a second signboard model, the first signboard model is replaced with the second signboard model in the three-dimensional design viewport, and the three-dimensional design viewport is updated to obtain a three-dimensional preview image including the second signboard model.
[0049] like Figure 5 As shown, after the offset transformation, the base point of the signboard model moves from point O to the spatial point P input in the interactive interface, and the signboard model in the new position is displayed in the 3D design viewport, and the coordinates of the inserted point and the base point change synchronously.
[0050] By setting parameters in the interactive interface to adjust the position of the signboard, it is beneficial to accurately place the signboard; the attribute information such as the coordinates of the inserted point and the base point is saved in the model and can be changed synchronously with the adjustment of the model composition, size and position, or the adjustment of the position of the insertion point and the inserted point itself on the model, to avoid inconsistency with the modified model; the signboard model can display its adjusted state in real time in the 3D preview window, which can greatly improve design efficiency compared to traditional manual design methods, and improve the authenticity and accuracy of the assembly process by displaying the 3D model in real time.
[0051] Specifically, the road sign structure assembly design and preview method further includes:
[0052] Step S501: Construct a first structural component model, determine the inserted point coordinates of the inserted model and the insertion point coordinates of the first structural component model, calculate a second offset transformation matrix based on the inserted point coordinates and the insertion point coordinates, and calculate a second rotation transformation matrix based on the orientation of the second signboard model and the orientation of the first structural component model.
[0053] Structural components are the parts of road traffic signs other than signboards, such as foundations, flanges, columns, column caps, beams, sliding groove aluminum, and clamps. Various structural components can be pre-stored in the structural component library, and the assembly of specific structural components can be achieved by calling them during the assembly process. In the structural component library, multiple structural components and their attribute information are stored. This attribute information includes the storage path, type, design parameters, etc. of the structural components. The structural component design parameters in the structural component library can be modified before calling according to assembly needs. The called structural component model can be directly generated in the 3D design viewport and inserted into the preset initial position of the structural component model.
[0054] The structural component model needs to be inserted into the correct position in sequence, and the structural component model and the signboard model must be on the same plane. To this end, based on the signboard design information and the design parameters of the structural component, the insertion point of the signboard model, the insertion point on the structural component model, the associated components and their insertion points, and the orientation of the structural component model and the signboard model are determined, so that the structural component model to be inserted can be assembled into the target position of the inserted model in sequence.
[0055] In some preferred embodiments, the coordinates of the inserted point are determined based on the relative position of the inserted point and the inserted model; and the coordinates of the insertion point are determined based on the relative position of the insertion point and the first structural component model, so as to ensure that after the position or size of the model is adjusted, the coordinates of the inserted point and the coordinates of the insertion point can be changed accordingly.
[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 3D design viewport. The preset initial position can be the origin of the 3D coordinates, or other points obtained based on the positional relationship with the generated structural component model; then, the associated parts of the structural component model to be inserted and their insertion points are found, and the coordinates of the insertion point and the inserted point are determined; then, the offset transformation matrix is calculated based on the coordinates of the insertion point and the inserted point.
[0057] For example, when inserting the sliding groove aluminum model, the signboard model is determined as an associated component of the sliding groove aluminum according to the design parameters of the structural component, and the insertion point, quantity, layout direction and layout 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, quantity, layout direction and layout spacing of the sliding groove aluminum; then, according to the signboard design information, the coordinates of the inserted point of the signboard model are determined; then, the offset transformation matrix is calculated based on 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 clamp model, the sliding groove aluminum is determined as an associated component of the clamp according to the design parameters of the structural component; then, the inserted sliding groove aluminum model is searched, the position and direction data of each sliding groove aluminum model is obtained, and the coordinates of the inserted point of the sliding groove aluminum model are determined; then, the clamp model is generated at the origin of the three-dimensional coordinate system, and the coordinates of the insertion point of the clamp are determined according to the design parameters of the clamp; 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 clamp model into the desired position.
[0059] In some preferred embodiments, to avoid errors in the insertion position of the structural component due to adjustment of the model position or size, the calculation of the second offset transformation matrix based on the inserted point coordinates and the insertion point coordinates includes:
[0060] Step S601, setting a geometric constraint that the distance between the inserted point and the inserting point is 0;
[0061] Step S602 : calculating a second offset transformation matrix according to the geometric constraint, the inserted point coordinates and the insertion point coordinates, for offsetting the second structural component model so that the insertion point of the second structural component model coincides with the inserted point.
[0062] Step S502: Obtain a second structural component model according to the second offset transformation matrix and the second rotation transformation matrix, replace the first structural component model with the second structural component model in the three-dimensional preview window, and update the three-dimensional preview window to obtain a three-dimensional preview image including the second structural component model.
[0063] A structural component model data object can be created for each type of structural component model being called to store the structural component model and its attribute information. A signboard structural assembly data object is created, and the structural component model data object and signboard model object are stored in the signboard structural assembly data object respectively. General information such as assembly time, name, mileage pile number, rotation angle, and route name are also stored in the signboard structural assembly data object to obtain signboard and structural component assembly information.
[0064] Figure 6 This is a schematic diagram of the structure of the road sign structure assembly design and preview device based on the BIM three-dimensional virtual environment provided in this embodiment. Figure 6 As shown, this embodiment provides a road sign structure assembly design and preview device based on a BIM three-dimensional virtual environment, including: a sign model construction module 11, used to construct a first sign model, obtain bounding box data of the first sign model, and obtain the sign base point coordinates according to the bounding box data; a sign model position calculation module 12, used to read the sign position data in the interactive interface, and calculate a first offset transformation matrix according to the sign position data; a sign model preview module 13, used to transform the first sign model according to the first offset transformation matrix based on the sign base point coordinates to 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 image containing the second sign model.
[0065] Specifically, the signboard model construction module 11 includes: a signboard plane layout model acquisition unit, which is used to traverse the signboard plane layout model in the two-dimensional design viewport and obtain the attribute information of the model; a layout unit model generation unit, which is used to generate a layout unit model in the three-dimensional design viewport based on the signboard plane layout model and its attribute information; a signboard model generation unit, which is used to arrange and combine each of the layout unit models to obtain a first signboard model.
[0066] Specifically, the layout unit model generation unit includes: a signboard model object generation subunit, which is used to create a signboard model object for each signboard plane layout model, and each signboard model object stores the object name, the signboard plane layout model and its attribute information; a signboard model object screening subunit, which is used to read the search keyword in the interactive interface and screen the signboard model objects whose object names contain the search keyword as the target signboard model objects; a layout unit model generation subunit, which is used to generate a layout unit model in a three-dimensional design viewport according to the target signboard model object.
[0067] Specifically, the attribute information includes signboard position data, signboard design information and the base point coordinates of the signboard. The signboard model generation unit includes: a layout unit model arrangement subunit, which is used to arrange the layout unit model and calculate the first rotation transformation matrix according to the signboard design information, and update the signboard position data; a layout unit model combination subunit, which is used to combine the arranged layout unit models, construct an initial signboard model, and update the signboard base point coordinates; a layout unit model rotation subunit, which is used 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.
[0068] Specifically, the road sign structure assembly design and preview device based on the BIM three-dimensional virtual environment also includes: a structural component model construction module 14, which is used to construct a first structural component model, determine the inserted point coordinates of the inserted model and the insertion point coordinates of the first structural component model, calculate a second offset transformation matrix according to the inserted point coordinates and the insertion point coordinates, and calculate a second rotation transformation matrix according to the orientation of the second sign model and the orientation of the first structural component model; a structural component model transformation module 15, which is used to obtain a second structural component model according to the second offset transformation matrix and the second rotation transformation matrix; a structural component model preview module 16, which is used to replace the first structural component model with the second structural component model in the three-dimensional preview window, and update the three-dimensional preview window to obtain a three-dimensional preview image containing the second structural component model.
[0069] Specifically, the structural component model construction module 14 includes: a geometric constraint setting unit, used to set a geometric constraint in which the distance between the inserted point and the insertion point is 0; an offset transformation matrix calculation unit, used to calculate a second offset transformation matrix based on the geometric constraint, the inserted point coordinates and the insertion point coordinates, used to offset the second structural component model to the insertion point of the second structural component model to coincide with the inserted point.
[0070] This embodiment provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for designing and previewing a road sign structure assembly based on a BIM three-dimensional virtual environment are implemented.
[0071] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method for designing and previewing the structure assembly of road signs based on a BIM three-dimensional virtual environment are implemented.
[0072] It should be noted that the description of the relevant portions of the device, electronic device, and computer-readable storage medium for the road sign structure assembly design and preview based on a BIM three-dimensional virtual environment disclosed in the embodiments of the present invention can be found in the detailed description of the corresponding portions of the method for road sign structure assembly design and preview based on a BIM three-dimensional virtual environment provided in the embodiments of the present invention, and will not be repeated here. Furthermore, portions of the technical solutions provided in the embodiments of the present invention that share the same implementation principles as corresponding technical solutions in the prior art are not described in detail to avoid redundant elaboration.
[0073] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.
[0074] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0075] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0076] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0077] The above description of various embodiments of the present invention is provided for the purpose of description to those skilled in the art. It is not intended to be exhaustive or to limit the present invention to a single disclosed embodiment. As mentioned above, various substitutions and variations of the present invention will be apparent to those skilled in the art of the above-mentioned technology. Therefore, although some alternative embodiments have been specifically discussed, other embodiments will be apparent, or those skilled in the art will find it relatively easy. The present invention is intended to include all substitutions, modifications and variations of the present invention discussed herein, as well as other embodiments that fall within the spirit and scope of the above-mentioned application.
[0078] Although the present invention has been described with reference to the embodiments, those skilled in the art will appreciate that there are numerous modifications and variations that may be made to the present invention without departing from the spirit of the invention. The appended claims encompass such modifications and variations without departing from the spirit of the invention.
Claims
1. Road sign structure assembly design and preview method based on BIM 3D virtual environment, including: Constructing a first signboard model, obtaining bounding box data of the first signboard model, and obtaining the coordinates of the base point of the signboard according to the bounding box data; Reading the signboard position data in the interactive interface, and calculating a first offset transformation matrix according to the signboard position data; Based on the sign base point coordinates, the first sign model is transformed according to the first offset transformation matrix to obtain a second sign model, the first sign model is replaced with the second sign model in a three-dimensional design viewport, and the three-dimensional design viewport is updated to obtain a three-dimensional preview image including the second sign model.
2. The method according to claim 1, characterized in that The constructing of the first signboard model includes: traversing the signboard plane layout model in the 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 signboard plane layout model and its attribute information; The layout unit models are arranged and combined to obtain a first signboard model.
3. The method according to claim 2, characterized in that Generating a layout unit model in a three-dimensional design viewport according to the signboard plane layout model and its attribute information includes: Creating a signboard model object for each signboard plane layout model, each of the signboard model objects storing an object name, the signboard plane layout model and its attribute information; Reading a search keyword in the interactive interface, and screening a signboard model object whose object name contains the search keyword as a target signboard model object; A layout unit model is generated in a three-dimensional design viewport according to the target signboard model object.
4. The method according to claim 2, characterized in that The attribute information includes signboard location data, signboard design information, and base point coordinates of the signboard. The arranging and combining the layout unit models to obtain the first signboard model includes: Arranging the layout unit models and calculating a first rotation transformation matrix according to the signboard design information, and updating the signboard position data; Combining and arranging the layout unit models, constructing an initial signboard model, and updating the coordinates of the signboard base points; According to the signboard position data and a first rotation transformation matrix, the initial signboard model is rotated based on the signboard base point coordinates to obtain a first signboard model.
5. The method according to any one of claims 1 to 4, characterized in that Also includes: Constructing a first structural component model, determining the coordinates of an inserted point of the inserted model and the coordinates of an insertion point of the first structural component model, calculating a second offset transformation matrix based on the coordinates of the inserted point and the coordinates of the insertion point, and calculating a second rotation transformation matrix based on the orientation of the second signboard model and the orientation of the first structural component model; Obtain a second structural component model according to the second offset transformation matrix and the second rotation transformation matrix; The first structural component model is replaced with the second structural component model in the three-dimensional preview window, and the three-dimensional preview window is updated to obtain a three-dimensional preview image including the second structural component model.
6. The method according to claim 5, characterized in that Calculating the second offset transformation matrix according to the inserted point coordinates and the insertion point coordinates includes: Set the geometric constraint that the distance between the inserted point and the insertion point is 0; A second offset transformation matrix is calculated according to the geometric constraint, the inserted point coordinates and the insertion point coordinates, so as to offset the second structural component model so that the insertion point of the second structural component model coincides with the inserted point.
7. The method according to claim 5, characterized in that The coordinates of the inserted point are determined according to the relative position between the inserted point and the inserted model; and the coordinates of the insertion point are determined according to the relative position between the insertion point and the first structural component model.
8. Road sign structure assembly design and preview device based on BIM 3D virtual environment, including: A signboard model construction module is used to construct a first signboard model, obtain bounding box data of the first signboard model, and obtain the coordinates of the signboard base point according to the bounding box data; a signboard model position calculation module, configured to read the signboard position data in the interactive interface and calculate a first offset transformation matrix based on the signboard position data; A signboard model preview module is used 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.
9. An electronic device having a computer program stored thereon, characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method according to any one of claims 1 to 7 when executed by a processor.
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