Method and system for three-dimensional modeling of factory buildings based on a module library
By adopting a module-based 3D modeling method, efficient, accurate updates and collaboration of 3D modeling of factory buildings are achieved, solving the problems of low efficiency and difficult data interaction in existing technologies, and improving the adaptability and accuracy of factory building modeling.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2026-04-14
AI Technical Summary
Existing 3D modeling technology is inefficient when dealing with factory buildings, cannot fully reflect the details and complexity of the actual production process, is difficult to update quickly, and has difficulties in data exchange between different professional fields, thus failing to meet the flexible and ever-changing development needs of factory buildings.
A module-based 3D modeling method is adopted, which realizes standardized data storage and transmission through a unified shared module library, supports collaborative work in different professional fields, uses the module library to convert and edit the format of sub-components, establishes the relationship between devices to keep the application alive, and improves the efficiency of human-computer interaction.
It enables efficient, accurate updates and collaboration in 3D modeling of factory buildings, improves data interaction efficiency, reduces resource consumption, enhances model accuracy and consistency, and adapts to the rapidly changing needs of factory buildings.
Smart Images

Figure CN120764041B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of 3D modeling and human-computer interaction technology, and in particular relates to a method and system for 3D modeling of factory buildings based on a module library. Background Technology
[0002] In the process of modern industrial development, the design, construction, and subsequent operation and maintenance management of factory buildings increasingly rely on digital technologies. Compared with ordinary civil buildings, factory buildings have unique structural and functional requirements, such as large-scale production workshops, complex equipment layouts, special logistics channels, and various supporting facilities. 3D modeling technology, as a key means of digitally representing factory buildings, can provide visualization support for the entire lifecycle of a factory. Examples include the visualization editing method for production scheduling in 3D virtual factories proposed in Chinese invention patent CN115374641 A, and the rendering method for industrial 3D models proposed in Chinese invention patent CN118193451A.
[0003] However, existing 3D architectural modeling technologies reveal numerous problems when applied to factory buildings. Firstly, existing factory models are typically simplifications and abstractions of the real world. Factory buildings have complex internal structures and numerous, diverse pieces of equipment. Traditional modeling methods are inefficient at handling this complex information and cannot fully reflect all the details and complexities of the actual production process. This simplification may lead to discrepancies between the model's predictions or simulations and reality in certain situations. Secondly, factory buildings undergo frequent renovations, expansions, and equipment updates. With changes in actual production and technological advancements, models require regular maintenance and updates. Existing technologies struggle to quickly and effectively modify and adjust models in real time, failing to meet the flexible and ever-changing development needs of factories. Furthermore, the entire lifecycle management of factory buildings involves collaborative work across multiple professional fields, such as architectural design, structural engineering, equipment installation, and production operations. Existing 3D modeling technologies are inadequate in terms of data sharing and collaboration. Different professional fields use different modeling software and data formats, leading to difficulties in data interaction and hindering information flow.
[0004] Therefore, there is an urgent need for a 3D rapid modeling method specifically for factory buildings to solve the problems of low efficiency, difficulty in updating, and poor collaboration in existing technologies when processing factory modeling. This method would enable efficient, accurate, easy-to-update, and collaborative 3D rapid modeling of factory buildings, providing strong support for the design, construction, and operation and maintenance management of factories. Summary of the Invention
[0005] To address the aforementioned technical problems, this invention proposes a method and system for 3D modeling of factory buildings based on a module library.
[0006] In a first aspect of the invention, a method for 3D modeling of factory buildings based on a module library is proposed, the method being applied to a first device configured with a first 3D modeling application;
[0007] The method includes the following steps:
[0008] On the first device, open the 3D modeling structure file of the first factory building based on the first 3D modeling application;
[0009] After making a first edit to the first sub-component in the structure file, the first sub-component is uploaded to the module library in a first format;
[0010] The second device downloads the first sub-component from the module library for a second editing;
[0011] The second device is configured with a second 3D modeling application, which performs the second editing.
[0012] In one scenario, the first sub-component is uploaded to the module library by the first device in response to a request from the second device;
[0013] After the first sub-component is uploaded to the module library in a first format, the module library converts the first sub-component in the first format into a second format;
[0014] The second device downloads the first sub-component of the second format from the module library and performs a second editing.
[0015] In another scenario, the first sub-component is actively uploaded to the module library by the first device;
[0016] After the first sub-component is uploaded to the module library in a first format, the module library converts the first sub-component in the first format into a third format;
[0017] The third format is determined based on statistical data of device attributes from historical downloads of the first sub-component.
[0018] In a second aspect of the invention, a method for 3D modeling of factory buildings based on a module library is proposed, the method being applied to a second device configured with a second 3D modeling application.
[0019] The method includes the following steps:
[0020] After the second device establishes a real-time communication request with the first device, it sends an update request for the first sub-component to the first device.
[0021] In response to the update request, the first device uploads the first sub-component, after the first editing, to the module library.
[0022] The module library converts the first sub-component into a second editing format;
[0023] The second device downloads the first sub-component in the second format from the module library and performs a second editing;
[0024] After the first device uploads the first sub-component, which has been edited, to the module library based on the first 3D modeling application, it switches the first 3D modeling application to the background and keeps the first 3D modeling application alive based on the association established between the second device and the first device.
[0025] Specifically, after the second device performs a second edit on the first sub-component, the association relationship between the second device and the first device is established.
[0026] The first 3D modeling application supports a first editing format; the second 3D modeling application supports a second editing format, wherein the first editing format is different from the second editing format.
[0027] In a third aspect of the invention, a 3D modeling system for factory buildings based on a module library is also proposed. The system includes a shared module library, a first device and a second device that can communicate with each other, and the first device and the second device are configured to support 3D modeling applications with different editing formats.
[0028] On the first device, the first 3D modeling application opens the 3D modeling structure file of the first factory building.
[0029] After the first device performs a first edit on the first sub-component in the structure file, it uploads the first sub-component to the shared module library in a first edit format and switches the first 3D modeling application to the background.
[0030] The shared module library converts the first sub-component into a second editing format;
[0031] The second device downloads the first sub-component of the second editing format from the module library and performs a second editing;
[0032] After the second device performs a second edit on the first sub-component, an association relationship is established between the second device and the first device, and the first 3D modeling application is kept alive based on the association relationship.
[0033] The system also includes a component self-drawing module. The first device or the second device calls the component self-drawing module to draw a third sub-component, which is a component of the first factory building 3D model structure file.
[0034] The system also includes a visualization module, which is invoked by the first device or the second device to visualize the execution of the first edit or the second edit.
[0035] Traditional 3D modeling techniques suffer from a lack of unified data interaction standards and sharing platforms. Data transmission between different devices and software often requires complex format conversions, leading to data loss, incomplete information, and low interaction efficiency. This invention, based on a unified shared module library, achieves standardized data storage and transmission. The first device uploads the edited first sub-component to the module library in a first format, and the second device can directly download it from the library without additional data format conversion. This collaborative working mode based on the shared module library allows personnel from different professions and fields to fully leverage their respective strengths and optimize 3D modeling results in multiple dimensions. Furthermore, the automatic keep-alive application based on the editing correspondence between the first and second devices in this invention's technical solution prevents related modeling programs from being recycled, improving human-computer interaction efficiency. Its specific advantages and implementation principles will be further detailed in the specific embodiments section with reference to the accompanying drawings. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a schematic diagram of the main execution flow of a module library-based 3D modeling method for factory buildings according to an embodiment of the present invention on the first equipment side;
[0038] Figure 2 yes Figure 1 A flowchart illustrating the interaction between the first and second devices in the method described above;
[0039] Figure 3 yes Figure 1 The flowchart of the method in the case where the first device does not interact with other devices;
[0040] Figure 4 This is a schematic diagram of the main execution flow of a module library-based 3D modeling method for factory buildings on the second equipment side, according to an embodiment of the present invention.
[0041] Figure 5 This is a schematic diagram of the hardware unit composition of a factory building 3D modeling system based on a module library, according to an embodiment of the present invention. Detailed Implementation
[0042] In the specific embodiments of this application, if the embodiments of the relevant technical solutions involve user-related data, then when the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0043] The embodiments in this section include method embodiments and system (product) embodiments. The method embodiments include method steps "applied to a first device" and "applied to a second device".
[0044] It should be understood that the terms "first device" and "second device" are used only to distinguish between two different interactive users (e.g., first user and second user). Therefore, "first device" corresponds to the first user, and "second device" corresponds to the second user. In subsequent embodiments, "first user" and "first device" can be equivalent, and "second user" and "second device" can be equivalent and used interchangeably. In different contexts, the description of "first user" or "first device" may be used based on different descriptive contexts.
[0045] Similarly, in subsequent embodiments, "format" is the same concept as "editable format" and "editable format".
[0046] Furthermore, when the method is described as "applied to a first device" or "applied to a second device," it only means that the method is described primarily from the perspective of the "first device" or the "second device," and does not mean that all steps of the method are executed solely by the first device or the second device. In fact, unless specifically limited, the implementation process of most method embodiments involves the interaction between the first device and the second device.
[0047] The device attributes of the first device and the second device can be the same or different. Understandably, when the attributes of the first device and the second device are exactly the same, data interaction between them is usually quite simple, for example, without needing to perform the format conversion process described in the method.
[0048] Therefore, the embodiments of the present invention are mainly aimed at situations where the attributes of the first device and the second device are not completely the same. For example, the first device and the second device have different types of 3D modeling applications installed, the first device and the second device support different display formats of 3D modeling objects, the first device and the second device have different terminal types (desktop terminal → mobile terminal; Android terminal → non-Android terminal, etc., etc.).
[0049] Based on the above description, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0050] See Figure 1 , Figure 1 This is a schematic diagram of the main execution flow of a module library-based 3D modeling method for factory buildings according to an embodiment of the present invention on the first equipment side.
[0051] exist Figure 1 In this context, the method is applied to a first device, and the first device configures a first 3D modeling application, which includes the following three main steps S1-S3 (step numbers are omitted in the accompanying drawings):
[0052] S1: Open the 3D modeling structure file of the first factory building on the first device based on the first 3D modeling application;
[0053] S2: After making a first edit to the first sub-component in the structure file, upload the first sub-component to the module library in a first format;
[0054] S3: The second device downloads the first sub-component from the module library for second editing; the second device configures a second 3D modeling application, and the second 3D modeling application executes the second editing.
[0055] In various embodiments of the present invention, the 3D modeling applications differ across different fields / devices. For example, the first user (first device) is an architect, and the second user (second device) is an electrical engineer, mechanical engineer, or chemical engineer.
[0056] In 3D modeling of factory buildings, after the architect completes the basic architectural structure design of a certain component, the electrical engineer and mechanical engineer continue to edit the electrical wiring, mechanical equipment layout, and other aspects of that component.
[0057] Ideally, architects frequently use SketchUp due to its ease of use, abundant plugins, and ability to quickly build architectural models. SketchUp supports exporting SKP format files, its native format, which fully preserves model structure, materials, and other information; it also supports DWG and DXF formats, facilitating interaction with CAD and other software. For example, in the design of a commercial complex, the designer used SketchUp to quickly construct the building's exterior and interior spatial layout. After completing the preliminary design, the model was exported as a DWG file and handed over to the detailed design team for further refinement.
[0058] Revit is also highly favored by architects. It's a professional Building Information Modeling (BIM) software that enables full lifecycle management of buildings. Revit's native format is RVT, which integrates information from various architectural disciplines, such as structure, plumbing, and electrical systems. In the design of large hospital projects, architects use Revit to build the main building model and share the design results with various professional teams via the RVT format, allowing for collaborative design. Furthermore, Revit supports exporting to IFC format. As a universal data standard format in the construction industry, IFC facilitates data exchange between different BIM software programs and enables integration with other professional teams or software platforms.
[0059] For electrical engineers, EPLANProPanel is specifically designed for electrical control systems. It primarily supports the import of 3D models in STP format. During factory electrical equipment layout design, engineers can import 3D models of equipment in STP format into EPLANProPanel and utilize the software's intelligent component library, collision detection, and other functions to rationally arrange electrical equipment, optimize cabinet design, and ensure the stable operation of the electrical system.
[0060] CircuitWorks, as a plugin for SOLIDWORKS, is widely used in the field of electrical design. It supports industry-standard intermediate data formats (IDF), such as IDF2.0, IDF3.0, and IDF4.0, as well as PowerPCB's PADSASCII file format and the ProStepEDMD collaborative format used by Mentor Graphics and ProStepEDMD. Using these formats, electrical engineers can create 3D models of printed circuit boards (PCBs) within the SOLIDWORKS environment from files written by most electrical computer-aided design (ECAD) systems, facilitating collaborative design with mechanical engineers.
[0061] Mechanical engineers frequently use Pro / ENGINEER (Pro / E) in their work, especially excelling in mold design. Pro / E's native formats include PRT and ASM. PRT is used for part modeling, while ASM is used for assembly modeling, allowing for precise control of model parameters and enabling the design of complex mechanical structures. For example, in automotive parts mold design, after engineers complete the modeling of parts and assemblies in Pro / E, they save the design data using its native formats, providing an accurate basis for subsequent mold manufacturing. Pro / E also supports exporting to various common formats, such as STL, which can be used for 3D printing to verify models, and IGES, which facilitates data exchange with other CAD software.
[0062] Autodesk Fusion 360 is a comprehensive 3D modeling software that integrates design, manufacturing, and engineering analysis functions. It supports importing various formats, such as DWG, DXF, STEP, and IGES, to meet the integration needs of data from different sources. In mechanical product design, mechanical engineers can import DWG drawings from other departments or STEP format component models obtained from external suppliers to perform overall product design within Autodesk Fusion 360. They can then leverage its rich features to optimize the design and finally save the design results in supported formats such as F3D for easy use in subsequent manufacturing processes.
[0063] As can be seen, different users (devices / models) in different fields support different editable formats, and different devices also support different display formats. It is not possible to directly download the data file in the first format uploaded by the first user based on the first application to the second device for further editing based on the second application.
[0064] In related technologies, the solution to this type of problem is usually to perform data versioning (format conversion), that is, after the first user generates a data file in a first format, the first data file in the first format is converted into a second data file in a second format, or it is converted into a general data format or an intermediate data format, etc.
[0065] For example, common formats like STL, IGES, and STEP are widely used across different software. STL is commonly used in 3D printing; almost all 3D modeling software supports importing and exporting this format. It's often used for model appearance display and simple shape transfer, but it doesn't include detailed information such as materials and textures. IGES (Initial Graphics Exchange Specification) can be used to transfer geometric shapes, dimensions, and other information, and is widely used in mechanical design. However, it may have limitations in transferring surface information for complex models. STEP (Product Model Data Exchange Specification) is an internationally standard product data exchange format that can completely preserve the model's geometry, topology, material properties, and other information. It can effectively achieve data exchange between different software in multiple fields such as mechanical and architectural design, and is often used for data transfer throughout the entire product design process.
[0066] For example, some software uses specific intermediate data formats for data exchange. In the collaboration between electrical and mechanical design, IDF (the industry-standard intermediate data format) is commonly used for data exchange between printed circuit board (PCB) design software and mechanical design software. It can transfer PCB layout, routing, and other information to the mechanical design software, enabling collaboration between electrical and mechanical designs. Another example is the OBJ format, commonly used between 3D modeling and animation software. It supports the transfer of vertex, face, and texture coordinates, facilitating material and texture processing of models across different software.
[0067] However, the methods described above are all for overall format conversion of the target file. But in the 3D modeling scenario of factory buildings, compared with ordinary civil buildings, factory buildings have unique structural and functional requirements, such as large-area production workshops, complex equipment layouts, special logistics channels, and various supporting facilities; the internal structure of factory buildings is complex, with numerous and diverse equipment, and the corresponding 3D modeling structure files of factory buildings are quite large, requiring a large amount of storage space. If an overall conversion is performed, it will require a lot of resources and also have a significant delay.
[0068] Meanwhile, factory buildings undergo frequent renovations and expansions, and equipment upgrades are common. As actual production changes and technology advances, the model requires regular maintenance and updates. If the entire model structure file is converted after each edit (even a minor adjustment to a subcomponent), it will cause frequent system lags, severely impacting the user experience.
[0069] Furthermore, the invented 3D modeling system supports the import of various data sources during the modeling preparation stage. These data sources include architectural design drawings, structural drawings, and equipment layout drawings of the factory. During import, a unified coordinate system is established and multiple points are associated with the map. The data is then spatially aligned and matched to eliminate positional data errors, forming basic base map positional data, which lays the foundation for subsequent modeling work.
[0070] The system includes a built-in module library covering models of various buildings and structures. Each model contains detailed dimensional parameters, material properties, and animated demonstrations. This module library is built using a categorized storage system, classifying models according to multiple dimensions such as building type, function, and size range. For example, by building type, models are categorized into production (factories, workshops, etc.), warehousing (warehouses), office (office buildings), and auxiliary facilities (chimneys, power distribution rooms, etc.). By function, models are further subdivided; for example, factories can be categorized into machine shops, petrochemical refineries, etc. Size range serves as an auxiliary classification criterion, allowing users to quickly select models of specific specifications.
[0071] The categorized models will be stored in a specially constructed database using an efficient indexing algorithm for fast retrieval. Simultaneously, detailed metadata records will be created for each model, including model name, size, category, creation time, and model origin, facilitating management and maintenance.
[0072] The system's built-in module library provides users with a selection of architectural models, and users can also create their own model libraries by uploading model data in various formats. Similarly, uploaded models are stored in a specially constructed database, with detailed data records created for each model.
[0073] Whether it's a built-in model or a user-defined model, the system provides parametric adjustment functionality, allowing you to add adjustable parameters to each model and set reasonable ranges for parameter variation. For example, for a factory model, you can set the length parameter to vary from 50 to 200 meters, and the width parameter to vary from 30 to 100 meters.
[0074] For 3D modeling of building interiors, users can quickly draw walls, columns, doors, windows, openings, stairs, and other structures by clicking and dragging. Clicking the corresponding wall or column creation tool in the module library and defining the starting point with the mouse will automatically identify the drawing path and generate the corresponding 3D model. Users can also change relevant parameters in the attribute box, modifying attributes such as size, material, and color in real time and previewing the results.
[0075] For walls, when multiple walls intersect, the software automatically performs associative processing to ensure seamless connection at the wall junctions. Furthermore, when one wall is subsequently modified, the associated walls automatically adjust to maintain the overall structural integrity. Simultaneously, a built-in collision detection mechanism promptly alerts the user when a newly drawn wall collides with existing columns, doors, windows, or other structures, providing solutions for automatic avoidance or manual adjustment to prevent structural conflicts in the model.
[0076] The module library covers various common door and window types. Users can directly select the desired model from the library and insert it into the wall with one click. The system supports parameter modification, allowing users to adjust parameters such as door and window width, height, opening method, and material style, while previewing the modified effects in real time.
[0077] For doors and windows, when users place them on the wall, the system automatically detects the wall thickness and intelligently adapts the installation position and depth to ensure a perfect fit between the doors and windows and the wall. Users can also specify the installation position themselves.
[0078] The module library also covers various common stair types. Users can adjust basic parameters such as the starting point of the staircase, number of steps, step height, and width. The system will automatically update the staircase model based on these parameters.
[0079] In addition, the system provides basic geometric drawing tools developed based on a 3D image engine, with corresponding drawing logic code written for each tool. For example, the rectangle drawing tool obtains the coordinates of the two diagonal points of a rectangle through mouse click and drag-and-drop events, calculates the vertex coordinates of the rectangle, and draws it in the modeling scene. Editing operations such as stretching, rotating, and moving the shapes are achieved by modifying the vertex coordinates and transformation matrices. Boolean operations utilize the algorithm library provided by the 3D image engine to perform union, difference, and intersection operations on two or more geometric shapes to generate new geometric shapes. During the calculation process, the system automatically handles intersections and overlaps between shapes to ensure the accuracy of the calculation results.
[0080] During the modeling implementation phase, users can utilize drawing tools such as points, lines, rectangles, circles, and polygons to create simple geometric shapes. For example, if a rectangular factory building needs to be drawn in the modeling scene, the user can click to define the starting point of the rectangle, hold down the left mouse button, drag and drop it to the appropriate position, and release to draw the rectangle representing the factory building. Then, relevant parameters (such as building height, building type, building materials, etc.) are entered in the attribute box to generate the basic 3D model framework. Simultaneously, basic geometric shapes can be combined to obtain the required complex shape basic model. According to actual needs, the created 3D model framework can be edited and modified, such as adjusting dimensions, adding or deleting details, and modifying attributes.
[0081] On the plane where a hole needs to be created, users can use the methods described above to click on the dedicated hole drawing tool and draw basic closed shapes (such as circles, rectangles, polygons, etc.) to define the shape of the hole. For irregularly shaped holes, the outline of the hole can be freely adjusted by editing control points. For example, a rectangular hole can be transformed into a trapezoidal hole by dragging the control points. The system allows users to set the depth of the hole, creating through holes that penetrate the entire plane, or blind holes that exist only on one side of the plane.
[0082] The system provides geometric constraints and dimensional measurement / annotation functions to ensure that the dimensions and positions of drawn geometric figures meet design requirements. Geometric constraints are achieved by establishing constraint relationships between graphic elements. When a user selects the geometric constraint tool and specifies graphic elements, the system records the constraint conditions and automatically adjusts the position and size of the figures to meet the constraint requirements when the user edits the drawing. Dimensioning is achieved by adding annotation text boxes to the drawing. For example, adding horizontal and vertical constraints ensures that walls are aligned with other building components; dimensional measurement and annotation assist users in modeling.
[0083] Whether the model is from the system's built-in module library or a model drawn from basic geometry, the system can assign materials and textures to it. Users can select a pre-built basic geometric model, browse material types in the style materials section, choose a suitable material type (such as concrete material, metal material, etc.), and add corresponding texture maps (such as concrete texture, brushed metal texture). If material parameters need to be adjusted, such as adjusting the roughness and color of concrete material, the corresponding parameters can be adjusted in the properties panel, and the effect can be previewed in real time. Textures can also be made more realistic on the model surface by adjusting scaling and tiling parameters.
[0084] Users can combine the above modeling methods to quickly build a conventional factory model by dragging and dropping modules, then create basic or special models by modeling basic geometric shapes, and finally form a complete 3D model of the factory building.
[0085] Throughout the modeling process, the system automatically records every user action and model data, storing user action data and updated model data in real time to the corresponding storage locations and maintaining real-time synchronization between the data. When a user drags and drops a new model into the modeling scene from the model block library, the system immediately records the model's relevant information in the action data file, loads the model's geometric information and material texture data from the model library storage location into the memory cache, and simultaneously creates a corresponding reference record in the current project's model data storage area. When the user edits the model, the system synchronously updates the model data in memory and related stored data to ensure data consistency.
[0086] As can be seen, the embodiments of the present invention involve three-dimensional modeling objects, which require a hybrid modeling mode that integrates model reuse and geometry generation. Dynamic topological relationship analysis is used to ensure model accuracy, and lightweight rendering technology is combined to improve the modeling efficiency of large-scale factory scenes. For such scenarios, the above-mentioned overall conversion method is no longer applicable.
[0087] Based on this, the attached diagram Figure 1 The method embodiment in step S2 embodies an improvement of the present invention as follows:
[0088] On the first device, the first 3D modeling structure file of the first factory building is opened based on the first 3D modeling application; after the first sub-component in the structure file is edited, the first sub-component is uploaded to the module library in a first format.
[0089] As can be seen, the embodiments of the present invention do not upload / save the entire 3D modeling structure file of the first factory building, nor do they perform an overall structural conversion on the 3D modeling structure file of the first factory building. Instead, they monitor the first editing operation performed on the first sub-component in the structure file and only upload the edited first sub-component for subsequent conversion.
[0090] The first sub-component here can be a component in the first 3D modeling structure file of the factory building. For example, if the first user (architect) makes the first edit on a window in the 3D modeling structure file of the factory building, then the first sub-component can be a partial area component containing the window in the (building model). The first edit can be any editing operation, such as selection, size adjustment, position adjustment, etc.
[0091] Compared to the entire 3D model structure file of the first factory building, the first sub-component is smaller in size, which will greatly reduce the resources required for uploading and subsequent conversion.
[0092] The module library can be a shared module library between a first user and a second user (including other users). The first user and the second user (including other users) are a group of users who collaborate to perform different types of 3D modeling operations on the first factory building.
[0093] Next, Figure 2 and Figure 3 They are Figure 1 The flowcharts of the method are shown in the cases where the first device interacts with the second device and in the cases where the first device does not interact with other devices.
[0094] First check Figure 2 , Figure 2 The process is as follows:
[0095] S11: Open the 3D modeling structure file of the first factory building on the first device based on the first 3D modeling application;
[0096] S12: After making a first edit to the first sub-component in the structure file, a second edit request for the first sub-component is received from the second device;
[0097] S13: In response to the second editing request from the second device, the first device uploads the first sub-component to the module library in a first format;
[0098] S14: The module library converts the first sub-component of the first format to the second format;
[0099] S15: The second device downloads the first sub-component in the second format from the module library.
[0100] Proceed to the second editing stage.
[0101] Preferred, in Figure 2 In one embodiment, after the second device performs a second edit on the first sub-component, the edited first sub-component is uploaded to the module library.
[0102] Preferred, in Figure 2 In one embodiment, after the second device establishes a real-time communication request with the first device, it sends an update request for the first sub-component to the first device, the update request including an edit request.
[0103] exist Figure 2 In one embodiment, the first device and the second device interact, enabling the module library to know in advance that the target device will request an update to the first sub-component. Therefore, the module library determines the target conversion format based on the attributes of multiple user devices (including device hardware attributes, device software attributes, etc.) that are saved in advance. Thus, after the first device uploads the first sub-component to the module library in the first format, the module library converts the first sub-component in the first format to the target conversion format in advance, which is the second format that the second device can edit.
[0104] See next. Figure 3 , Figure 3 The process is as follows:
[0105] S21: Open the 3D modeling structure file of the first factory building on the first device based on the first 3D modeling application;
[0106] S22: After making a first edit to the first sub-component in the structure file, upload the first sub-component to the module library in a first format;
[0107] S23: The module library determines the target conversion format based on statistical data of the device attributes of the first sub-component downloaded in the past;
[0108] S24: The module library converts the first sub-component of the first format into the target conversion format.
[0109] exist Figure 3 In this embodiment, the first device does not interact with other devices, and the module library cannot know exactly which device (user) will make an update or edit request for the first sub-component.
[0110] At this point, another improvement of the present invention is in step S23: the module library determines the target conversion format based on statistical data of the device attributes of the first sub-component downloaded in the past.
[0111] The historical download statistics for the device attributes of the first sub-component include:
[0112] Device attribute data of the first sub-component downloaded during the same time period;
[0113] The device attribute data that has been downloaded the most times from the first sub-component;
[0114] I recently downloaded the device property data for the first child component.
[0115] Based on the statistical data of the device attributes of the first sub-component downloaded in the past, a device type prediction model can be pre-trained. The device prediction model is used to predict that after the first device uploads the first sub-component to the module library in the first format, there will be a third device type that will execute an edit update request for the first sub-component. The third editable format supported by the third device type is used as the target conversion format. Then, the module library converts the first sub-component in the first format to the target conversion format in advance, that is, the third editable format supported by the third device.
[0116] It is understood that the third device type can be of multiple types. In this case, there are also multiple requirements for the target conversion format. Therefore, the module library pre-converts the first sub-component of the first format into multiple target conversion formats so that multiple third devices of various types can directly edit and download them.
[0117] Based on the above embodiments, the shared module library design of this invention has good scalability, enabling the continuous incorporation of new components and formats to adapt to the needs of different projects and technological developments. Simultaneously, first and second devices supporting different editing formats of 3D modeling applications can flexibly access the system. Whether it's new modeling software or traditional modeling tools, data interaction and collaborative work can be achieved through the shared module library. This ensures that this technical solution maintains strong adaptability in the face of constantly evolving 3D modeling technologies and diverse project requirements, continuously providing efficient and stable data sharing and collaborative solutions for the field of factory building 3D modeling, and promoting the development and progress of industry technology. The integration of professional knowledge and experience from various personnel allows for the early identification and resolution of potential conflicts and inconsistencies in the design, such as spatial interference between electrical wiring and mechanical equipment, thereby significantly improving the completeness and accuracy of the modeling results. This makes the final 3D modeling results more closely aligned with actual needs, providing a more reliable basis for the design, construction, and subsequent operation of factory buildings.
[0118] As a further improvement of the present invention, the applicant also discovered in the process of implementing the relevant technical solutions that, since the three-dimensional modeling application of the present invention is a hybrid modeling mode that integrates model reuse and geometry generation, and ensures model accuracy through dynamic topological relationship analysis, it requires a large amount of system resources to support it during operation.
[0119] When the first device uploads the first sub-component after the first editing to the module library based on the first 3D modeling application, if the second user does not provide timely feedback, the first user will usually switch the first 3D modeling application to the background (e.g., minimize the first 3D modeling application).
[0120] At this point, based on traditional resource recycling mechanisms (such as the background resource recycling mechanism of the Android system), if the first user keeps the 3D modeling application in the background for a long time, the system will automatically reclaim the first 3D modeling application after a period of time. However, if the second user provides feedback after a period of time, the first user will have to wait a considerable amount of time when reopening the first 3D modeling application, affecting the user experience.
[0121] However, if the user switches the first 3D modeling application to the background, that is, keeps it on the front-end interface for a long time, it will also affect the user's other work. The user can only wait in vain, resulting in a worse user experience.
[0122] Therefore, the issue of keeping the first 3D modeling application alive after it is switched to the background arises.
[0123] In related technologies, background programs are typically kept alive by setting a whitelist. However, once the first 3D modeling application is added to the whitelist, it will remain alive in the background for an extended period, consuming a large amount of resources. If the second user does not interact during this time, the keep-alive process is still a useless waste of resources; protection is only effective when the second user is interacting.
[0124] Specifically, another improvement of the present invention is reflected in: Figure 4 In the embodiments described above. Figure 4 The diagram illustrates the main execution flow of a module library-based 3D modeling method for factory buildings according to an embodiment of the present invention on the second equipment side, which includes the following flow:
[0125] S41: After the second device establishes a real-time communication request with the first device, it sends an update request for the first sub-component to the first device;
[0126] S42: In response to the update request, the first device uploads the first sub-component, after the first editing, to the module library;
[0127] S43: The module library converts the first sub-component into a second editing format;
[0128] S44: The second device downloads the first sub-component in the second format from the module library and performs a second editing;
[0129] S45: After the first device uploads the first sub-component after the first editing to the module library based on the first 3D modeling application, it switches the first 3D modeling application to the background and keeps the first 3D modeling application alive based on the association established between the second device and the first device.
[0130] Specifically, after the second device performs a second edit on the first sub-component, the association relationship between the second device and the first device is established.
[0131] In the above embodiments, the first 3D modeling application supports a first editing format; the second 3D modeling application supports a second editing format, wherein the first editing format is different from the second editing format.
[0132] The first 3D modeling application and the second 3D modeling application share the module library;
[0133] In the above embodiment, after the second device performs a second edit on the first sub-component, an association relationship is established between the second device and the first device, and the first 3D modeling application is kept alive based on the association relationship.
[0134] Since the second device performs a second edit on the first sub-component, and the second edit follows the first edit, both the second and first edits need to be updated in the first sub-component. In other words, the first user needs to receive the first sub-component after the second edit.
[0135] At this time, after the second device performs a second edit on the first sub-component, it uploads the edited first sub-component to the module library, and the first device downloads the edited first sub-component from the module library.
[0136] At this point, the module library has already converted the first sub-component, after the second editing, from the second editing format to the first editing format.
[0137] Therefore, the association is established after the second device performs a second edit on the first sub-component and terminates when the first device downloads the second edited first sub-component from the module library. That is, the association terminates after the first device downloads the second edited first sub-component from the module library.
[0138] When the associated relationship terminates, the keep-alive relationship also terminates accordingly, thereby effectively solving the problem of keeping the first 3D modeling application alive after it is switched to the background, which improves the user experience and saves system resources.
[0139] exist Figures 1-4 Based on the method implementation examples, Figure 5 A schematic diagram of the hardware unit composition of a module library-based 3D modeling system for factory buildings according to an embodiment of the present invention is provided.
[0140] exist Figure 5 The image shows a modular library-based 3D modeling system for factory buildings, comprising a shared modular library, a first device and a second device capable of communicating with each other, and the first and second devices being configured to support 3D modeling applications with different editing formats.
[0141] On the first device, the first 3D modeling application opens the 3D modeling structure file of the first factory building.
[0142] After the first device performs a first edit on the first sub-component in the structure file, it uploads the first sub-component to the shared module library in a first edit format and switches the first 3D modeling application to the background.
[0143] The shared module library converts the first sub-component into a second editing format;
[0144] The second device downloads the first sub-component of the second editing format from the module library and performs a second editing;
[0145] After the second device performs a second edit on the first sub-component, an association relationship is established between the second device and the first device, and the first 3D modeling application is kept alive based on the association relationship.
[0146] Preferably, the system further includes a component self-drawing module, which is invoked by the first device or the second device to draw a third sub-component, which is a component of the first factory building 3D model structure file.
[0147] The system also includes a visualization module, which is invoked by the first device or the second device to visualize the execution of the first edit or the second edit.
[0148] The entire system utilizes modern front-end development technologies and a 3D graphics engine, providing a concise and intuitive visual modeling interface. The interface adheres to the principles of simplicity and ease of use, with a logical layout of all functional areas to ensure smooth user operation. The modeling scene occupies the main part of the interface, employing a switching view between 3D and 2D. Users can interact with the scene using input devices such as a mouse and keyboard. Simultaneously, it provides rich interactive prompts, such as displaying the model's name, functional description, and main parameters when the mouse hovers over a model in the model library; and displaying a preview of the model's placement position and alignment guidelines during drag-and-drop operations.
[0149] During the modeling implementation phase, users can quickly search for and select the required models by calling the system's built-in module library, dragging and dropping them into the modeling scene. For example, when modeling on a site plan map, users only need to click "Add Building," launch the module library, enter "factory building" in the search bar, and filter out factory building models that meet their needs. Left-click to select the main factory building model, hold down the left mouse button, drag and drop it to a suitable position in the scene, and release the mouse button. The model will then be placed in the scene, and the model's attribute panel will be displayed to help users view the modeling process.
[0150] Based on the base map location data, the model's position information can be quickly obtained. If parameter and position calibration of the model dragged and dropped into the scene is required, select the model and precisely adjust its position by dragging or entering coordinate values in the attribute box. If the model does not match the required size, the system provides a custom modification function. Users can use scaling tools, such as a scale bar or scaling command, and then enter the corresponding scaling ratio as needed. Finally, click "Confirm" or "Apply" to complete the proportional scaling of the model. The entire process is efficient and intelligent, eliminating the need for tedious manual adjustments. In addition to proportional scaling, users can also use the system's parameter editing function to modify the model's length, width, height, and other data information individually. After entering new dimension values in the attribute box and confirming the changes, users can enter model editing mode and precisely adjust the size by clicking and dragging "vertex" and "edge." All operation results are provided in real-time feedback and synchronization.
[0151] Although not shown in the accompanying drawings, a preferred and further embodiment of the product may also be an electronic device comprising: a memory and one or more processors. The memory stores one or more application programs adapted to be executed by the one or more processors, as described above, a module-based 3D modeling method for factory buildings.
[0152] Although not shown in the accompanying drawings, further embodiments also include a computer-readable storage medium storing a computer program that, when executed, implements the steps of the aforementioned module library-based 3D modeling method for factory buildings.
[0153] It is understood that the system, product, equipment, and media implementation examples and method implementations correspond to each other and can be referenced by each other, and their principles are similar or the same, so they will not be elaborated again.
[0154] Other technologies, principles, algorithms, or models not elaborated in detail in this application can be found in the prior art.
[0155] This invention ensures data consistency and accuracy through a shared module library, reducing repetitive work caused by data errors. For example, in a factory renovation project, if the design team's primary equipment and the construction team's secondary equipment cannot effectively share data, the construction team may build based on incorrect design data, requiring subsequent demolition and reconstruction. However, with this invention, the sub-components edited by the design team are accurately transmitted to different professional construction teams via the shared module library. The construction teams then build based on accurate data, avoiding the waste of materials, manpower, and time caused by rework. It is estimated that this can reduce overall project costs by 15%-25%. Furthermore, the unified shared module library also enables component reuse, reducing unnecessary modeling work and further saving resources and costs.
[0156] Furthermore, this invention optimizes traditional mechanisms to address the background keep-alive issue of 3D modeling applications, resulting in significant improvements. By dynamically controlling the keep-alive process through relationships, it precisely balances user experience and system resource consumption, with the following beneficial effects:
[0157] 1. Resolve latency and lag issues, improving user experience: Under traditional resource recycling mechanisms, if a second user interacts with a 3D modeling application after it has been placed in the background and recycled by the system, the first user has to wait a long time to reopen the application. If the application remains in the foreground for an extended period, it interferes with other tasks. This invention establishes a keep-alive relationship related to the interaction with the second user, keeping the application alive during the interaction period and preventing it from being recycled by the system. This ensures that the first user can quickly respond to the second user's interaction without having to wait for the application to reload, greatly improving the smoothness and convenience of collaborative work using the 3D modeling application.
[0158] 2. Avoiding resource waste and improving system efficiency: In related technologies, the whitelist-based keep-alive method causes programs to occupy a large amount of resources for a long time, continuously consuming system resources even when there is no interaction requirement. This invention, based on the interaction relationship between the second user and the first user, keeps the program alive only during periods of actual interaction. When the relationship terminates, i.e., the interaction ends, the keep-alive relationship also terminates, effectively avoiding the ineffective occupation of resources, freeing up system resources for other tasks. While ensuring user interaction needs are met, it improves the overall resource utilization efficiency of the system and reduces the system's operational burden.
[0159] The foregoing has shown and described the method embodiments and systems of the present invention, but it will be understood by those skilled in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for 3D modeling of a factory building based on a module library, the method being applied to a first device, the first device being configured with a first 3D modeling application, characterized in that, The method includes the following steps: On the first device, open the 3D modeling structure file of the first factory building based on the first 3D modeling application; After the second device establishes a real-time communication request with the first device, it sends an update request for the first sub-component to the first device. After the first device performs a first edit on the first sub-component in the structure file, it uploads the first edited first sub-component to the module library in a first format in response to the update request. The module library converts the first sub-component into a second editing format; The second device downloads the first sub-component of the second editing format from the module library and performs a second editing; The second device is configured with a second 3D modeling application, which performs the second editing. After the first device uploads the first sub-component, which has been edited, to the module library based on the first 3D modeling application, it switches the first 3D modeling application to the background and keeps the first 3D modeling application alive based on the association established between the second device and the first device.
2. The method for 3D modeling of factory buildings based on a module library as described in claim 1, characterized in that, The first device and the second device have different terminal types; and / or, the first device and the second device support different display formats for 3D modeled objects.
3. The method for 3D modeling of factory buildings based on a module library as described in claim 1, characterized in that, The first sub-component is actively uploaded to the module library by the first device; After the first sub-component is uploaded to the module library in a first format, the module library converts the first sub-component in the first format into a third format; The third format is determined based on statistical data of device attributes from historical downloads of the first sub-component.
4. A method for 3D modeling of factory buildings based on a module library, the method being applied to a second device, the second device being configured with a second 3D modeling application, characterized in that, The method includes the following steps: After the second device establishes a real-time communication request with the first device, it sends an update request for the first sub-component to the first device. In response to the update request, the first device uploads the first sub-component, after the first editing, to the module library. The module library converts the first sub-component into a second editing format; The second device downloads the first sub-component of the second editing format from the module library and performs a second editing; After the first device uploads the first sub-component, which has been edited, to the module library based on the first 3D modeling application, it switches the first 3D modeling application to the background and keeps the first 3D modeling application alive based on the association established between the second device and the first device.
5. The method for 3D modeling of factory buildings based on a module library as described in claim 4, characterized in that, After the second device performs a second edit on the first sub-component, the association relationship between the second device and the first device is established.
6. The method for 3D modeling of factory buildings based on a module library as described in claim 5, characterized in that: The first 3D modeling application supports a first editing format; the second 3D modeling application supports a second editing format, wherein the first editing format is different from the second editing format.
7. The method for 3D modeling of factory buildings based on a module library as described in claim 5, characterized in that: The first 3D modeling application and the second 3D modeling application share the module library; After the second device performs a second edit on the first sub-component, the edited first sub-component is uploaded to the module library.
8. A 3D modeling system for factory buildings based on a module library, the system comprising a shared module library, a first device and a second device capable of communicating with each other, the first device and the second device being configured to support 3D modeling applications with different editing formats, characterized in that: On the first device, the first 3D modeling application opens the 3D modeling structure file of the first factory building. After the first device performs a first edit on the first sub-component in the structure file, it uploads the first sub-component to the shared module library in a first edit format and switches the first 3D modeling application to the background. The shared module library converts the first sub-component into a second editing format; The second device downloads the first sub-component of the second editing format from the module library and performs a second editing; After the second device performs a second edit on the first sub-component, an association relationship is established between the second device and the first device, and the first 3D modeling application is kept alive based on the association relationship.
9. A factory building 3D modeling system based on a module library as described in claim 8, characterized in that, The system also includes a component self-drawing module. The first device or the second device calls the component self-drawing module to draw a third sub-component, which is a component of the first factory building 3D model structure file.
10. A factory building 3D modeling system based on a module library as described in claim 8, characterized in that, The system also includes a visualization module, which is invoked by the first device or the second device to visualize the execution of the first edit or the second edit.
Citation Information
Patent Citations
Visual editing method suitable for three-dimensional virtual factory production scheduling
CN115374641A
Industrial three-dimensional model rendering method and device, equipment and storage medium
CN118193451A
Cooperative working method and device based on three-dimensional modeling, storage medium and computer equipment
CN112907732A
Industrial building two-dimensional and three-dimensional collaborative design management system and three-dimensional task decomposition method
CN119416300A