CN117725767A - Automatic generation method, plug-in, system, terminal and medium for parameterized component model - Google Patents
Automatic generation method, plug-in, system, terminal and medium for parameterized component model Download PDFInfo
- Publication number
- CN117725767A CN117725767A CN202410179867.1A CN202410179867A CN117725767A CN 117725767 A CN117725767 A CN 117725767A CN 202410179867 A CN202410179867 A CN 202410179867A CN 117725767 A CN117725767 A CN 117725767A
- Authority
- CN
- China
- Prior art keywords
- model
- component model
- data
- generation
- parameterized
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000010276 construction Methods 0.000 claims abstract description 94
- 238000013473 artificial intelligence Methods 0.000 claims abstract description 17
- 238000012545 processing Methods 0.000 claims description 19
- 238000004891 communication Methods 0.000 claims description 10
- 238000011960 computer-aided design Methods 0.000 claims description 7
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000013461 design Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 239000008186 active pharmaceutical agent Substances 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 239000000284 extract Substances 0.000 description 2
- 241000566146 Asio Species 0.000 description 1
- 241001464837 Viridiplantae Species 0.000 description 1
- 238000013479 data entry Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses an automatic generation method, a plug-in, a system, a terminal and a medium for a parameterized component model, wherein the method comprises the following steps: inputting source data for modeling into a three-dimensional model generating network based on artificial intelligence to obtain three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data comprises geometric entity data, construction sequence operation data and component model types; creating a component model in target modeling software based on the build sequence operation data and the geometric entity data; and setting the category and the parameters of the component model according to the category of the component model to obtain the parameterized component model. The parameterized component model can be accurately and efficiently generated, and the automatic generation of the parameterized component model is realized.
Description
Technical Field
The invention relates to the technical field of industrial modeling, in particular to an automatic generation method, a plug-in component, a system, a terminal and a medium for a parameterized component model.
Background
A large number of parameterized component models, such as doors, windows, railing handrails, indoor furniture, ceilings, green plants and the like, are required in building/machinery design software, and the parameterized component models are various and are divided into different types, styles, models and the like. Parametric modeling in computer-aided design is achieved by these parametric component models.
Currently parameterized component models matching the current project are mainly constructed manually, for example: selecting a proper family template in construction scheme design software Revit, defining family categories, designing an overall framework, drawing geometric primitives and entities, adding primitive sizes and association relations, creating types and instance parameters, and completing creation of a standard component family model. However, manually creating parameterized component models is inefficient and error prone.
Disclosure of Invention
The invention mainly aims to provide an automatic generation method, a plug-in unit, a system, an intelligent terminal and a computer readable storage medium for a parameterized component model, which can solve the problems of low efficiency and easy error in the process of creating the parameterized component model.
To achieve the above object, a first aspect of the present invention provides a parameterized component model automatic generation method, the method comprising:
inputting source data for modeling into a three-dimensional model generating network based on artificial intelligence to obtain three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data comprises geometric entity data, construction sequence operation data and component model types;
creating a component model in target modeling software based on the build sequence operation data and the geometric entity data;
and setting the category and the parameters of the component model according to the category of the component model to obtain the parameterized component model.
Optionally, the creating a component model in the target modeling software based on the build sequence operation data and the geometric entity data includes:
creating a geometric primitive object in the target modeling software based on the geometric entity data;
and calling a construction interface of the target modeling software to operate the geometric primitive object based on the construction sequence operation data, so as to obtain the component model.
Optionally, the creating a geometric primitive object in the target modeling software based on the geometric entity data includes:
obtaining geometric primitive information based on the geometric entity data;
based on the geometric primitive information, the geometric primitive object is created in a factory mode.
Optionally, the building sequence operation data includes a plurality of building sequence operations, and the calling the building interface of the target modeling software to operate the geometric primitive object based on the building sequence operation data to obtain the component model includes:
traversing the construction sequence operation, determining a target geometric primitive object in all 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;
the component model is obtained based on all the geometric primitive objects.
Optionally, the three-dimensional model generating network is a depth generating network for a computer aided design model, the inputting the source data for modeling into the three-dimensional model generating network based on artificial intelligence to obtain three-dimensional model building sequence data includes:
and inputting the source data into the depth generation network, and obtaining the three-dimensional model construction sequence data according to artificial intelligent generation content of the depth generation network.
A second aspect of the present invention provides an automatically generating plug-in for a parameterized component model, the plug-in comprising:
the three-dimensional model generation module is used for responding to the 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 comprises geometric entity data, construction sequence operation data and component model types;
a creation module for creating a component model in target modeling software based on the build sequence operation data and the geometric entity data;
and the setting module is used for setting the category and the parameter of the component model according to the category of the component model to obtain the parameterized component model.
Optionally, the three-dimensional model generating network is deployed as a background service, and the three-dimensional model generating module includes a service calling unit, where the service calling unit is configured to call the background service to obtain the three-dimensional model building sequence data based on the source data.
A third aspect of the present invention provides an automatic parameterized component model generating system, the system comprising:
the system comprises an intelligent generation processing module, a model generation client module and a model generation server module;
the intelligent generation processing module is used for processing source data for modeling by adopting a three-dimensional model generation network based on artificial intelligence, obtaining three-dimensional model construction sequence data, and sending the three-dimensional model construction sequence data to the model generation client module, wherein the three-dimensional model construction sequence data comprises geometric entity data, construction sequence operation data and component model types;
the model generation client module is used for analyzing the three-dimensional model construction sequence data, creating a parameterized component model generation task and sending the parameterized component model generation task to the model generation server module;
the model generation server side module is used for analyzing the parameterized component model generation task, calling an interface of target modeling software to execute the parameterized component model generation task and generating a parameterized component model.
Optionally, the model generation client module and the model generation server module communicate with each other by adopting a task queue.
Optionally, 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 a task processing result to the model generation client module, and the read thread unit and the write thread unit communicate in a synchronous communication mode.
A fourth aspect of the present invention provides an intelligent terminal, where the intelligent terminal includes a memory, a processor, and an automatic parameterized component model generating program stored in the memory and executable on the processor, and the automatic parameterized component model generating program implements any one of the steps of the automatic parameterized component model generating method when executed by the processor.
A fifth aspect of the present invention provides a computer-readable storage medium having stored thereon a parameterized component model automatic generation program that, when executed by a processor, implements the steps of any one of the parameterized component model automatic generation methods.
From the above, the invention adopts the three-dimensional model generating network based on artificial intelligence to process the source data for modeling, obtains the three-dimensional model construction sequence data comprising the geometric entity data, the construction sequence operation data and the component model category, creates the component model in the target modeling software according to the construction sequence operation data and the geometric entity data, sets the category and the parameter of the component model according to the component model category, automatically generates the parameterized component model, can accurately and efficiently generate the parameterized component model, and realizes the automatic generation of the parameterized component model.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a parameterized component model automatic generation method provided by an embodiment of the invention;
FIG. 2 is a schematic flow diagram of creating a component model in the object modeling software in the embodiment of FIG. 1;
FIG. 3 is a schematic diagram of a parameterized component model auto-generation plug-in provided by an embodiment of the present invention;
FIG. 4 is a functional block diagram of an automated parameterized component model generation system provided by an embodiment of the present invention;
fig. 5 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted in context as "when …" or "upon" or "in response to a determination" or "in response to detection.
The following description of the embodiments of the present invention will be made more fully hereinafter with reference to the accompanying drawings, in which embodiments of the invention are shown, it being evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways other than those described herein, and persons skilled in the art will readily appreciate that the present invention is not limited to the specific embodiments disclosed below.
The manual establishment of the parameterized component model has higher requirements on designers, needs to master the use skills of complex tools, and has low efficiency, longer period and higher cost; moreover, due to the existence of very many manual operations and settings of properties (category, parameter, model, etc.), errors are prone to occur, and erroneous data may not be fed back until a later model is applied to the project phase, lengthening the project cycle of the construction/machine design.
In order to improve the generation efficiency and quality of the parameterized component model, the invention adopts a three-dimensional model generation network based on artificial intelligence to process source data for modeling, generate three-dimensional model construction sequence data, and then automatically create the parameterized component model in target modeling software according to the three-dimensional model construction sequence data. The parameterized component model can be accurately and efficiently generated.
The embodiment provides an automatic generation method of a parameterized component model, which can be operated on various electronic terminals such as a PC, a notebook computer, a mobile terminal and the like. For example, a plug-in that can be deployed as target modeling software, but is not limited to such deployment; or may be run as a separate program and may communicate with the object modeling software. The target modeling software is not limited to Revit, and may be other BIM (Building Information Modeling: building information model) core modeling software such as Bentley, CATIA or CAD modeling software.
As shown in fig. 1, the specific steps include:
step S100: inputting source data for modeling into a three-dimensional model generating network based on artificial intelligence to obtain three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data comprises geometric entity data, construction sequence operation data and component model types;
the type of source data used for modeling is not limited and is determined by the functional requirements of the artificial intelligence based three-dimensional model generation network. Common types of source data are: two-dimensional or three-dimensional files/data, referenced pictures, hint words describe text or discretized three-dimensional model data (mesh or point cloud), etc. The three-dimensional model generating network extracts data features such as patterns, descriptions, parameters and the like in the source data, and outputs three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data comprises: geometric entity data, build sequence operation data, and component model classes.
Wherein, the geometric entity data (entities) are geometric primitive data such as two-dimensional points, lines, circles and the like, two-dimensional closed geometric outline data, drawing direction, drawing height and other modeling parameter data, the geometric primitive data is related to sketch construction sequence operation, and the geometric outline data is related to drawing construction sequence; the construction sequence operation data (sequence) includes several construction sequence operations, for example, "sktech" represents a Sketch construction sequence and "extradefeature" represents a stretch construction sequence. Each of the build sequence operations data binds data in the associated geometric entity data entries by an entity ID (value data in "entity"); the component model class is a model class in the target modeling software, for example: doors, windows, furniture, sanitary ware, etc. The artificial intelligent three-dimensional model generating network is based on the data characteristics of style, parameters and the like in the source data, and the component model type can be determined according to the data characteristics.
The present embodiment employs a depth generation network for a computer-aided design model as a three-dimensional model generation network, for example: deep cad (Deep Generative Network for Computer-Aided Design Models, deep generation network for computer aided design model) based on AIGC (artificial intelligence generated content) capable of processing a wide variety of source data: two-dimensional or three-dimensional files/data, referenced pictures, descriptive text or discretized three-dimensional model data (mesh or point cloud). After the source data are input into a depth generation network, three-dimensional model construction sequence data can be obtained according to artificial intelligence generation content.
Step S200: creating a building element model in the target modeling software based on the build sequence operation data and the geometric entity data;
the target modeling software refers to software for realizing a computer aided design model, and is commonly known as CAD, solidWorks, rhino and SketchUp, and BIM core modeling software represented by Revit, bentley, CATIA. In this embodiment, the target modeling software is Revit.
After the three-dimensional model construction sequence data is obtained, 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 the geometric entity data in the three-dimensional model construction sequence data.
In this embodiment, specific steps are shown in fig. 2, and include:
step S210: creating a geometric primitive object in the target modeling software based on the geometric entity data;
and reading geometric primitive information such as two-dimensional points, line segments, circles, circular arcs, two-dimensional closed geometric outlines and the like in the geometric entity data, and then creating geometric primitive objects corresponding to the geometric primitive information by adopting a factory mode. First, creating a static factory class to unify the creation of derived classes of different geometric primitive entities, enabling the creation of geometric primitives in a revit. Specifically, for different geometric primitive Entity entities, an abstract base class Entity is created, which is common to the different geometric primitive Entity entities, and has two abstract methods for respectively reading data from a model building sequence and creating corresponding geometric primitive objects in a revit. Various types of geometric primitive entity entities are inherited from the abstract base class, so that the two abstract methods are realized, and the method is used for acquiring concrete data of different geometric primitive entity entities from a model building sequence and calling a geometric primitive creation method of a revit to create a corresponding geometric primitive object.
Step S220: and based on the construction sequence operation data, calling a construction interface operation geometric primitive object of the target modeling software to obtain a component model.
Modeling interfaces generally refer to a set of functions and tools in target modeling software for creating, editing, and manipulating component models, which may be invoked and operated through APIs. When the parameterized 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, and when the parameterized component model automatic generation method is deployed as a single program, the construction interface of the target modeling software can be called through modes such as interprocess communication or network service.
Specifically, each construction sequence operation in the construction sequence operation data is analyzed, according to the geometric primitive objects associated with the construction sequence operation, such as drawing outline data, drawing height, drawing direction and other parameter data relied on by the drawing construction sequence are read, corresponding API interface calling information is generated, and then the construction interface of the target modeling software is utilized to operate the associated geometric primitive objects, so that a component model can be generated in the target modeling software. The specific process for generating the component model is as follows: and based on the construction sequence operation data in the three-dimensional model construction sequence data, sequentially reading the geometric primitive information and the parameter information associated with each construction sequence operation data. For example, firstly analyzing and constructing sequence operation data which is sequence operation data constructed by a Sketch, reading geometric primitive information such as two-dimensional points, line segments, circles, arcs, two-dimensional closed geometric outlines and the like in the Sketch, and parameter information such as line segment starting point parameters, circle or arc circle centers, radiuses and the like, determining corresponding geometric primitive objects according to the geometric primitive information, and then determining the layout of the geometric primitive objects in the Sketch according to the parameter information to construct the Sketch; and analyzing the construction sequence operation data into sequence operation data of 'stretching eFeature' stretching construction, reading sketch outline data, stretching height, stretching direction and other parameter data depending on the stretching construction sequence, and generating a component model.
In this embodiment, the building sequence operation is traversed first, the geometric primitive objects that the current building sequence operation depends on, i.e. the target geometric primitive objects, and the input parameters of the building sequence operation, such as direction, height, path, etc., are read, and then the corresponding revit building interface is called to operate the target geometric primitive objects. After traversing the construction sequence operation, all the obtained geometric primitive objects form a component model.
Step S300: and setting the category and the parameter of the component model according to the category of the component model to obtain the parameterized component model.
And calling a corresponding revit family class interface according to the class of the component model in the model construction sequence data, setting corresponding class information and parameters of the component model, and finishing the setting of the component model to obtain the parameterized component model.
In summary, by generating the three-dimensional model by using the AIGC, the parameterized component model is directly generated in the target modeling software in an automated manner, so that the efficiency of creating the parameterized component model is greatly improved, the project cost is reduced, and the quality of the generated parameterized component model is improved. And the process and the specification are unified and standardized, and batch repair and update can be performed on erroneous data by correcting and calling the target modeling software interface in combination with manual or machine inspection of parameterized component model data.
The embodiment of the invention also provides an automatic generation plug-in for the parameterized component model, which is deployed on the target modeling software, as shown in fig. 3, and comprises the following steps:
the three-dimensional model generation module 600 is configured to input source data into a three-dimensional model generation network based on artificial intelligence in response to the received source data for modeling, and obtain three-dimensional model construction sequence data, where the three-dimensional model construction sequence data includes geometric entity data, construction sequence operation data, and component model types;
a creation module 610 for creating a component model in the target modeling software based on the build sequence operation data and the geometric entity data;
the setting module 620 is configured to set a class and a parameter of the component model according to the class of the component model, and obtain a parameterized component model.
In this embodiment, the three-dimensional model generation network is trained based on a PyTorch framework, and the three-dimensional model generation network is deployed in a back-end Web service manner based on Python. And designing a service calling unit in the three-dimensional model generating module, and calling a background service based on the source data through the service calling unit to obtain three-dimensional model construction sequence data.
In one embodiment, a three-dimensional model generation network is deployed in an integrated manner with c++ based desktop applications/components.
Specifically, in this embodiment, specific functions of each module of the above-mentioned automatic generation plug-in module of the above-mentioned automatic generation method of the above-mentioned parameterized component model may refer to corresponding descriptions in the above-mentioned automatic generation method of the parameterized component model, and will not be described herein again.
The embodiment of the invention also provides an automatic parameterized component model generating system, which not only can directly generate parameterized component models in target modeling software in an automatic mode, but also can quickly generate parameterized component models of building or mechanical design in batches and accelerate the design project lead time.
As shown in fig. 4, the system includes: the system comprises an intelligent generation processing module, a model generation client module and a model generation server module.
The intelligent generation processing module adopts a three-dimensional model generation network based on artificial intelligence to process input source data for modeling, and outputs three-dimensional model construction sequence data comprising geometric entity data, construction sequence operation data and component model types. Specifically, the present embodiment deploys an AIGC three-dimensional model generation intelligent algorithm (such as deep cad algorithm) to the three-dimensional model generation network. After two-dimensional or three-dimensional files or data, reference pictures, description text or discretized three-dimensional model data (grid or point cloud) are input, the three-dimensional model generation network extracts data features such as patterns, descriptions, parameters and the like in the files or data, and three-dimensional model construction sequence data are generated. And the intelligent generation processing module sends the three-dimensional model construction sequence data to the model generation client module.
Because the AIGC-based three-dimensional model generation intelligent algorithm is trained based on the PyTorch framework, the intelligent generation processing module can be deployed by adopting a Python-based back-end Web service mode, and the intelligent generation processing module can also be deployed by adopting a C++ based desktop end application/component integration mode.
After receiving the three-dimensional model construction sequence data, the model generation client module analyzes the geometric primitive data and the construction sequence data in the three-dimensional model construction sequence data according to the three-dimensional model construction sequence data format definition to obtain construction sequence operation data, geometric entity data and component model types.
Generating interface call information for creating the component model according to the construction sequence operation data and the geometric entity data, generating interface call information for setting the category and the parameter of the component model according to the category of the component model, creating a parameterized component model generation task according to the interface call information, namely, creating corresponding parameterized component model generation tasks for each generated three-dimensional model construction sequence data. And then, a parameterized component model generating task is sent to a model generating server module in a task queue communication mode. The asynchronous communication interface adopting the task queue mode enables the model generation client side module and the model generation server side module to have the capacity of generating the parameterized component models in batches.
The model generation server side module analyzes the parameterized component model generation task received from the model generation client side module, invokes an 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.
In this embodiment, the server module is generated based on TcpListener implementation model in the system. The model generation server side module adopts a read-write thread unit, the read-write thread unit acquires parameterized component model generation tasks from the model generation client side module and stores the parameterized component model generation tasks into a task queue, an idle event is registered in the main thread of the revit or an idle event processing function is used as a main thread to register the idle event, when the main thread is idle, the parameterized component model generation tasks are acquired from the task queue, the parameterized component model generation tasks are processed, and after each parameterized component model generation task is processed, the write thread unit writes task processing results into a message queue of feedback information and sends the task processing results to the model generation client side module. The read thread unit and the write thread unit are communicated in a synchronous communication mode.
And generating a client module based on the boost.asio network library implementation model. The model generation client module adopts single-threaded asynchronous network communication, namely: different asynchronous communication interfaces are packaged 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 parameterized component model generation task and sends the parameterized component model generation task to the model generation server module. The model generation client module prints the message returned by the model generation server module on a control console after receiving the message, and displays the completion state and progress of the task.
The generated parameterized component model may be categorized and stored by the class of the component model as a delivery product of the project.
The automatic parameterized component model generating system of the embodiment can quickly generate building or mechanical design component models in batches by generating rich three-dimensional models by means of AIGC and adopting a model generating client module and a model generating server module which are communicated through a task queue, so that the design project lead time is accelerated; enriching the building or machine design component model library and providing more creative component models.
Based on the above embodiment, as shown in fig. 5, the present invention further provides an intelligent terminal, where the intelligent terminal 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 for providing computing and control capabilities. The memory of the intelligent terminal comprises a nonvolatile 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 operating system and parameterized component model auto-generation programs in the non-volatile storage medium to run. The network interface of the intelligent terminal is used for communicating with an external terminal through network connection. The parameterized component model automatic generation program, when executed by the processor, implements any one of the above-described parameterized component model automatic generation methods. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a parameterized component model automatic generation program, which realizes the steps of any parameterized component model automatic generation method provided by the embodiment of the invention when being executed by a processor.
It should be understood that the sequence number of each step in the above embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiment of the present invention.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present invention. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units described above is merely a logical function division, and may be implemented in other manners, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed.
The integrated modules/units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of each method embodiment may be implemented. The computer program comprises computer program code, and the computer program code can be in a source code form, an object code form, an executable file or some intermediate form and the like. The computer readable medium may include: any entity or device capable of carrying the computer program code described above, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. The content of the computer readable storage medium can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions are not intended to depart from the spirit and scope of the various embodiments of the invention, which are also within the spirit and scope of the invention.
Claims (12)
1. A method for automatically generating a parameterized component model, the method comprising:
inputting source data for modeling into a three-dimensional model generating network based on artificial intelligence to obtain three-dimensional model construction sequence data, wherein the three-dimensional model construction sequence data comprises geometric entity data, construction sequence operation data and component model types;
creating a component model in target modeling software based on the build sequence operation data and the geometric entity data;
and setting the category and the parameters of the component model according to the category of the component model to obtain the parameterized component model.
2. The method of automatically generating a parameterized component model of claim 1, wherein said creating a component model in target modeling software based on said build sequence operation data and said geometric entity data comprises:
creating a geometric primitive object in the target modeling software based on the geometric entity data;
and calling a construction interface of the target modeling software to operate the geometric primitive object based on the construction sequence operation data, so as to obtain the component model.
3. The method for automatically generating a parameterized component model of claim 2, wherein creating a geometric primitive object in the target modeling software based on the geometric entity data comprises:
obtaining geometric primitive information based on the geometric entity data;
based on the geometric primitive information, the geometric primitive object is created in a factory mode.
4. The method for automatically generating a parameterized component model of claim 2, wherein the build sequence operation data comprises a plurality of build sequence operations, wherein the invoking the build interface of the target modeling software to operate on the geometric primitive object based on the build sequence operation data to obtain the component model comprises:
traversing the construction sequence operation, determining a target geometric primitive object in all 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;
the component model is obtained based on all the geometric primitive objects.
5. The automatic generation method of parameterized component model according to claim 1, wherein the three-dimensional model generation network is a depth generation network for computer aided design model, the inputting source data for modeling into the three-dimensional model generation network based on artificial intelligence, obtaining three-dimensional model construction sequence data, comprising:
and inputting the source data into the depth generation network, and obtaining the three-dimensional model construction sequence data according to artificial intelligent generation content of the depth generation network.
6. An automated parameterized component model generating plug-in comprising:
the three-dimensional model generation module is used for responding to the 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 comprises geometric entity data, construction sequence operation data and component model types;
a creation module for creating a component model in target modeling software based on the build sequence operation data and the geometric entity data;
and the setting module is used for setting the category and the parameter of the component model according to the category of the component model to obtain the parameterized component model.
7. The parameterized component model auto-generation plug-in of claim 6, wherein the three-dimensional model generation network is deployed as a background service, the three-dimensional model generation module comprising a service invocation unit for invoking the background service to obtain the three-dimensional model build sequence data based on the source data.
8. An automated parameterized component model generation system, the system comprising:
the system comprises an intelligent generation processing module, a model generation client module and a model generation server module;
the intelligent generation processing module is used for processing source data for modeling by adopting a three-dimensional model generation network based on artificial intelligence, obtaining three-dimensional model construction sequence data, and sending the three-dimensional model construction sequence data to the model generation client module, wherein the three-dimensional model construction sequence data comprises geometric entity data, construction sequence operation data and component model types;
the model generation client module is used for analyzing the three-dimensional model construction sequence data, creating a parameterized component model generation task and sending the parameterized component model generation task to the model generation server module;
the model generation server side module is used for analyzing the parameterized component model generation task, calling an interface of target modeling software to execute the parameterized component model generation task and generating a parameterized component model.
9. The automated parameterized component model generation system of claim 8, wherein the model generation client module and the model generation server module communicate using a task queue.
10. The automatic parameterized component model generating system of claim 8, wherein the model generating client module is provided with an asynchronous communication interface for communicating with the model generating server module, the model generating server module is provided with a read thread unit for reading the parameterized component model generating task and a write thread unit for sending a task processing result to the model generating client module, and the read thread unit and the write thread unit communicate in a synchronous communication mode.
11. An intelligent terminal, characterized in that it comprises a memory, a processor and a parameterized component model auto-generation program stored on the memory and executable on the processor, the parameterized component model auto-generation program implementing the steps of the parameterized component model auto-generation method according to any of claims 1-5 when executed by the processor.
12. A computer-readable storage medium, wherein a parameterized component model auto-generation program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the parameterized component model auto-generation method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410179867.1A CN117725767A (en) | 2024-02-18 | 2024-02-18 | Automatic generation method, plug-in, system, terminal and medium for parameterized component model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410179867.1A CN117725767A (en) | 2024-02-18 | 2024-02-18 | Automatic generation method, plug-in, system, terminal and medium for parameterized component model |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117725767A true CN117725767A (en) | 2024-03-19 |
Family
ID=90209286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410179867.1A Pending CN117725767A (en) | 2024-02-18 | 2024-02-18 | Automatic generation method, plug-in, system, terminal and medium for parameterized component model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117725767A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6470225B1 (en) * | 1999-04-16 | 2002-10-22 | Siemens Energy & Automation, Inc. | Method and apparatus for automatically tuning feedforward parameters |
CN111324965A (en) * | 2020-03-04 | 2020-06-23 | 杭州群核信息技术有限公司 | Cloud-based universal parameterized model analysis method and design system |
CN113506364A (en) * | 2021-06-29 | 2021-10-15 | 中铁北京工程局集团有限公司 | Model creation method, system, device and storage medium |
CN116485995A (en) * | 2023-03-15 | 2023-07-25 | 苏州金螳螂三维软件有限公司 | Modeling method based on assembled building components, intelligent terminal and storage medium |
CN117236111A (en) * | 2023-09-04 | 2023-12-15 | 歌尔科技有限公司 | Fastener parametric modeling method and device, terminal equipment and storage medium |
CN117496085A (en) * | 2023-11-15 | 2024-02-02 | 浙江大学 | Parameterized three-dimensional model generation method and system based on hand-drawn sketch |
-
2024
- 2024-02-18 CN CN202410179867.1A patent/CN117725767A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6470225B1 (en) * | 1999-04-16 | 2002-10-22 | Siemens Energy & Automation, Inc. | Method and apparatus for automatically tuning feedforward parameters |
CN111324965A (en) * | 2020-03-04 | 2020-06-23 | 杭州群核信息技术有限公司 | Cloud-based universal parameterized model analysis method and design system |
CN113506364A (en) * | 2021-06-29 | 2021-10-15 | 中铁北京工程局集团有限公司 | Model creation method, system, device and storage medium |
CN116485995A (en) * | 2023-03-15 | 2023-07-25 | 苏州金螳螂三维软件有限公司 | Modeling method based on assembled building components, intelligent terminal and storage medium |
CN117236111A (en) * | 2023-09-04 | 2023-12-15 | 歌尔科技有限公司 | Fastener parametric modeling method and device, terminal equipment and storage medium |
CN117496085A (en) * | 2023-11-15 | 2024-02-02 | 浙江大学 | Parameterized three-dimensional model generation method and system based on hand-drawn sketch |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6823299B1 (en) | Modeling objects, systems, and simulations by establishing relationships in an event-driven graph in a computer implemented graphics system | |
CN107229790B (en) | Bridge structure information model system for generating three-dimensional and two-dimensional graphs and using method | |
CN107015791B (en) | Processing method, device and system for generating chart component system | |
US8872820B2 (en) | System and method for splitting faces on a solid model | |
CN111177825A (en) | Parameterized modeling method and device | |
US10459696B2 (en) | Composable action flows | |
CN110941614A (en) | Form generation method and device, electronic equipment and computer readable storage medium | |
CN111199062A (en) | Simulation method and system based on industrial development software and electronic equipment | |
CN116028025A (en) | Method, device, equipment and medium for generating automobile service model frame | |
CN103530134B (en) | A kind of configurable software platform structure | |
CN110765028B (en) | Visual construction method and device of verification environment and storage medium | |
Deryabin et al. | Embedding the script language into optical simulation software | |
US9177452B1 (en) | User interface for a modeling environment | |
CN112634410A (en) | Animation curve interpolator generation method and device, electronic equipment and readable storage medium | |
WO2024045090A1 (en) | Product model simulation method and device | |
CN117725767A (en) | Automatic generation method, plug-in, system, terminal and medium for parameterized component model | |
CN114219882A (en) | 3D rendering engine construction method and device, computer equipment and storage medium | |
CN110968342B (en) | Version comparison method, device and system | |
CN113971019A (en) | Data type creating method, device, server and medium | |
Artamonov et al. | Structured design of interactive electronic technical manuals based on virtual reality means | |
JP2022115747A (en) | Content creation system and method | |
KR20170126312A (en) | Apparatus and Method for designing automation using FEM | |
US20010002834A1 (en) | Method for inputting and acquiring requirement | |
CN111813400B (en) | Action event processing method and device, electronic equipment and computer storage medium | |
CN116483482B (en) | Deep learning task processing method, system, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |