Automatic generation method, plug-in, system, terminal and medium for parameterized component model
Parametric component models are automatically created in the target modeling software through a 3D model generation network based on artificial intelligence, which solves the problems of low efficiency and error-prone manual creation, achieves efficient and accurate parametric component model generation, and shortens the design cycle. and reduce costs.
Patent Information
- Application Number
- CN202410179867.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-02-18
AI Technical Summary
In the existing technology, manually creating parametric component models is inefficient and error-prone, resulting in extended construction/mechanical design project cycles, increased costs, and difficulties in timely detection of errors.
A 3D model generation network based on artificial intelligence is used to process source data, generate a 3D model to construct sequence data, and automatically create a parametric component model in the target modeling software. The component model is generated by constructing sequence operations and geometric entity data calling interfaces to implement parameters. Automatic generation of component models.
It improves the generation efficiency and quality of parametric component models, reduces project costs, ensures the accuracy and uniformity of component models, and shortens the design cycle by automatically repairing erroneous data in batches.
Smart Images

Figure CN117725767B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial modeling, and in particular to a method, plug-in, system, terminal and medium for automatically generating a parameterized component model. Background Art
[0002] A large number of parametric component models are needed in architectural / mechanical design software, such as doors, windows, railings, handrails, and indoor furniture, ceilings, and green plants. These parametric component models are of various types and are divided into different categories, styles, and models. These parametric component models are used to realize parametric modeling in computer-aided design.
[0003] Currently, parametric component models that match the current project are mainly constructed manually, for example: selecting a suitable family template in the architectural design software Revit, defining the family category, overall framework design, drawing geometric elements and entities, adding element dimensions and associations, creating type and instance parameters, and completing the creation of standard component family models. However, manually creating parametric component models is inefficient and prone to errors. Summary of the invention
[0004] The main purpose of the present invention is to provide a method, plug-in, system, intelligent terminal and computer-readable storage medium for automatically generating a parametric component model, which can solve the problem of low efficiency and easy errors when creating a parametric component model.
[0005] In order to achieve the above object, the present invention provides a method for automatically generating a parameterized component model in a first aspect, the method comprising:
[0006] Inputting source data for modeling into a three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data includes geometric entity data, construction sequence operation data, and component model categories;
[0007] Creating a component model in a target modeling software based on the build sequence operation data and the geometric entity data;
[0008] The category and parameters of the component model are set according to the category of the component model to obtain a parameterized component model.
[0009] Optionally, creating a component model in target modeling software based on the construction sequence operation data and the geometric entity data includes:
[0010] Based on the geometric entity data, creating a geometric primitive object in the target modeling software;
[0011] Based on the construction sequence operation data, the construction interface of the target modeling software is called to operate the geometric primitive object to obtain the component model.
[0012] Optionally, the creating a geometric primitive object in the target modeling software based on the geometric entity data includes:
[0013] Based on the geometric entity data, obtain geometric primitive information;
[0014] Based on the geometric primitive information, the geometric primitive object is created using a factory model.
[0015] Optionally, the construction sequence operation data includes a plurality of construction sequence operations, and the step of calling the construction interface of the target modeling software to operate the geometric primitive object based on the construction sequence operation data to obtain the component model includes:
[0016] Traversing the construction sequence operation, determining a target geometric primitive object among all the geometric primitive objects according to the current construction sequence operation, and calling a construction interface of the target modeling software to operate the target geometric primitive object according to the current construction sequence operation;
[0017] Based on all the geometric primitive objects, the component model is obtained.
[0018] Optionally, the three-dimensional model generation network is a deep generation network for computer-aided design models, and the step of inputting source data for modeling into the three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data includes:
[0019] The source data is input into the deep generative network, and the three-dimensional model construction sequence data is obtained according to the artificial intelligence generated content of the deep generative network.
[0020] A second aspect of the present invention provides a parameterized component model automatic generation plug-in, the plug-in comprising:
[0021] A three-dimensional model generation module, for responding to received source data for modeling, inputting the source data into a three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data includes geometric entity data, construction sequence operation data and component model category;
[0022] A creation module, for creating a component model in a target modeling software based on the construction sequence operation data and the geometric entity data;
[0023] The setting module is used to set the category and parameters of the component model according to the category of the component model to obtain a parameterized component model.
[0024] Optionally, the three-dimensional model generation network is deployed as a background service, and the three-dimensional model generation module includes a service calling unit, and the service calling unit is used to call the background service based on the source data to obtain the three-dimensional model construction sequence data.
[0025] A third aspect of the present invention provides a parameterized component model automatic generation system, the system comprising:
[0026] Intelligent generation processing module, model generation client module and model generation server module;
[0027] The intelligent generation processing module is used to process source data for modeling using a three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data, and send the three-dimensional model construction sequence data to the model generation client module, wherein the three-dimensional model construction sequence data includes geometric entity data, construction sequence operation data and component model category;
[0028] The model generation client module is used to parse the three-dimensional model construction sequence data, create a parameterized component model generation task, and send the parameterized component model generation task to the model generation server module;
[0029] The model generation server module is used to parse the parameterized component model generation task, call the interface of the target modeling software to execute the parameterized component model generation task, and generate a parameterized component model.
[0030] Optionally, the model generation client module and the model generation server module communicate with each other using a task queue.
[0031] Optionally, the model generation client module is provided with an asynchronous communication interface for communicating with the model generation server module, and the model generation server module is provided with a read thread unit for reading the parameterized component model generation task and a write thread unit for sending the task processing result to the model generation client module, and the read thread unit and the write thread unit communicate in a synchronous communication manner.
[0032] A fourth aspect of the present invention provides an intelligent terminal, which includes a memory, a processor, and a parametric component model automatic generation program stored in the memory and executable on the processor. When the parametric component model automatic generation program is executed by the processor, any step of the parametric component model automatic generation method is implemented.
[0033] A fifth aspect of the present invention provides a computer-readable storage medium, on which a parametric component model automatic generation program is stored. When the parametric component model automatic generation program is executed by a processor, any step of the parametric component model automatic generation method is implemented.
[0034] As can be seen from the above, the present invention adopts an artificial intelligence-based three-dimensional model generation network to process source data for modeling, obtains three-dimensional model construction sequence data including geometric entity data, construction sequence operation data and component model category, creates a component model in the target modeling software according to the construction sequence operation data and the geometric entity data, sets the category and parameters of the component model according to the component model category, and automatically generates a parametric component model. The parametric component model can be generated accurately and efficiently, and the automatic generation of the parametric component model is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative labor.
[0036] Figure 1 It is a schematic diagram of the process of automatically generating a parameterized component model provided by an embodiment of the present invention;
[0037] Figure 2 yes Figure 1 A schematic diagram of a process for creating a component model in a target modeling software in an embodiment;
[0038] Figure 3 It is a schematic diagram of the structure of the automatic generation plug-in of the parameterized component model provided by an embodiment of the present invention;
[0039] Figure 4 It is a functional block diagram of a parameterized component model automatic generation system provided by an embodiment of the present invention;
[0040] Figure 5 It is a block diagram of the internal structure principle of an intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0042] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0043] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0044] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0045] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context.
[0046] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0048] Manually creating parametric component models places high demands on designers and requires them to master complex tool usage skills. It is inefficient, has a long cycle, and is costly. Moreover, since there are many manual operations and attribute (category, parameter, model, etc.) settings, it is easy to make mistakes, and erroneous data may not be fed back until the later model is applied to the scheme stage, which prolongs the project cycle of architectural / mechanical design.
[0049] In order to improve the generation efficiency and quality of parametric component models, the present invention uses a 3D model generation network based on artificial intelligence to process the source data used for modeling, generate 3D model construction sequence data, and then automatically create a parametric component model in the target modeling software based on the 3D model construction sequence data. The parametric component model can be generated accurately and efficiently.
[0050] This embodiment provides a method for automatically generating a parametric component model, which can be run on various electronic terminals such as PCs, laptops, and mobile terminals. For example, it can be deployed as a plug-in for the target modeling software, but is not limited to this deployment method; it can also be run as a separate program and can communicate with the target modeling software. It should be noted that the target modeling software is not limited to Revit, but can also be other BIM (Building Information Modeling) core modeling software or CAD modeling software such as Bentley and CATIA.
[0051] like Figure 1 As shown, the specific steps include:
[0052] Step S100: inputting source data for modeling into a 3D model generation network based on artificial intelligence to obtain 3D model construction sequence data, where the 3D model construction sequence data includes geometric entity data, construction sequence operation data, and component model categories;
[0053] There is no restriction on the type of source data used for modeling, which is determined by the functional requirements of the artificial intelligence-based 3D model generation network. Common types of source data include: 2D or 3D files / data, reference pictures, prompt word description text or discretized 3D model data (grid or point cloud), etc. The 3D model generation network extracts data features such as style, description, parameters, etc. from the source data, and outputs 3D model construction sequence data, which includes: geometric entity data, construction sequence operation data and component model category.
[0054] Among them, geometric entity data (entities) are geometric figure data such as two-dimensional points, lines, circles, two-dimensional closed geometric contour data, and modeling parameter data such as stretching direction and stretching height. Geometric figure data are related to sketch construction sequence operations, and geometric contour data are related to stretching construction sequences; construction sequence operation data (sequence) includes several construction sequence operations, such as "Sketch" represents a sketch construction sequence, and "ExtrudeFeature" represents a stretching construction sequence. Each construction sequence operation in the construction sequence operation data is bound to the data in the associated geometric entity data entities through the entity id (entity ID, "entity" value data); component model category is the model category in the target modeling software, such as: doors, windows, furniture, sanitary ware, etc. Based on the artificial intelligence-based three-dimensional model generation network, the data features such as style, style and parameters in the source data are extracted, and the component model category can be determined based on these data features.
[0055] This embodiment uses a deep generative network for computer-aided design models as a three-dimensional model generation network, for example: DeepCAD (Deep Generative Network for Computer-Aided Design Models) based on AIGC (artificial intelligence generated content), which can process a variety of source data: two-dimensional or three-dimensional files / data, reference pictures, description text or discretized three-dimensional model data (grid or point cloud). After these source data are input into the deep generative network, the three-dimensional model construction sequence data can be obtained according to the artificial intelligence generated content.
[0056] Step S200: creating a component model in a target modeling software based on the construction sequence operation data and the geometric entity data;
[0057] The target modeling software refers to software for implementing computer-aided design models, and common ones include CAD, SolidWorks, Rhino and SketchUp, as well as BIM core modeling software represented by Revit, Bentley and CATIA. In this embodiment, the target modeling software is Revit.
[0058] After obtaining the three-dimensional model construction sequence data, the interface API of the target modeling software can be called to create a component model in the target modeling software according to the construction sequence operation data and geometric entity data in the three-dimensional model construction sequence data.
[0059] In this embodiment, the specific steps are as follows: Figure 2 As shown, including:
[0060] Step S210: creating geometric primitive objects in target modeling software based on geometric entity data;
[0061] Read the geometric primitive information such as two-dimensional points, line segments, circles, arcs, and two-dimensional closed geometric contours in the geometric entity data, and then use the factory mode to create the geometric primitive objects corresponding to these geometric primitive information. First, create a static factory class to unify the creation of derived classes of different geometric primitive entities, and realize the creation of geometric primitives in Revit. Specifically, for different geometric primitive entities, create their common abstract base class Entity. This abstract base class has two abstract methods, which are used to read data from the model building sequence and create corresponding geometric primitive objects in Revit. Various types of geometric primitive entities inherit from this abstract base class and implement the above two abstract methods to obtain the specific data of different geometric primitive entities from the model building sequence and call the geometric primitive creation method of Revit to create the corresponding geometric primitive objects.
[0062] Step S220: Based on the construction sequence operation data, call the construction interface of the target modeling software to operate the geometric primitive object to obtain the component model.
[0063] A modeling interface generally refers to a set of functions and tools used in the target modeling software to create, edit, and operate component models. These functions and tools can be called and operated through an API. When the parametric component model automatic generation method is deployed as a plug-in of the target modeling software, the construction interface of the target modeling software can be directly called. If the parametric component model automatic generation method is deployed as a separate program, the construction interface of the target modeling software can be called through inter-process communication or network services.
[0064] Specifically, each construction sequence operation in the construction sequence operation data is parsed, and according to the geometric primitive objects associated with the construction sequence operation, such as reading the sketch contour data, stretching height, stretching direction and other parameter data that the stretching construction sequence depends on, the corresponding API interface call information is generated, and then the construction interface of the target modeling software is used to operate these associated geometric primitive objects, so that the component model can be generated in the target modeling software. The specific process of generating the component model is: based on the construction sequence operation data in the three-dimensional model construction sequence data, the geometric primitive information and parameter information associated with each construction sequence operation data are read in sequence. For example, first parse the sequence operation data of the "Sketch" sketch construction, read the geometric primitive information such as the two-dimensional points, line segments, circles, arcs, and two-dimensional closed geometric contours in the sketch, as well as the line segment starting point parameters, circle or arc center, radius and other parameter information, determine the corresponding geometric primitive objects according to the geometric primitive information, and then determine the layout of the geometric primitive objects in the sketch according to the parameter information to construct the sketch; then parse the sequence operation data of the "ExtrudeFeature" stretch construction, read the sketch contour data, stretch height, stretch direction and other parameter data that the stretch construction sequence depends on, and generate the component model.
[0065] This embodiment first traverses the construction sequence operation, reads the geometric primitive objects that the current construction sequence operation depends on, that is, the target geometric primitive objects, and the input parameters of the construction sequence operation, such as direction, height, path and other data, and then calls the corresponding Revit construction interface to operate these target geometric primitive objects. After traversing the construction sequence operation, all the obtained geometric primitive objects constitute the component model.
[0066] Step S300: setting the category and parameters of the component model according to the component model category to obtain a parameterized component model.
[0067] According to the component model category in the model construction sequence data, the corresponding Revit family category interface is called, the corresponding category information and parameters of the component model are set, the setting of the component model is completed, and the parametric component model is obtained.
[0068] In summary, by using AIGC to generate 3D models, the parametric component model can be generated directly in the target modeling software in an automated manner, which greatly speeds up the creation efficiency of the parametric component model, reduces project costs, and improves the quality of the generated parametric component model. Moreover, the process and specifications are unified and standardized. At the same time, combined with manual or machine review of the parametric component model data, the target modeling software interface can be called through corrections, and the wrong data can be repaired and updated in batches.
[0069] The embodiment of the present invention also provides a parameterized component model automatic generation plug-in, which is deployed on the target modeling software, such as Figure 3 As shown, including:
[0070] The three-dimensional model generation module 600 is used to input the source data for modeling into the three-dimensional model generation network based on artificial intelligence in response to the received source data, and obtain the three-dimensional model construction sequence data, the three-dimensional model construction sequence data including geometric entity data, construction sequence operation data and component model category;
[0071] A creation module 610, for creating a component model in a target modeling software based on the build sequence operation data and the geometric entity data;
[0072] The setting module 620 is used to set the category and parameters of the component model according to the category of the component model to obtain a parameterized component model.
[0073] In this embodiment, the 3D model generation network is trained based on the PyTorch framework, and the 3D model generation network is deployed as a backend Web service based on Python. A service calling unit is designed in the 3D model generation module, and the service calling unit calls the backend service based on the source data to obtain the 3D model construction sequence data.
[0074] In one embodiment, the 3D model generation network is deployed in an integrated manner using a C++-based desktop application / component.
[0075] Specifically, in this embodiment, the specific functions of each module of the above-mentioned parameterized component model automatic generation plug-in can refer to the corresponding description in the above-mentioned parameterized component model automatic generation method, and will not be repeated here.
[0076] The embodiment of the present invention also provides a parametric component model automatic generation system, which can not only generate parametric component models directly in the target modeling software in an automated manner, but also can quickly batch generate parametric component models for architectural or mechanical design, thereby accelerating the design project delivery cycle.
[0077] like Figure 4 As shown, the system includes: an intelligent generation processing module, a model generation client module and a model generation server module.
[0078] Among them, the intelligent generation processing module uses an artificial intelligence-based three-dimensional model generation network to process the input source data for modeling, and outputs three-dimensional model construction sequence data including geometric entity data, construction sequence operation data and component model categories. Specifically, this embodiment deploys the AIGC three-dimensional model generation intelligent algorithm (such as the DeepCAD algorithm) to the three-dimensional model generation network. When a two-dimensional or three-dimensional file or data, a reference image, a descriptive text or a discretized three-dimensional model data (mesh or point cloud) is input, the three-dimensional model generation network extracts data features such as style, description, and parameters in the file or data to generate three-dimensional model construction sequence data. The intelligent generation processing module sends the three-dimensional model construction sequence data to the model generation client module.
[0079] Since the AIGC-based 3D model generation intelligent algorithms are all trained based on the PyTorch framework, the intelligent generation processing module can be deployed using a Python-based backend Web service or an integrated desktop application / component based on C++.
[0080] After receiving the 3D model construction sequence data, the model generation client module parses the geometrical element data and the construction sequence data according to the 3D model construction sequence data format definition, and obtains the construction sequence operation data, geometrical entity data and component model category.
[0081] According to the construction sequence operation data and geometric entity data, the interface call information for creating the component model is generated. According to the component model category, the interface call information for setting the category and parameters of the component model is generated. According to these interface call information, the parametric component model generation task is created, that is, the sequence data for each generated three-dimensional model is constructed, and the corresponding parametric component model generation task is created. Then, the parametric component model generation task is sent to the model generation server module using the task queue communication method. By using the asynchronous communication interface of the task queue method, the model generation client module and the model generation server module have the ability to batch generate parametric component models.
[0082] The model generation server module parses the parameterized component model generation task received from the model generation client module, calls the interface of the target modeling software to execute the parameterized component model generation task, and generates the parameterized component model in the target modeling software.
[0083] In this embodiment, the model generation server module is implemented based on TcpListener in the System.Net.Sockets namespace. The model generation server module uses two read and write thread units. The read thread unit obtains the parametric component model generation task from the model generation client module and stores it in the task queue, registers the Idling event in the main thread of Revit or registers the Idling event with the event processing function as the main thread. When the main thread is idle, the parametric component model generation task is obtained from the task queue and the parametric component model generation task is processed. After each parametric component model generation task is processed, the write thread unit will write the task processing result to the message queue of the feedback information and send it to the model generation client module. The read thread unit and the write thread unit communicate with each other in a synchronous communication manner.
[0084] The model generation client module is implemented based on the Boost.Asio network library. The model generation client module uses single-threaded asynchronous network communication, that is, different asynchronous communication interfaces are encapsulated for different tasks. The model generation client module builds sequence data for the three-dimensional model output by the intelligent generation processing module, creates a parametric component model generation task, and sends it to the model generation server module. After the model generation client module receives the message returned by the model generation server module, it will print it out on the console to show the status and progress of the task completion.
[0085] The generated parametric component models can be classified and stored by component model category as the project deliverable.
[0086] By generating rich three-dimensional models with the help of AIGC and adopting a model generation client module and a model generation server module that communicate through a task queue, the parametric component model automatic generation system of this embodiment can quickly generate architectural or mechanical design component models in batches, accelerate the design project delivery cycle; enrich the architectural or mechanical design component model library, and provide more creative component models.
[0087] Based on the above embodiments, Figure 5As shown, the present invention also provides an intelligent terminal, which includes a processor, a memory, a network interface and a display screen connected through a system bus. The processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a parameterized component model automatic generation program. The internal memory provides an environment for the operation of the operating system and the parameterized component model automatic generation program in the non-volatile storage medium. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the parameterized component model automatic generation program is executed by the processor, the steps of any of the above-mentioned parameterized component model automatic generation methods are implemented. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen.
[0088] An embodiment of the present invention further provides a computer-readable storage medium, on which a parametric component model automatic generation program is stored. When the parametric component model automatic generation program is executed by a processor, the steps of any one of the parametric component model automatic generation methods provided in the embodiments of the present invention are implemented.
[0089] It should be understood that the serial numbers of the steps in the above embodiments do not imply a sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0090] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0091] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0092] 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, or a combination of computer software and electronic hardware. 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.
[0093] In the embodiments provided by the present invention, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / terminal equipment embodiments described above are only illustrative, for example, the division of the above modules or units is only a logical function division, and in actual implementation, other division methods can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0094] If the above integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above method embodiments can be implemented. Among them, the above computer program includes computer program code, and the above computer program code can be in source code form, object code form, executable file or some intermediate form. The above computer-readable medium may include: any entity or device capable of carrying the above computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
[0095] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features therein may be replaced by equivalents. However, these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A method for automatically generating a parametric component model, characterized in that: The method comprises: Inputting source data for modeling into a three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data includes geometric entity data, construction sequence operation data, and component model categories; Creating a component model in a target modeling software based on the build sequence operation data and the geometric entity data; Setting the category and parameters of the component model according to the category of the component model to obtain a parameterized component model; The construction sequence operation data includes a plurality of construction sequence operations, each of which is bound to data in the associated geometric entity data through an entity ID; The three-dimensional model generation network is a deep generation network for computer-aided design models; the source data for modeling is input into the three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data, including: Inputting the source data into a deep generative network, and obtaining the three-dimensional model construction sequence data according to the artificial intelligence generated content of the deep generative network; The source data includes two-dimensional files or data, three-dimensional files or data, reference pictures, prompt word description texts and discretized three-dimensional model data; The component model category is a model category in the target modeling software, which is determined by the three-dimensional model generation network through extraction and according to data features in the source data; The step of setting the category and parameters of the component model according to the category of the component model to obtain the parameterized component model includes: calling the family category interface of the corresponding target modeling software according to the category of the component model in the model building sequence data, setting the category information and parameters corresponding to the component model, completing the setting of the component model, and obtaining the parameterized component model; The geometric entity data includes geometric figure data, two-dimensional closed geometric contour data and modeling parameter data, the geometric figure data is related to the sketch construction sequence operation, and the two-dimensional closed geometric contour data is related to the stretch construction sequence.
2. The method for automatically generating a parametric component model according to claim 1, characterized in that: The creating a component model in a target modeling software based on the construction sequence operation data and the geometric entity data comprises: Based on the geometric entity data, creating a geometric primitive object in the target modeling software; Based on the construction sequence operation data, the construction interface of the target modeling software is called to operate the geometric primitive object to obtain the component model.
3. The method for automatically generating a parametric component model according to claim 2, characterized in that: The step of creating a geometric primitive object in the target modeling software based on the geometric entity data comprises: Based on the geometric entity data, obtain geometric primitive information; Based on the geometric primitive information, the geometric primitive object is created using a factory model.
4. The method for automatically generating a parametric component model according to claim 2, wherein: The step of calling the construction interface of the target modeling software to operate the geometric primitive object based on the construction sequence operation data to obtain the component model comprises: Traversing the construction sequence operation, determining a target geometric primitive object among all the geometric primitive objects according to the current construction sequence operation, and calling a construction interface of the target modeling software to operate the target geometric primitive object according to the current construction sequence operation; Based on all the geometric primitive objects, the component model is obtained.
5. A plug-in for automatically generating a parametric component model, characterized in that: include: A three-dimensional model generation module, for responding to received source data for modeling, inputting the source data into a three-dimensional model generation network based on artificial intelligence, and obtaining three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data includes geometric entity data, construction sequence operation data and component model categories, and the construction sequence operation data includes a plurality of construction sequence operations, each of which is bound to data in the associated geometric entity data through an entity ID; The three-dimensional model generation network is a deep generation network for computer-aided design models; The step of inputting the source data for modeling into a three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data includes: Inputting the source data into a deep generative network, and obtaining the three-dimensional model construction sequence data according to the artificial intelligence generated content of the deep generative network; The source data includes two-dimensional files or data, three-dimensional files or data, reference pictures, prompt word description texts and discretized three-dimensional model data; The geometric entity data includes geometric figure data, two-dimensional closed geometric contour data and modeling parameter data, the geometric figure data is related to the sketch construction sequence operation, and the two-dimensional closed geometric contour data is related to the stretch construction sequence; A creation module, for creating a component model in a target modeling software based on the construction sequence operation data and the geometric entity data; A setting module, used for setting the category and parameters of the component model according to the category of the component model to obtain a parameterized component model; The component model category is a model category in the target modeling software, which is determined by the three-dimensional model generation network through extraction and according to data features in the source data; The step of setting the category and parameters of the component model according to the category of the component model to obtain a parametric component model includes: calling a family category interface of a corresponding target modeling software according to the category of the component model in the model building sequence data, setting category information and parameters corresponding to the component model, completing the setting of the component model, and obtaining the parametric component model.
6. The automatic generation plug-in for parameterized component model according to claim 5, characterized in that: The three-dimensional model generation network is deployed as a background service. The three-dimensional model generation module includes a service calling unit. The service calling unit is used to call the background service based on the source data to obtain the three-dimensional model construction sequence data.
7. A parametric component model automatic generation system, characterized in that: The system comprises: Intelligent generation processing module, model generation client module and model generation server module; The intelligent generation processing module is used to process source data for modeling using a three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data, and send the three-dimensional model construction sequence data to the model generation client module, wherein the three-dimensional model construction sequence data includes geometric entity data, construction sequence operation data and component model category, and the construction sequence operation data includes a plurality of construction sequence operations, and each of the construction sequence operations is bound to data in the associated geometric entity data through an entity ID; The three-dimensional model generation network is a deep generation network for computer-aided design models; the source data for modeling is input into the three-dimensional model generation network based on artificial intelligence to obtain three-dimensional model construction sequence data, including: Inputting the source data into a deep generative network, and obtaining the three-dimensional model construction sequence data according to the artificial intelligence generated content of the deep generative network; The source data includes two-dimensional files or data, three-dimensional files or data, reference pictures, prompt word description texts and discretized three-dimensional model data; The geometric entity data includes geometric figure data, two-dimensional closed geometric contour data and modeling parameter data, the geometric figure data is related to the sketch construction sequence operation, and the two-dimensional closed geometric contour data is related to the stretch construction sequence; The model generation client module is used to parse the three-dimensional model construction sequence data, create a parameterized component model generation task, and send the parameterized component model generation task to the model generation server module; The model generation server module is used to parse the parameterized component model generation task, call the interface of the target modeling software to execute the parameterized component model generation task, and generate a parameterized component model; The steps of generating a parametric component model include: According to the component model category in the model building sequence data, the family category interface of the corresponding target modeling software is called to set the corresponding category information and parameters of the component model, complete the setting of the component model, and obtain the parameterized component model; The component model category is a model category in the target modeling software, which is determined by the three-dimensional model generation network through extraction and according to data features in the source data.
8. The automatic generation system of parameterized component model according to claim 7, characterized in that: The model generation client module and the model generation server module communicate with each other using a task queue.
9. The automatic generation system of parameterized component model according to claim 7, characterized in that: The model generation client module is provided with an asynchronous communication interface for communicating with the model generation server module. The model generation server module is provided with a read thread unit for reading the parameterized component model generation task and a write thread unit for sending the task processing result to the model generation client module. The read thread unit and the write thread unit communicate in a synchronous communication manner.
10. An intelligent terminal, characterized in that: The intelligent terminal includes a memory, a processor, and a parametric component model automatic generation program stored in the memory and executable on the processor. When the parametric component model automatic generation program is executed by the processor, the steps of the parametric component model automatic generation method as described in any one of claims 1 to 4 are implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a parameterized component model automatic generation program, and when the parameterized component model automatic generation program is executed by a processor, the steps of the parameterized component model automatic generation method according to any one of claims 1 to 4 are implemented.
