CN109740127B - Unordered disassembly and assembly method based on three-dimensional model - Google Patents

Unordered disassembly and assembly method based on three-dimensional model Download PDF

Info

Publication number
CN109740127B
CN109740127B CN201910015473.1A CN201910015473A CN109740127B CN 109740127 B CN109740127 B CN 109740127B CN 201910015473 A CN201910015473 A CN 201910015473A CN 109740127 B CN109740127 B CN 109740127B
Authority
CN
China
Prior art keywords
dependent
dictionary
steps
items
dependent items
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.)
Active
Application number
CN201910015473.1A
Other languages
Chinese (zh)
Other versions
CN109740127A (en
Inventor
黄华
肖海一
宋梦月
易平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Eman Technology Co ltd
Original Assignee
Wuhan Eman Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Eman Technology Co ltd filed Critical Wuhan Eman Technology Co ltd
Priority to CN201910015473.1A priority Critical patent/CN109740127B/en
Publication of CN109740127A publication Critical patent/CN109740127A/en
Application granted granted Critical
Publication of CN109740127B publication Critical patent/CN109740127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W90/00Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation

Abstract

The invention relates to a disorder disassembly and assembly method based on a three-dimensional model, which comprises the following steps: s1, creating a class which is enough to bear all contents of each step; s2, creating a configuration file by using a json format, converting the json character string into a class object in an initialized mode, taking the class object as storage data, loading the class object, and setting an interdependence relation according to the class object; s3, creating all the steps, disassembled steps and a disassembled step dictionary, and associating scene objects; s4, judging the current step state according to the dependent items and the dependent items of the step, initializing assignment, adding the assignment to a dictionary, and recording the disassembly and assembly progress, wherein the step state comprises the dependent items, the dependent items or the dependent items and the dependent items; s5, searching in which dictionary the current step exists in during disassembly and assembly, and then writing logic and executing the steps according to configuration until the disassembly and assembly steps are empty, and finishing the assembly; the invention has the advantages of simple technical scheme, strong reusability and clear configuration file.

Description

Unordered disassembly and assembly method based on three-dimensional model
Technical Field
The invention relates to the technical field of mold manufacturing control, in particular to a disordered dismounting method based on a three-dimensional model.
Background
In the unordered disassembly and assembly process of the die, because the possibility of disassembly and assembly is relatively high, a lot of judgment is often needed for realizing, and the code is not reused, namely, the logic is optimized by integrating a part of the same points, but the whole code is required to be modified under the condition of meeting a plurality of special steps, or the time and the energy are wasted because the structure cannot be clearly seen when the step configuration file is written.
In view of the limitations existing in the current situation, the invention provides a disorder dismounting method based on a three-dimensional model.
Disclosure of Invention
The invention aims to provide a disorder disassembly and assembly method based on a three-dimensional model, aiming at the defects existing in the prior art, and solves the problems of incapability of multiplexing and complicated codes.
The technical scheme adopted for solving the technical problems is as follows:
a disorder disassembly and assembly method based on a three-dimensional model comprises the following steps:
s1, creating a class which is enough to bear all contents of each step;
s2, creating a configuration file by using a json format, converting the json character string into a class object in an initialized mode, taking the class object as storage data, loading the class object, and setting an interdependence relation according to the class object;
s3, creating all the steps, disassembled steps and a disassembled step dictionary, and associating scene objects;
s4, judging the current step state according to the dependent items and the dependent items of the step, initializing assignment, adding the assignment to a dictionary, and recording the disassembly and assembly progress, wherein the step state comprises the dependent items, the dependent items or the dependent items and the dependent items;
s5, searching the dictionary in which the current step exists when the detachable step is detached, and then writing the logic and executing the step according to the configuration until the detachable step is empty, and finishing the installation.
Further, the step S4 further includes: according to the configured data, traversing all steps, acquiring objects related to the scene in the steps, and storing the objects in all step dictionaries.
Further, the logic for searching the dictionary dependent item and the dependent item in the step S5 is as follows:
traversing all step dictionaries in which the dependent items of a step are traversed, and if the dependent items of the step are not stored, storing; if the dependent item of the dependent item in the step is not stored, the prompt message is printed and then stored.
Further, the logic for searching the dictionary or the dependent item and/or the dependent item in the step S5 is as follows:
if there is an or relationship, it is necessary to traverse the or dependent items of this step, find incomplete, remove the step in their or dependent items;
traversing the dependent item of the current step, judging whether the dependent item of the dependent item is executed completely, and if so, adding the dependent item into a detachable step dictionary;
if there is an or relationship, the step or dependent items are judged, if there is a judgment whether they have been disassembled, if not, they are added to the disassembled step dictionary.
Further, the executing step in the step S5 specifically includes:
traversing all the step dictionaries after execution in the step S4, searching steps without dependent items, and storing the steps into a detachable step dictionary;
traversing the detachable step dictionary, starting the detachable functions of the steps, and operating the object associated with the step in the step S4;
after one of the dismounting operations is performed, the dismounting state of this step is set to be dismounted, and it is removed from the dismountable dictionary and added to the dismounted dictionary.
Compared with the prior art, the invention has the beneficial effects that: the invention has the advantages of simple technical scheme, strong reusability and clear configuration file.
Drawings
FIG. 1 is a schematic overall flow diagram of unordered installation in one embodiment of the invention;
FIG. 2 is a flow chart of out-of-order installation in one embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a disorder disassembly and assembly method based on a three-dimensional model, which comprises the following steps of:
s1, creating a class which is enough to bear all contents of each step;
s2, creating a configuration file by using a json format, converting the json character string into a class object in an initialized mode, taking the class object as storage data, loading the class object, and setting an interdependence relation according to the class object;
s3, creating all the steps, disassembled steps and a disassembled step dictionary, and associating scene objects;
s4, judging the current step state according to the dependent items and the dependent items of the step, initializing assignment, adding the assignment to a dictionary, and recording the disassembly and assembly progress, wherein the step state comprises the dependent items, the dependent items or the dependent items and the dependent items;
s5, searching the dictionary in which the current step exists when the detachable step is detached, and then writing the logic and executing the step according to the configuration until the detachable step is empty, and finishing the installation.
In specific implementation, the step S4 further includes: according to the configured data, traversing all steps, acquiring objects related to the scene in the steps, and storing the objects in all step dictionaries.
In specific implementation, the logic for searching the dictionary dependent item and the dependent item in the step S5 is as follows:
traversing all step dictionaries in which the dependent items of a step are traversed, and if the dependent items of the step are not stored, storing; if the dependent item of the dependent item in the step is not stored, the prompt message is printed and then stored.
In specific implementation, the logic for searching the dictionary or the dependent item and/or the dependent item in the step S5 is as follows:
if there is an or relationship, it is necessary to traverse the or dependent items of this step, find incomplete, remove the step in their or dependent items;
traversing the dependent item of the current step, judging whether the dependent item of the dependent item is executed completely, and if so, adding the dependent item into a detachable step dictionary;
if there is an or relationship, the step or dependent items are judged, if there is a judgment whether they have been disassembled, if not, they are added to the disassembled step dictionary.
In specific implementation, the executing steps in the step S5 specifically include:
traversing all the step dictionaries after execution in the step S4, searching steps without dependent items, and storing the steps into a detachable step dictionary;
traversing the detachable step dictionary, starting the detachable functions of the steps, and operating the object associated with the step in the step S4;
after one of the dismounting operations is performed, the dismounting state of this step is set to be dismounted, and it is removed from the dismountable dictionary and added to the dismounted dictionary.
As a preferred embodiment of the present invention, as shown in fig. 1 and 2, the unordered disassembly is divided into unordered assembly and unordered disassembly, and the two are logically identical, and the unordered assembly is illustrated here as an example. The overall installation logic is divided into: data configuration and installation logic.
1. Data configuration
Creating a class (parameters such as reality, hidden objects, dependent items and dependent items, tools used, parts taken at installation, methods performed before and after steps, etc.) that is sufficient to carry all the contents of each step, and using the class as a data configuration class.
2. Installation logic
2_1, creating three dictionaries, respectively: all step dictionaries, installed step dictionaries, and installable step dictionaries;
2_2, traversing all steps according to the configured data, acquiring objects related to the scene in the steps, and storing the objects in all step dictionaries;
2_3, when judging whether one can be installed, several fields in the steps are used, i call them be: dependent items, or dependent items. The dependent items and the dependent items are generally used, and when special conditions are met, for example, the three parts A, B, C are provided, the installation occasions of A and B are parallel, C is possibly installed on A and also possibly installed on B, and two fields of the dependent items and the dependent items are used at the time;
2_4, after the operation in 2_2 is performed, traversing all step dictionaries, and then traversing the dependent item of one step therein, and storing if the dependent item of the step is not stored; if the dependent item of the dependent item in the step is not stored, the prompt message is printed and then stored. Through this traversal, the integrity of the data configuration can be verified and the interdependencies of the steps stored. By means of the dependency relationship, when a step is obtained, the step on which the step depends and the step on which the step depends can be obtained;
2_5, traversing all the step dictionaries after the execution of 2_4, searching steps without dependent items, and storing the steps into an installable step dictionary;
2_6, traversing the installable step dictionary, starting the installation function of the steps, and operating the object associated with the step 2_2;
2_7, after an installation operation is performed, setting the installation state of the step as installed, and removing it from the installable step dictionary and adding it to the installed step dictionary B;
2_8, if there is an or relationship, need to traverse the step or dependent item, find incomplete, remove them or the step in the dependent item;
2_9 traversing the dependent item of the current step, judging whether the dependent item of the dependent item is executed completely, and if so, adding the dependent item into an installable step dictionary;
2_10, if there is an or relationship, judging the step or the dependent items, if there is a judgment whether they are already installed, if not, adding them into an installable step dictionary;
2_11, then performing 2_6, and cycling until the installable step is empty, i.e. all steps are installed, and the installation is completed.
The foregoing has shown and described the basic principles, principal features and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that the above embodiments and descriptions are merely illustrative of the principles of the present invention, and various changes and modifications may be made without departing from the spirit and scope of the invention, which is defined in the appended claims. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (2)

1. The unordered disassembly and assembly method based on the three-dimensional model is characterized by comprising the following steps of:
s1, creating a class which is enough to bear all contents of each step;
s2, creating a configuration file by using a json format, converting the json character string into a class object in an initialized mode, taking the class object as storage data, loading the class object, and setting an interdependence relation according to the class object;
s3, creating all the steps, disassembled steps and a disassembled step dictionary, and associating scene objects;
s4, judging the current step state according to the dependent items and the dependent items of the step, initializing assignment, adding the assignment to a dictionary, and recording the disassembly and assembly progress, wherein the step state comprises the dependent items, the dependent items or the dependent items and the dependent items;
s5, searching in which dictionary the current step exists in during disassembly and assembly, and then writing logic and executing the steps according to configuration until the disassembly and assembly steps are empty, and finishing the assembly;
the logic for searching the dictionary dependent item and the dependent item in the step S5 is as follows:
traversing all step dictionaries in which the dependent items of a step are traversed, and if the dependent items of the step are not stored, storing; if the dependent item of the dependent item in the step is not stored, printing prompt information and storing the prompt information;
the logic for searching the dictionary or the dependent item and/or the depended item in the step S5 is as follows:
if there is an or relationship, it is necessary to traverse the or dependent items of this step, find incomplete, remove the step in their or dependent items;
traversing the dependent item of the current step, judging whether the dependent item of the dependent item is executed completely, and if so, adding the dependent item into a detachable step dictionary;
if there is or relation, judging the step or dependent items, if there is judgment whether they are already disassembled, if not, adding them into the disassembled step dictionary;
the executing step in the step S5 specifically includes:
traversing all the step dictionaries after execution in the step S4, searching steps without dependent items, and storing the steps into a detachable step dictionary;
traversing the detachable step dictionary, starting the detachable functions of the steps, and operating the object associated with the step in the step S4;
after one of the dismounting operations is performed, the dismounting state of this step is set to be dismounted, and it is removed from the dismountable dictionary and added to the dismounted dictionary.
2. The method for unordered disassembly and assembly based on the three-dimensional model according to claim 1, wherein the step S4 further comprises: according to the configured data, traversing all steps, acquiring objects related to the scene in the steps, and storing the objects in all step dictionaries.
CN201910015473.1A 2019-01-08 2019-01-08 Unordered disassembly and assembly method based on three-dimensional model Active CN109740127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910015473.1A CN109740127B (en) 2019-01-08 2019-01-08 Unordered disassembly and assembly method based on three-dimensional model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910015473.1A CN109740127B (en) 2019-01-08 2019-01-08 Unordered disassembly and assembly method based on three-dimensional model

Publications (2)

Publication Number Publication Date
CN109740127A CN109740127A (en) 2019-05-10
CN109740127B true CN109740127B (en) 2023-05-26

Family

ID=66363888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910015473.1A Active CN109740127B (en) 2019-01-08 2019-01-08 Unordered disassembly and assembly method based on three-dimensional model

Country Status (1)

Country Link
CN (1) CN109740127B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494370A (en) * 2002-09-27 2004-05-05 卡西欧计算机株式会社 Electronic machine and its cover part
CN101620746A (en) * 2009-07-29 2010-01-06 深圳大学 Manual assembly method of virtual three-dimensional model based on VRML-JAVA
CN105551088A (en) * 2015-12-29 2016-05-04 北京航天测控技术有限公司 Three-dimensional model dismounting method and device based on virtual group object
CN107301382A (en) * 2017-06-06 2017-10-27 西安电子科技大学 The Activity recognition method of lower depth Non-negative Matrix Factorization is constrained based on Time Dependent
CN107678748A (en) * 2017-09-21 2018-02-09 杭州迪普科技股份有限公司 A kind of source code file Compilation Method and device
CN108228171A (en) * 2017-12-29 2018-06-29 武汉益模科技股份有限公司 A kind of project tree query and display methods based on tree structure
CN108255964A (en) * 2017-12-23 2018-07-06 武汉益模科技股份有限公司 A kind of methods of exhibiting of process flow routes
CN108628751A (en) * 2018-05-17 2018-10-09 北京三快在线科技有限公司 A kind of useless dependence item detection method and device
CN109121436A (en) * 2015-11-25 2019-01-01 蒂米菲尔股份有限公司 Augmentation, exploration and Maintenance Significant Items method layered

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494370A (en) * 2002-09-27 2004-05-05 卡西欧计算机株式会社 Electronic machine and its cover part
CN101620746A (en) * 2009-07-29 2010-01-06 深圳大学 Manual assembly method of virtual three-dimensional model based on VRML-JAVA
CN109121436A (en) * 2015-11-25 2019-01-01 蒂米菲尔股份有限公司 Augmentation, exploration and Maintenance Significant Items method layered
CN105551088A (en) * 2015-12-29 2016-05-04 北京航天测控技术有限公司 Three-dimensional model dismounting method and device based on virtual group object
CN107301382A (en) * 2017-06-06 2017-10-27 西安电子科技大学 The Activity recognition method of lower depth Non-negative Matrix Factorization is constrained based on Time Dependent
CN107678748A (en) * 2017-09-21 2018-02-09 杭州迪普科技股份有限公司 A kind of source code file Compilation Method and device
CN108255964A (en) * 2017-12-23 2018-07-06 武汉益模科技股份有限公司 A kind of methods of exhibiting of process flow routes
CN108228171A (en) * 2017-12-29 2018-06-29 武汉益模科技股份有限公司 A kind of project tree query and display methods based on tree structure
CN108628751A (en) * 2018-05-17 2018-10-09 北京三快在线科技有限公司 A kind of useless dependence item detection method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"Simulation of three-dimensional floc growth using improved DLA model";Zumin Qiu.etc;《2011 IEEE 2nd International Conference on Computing, Control and Industrial Engineering》;20110901;第250-253页 *
"基于层次结构的三维CAD模型相似性评估与重用研究";李智;《中国博士学位论文全文数据库 信息科技辑》;20170215;I138-211 *
"基于虚实结合的制图测绘教学改革与实践";贺爱东;《职业教育研究》;20140708;第172-174页 *

Also Published As

Publication number Publication date
CN109740127A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
Fleurey et al. A generic approach for automatic model composition
Nguyen et al. Recommending API usages for mobile apps with hidden markov model
CN108491228B (en) Binary vulnerability code clone detection method and system
CN102870116B (en) Method and apparatus for content matching
CN102495733A (en) Methods for detecting compatibility of application program and relevant database script and performing upgrading maintenance on application program and relevant database script
CN105354239A (en) Configuration data processing model based processing center data stream processing method
KR20080076058A (en) Apparatus and method for developing software based on component
WO2012050574A1 (en) Creating a configuration file template
CN109740127B (en) Unordered disassembly and assembly method based on three-dimensional model
CN105589739B (en) A kind of process control system and method
Buchmann et al. Managing Variability in Models and Derived Artefacts in Model-driven Software Product Lines.
CN107247904B (en) Safety baseline item synchronization method and device
US20070239794A1 (en) Method and system for updating logical information in databases
EP2535813B1 (en) Method and device for generating an alert during an analysis of performance of a computer application
CN107612919B (en) Protocol configuration method and device
CN113001538B (en) Command analysis method and system
JPWO2008152910A1 (en) Workflow definition change program and workflow definition change method
CN114154944B (en) Business auditing method, equipment and computer readable storage medium
CN112181951A (en) Heterogeneous database data migration method, device and equipment
CN106681914B (en) Television picture quality debugging method and device
CN106293897B (en) Automatic scheduling system of subassembly
CN113434321B (en) Method, device and equipment for processing deployment errors in operation and maintenance and storage medium
CN104182248B (en) Business rule base upgrade method and device
Kopp et al. Generalized markdown architectural decision records: Capturing the essence of decisions
CN117032844B (en) Cooperative link tracking device and method and intelligent vehicle

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
TA01 Transfer of patent application right

Effective date of registration: 20230428

Address after: 430000 R & D Office No. 1, 21 / F, building 1, China Optics Valley cloud computing overseas high tech enterprise incubation center, No. 22, Gaoxin 2nd Road, Donghu New Technology Development Zone, Wuhan, Hubei Province

Applicant after: WUHAN EMAN TECHNOLOGY CO.,LTD.

Address before: Room 205, 206, 208, Industrial Technology R&D Building, Huazhong University of Science and Technology, No. 1, Keji 9th Road, Songshan Lake Hi tech Industrial Development Zone, Dongguan, Guangdong 518000

Applicant before: YIMO (DONGGUAN) INTELLIGENT TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant