Three-dimensional modeling interaction method and system based on BIM, electronic device and storage medium

By dividing key modeling areas in BIM-related software, defining user coordinate systems, and dynamically setting temporary reference planes, and using tentative capture technology to accurately draw three-dimensional drawings, the problems of poor universality and low efficiency of modeling interaction mechanisms in the existing technology are solved, and efficient and flexible three-dimensional modeling interactions are achieved.

CN120029513AActive Publication Date: 2025-05-23STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER CO

Patent Information

Application Number
CN202510502697.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2025-05-23
Estimated Expiration
2045-04-22

AI Technical Summary

Technical Problem

The existing modeling interaction mechanism based on work planes shows poor versatility in architectural design scenarios and cannot be applied to other engineering design business scenarios, such as power grid engineering design. In addition, when making three-dimensional drawings, users need to manually calculate and input three-dimensional coordinates, which is time-consuming and labor-intensive and reduces work efficiency.

Method used

A three-dimensional modeling interaction method based on BIM is provided. By dividing key modeling areas according to business scenarios during the interactive modeling process, defining user coordinate systems, and dynamically setting temporary reference planes, and using exploratory capture technology to accurately draw three-dimensionally.

Benefits of technology

It improves the modeling efficiency and accuracy of users in different business scenarios, is suitable for two-dimensional and three-dimensional mapping, reduces the calculation amount, improves modeling efficiency, and is suitable for modeling operations in large-scale spaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029513A_ABST
    Figure CN120029513A_ABST
Patent Text Reader

Abstract

The invention relates to a BIM-based three-dimensional modeling interaction method and system, an electronic device and a storage medium, and belongs to the technical field of three-dimensional modeling. Comprising the following steps: starting interactive modeling, dividing a key modeling area according to a business scene, and defining a plurality of user coordinate systems based on the key modeling area; wherein the user coordinate system is allowed to be newly added, deleted, modified, subjected to explicit-implicit control and switched; in the interactive modeling process, a related user coordinate system is dynamically switched as a current user coordinate system according to needs; based on the current user coordinate system, dynamically setting a temporary reference plane as required; based on the temporary reference plane, a capture position is determined through tentative capture, and model elements are created, placed and edited at the capture position for three-dimensional accurate drawing. According to the method, based on a temporary reference plane, three-dimensional accurate drawing is carried out through tentative capture, and the problems that an existing modeling interaction mechanism based on a working plane is poor in universality and low in efficiency are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional modeling, and in particular to a BIM-based three-dimensional modeling interaction method, system, electronic device and storage medium. Background Art

[0002] At present, digital transformation based on the new generation of information technology has become a hot research field. Digitalization adapts to the energy revolution and is a new driving force for high-quality development in various countries. Therefore, accelerating digital transformation has become a common choice for large domestic and foreign companies to promote the conversion of old and new driving forces and cultivate new competitive advantages.

[0003] BIM (Building Information Modeling) is a digital three-dimensional modeling tool used in engineering design, construction, and management. It is crucial to the digital transformation of construction, machinery, power grid engineering and other fields.

[0004] In BIM-related software, the interactive mechanism is the key technology to achieve efficient design and accurate drawing of 3D models, which directly affects the user's creative process and the collaborative efficiency of the design team. With the development of computer graphics, some BIM-related 3D modeling software provides certain interactive mechanisms to support interactive modeling.

[0005] Currently available BIM-related software usually implements a modeling interaction mechanism based on a work plane in the field of architecture. The work plane refers to a horizontal or vertical plane defined by the user during the three-dimensional modeling process, such as a plane consisting of a floor, roof, ceiling, etc. The user performs modeling on the currently defined work plane. For example, the user places components such as walls, columns, and beams along the currently defined work plane. For another example, the user moves doors and windows along the currently defined work plane to adjust their positions.

[0006] However, the existing modeling interaction mechanism based on work plane in the field of architecture is only suitable for architectural design scenarios, and is not applicable to other engineering design business scenarios, such as power grid engineering design, and has poor versatility. In addition, the existing modeling interaction mechanism based on work plane is only applicable to drawing two-dimensional graphics. When drawing three-dimensional graphics, for example, when drawing a straight line in three-dimensional space, the user needs to enter the three-dimensional coordinates of the starting point and the end point, and the BIM-related software calculates the three-dimensional path of the line.

[0007] Understandably, first of all, in the architectural design scenario, buildings do not require large-scale space, and are usually decomposed into multiple horizontal layers, and then laid out and designed in each horizontal layer. This design idea of ​​horizontally stratifying buildings is consistent with the modeling interaction mechanism based on the work plane; but in other engineering design business scenarios, the object to be modeled cannot be decomposed into multiple horizontal layers; for example, the design of overhead transmission lines in power grid projects requires operations on a large-scale space (such as thousands of kilometers), and the conductors of the transmission lines are affected by factors such as temperature and wind, causing their shapes to change nonlinearly, requiring BIM-related software to dynamically reflect these changes; therefore, the existing modeling interaction mechanism based on the work plane is not suitable for many engineering design business scenarios. Secondly, since the work plane is a horizontal or vertical plane, the existing modeling interaction mechanism based on the work plane is only applicable to drawing two-dimensional graphics. Finally, when performing three-dimensional mapping, for example, when drawing a straight line in three-dimensional space, the user needs to calculate and input the three-dimensional coordinates of the end point based on the three-dimensional coordinates of the starting point. The BIM-related software calculates the three-dimensional path of the line based on the input three-dimensional coordinates of the starting and end points. These calculations are time-consuming and labor-intensive, reducing work efficiency.

[0008] It can be seen that providing a universal and efficient 3D modeling interaction method and system is an urgent problem to be solved. Summary of the invention

[0009] In view of the above analysis, the present invention aims to provide a BIM-based three-dimensional modeling interaction method, system, electronic device and storage medium to solve the problems of poor versatility and low efficiency of the current modeling interaction mechanism based on the working plane.

[0010] The present invention provides a BIM-based three-dimensional modeling interaction method, system, electronic device and storage medium, the method comprising the following steps: Initiate interactive modeling, divide key modeling areas according to business scenarios, and define several user coordinate systems based on the key modeling areas; Among them, the user coordinate system is allowed to be added, deleted, modified, displayed and hidden, and switched; During the interactive modeling process, the relevant user coordinate system is dynamically switched as the current user coordinate system as needed; Based on the current user coordinate system, dynamically setting a temporary reference plane as needed; Based on the temporary reference plane, tentative capture is used to determine the capture position, and model elements are created, placed, and edited at the capture position to perform three-dimensional precise mapping.

[0011] Furthermore, the temporary reference plane is a virtual two-dimensional plane used to determine the position and direction of the operated model element.

[0012] Furthermore, the tentative capture refers to dynamically positioning the capture point to a desired capture position for capture through continuous trial and error in an interactive manner during the interactive modeling process; the capture position may be any point in three-dimensional space.

[0013] Furthermore, the tentative capture includes at least one trial, each trial establishes a new temporary reference plane, and moves the current capture point from the starting position of the trial to the end position of the trial on the temporary reference plane; After each trial, you can continue to the next trial until the snap point is dynamically positioned to the desired snap position.

[0014] Further, setting a new temporary reference plane by determining the origin and axis direction of the temporary reference plane; The starting point of the current trial is used as the origin of the temporary reference plane; Determine the axis direction of the temporary reference plane based on face alignment; When the new temporary reference plane is set successfully, the life cycle of the original temporary reference plane ends, and the user can operate on the new temporary reference plane.

[0015] Furthermore, according to specific business scenarios and modeling requirements, perform the following operations on the user coordinate system: Added user coordinate system; Dynamically modify and update the defined unreasonable user coordinate system; Dynamically delete duplicate or invalidly defined user coordinate systems; Control the visibility of the defined user coordinate system; Switches between defined user coordinate systems.

[0016] Furthermore, during the interactive modeling process, among the defined user coordinate systems, the relevant user coordinate system is dynamically switched as the activated current user coordinate system as required.

[0017] Furthermore, the XOY plane of the current user coordinate system is used as the temporary reference plane by default, and a new temporary reference plane is dynamically set as needed.

[0018] Furthermore, if no trial capture has been performed in the current user coordinate system, the origin of the current user coordinate system is used as the starting point of the first trial capture of the current trial capture; if a trial capture has been performed in the current user coordinate system, the end point of the last trial capture is used as the starting point of the first trial capture of the current trial capture.

[0019] Further, the determining the axis direction of the temporary reference plane based on the surface alignment comprises: Align the temporary reference plane to the top view of the global coordinate system or the user coordinate system, that is, the XOY plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the X-axis direction and Y-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the side view of the global coordinate system or the user coordinate system, that is, the YOZ plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the Y-axis direction and Z-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the front view of the global coordinate system or the user coordinate system, that is, the XOZ plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the X-axis direction and Z-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the primitive surface. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the u-direction and v-direction of the primitive surface respectively. Align the temporary reference plane to the primitive baseline. At this time, the X-axis direction of the temporary reference plane is the primitive baseline direction, and the Y-axis direction of the temporary reference plane is the cross product of the Z-axis direction of the user coordinate system and the primitive baseline direction.

[0020] Furthermore, the interactive modeling is started, key modeling areas are divided according to business scenarios, and a number of user coordinate systems are defined based on the key modeling areas, including: Open the modeling software to start interactive modeling; determine the specific business scenario, and divide the project to be modeled into several key modeling areas according to the business scenario; Establishing a global coordinate system, and defining at least one user coordinate system in each of the key modeling areas; A transformation relationship between each user coordinate system and the global coordinate system is established.

[0021] Furthermore, the display style of the temporary reference plane is pixel-based and has nothing to do with scaling, and the axis and direction of the temporary reference plane are marked by the display style.

[0022] Furthermore, in each of the key modeling areas, at least one user coordinate system is defined as a local coordinate system according to actual modeling conditions and needs.

[0023] Furthermore, a BIM-based 3D modeling interactive system comprises: A coordinate system management module is used to manage the global coordinate system and the user coordinate system, and send the current user coordinate system to the temporary reference plane management module and the tentative capture module; A temporary reference plane management module is used to set a temporary reference plane in the current user coordinate system and send the temporary reference plane to the tentative capture module; The tentative capture module is used to dynamically locate the capture point to the required capture position for capture through continuous trial in an interactive manner based on a temporary reference plane during the interactive modeling process; the capture position can be any point in the three-dimensional space.

[0024] Further, the coordinate system management module includes a global coordinate system management module, a user coordinate system management module and a coordinate system conversion module; The global coordinate system management module is used to establish a global coordinate system as a reference for the project to be modeled; The user coordinate system management module is used to establish a user coordinate system as a local coordinate system; to add, delete, modify, control the visibility and switch of the user coordinate system; and to send the current user coordinate system to the temporary reference plane management module and the trial capture module; The coordinate system conversion module is used to establish a conversion relationship between each user coordinate system and the global coordinate system.

[0025] Furthermore, the coordinate system conversion module is also used to establish a conversion relationship between user coordinate systems.

[0026] Furthermore, the coordinate system conversion module establishes a conversion relationship between each user coordinate system and the global coordinate system based on the node coordinate transformation matrix corresponding to each user coordinate system, so that the coordinates in each user coordinate system are converted with the coordinates in the global coordinate system.

[0027] Furthermore, the coordinate system conversion module establishes a conversion relationship between two user coordinate systems based on the node coordinate transformation matrix corresponding to each user coordinate system, so that coordinates in one user coordinate system are converted to coordinates in another user coordinate system.

[0028] Furthermore, a BIM-based three-dimensional modeling electronic device comprises: Memory for storing computer programs; A processor is used to execute the computer program to implement a BIM-based three-dimensional modeling interaction method.

[0029] Furthermore, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the BIM-based three-dimensional modeling interaction method are implemented.

[0030] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects: 1. The present invention adds and manages a number of user coordinate systems according to key modeling areas, so that users can flexibly apply coordinate systems and work together in different business scenarios, thereby improving the efficiency and accuracy of users in creating and modifying three-dimensional models. In particular, for large and complex three-dimensional projects to be modeled, the present invention can significantly improve the design quality and work efficiency.

[0031] 2. The present invention dynamically sets a temporary reference plane as needed during the interactive modeling process, and uses tentative capture based on the temporary reference plane to perform three-dimensional precise mapping, providing a new three-dimensional modeling interactive mechanism and improving the user's operation logic. When performing three-dimensional mapping, the user does not need to calculate and input the three-dimensional coordinates of the end point, but instead moves the capture point to the desired capture position through continuous trial in an interactive manner for capture, which not only significantly improves the user experience, but also improves work efficiency.

[0032] 3. The three-dimensional modeling interaction method provided by the present invention is applicable to two-dimensional and three-dimensional mapping, and can perform two-dimensional and three-dimensional modeling under a unified interaction mechanism, thereby improving versatility. Moreover, when performing three-dimensional mapping, the three-dimensional path required for calculation does not need to be calculated based on the three-dimensional coordinates of the starting point and the end point by trial and error, thereby reducing the amount of calculation and improving the modeling efficiency.

[0033] 4. The present invention changes the direction required for user operation by transforming the temporary reference plane. When the direction and angle of the model elements being operated need to be transformed at high frequency in complex three-dimensional modeling scenarios, the temporary reference plane can more flexibly respond to the frequent changes in the required direction and angle. Moreover, the change of the temporary reference plane does not affect the current user coordinate system, that is, the current user coordinate system can remain unchanged. Therefore, when the direction and angle of the model elements being operated need to be transformed at high frequency, there is no need to frequently switch the current user coordinate system, thereby improving work efficiency.

[0034] 5. The present invention divides key modeling areas and defines several user coordinate systems, making it easier for users to perform modeling operations in large-scale space; by using trial capture to perform three-dimensional precise mapping, the nonlinear characteristics of three-dimensional objects can be flexibly and accurately drawn. Therefore, the present invention is applicable to other engineering design business scenarios, especially to power grid engineering design, and improves versatility.

[0035] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings are only used to illustrate specific embodiments and are not considered to be limitations of the present invention. In the entire drawings, the same reference symbols represent the same components; Figure 1 A flowchart of a BIM-based 3D modeling interaction method according to an embodiment of the present invention; Figure 2 The conversion relationship between the world coordinate system and the user coordinate system in the embodiment of the present invention; Figure 3 It is the default display style of the temporary reference plane in the embodiment of the present invention; FIG4 (a) is a schematic diagram of a global coordinate system and a user coordinate system according to an embodiment of the present invention; FIG4( b ) is a schematic diagram of the starting point position of the first trial capture in the embodiment of the present invention; FIG4( c ) is a schematic diagram of the starting point position of the second trial capture in the embodiment of the present invention; Figure 5 It is a block diagram of a BIM-based 3D modeling interactive system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, and are not used to limit the scope of the present invention. It should be clear that 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 work are within the scope of protection of the present invention.

[0038] Those skilled in the art should know that the following specific embodiments or specific implementations are a series of optimized settings listed by the present invention to further explain the specific content of the invention, and these settings can be combined or used in association with each other, unless the present invention clearly states that some or a specific embodiment or implementation cannot be associated or used together with other embodiments or implementations. At the same time, the following specific embodiments or implementations are only used as the most optimized settings, and are not to be understood as limiting the scope of protection of the present invention.

[0039] Embodiment 1: A specific embodiment of the present invention discloses a BIM-based 3D modeling interaction method. Figure 1 As shown, the method comprises the following steps: Step S11, start interactive modeling, divide key modeling areas according to business scenarios, and define several user coordinate systems based on the key modeling areas; Among them, the user coordinate system is allowed to be added, deleted, modified, displayed and hidden, and switched; Step S12: During the interactive modeling process, dynamically switch the relevant user coordinate system as the current user coordinate system as needed; Based on the current user coordinate system, dynamically setting a temporary reference plane as needed; Based on the temporary reference plane, tentative capture is used to determine the capture position, and model elements are created, placed, and edited at the capture position to perform three-dimensional precise mapping.

[0040] Specifically, in step S11, the interactive modeling is started, key modeling areas are divided according to business scenarios, and several user coordinate systems are defined based on the key modeling areas, including: Open the modeling software to start interactive modeling; determine the specific business scenario, and divide the project to be modeled into several key modeling areas according to the business scenario; Establishing a global coordinate system, and defining at least one user coordinate system in each of the key modeling areas; A transformation relationship between each user coordinate system and the global coordinate system is established.

[0041] Specifically, according to different business scenarios, the project to be modeled is divided into several key modeling areas in the following way: 1) By stage: Divide the project to be modeled into several key modeling areas according to the construction stage; for example, planning and design area, construction management area, operation and maintenance management area, etc.; 2) By function: Divide the project to be modeled into several key modeling areas according to different functions; for example, the main building area, the electromechanical system area, the building exterior area, etc.; 3) By level: The project to be modeled is divided into several key modeling areas according to different hierarchical structures; for example, it is divided into four levels of areas, the first level area is the main building area, the external building area, etc.; the second level area is the office area, the green area, etc.; the third level area is the room area, the computer room area, the bridge area, etc.; the fourth level area is the equipment body area, the pipeline area, etc.

[0042] It should be noted that, according to the actual situation of the specific business scenario, one or more of the three division methods mentioned above can be selected to effectively divide the project to be modeled into several small modeling areas, which facilitates the definition of the user coordinate system and multi-person collaborative modeling, thereby improving modeling efficiency.

[0043] For example, assuming that the specific business scenario is a power grid substation modeling project, the power grid substation modeling project is divided into planning and design area, construction management area, operation and maintenance management area, etc. according to the stage division; then, according to the function division, the planning and design area is divided into main transformer modeling area, distribution modeling area, control room modeling area, etc.; finally, according to the level division, the main transformer modeling area is divided into three levels, the first level area is the main transformer system modeling area; the second level area is the main transformer body area, the main transformer protection device area, the auxiliary equipment area, etc.; the third level area is the winding area, the cooling system area, the oil pillow area, the grounding device area, etc.

[0044] Furthermore, a global coordinate system is established as a reference for the item to be modeled.

[0045] Specifically, the world coordinate system may be used as the global coordinate system, or the center of the item to be modeled may be used as the origin of the global coordinate system.

[0046] It should be noted that for a specific project to be modeled, its global coordinate system is unique and will not change with the changes in the model elements in the project to be modeled or the operations on the model elements, that is, the direction and origin position of its global coordinate system remain unchanged. Therefore, the global coordinate system of the project to be modeled provides a fixed reference benchmark for all model elements in the project to determine the absolute position of each point, edge, surface, body and other geometric topological element and component in the project to be modeled in the global coordinate system.

[0047] It can be understood that model elements refer to independent units used to describe information such as the shape, structure, and position of an object in a digital model, including geometric topological elements (such as points, edges, surfaces, and bodies) and components (such as doors, windows, and mechanical equipment).

[0048] Furthermore, in each of the key modeling areas, at least one user coordinate system is defined as a local coordinate system according to actual modeling conditions and needs.

[0049] For example, it is necessary to design a series of pipes in a key modeling area, wherein the series of pipes have different directions and lengths; wherein the direction, length, starting point and end point of each section of the pipe are determined; therefore, a user coordinate system is defined for each section of the pipe, so that the starting point of the section of the pipe is used as the origin of its user coordinate system, and the direction of the section of the pipe is along the x-axis in its user coordinate system.

[0050] It can be understood that by establishing different user coordinate systems, model elements with different directions or structures in a key modeling area can be distinguished, which is conducive to separate operations; and when multiple developers work together, each developer can operate different model elements in the same key modeling area through a user coordinate system, which is conducive to parallel operations and improves work efficiency.

[0051] Furthermore, a conversion relationship between each user coordinate system and the global coordinate system is established through a node coordinate transformation matrix corresponding to each user coordinate system, so that the coordinates in each user coordinate system are converted with the coordinates in the global coordinate system.

[0052] It should be noted that, through the node coordinate transformation matrix corresponding to a user coordinate system, the three-dimensional coordinates in the user coordinate system can be mapped to the three-dimensional coordinates in the global coordinate system; through the inverse matrix of the coordinate transformation matrix corresponding to the user coordinate system, the three-dimensional coordinates in the global coordinate system can be mapped to the three-dimensional coordinates in the user coordinate system. Therefore, by establishing a transformation relationship between each user coordinate system and the global coordinate system, the model elements in the user coordinate system can be transformed to the global coordinate system for representation and calculation, and vice versa.

[0053] For example, Figure 2As shown, it is assumed that a global coordinate system and three user coordinate systems are established, and there is a model node whose coordinates in the global coordinate system are (X0, Y0, Z0), its coordinates in user coordinate system 1 are (X1, Y1, Z1), its coordinates in user coordinate system 2 are (X2, Y2, Z2), and its coordinates in user coordinate system 3 are (X3, Y3, Z3). Establish the node coordinate transformation matrix M10 corresponding to the user coordinate system 1, establish the node coordinate transformation matrix M20 corresponding to the user coordinate system 2, and establish the node coordinate transformation matrix M30 corresponding to the user coordinate system 3; then, through the matrix M10, the three-dimensional coordinates (X1, Y1, Z1) in the user coordinate system 1 can be mapped to the three-dimensional coordinates (X0, Y0, Z0) in the global coordinate system; through the matrix M20, the three-dimensional coordinates (X2, Y2, Z2) in the user coordinate system 2 can be mapped to the three-dimensional coordinates (X0, Y0, Z0) in the global coordinate system; through the matrix M30, the three-dimensional coordinates (X3, Y3, Z3) in the user coordinate system 3 can be mapped to the three-dimensional coordinates (X0, Y0, Z0) in the global coordinate system. Establish the inverse matrix M01 of the matrix M10, establish the inverse matrix M02 of the matrix M20, and establish the inverse matrix M03 of the matrix M30; then, through the matrix M01, the three-dimensional coordinates (X0, Y0, Z0) in the global coordinate system can be mapped to the three-dimensional coordinates (X1, Y1, Z1) in the user coordinate system 1; through the matrix M02, the three-dimensional coordinates (X0, Y0, Z0) in the global coordinate system can be mapped to the three-dimensional coordinates (X2, Y2, Z2) in the user coordinate system 2; through the matrix M03, the three-dimensional coordinates (X0, Y0, Z0) in the global coordinate system can be mapped to the three-dimensional coordinates (X3, Y3, Z3) in the user coordinate system 3.

[0054] Furthermore, based on the node coordinate transformation matrix corresponding to each user coordinate system, a transformation relationship between the two user coordinate systems is established, so that the coordinates in one user coordinate system are transformed with the coordinates in the other user coordinate system.

[0055] It should be noted that a user coordinate transformation matrix corresponding to one of the user coordinate systems relative to the other user coordinate system is established based on the node coordinate transformation matrices corresponding to the two user coordinate systems. Through the user coordinate transformation matrix corresponding to one of the user coordinate systems relative to the other user coordinate system, the three-dimensional coordinates in one of the user coordinate systems can be mapped to the three-dimensional coordinates in the other user coordinate system; through the inverse matrix of the user coordinate transformation matrix corresponding to one of the user coordinate systems relative to the other user coordinate system, the three-dimensional coordinates in the other user coordinate system can be mapped to the three-dimensional coordinates in one of the user coordinate systems. Therefore, by establishing a conversion relationship between the two user coordinate systems, the model elements in one of the user coordinate systems can be converted to the other user coordinate system for representation and calculation, and vice versa.

[0056] For example, Figure 2 As shown, based on the node coordinate transformation matrix M10 corresponding to the user coordinate system 1 and the node coordinate transformation matrix M20 corresponding to the user coordinate system 2, the user coordinate transformation matrix M12 corresponding to the user coordinate system 1 relative to the user coordinate system 2 is established; then through the matrix M12, the three-dimensional coordinates (X1, Y1, Z1) in the user coordinate system 1 can be mapped to the three-dimensional coordinates (X2, Y2, Z2) in the user coordinate system 2. The inverse matrix M21 of the matrix M12 is established, and then through the matrix M21, the three-dimensional coordinates (X2, Y2, Z2) in the user coordinate system 2 can be mapped to the three-dimensional coordinates (X1, Y1, Z1) in the user coordinate system 1. Similarly, based on the node coordinate transformation matrix M10 corresponding to the user coordinate system 1 and the node coordinate transformation matrix M30 corresponding to the user coordinate system 3, the user coordinate transformation matrix M13 corresponding to the user coordinate system 1 relative to the user coordinate system 3 is established; then, through the matrix M13, the three-dimensional coordinates (X1, Y1, Z1) in the user coordinate system 1 can be mapped to the three-dimensional coordinates (X3, Y3, Z3) in the user coordinate system 3; the inverse matrix M31 of the matrix M13 is established, and then, through the matrix M31, the three-dimensional coordinates (X3, Y3, Z3) in the user coordinate system 3 can be mapped to the three-dimensional coordinates (X1, Y1, Z1) in the user coordinate system 1. Based on the node coordinate transformation matrix M20 corresponding to the user coordinate system 2 and the node coordinate transformation matrix M30 corresponding to the user coordinate system 3, a user coordinate transformation matrix M23 corresponding to the user coordinate system 2 relative to the user coordinate system 3 is established; then, through the matrix M23, the three-dimensional coordinates (X2, Y2, Z2) in the user coordinate system 2 can be mapped to the three-dimensional coordinates (X3, Y3, Z3) in the user coordinate system 3; an inverse matrix M32 of the matrix M23 is established, then, through the matrix M32, the three-dimensional coordinates (X3, Y3, Z3) in the user coordinate system 3 can be mapped to the three-dimensional coordinates (X2, Y2, Z2) in the user coordinate system 2.

[0057] It can be understood that for an existing geometric object, such as a model node, its geometric attributes are unique, and displaying the geometric object in different coordinate systems is just displaying the geometric object in different angles and directions.

[0058] Furthermore, according to specific business scenarios and modeling requirements, perform the following operations on the user coordinate system: Add a new user coordinate system; for example, to meet the needs of local detail modeling, add a new user coordinate system according to the current origin position and coordinate axis direction and name it; Dynamically modify and update the defined unreasonable user coordinate system; Dynamically delete duplicated or invalidly defined user coordinate systems.

[0059] It should be noted that by calling the corresponding API interface in BIM-related software and programming to implement user coordinate system related functions, users are allowed to add, delete and modify user coordinate systems at any time according to specific business scenarios and modeling requirements during interactive modeling. The user coordinate system can be modified and updated by changing at least one parameter of the origin position and coordinate axis direction of the user coordinate system and saving it. The origin position of the user coordinate system can be changed by moving, and the coordinate axis direction of the user coordinate system can be changed by rotating.

[0060] Furthermore, perform the following operations on the user coordinate system: Control the visibility of the defined user coordinate system; Switches between defined user coordinate systems.

[0061] It should be noted that the display control refers to controlling the display of the user coordinate system in the modeling software. Through the display control, the user can control whether to display the user coordinate system, as well as the display mode and display accuracy of the user coordinate system according to the needs to meet different operation requirements. Allowing switching between defined user coordinate systems means allowing the current user coordinate system to be switched to another defined user coordinate system.

[0062] It can be understood that the present invention, by adding and managing several user coordinate systems according to key modeling areas, facilitates users to flexibly apply coordinate systems and collaborate in different business scenarios, thereby improving users' efficiency and accuracy in creating and modifying three-dimensional models, especially for large and complex three-dimensional projects to be modeled, and can significantly improve design quality and work efficiency.

[0063] Specifically, in step S12, during the interactive modeling process, among the defined user coordinate systems, the relevant user coordinate system is dynamically switched as the activated current user coordinate system as required.

[0064] Furthermore, the temporary reference plane is a virtual two-dimensional plane used to determine the position and direction of the operated model element.

[0065] It should be noted that the user selects whether to turn on and display the temporary reference plane through keyboard input or mouse click.

[0066] Furthermore, the user can set a new temporary reference plane at any time by determining the origin and axis direction of the temporary reference plane; The starting point of the current trial is used as the origin of the temporary reference plane; Determine the axis direction of the temporary reference plane based on face alignment; When the new temporary reference plane is set successfully, the life cycle of the original temporary reference plane ends, and the user can operate on the new temporary reference plane.

[0067] It should be noted that a new temporary reference plane is set at the beginning of each trial, and the origin position and axis direction of the temporary reference plane are adjusted by setting the new temporary reference plane.

[0068] In specific implementation, if no trial capture has been performed in the current user coordinate system, the origin of the current user coordinate system is used as the starting point of the first trial capture of the current trial capture; if a trial capture has been performed in the current user coordinate system, the end point of the last trial capture is used as the starting point of the first trial capture of the current trial capture; that is, the origin of the new temporary reference plane set at the beginning of the first trial capture of the current trial capture. During each trial, when the user moves the current capture point on the temporary reference plane, the temporary reference plane will immediately prompt the relative position of the current capture point relative to the origin of the temporary reference plane and the coordinate value in the user coordinate system.

[0069] It is understandable that multiple trial captures can be performed in the current user coordinate system, and each trial capture includes at least one trial. Through multiple trial captures, the starting point position of the first trial of the current trial capture can be moved to any point in the three-dimensional space.

[0070] Specifically, determining the axis direction of the temporary reference plane based on the surface alignment includes: If the temporary reference plane is aligned to the top view of the global coordinate system or the user coordinate system, that is, the XOY plane of the global coordinate system or the user coordinate system, the X-axis direction and Y-axis direction of the temporary reference plane are respectively the X-axis direction and Y-axis direction of the global coordinate system or the user coordinate system; If the temporary reference plane is aligned to the side view of the global coordinate system or the user coordinate system, that is, the YOZ plane of the global coordinate system or the user coordinate system, the X-axis direction and Y-axis direction of the temporary reference plane are the Y-axis direction and Z-axis direction of the global coordinate system or the user coordinate system respectively; If the temporary reference plane is aligned to the front view of the global coordinate system or the user coordinate system, that is, the XOZ plane of the global coordinate system or the user coordinate system, the X-axis direction and Y-axis direction of the temporary reference plane are respectively the X-axis direction and Z-axis direction of the global coordinate system or the user coordinate system; If the temporary reference plane is aligned to the primitive surface, the X-axis direction and Y-axis direction of the temporary reference plane are respectively the u-direction and the v-direction of the primitive surface; If the temporary reference plane is aligned to the primitive baseline, the X-axis direction of the temporary reference plane is the primitive baseline direction, and the Y-axis direction of the temporary reference plane is the cross of the Z-axis direction of the user coordinate system multiplied by the primitive baseline direction.

[0071] It should be noted that, according to actual needs, the axis direction of the temporary reference plane is determined by one of the above methods. The primitive is a component unit in the digital model, such as a component, equipment, etc. The primitive surface is a two-dimensional plane with two orthogonal u directions and v directions. The u direction represents the horizontal direction of the primitive surface, and the v direction represents the vertical direction of the primitive surface. The primitive baseline refers to the reference line used to determine the position and direction of the primitive.

[0072] During specific implementation, you can keep the absolute position of the mouse point unchanged, and rotate the temporary reference plane based on the mouse point until it is aligned with the specified plane; or, use the shortcut keys / right-click the mouse to select "Align to View", "Align to Specified Face", and then pick the corresponding plane or element baseline to automatically achieve face alignment.

[0073] Specifically, the display style of the temporary reference plane is fixed-pixel and has nothing to do with scaling, and the axis and direction of the temporary reference plane are marked by the display style.

[0074] It should be noted that the temporary reference plane has a border and an axis set within the border, and the display style of the temporary reference plane includes its axis width, border width, border size, axis color, and axis line type. Fixed pixels mean that the axis width, border width, and border size of the temporary reference plane are defined by a fixed number of pixel values, rather than being defined based on relative units. Therefore, regardless of the device or screen resolution, the number of pixels in the display style of the temporary reference plane remains unchanged. Moreover, when the user performs a zoom operation on the above-mentioned fixed-pixel display style, its actual pixel size remains unchanged, so that the display effect of the temporary reference plane is independent of the zoom operation, that is, the temporary reference plane will not be distorted, blurred, deformed, etc. due to the user zooming in or out of the key modeling area, ensuring that the temporary reference plane maintains a clear and accurate display effect.

[0075] It can be understood that designing the display style of the temporary reference plane to be fixed-pixel and independent of scaling has the following advantages: First, regardless of the device, screen resolution, or zoom ratio, the temporary reference plane can maintain a clear, accurate, and consistent display effect without distortion, blur, or deformation. The axis color will not deviate due to scaling operations, making the axis color display more stable. Second, since the display effect of the temporary reference plane will not change due to the user's zooming operation, it is easier for users to operate on the temporary reference plane intuitively, reducing the probability of misoperation, improving operation efficiency, and enhancing the user's interactive modeling experience; Thirdly, there is no need to write a large amount of code to adapt to various different devices, screen resolutions, or scaling ratios, reducing the development workload and improving the development efficiency, which provides a basis for BIM-related software to support multiple platforms (such as iOS, Android, etc.), multiple architectures (such as x86, x64, etc.), and multiple systems (Windows, Linux, etc.), from the desktop to the mobile terminal and so on.

[0076] Exemplarily, the default display style of the temporary reference plane is as Figure 3 shown. Among them, the straight line where the red line segment is located represents the X-axis of the temporary reference plane, the straight line where the green line segment is located represents the Y-axis of the temporary reference plane, the end of the red line segment far from the virtual line segment represents the positive direction of the X-axis of the temporary reference plane, and the end of the green line segment far from the virtual line segment represents the positive direction of the Y-axis of the temporary reference plane.

[0077] Furthermore, by default, the XOY plane of the current user coordinate system is used as the temporary reference plane, and a new temporary reference plane can be dynamically set as needed.

[0078] It should be noted that the temporary reference plane is independent of the user coordinate system. Therefore, when the user transforms the temporary reference plane, it will not affect the current user coordinate system. In the current user coordinate system, the user can set a new temporary reference plane multiple times as needed, thereby changing the direction required for user operations multiple times.

[0079] It can be understood that in the present invention, by transforming the temporary reference plane, the direction required for user operations is changed. When it is necessary to frequently transform the direction and angle of the model elements to be operated in a complex 3D modeling scenario, for example, when the user needs to frequently draw 3D lines not on the same plane, the required direction and angle can be more flexibly responded to through the temporary reference plane. And the change of the temporary reference plane does not affect the current user coordinate system, that is, the current user coordinate system can remain unchanged. Therefore, when it is necessary to frequently transform the direction and angle of the model elements to be operated, there is no need to frequently switch the current user coordinate system, improving the work efficiency.

[0080] Furthermore, the trial-and-error snapping refers to, during the interactive modeling process, in an interactive manner, dynamically positioning the snapping point to the required snapping position for snapping through continuous trial-and-error; the snapping position can be any point in three-dimensional space.

[0081] Specifically, the trial-and-error snapping includes at least one trial. For each trial, a new temporary reference plane is established, and on the temporary reference plane, the current snapping point is moved from the starting position of this trial to the ending position of this trial; After each trial, the next trial can be continued until the snapping point is dynamically positioned to the required snapping position for snapping.

[0082] In specific implementation, shortcut keys or the right mouse button are used to distinguish whether it is the current capture point or the desired capture position.

[0083] It should be noted that a new temporary reference plane is set at the beginning of each trial, and the current trial is completed on the newly set temporary reference plane. Through at least one continuous trial, the capture point is accurately moved to the desired capture position, thereby achieving dynamic and precise positioning.

[0084] It is understandable that the current existing interaction methods usually input the coordinates of the required snap position through a command line or a pop-up window. Therefore, the user needs to determine the coordinate value of the snap position by calculation in advance; and the snap position is often not isolated, so the coordinate value of the snap position needs to be calculated based on the reference object, which is usually an existing component, axis, reference surface, etc. in the model. For example, the required snap position is the position where the new component needs to be placed. It is necessary to calculate the accurate coordinate value of the position where the new component needs to be placed in advance based on a certain switch cabinet already in the model as a reference object, so that the new component and the existing component have a correct relative position relationship in three-dimensional space, so that the various components of the model can be correctly connected to meet the design requirements. However, since three-dimensional modeling projects, especially power grid engineering projects, are often huge in size and the physical entity unit modeling is complex, on the one hand, it is difficult to find a suitable reference object for the required snap position in three-dimensional space; on the other hand, the developer needs to calculate the coordinate value of the required snap position. For example, when the required snap position is a certain angle after the current coordinate system is rotated and then shifted, it is difficult for the developer to calculate the coordinate value of the required snap position. Therefore, the current existing interaction methods are time-consuming and labor-intensive, reducing work efficiency. The present application is based on a temporary reference plane, and through tentative capture of the relative position of the dynamic tentative capture relative to the temporary reference plane, it realizes precise movement to the desired capture position in three-dimensional space in an interactive manner. There is no need to find a reference object, and there is no need to calculate the coordinate value of the required capture position in advance. Therefore, it not only greatly reduces the complexity of operations for developers in the interactive modeling process and improves the work efficiency of developers, but also improves the interactivity of BIM-related software and enhances the user experience.

[0085] It can be understood that the present invention dynamically sets a temporary reference plane as needed during the interactive modeling process, and uses tentative capture to perform three-dimensional precise mapping based on the temporary reference plane, providing a new three-dimensional modeling interaction mechanism and improving the user's operating logic. When performing three-dimensional mapping, the user does not need to calculate and input the three-dimensional coordinates of the end point, but reaches the desired end point in an interactive manner through continuous tentative capture, which not only significantly improves the user experience, but also improves work efficiency. The three-dimensional modeling interaction method provided by the present invention is suitable for two-dimensional and three-dimensional mapping, and two-dimensional and three-dimensional modeling can be performed under a unified interactive mechanism, thereby improving versatility. Moreover, when performing three-dimensional mapping, the required three-dimensional path does not need to be calculated based on the three-dimensional coordinates of the starting point and the end point through tentative capture, which reduces the amount of calculation and improves modeling efficiency.

[0086] For example, suppose you need to draw a three-dimensional straight line from Point0 (3, 3, 3) to Point2 (3, 4, 5) in the global coordinate system. As shown in Figure 4 (a), define the global coordinate system, the coordinates of the origin O of the global coordinate system are (0, 0, 0), the X axis of the global coordinate system is x, the Y axis is y, and the Z axis is z. Define the user coordinate system Ucs1, the origin O of Ucs1 is Point0, the X axis of Ucs1 is Ux, the Y axis is Uy, and the Z axis is Uz.

[0087] In the interactive modeling process, Ucs1 is used as the activated current user coordinate system. By default, the XOY plane of Ucs1 is used as the temporary reference plane, as shown in Figure 4 (b). Since it is the first trial capture, the origin of the temporary reference plane is at the origin Point0 of Ucs1, and the X-axis direction and Y-axis direction of the temporary reference plane are the X-axis direction and Y-axis direction of Ucs1 respectively. Point0 is the starting point of the first trial capture of the current trial capture. Click the mouse at Point0 to start the first trial capture of the current trial capture. Move a distance of 1 along the Y-axis direction on the temporary reference plane to move the capture point to the end point of the first trial capture, Point1. The coordinates of Point1 under Ucs1 are (0, 1, 0).

[0088] As shown in Figure 4 (c), by right-clicking the mouse and selecting "Align to View", the XOZ plane of the current user coordinate system is set as a new temporary reference plane. The origin of the temporary reference plane is at Point1, and the X-axis direction and Y-axis direction of the temporary reference plane are the X-axis direction and Z-axis direction of Ucs1 respectively. Point1 is the starting point of the second trial of the current trial capture. Click the mouse at Point1 to start the second trial of the current trial capture. Move a distance of 2 along the Y-axis direction on the temporary reference plane to move the capture point to the end point of the second trial. The coordinates of Point2 in Ucs1 are (0, 1, 2), and the coordinates in the global coordinate system are (3, 4, 5). Right-click and select "Trial Capture" and click the mouse to complete the current trial capture, and draw a three-dimensional straight line from the starting point of the first trial, Point0, to the end point of the second trial, Point2.

[0089] It can be understood that by tentative capture, the precise positioning of Point2 is decomposed into continuous trials, which is equivalent to first moving a distance of 1 along the Uy coordinate axis of Ucs1 at Point0, and then moving a distance of 2 along the Uz coordinate axis of Ucs1, so as to reach the desired capture position Point2 for capture. In addition, for more complex situations, for example, the required capture position is to rotate the XOY plane of the current user coordinate system 20 degrees clockwise and then move a distance of 20 in the horizontal direction. Then, the horizontal graphic element can be rotated 20 degrees clockwise in the current user coordinate system and then its primitive surface can be picked up. The axis direction of the temporary reference plane is determined by aligning the temporary reference plane to the primitive surface, and the temporary reference plane is moved along the X-axis direction by a distance of 20 to the desired capture position. Therefore, the interactive method provided by the present application greatly reduces the complexity of the operation of developers in the interactive modeling process, improves the work efficiency of developers, and improves the interactivity of BIM-related software and enhances user experience.

[0090] Specifically, tentative capture is used to determine the required capture position, and model elements in the modeling project are created, placed, and edited based on the required capture position to achieve three-dimensional precise mapping.

[0091] It should be noted that new model elements need to be created and placed, while existing model elements in the project to be modeled need to be modified, moved, copied, mirrored, arrayed, and other editing actions.

[0092] It can be understood that the present invention facilitates users to perform modeling operations in large-scale space by dividing key modeling areas and defining several user coordinate systems; and by using trial capture to perform three-dimensional precise mapping, the nonlinear characteristics of three-dimensional objects can be flexibly and accurately drawn. Therefore, the present invention is applicable to other engineering design business scenarios, especially to power grid engineering design, and improves versatility.

[0093] Embodiment 2: Another specific embodiment of the present invention discloses a 3D modeling interaction system based on BIM. As Figure 5 shown, the system includes: A coordinate system management module, configured to manage the global coordinate system and the user coordinate system, and send the current user coordinate system to the temporary reference plane management module and the tentative capture module; A temporary reference plane management module, configured to set a temporary reference plane in the current user coordinate system, and send the temporary reference plane to the tentative capture module; A tentative capture module, configured to, based on the temporary reference plane, in the process of interactive modeling, in an interactive manner, dynamically position the capture point to the required capture position for capture through continuous tentative probing; the capture position can be any point in the three-dimensional space.

[0094] Further, the coordinate system management module includes a global coordinate system management module, a user coordinate system management module, and a coordinate system conversion module; The global coordinate system management module is configured to establish a global coordinate system as the benchmark for the project to be modeled; The user coordinate system management module is configured to establish a user coordinate system as a local coordinate system; perform addition, deletion, modification, visibility control, and switching on the user coordinate system; and send the current user coordinate system to the temporary reference plane management module and the tentative capture module; The coordinate system conversion module is configured to establish the conversion relationship between each user coordinate system and the global coordinate system.

[0095] Specifically, the world coordinate system can be used as the global coordinate system, or the center of the project to be modeled can be used as the origin of the global coordinate system.

[0096] Specifically, according to the specific business scenario and modeling requirements, the following operations are performed through the user coordinate system management module: Add a user coordinate system; for example, for the local detail modeling requirement, add a user coordinate system according to the current origin position and axis direction and name it; Dynamically modify and update the defined unreasonable user coordinate system; Dynamically delete the repeatedly defined or invalidly defined user coordinate system; Perform visibility control on the defined user coordinate system; Switch between the defined user coordinate systems.

[0097] Specifically, during the interactive modeling process, the user coordinate system management module dynamically switches relevant user coordinate systems as the activated current user coordinate system among the defined user coordinate systems according to needs.

[0098] Specifically, the coordinate system conversion module establishes the conversion relationship between each user coordinate system and the global coordinate system based on the node coordinate transformation matrix corresponding to each user coordinate system, so as to convert the coordinates under each user coordinate system and the coordinates under the global coordinate system.

[0099] Furthermore, the coordinate system conversion module is also used to establish the conversion relationship between user coordinate systems.

[0100] Specifically, the coordinate system conversion module establishes the conversion relationship between two user coordinate systems based on the node coordinate transformation matrix corresponding to each user coordinate system, so as to convert the coordinates under one user coordinate system and the coordinates under the other user coordinate system.

[0101] Furthermore, the user can set a new temporary reference plane at any time through the temporary reference plane management module. When the new temporary reference plane is successfully set, the life cycle of the original temporary reference plane ends, and the user operates on the new temporary reference plane.

[0102] Furthermore, the display style of the temporary reference plane is set through the temporary reference plane management module.

[0103] Specifically, the display style of the temporary reference plane is fixed-pixel and independent of scaling, and the axis and direction of the temporary reference plane are marked through the display style.

[0104] Furthermore, the tentative capture includes at least one tentative, and a new temporary reference plane is established for each tentative. On the temporary reference plane, the current capture point is moved from the starting position of this tentative to the ending position of this tentative; After each tentative, the next tentative can continue until the capture point is dynamically positioned to the required capture position for capture.

[0105] Furthermore, the origin and axis direction of the temporary reference plane are set through the temporary reference plane management module; The starting position of the current tentative is used as the origin of the temporary reference plane; The axis direction of the temporary reference plane is determined based on face alignment.

[0106] It should be noted that a new temporary reference plane is set at the beginning of each tentative, and the origin position and axis direction of the temporary reference plane are adjusted by setting the new temporary reference plane.

[0107] In specific implementation, if no trial capture has been performed in the current user coordinate system, the origin of the current user coordinate system is used as the starting point of the first trial capture of the current trial capture; if a trial capture has been performed in the current user coordinate system, the end point of the last trial capture is used as the starting point of the first trial capture of the current trial capture; that is, the origin of the new temporary reference plane set at the beginning of the first trial capture of the current trial capture. During each trial, when the user moves the current capture point on the temporary reference plane, the temporary reference plane will immediately prompt the relative position of the current capture point relative to the origin of the temporary reference plane and the coordinate value in the user coordinate system.

[0108] Specifically, determining the axis direction of the temporary reference plane based on the surface alignment includes: Align the temporary reference plane to the top view of the global coordinate system or the user coordinate system, that is, the XOY plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the X-axis direction and Y-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the side view of the global coordinate system or the user coordinate system, that is, the YOZ plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the Y-axis direction and Z-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the front view of the global coordinate system or the user coordinate system, that is, the XOZ plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the X-axis direction and Z-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the primitive surface. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the u-direction and v-direction of the primitive surface respectively. Align the temporary reference plane to the primitive baseline. At this time, the X-axis direction of the temporary reference plane is the primitive baseline direction, and the Y-axis direction of the temporary reference plane is the cross product of the Z-axis direction of the user coordinate system and the primitive baseline direction.

[0109] It should be noted that, according to actual needs, the axial direction of the temporary reference plane is determined by one of the above methods.

[0110] During specific implementation, you can keep the absolute position of the mouse point unchanged, and rotate the temporary reference plane based on the mouse point until it is aligned with the specified plane; or, use the shortcut keys / right-click the mouse to select "Align to View", "Align to Specified Face", and then pick the corresponding plane or element baseline to automatically achieve face alignment.

[0111] Embodiment 3: Another specific embodiment of the present invention discloses a BIM-based three-dimensional modeling electronic device, the electronic device comprising: Memory for storing computer programs; A processor is used to execute the computer program to implement the BIM-based three-dimensional modeling interaction method as described above.

[0112] Embodiment 4: Another specific embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the BIM-based three-dimensional modeling interaction method as described above are implemented.

[0113] Compared with the prior art, the BIM-based 3D modeling interactive method, system, electronic device and storage medium provided by the present invention have the following beneficial effects: 1. The present invention adds and manages several user coordinate systems according to key modeling areas, which facilitates users to flexibly apply coordinate systems and work together in different business scenarios, thereby improving the efficiency and accuracy of users when creating and modifying three-dimensional models. In particular, for large and complex three-dimensional projects to be modeled, the present invention can significantly improve the design quality and work efficiency.

[0114] 2. The present invention dynamically sets a temporary reference plane as needed during the interactive modeling process, and uses tentative capture based on the temporary reference plane to perform three-dimensional precise mapping, providing a new three-dimensional modeling interactive mechanism and improving the user's operation logic. When performing three-dimensional mapping, the user does not need to calculate and input the three-dimensional coordinates of the end point, but instead moves the capture point to the desired capture position through continuous trial and error in an interactive manner, which not only significantly improves the user experience, but also improves work efficiency.

[0115] 3. The three-dimensional modeling interaction method provided by the present invention is applicable to two-dimensional and three-dimensional mapping, and can perform two-dimensional and three-dimensional modeling under a unified interaction mechanism, thereby improving versatility. Moreover, when performing three-dimensional mapping, the three-dimensional path required for calculation does not need to be calculated based on the three-dimensional coordinates of the starting point and the end point by trial and error, thereby reducing the amount of calculation and improving the modeling efficiency.

[0116] 4. The present invention changes the direction required for user operation by transforming the temporary reference plane. When the direction and angle of the model elements being operated need to be transformed at high frequency in complex three-dimensional modeling scenarios, the temporary reference plane can more flexibly respond to the frequent changes in the required direction and angle. Moreover, the change of the temporary reference plane does not affect the current user coordinate system, that is, the current user coordinate system can remain unchanged. Therefore, when the direction and angle of the model elements being operated need to be transformed at high frequency, there is no need to frequently switch the current user coordinate system, thereby improving work efficiency.

[0117] 5. The present invention divides key modeling areas and defines several user coordinate systems, making it easier for users to perform modeling operations in large-scale space; by using trial capture to perform three-dimensional precise mapping, the nonlinear characteristics of three-dimensional objects can be flexibly and accurately drawn. Therefore, the present invention is applicable to other engineering design business scenarios, especially to power grid engineering design, and improves versatility.

[0118] It should be noted that any process or method description in the flowchart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred implementation of the present solution includes other implementations, in which the functions may not be performed in the order shown or discussed, including performing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the implementation of the present solution. The processor performs the various methods and processes described above. For example, the method implementation in the present solution can be implemented as a software program, which is tangibly contained in a machine-readable medium, such as a memory. In some embodiments, part or all of the software program can be loaded and / or installed via a memory and / or a communication interface. When the software program is loaded into the memory and executed by the processor, one or more steps in the method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform one of the above methods in any other appropriate manner (e.g., by means of firmware).

[0119] It should also be noted that, in this application, relational terms such as first and second are only used 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 "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0120] Those skilled in the art will 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 composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0121] Furthermore, those skilled in the art can understand that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0122] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A BIM-based 3D modeling interactive method, characterized in that: The method comprises the following steps: Initiate interactive modeling, divide key modeling areas according to business scenarios, and define several user coordinate systems based on the key modeling areas; Among them, the user coordinate system is allowed to be added, deleted, modified, displayed and hidden, and switched; During the interactive modeling process, the relevant user coordinate system is dynamically switched as the current user coordinate system as needed; Based on the current user coordinate system, dynamically setting a temporary reference plane as needed; Based on the temporary reference plane, tentative capture is used to determine the capture position, and model elements are created, placed, and edited at the capture position to perform three-dimensional precise mapping.

2. The BIM-based three-dimensional modeling interactive method according to claim 1, characterized in that: The temporary reference plane is a virtual two-dimensional plane used to determine the position and orientation of the operated model element.

3. The BIM-based three-dimensional modeling interactive method according to claim 1, characterized in that: The tentative capture refers to dynamically positioning the capture point to the desired capture position for capture through continuous trial in an interactive manner during the interactive modeling process; the capture position can be any point in the three-dimensional space.

4. The BIM-based three-dimensional modeling interactive method according to claim 3, characterized in that: The tentative capture includes at least one trial, each trial establishes a new temporary reference plane, and moves the current capture point from the starting position of the trial to the end position of the trial on the temporary reference plane; After each trial, you can continue to the next trial until the snap point is dynamically positioned to the desired snap position.

5. The BIM-based three-dimensional modeling interactive method according to claim 4, characterized in that: Set a new temporary reference plane by determining the origin and axis direction of the temporary reference plane; The starting point of the current trial is used as the origin of the temporary reference plane; Determine the axis direction of the temporary reference plane based on face alignment; When the new temporary reference plane is set successfully, the life cycle of the original temporary reference plane ends, and the user can operate on the new temporary reference plane.

6. The BIM-based three-dimensional modeling interactive method according to claim 5, characterized in that: Based on the specific business scenario and modeling requirements, perform the following operations on the user coordinate system: Added user coordinate system; Dynamically modify and update the defined unreasonable user coordinate system; Dynamically delete duplicate or invalidly defined user coordinate systems; Control the visibility of the defined user coordinate system; Switches between defined user coordinate systems.

7. The BIM-based three-dimensional modeling interactive method according to claim 6, characterized in that: During the interactive modeling process, the relevant user coordinate system is dynamically switched as the active current user coordinate system among the defined user coordinate systems as needed.

8. The BIM-based three-dimensional modeling interactive method according to claim 7, characterized in that: By default, the XOY plane of the current user coordinate system is used as the temporary reference plane, and a new temporary reference plane is dynamically set as needed.

9. The BIM-based three-dimensional modeling interactive method according to claim 7, characterized in that: If no trial capture has been performed in the current user coordinate system, the origin of the current user coordinate system will be used as the starting point of the first trial capture of the current trial capture; if a trial capture has been performed in the current user coordinate system, the end point of the last trial capture will be used as the starting point of the first trial capture of the current trial capture.

10. The BIM-based three-dimensional modeling interactive method according to claim 9, characterized in that: The step of determining the axis direction of the temporary reference plane based on the surface alignment comprises: Align the temporary reference plane to the top view of the global coordinate system or the user coordinate system, that is, the XOY plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the X-axis direction and Y-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the side view of the global coordinate system or the user coordinate system, that is, the YOZ plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the Y-axis direction and Z-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the front view of the global coordinate system or the user coordinate system, that is, the XOZ plane of the global coordinate system or the user coordinate system. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the X-axis direction and Z-axis direction of the global coordinate system or the user coordinate system respectively. Align the temporary reference plane to the primitive surface. At this time, the X-axis direction and Y-axis direction of the temporary reference plane are the u-direction and v-direction of the primitive surface respectively. Align the temporary reference plane to the primitive baseline. At this time, the X-axis direction of the temporary reference plane is the primitive baseline direction, and the Y-axis direction of the temporary reference plane is the cross product of the Z-axis direction of the user coordinate system and the primitive baseline direction.

11. The BIM-based 3D modeling interactive method according to claim 1, characterized in that: The interactive modeling is started, key modeling areas are divided according to business scenarios, and a number of user coordinate systems are defined based on the key modeling areas, including: Open the modeling software to start interactive modeling; determine the specific business scenario, and divide the project to be modeled into several key modeling areas according to the business scenario; Establishing a global coordinate system, and defining at least one user coordinate system in each of the key modeling areas; A transformation relationship between each user coordinate system and the global coordinate system is established.

12. The BIM-based 3D modeling interactive method according to claim 1, characterized in that: The display style of the temporary reference plane is fixed pixel and has nothing to do with the scale. The axis and direction of the temporary reference plane are marked by the display style.

13. The BIM-based 3D modeling interactive method according to claim 1, characterized in that: In each of the key modeling areas, at least one user coordinate system is defined as a local coordinate system according to actual modeling conditions and needs.

14. A BIM-based 3D modeling interactive system, characterized in that: The system comprises: A coordinate system management module is used to manage the global coordinate system and the user coordinate system, and send the current user coordinate system to the temporary reference plane management module and the tentative capture module; A temporary reference plane management module is used to set a temporary reference plane in the current user coordinate system and send the temporary reference plane to the tentative capture module; The tentative capture module is used to dynamically locate the capture point to the required capture position for capture through continuous trial in an interactive manner based on a temporary reference plane during the interactive modeling process; the capture position can be any point in the three-dimensional space.

15. The BIM-based three-dimensional modeling interactive system according to claim 14, characterized in that: The coordinate system management module includes a global coordinate system management module, a user coordinate system management module and a coordinate system conversion module; The global coordinate system management module is used to establish a global coordinate system as a reference for the project to be modeled; The user coordinate system management module is used to establish a user coordinate system as a local coordinate system; to add, delete, modify, control the visibility and switch of the user coordinate system; And send the current user coordinate system to the temporary reference plane management module and the tentative capture module; The coordinate system conversion module is used to establish a conversion relationship between each user coordinate system and the global coordinate system.

16. The BIM-based three-dimensional modeling interactive system according to claim 14, characterized in that: The coordinate system conversion module is also used to establish a conversion relationship between user coordinate systems.

17. The BIM-based three-dimensional modeling interactive system according to claim 15, characterized in that: The coordinate system conversion module establishes a conversion relationship between each user coordinate system and the global coordinate system based on the node coordinate transformation matrix corresponding to each user coordinate system, so as to convert the coordinates in each user coordinate system with the coordinates in the global coordinate system.

18. The BIM-based three-dimensional modeling interactive system according to claim 16, characterized in that: The coordinate system conversion module establishes a conversion relationship between two user coordinate systems based on the node coordinate transformation matrix corresponding to each user coordinate system, so that the coordinates in one user coordinate system are converted to the coordinates in another user coordinate system.

19. A three-dimensional modeling electronic device based on BIM, characterized in that: The electronic device comprises: Memory for storing computer programs; A processor, configured to execute the computer program to implement the BIM-based three-dimensional modeling interaction method as described in any one of claims 1 to 13.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the BIM-based three-dimensional modeling interaction method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • Chemical pipeline visualization method based on BIM and UE5

    CN117874893A

  • Mobile device locator adapter system for location based services

    US20030126264A1

Cited By

  • Method and device for lightening highway guardrail model based on Cesium

    CN120805281A