CN113052982A - Method and device for assembling and disassembling accessories in industrial model, computer equipment and storage medium - Google Patents

Method and device for assembling and disassembling accessories in industrial model, computer equipment and storage medium Download PDF

Info

Publication number
CN113052982A
CN113052982A CN202110310805.6A CN202110310805A CN113052982A CN 113052982 A CN113052982 A CN 113052982A CN 202110310805 A CN202110310805 A CN 202110310805A CN 113052982 A CN113052982 A CN 113052982A
Authority
CN
China
Prior art keywords
model
accessory
blueprint
model part
assembling
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.)
Granted
Application number
CN202110310805.6A
Other languages
Chinese (zh)
Other versions
CN113052982B (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.)
Shenzhen Realis Multimedia Technology Co Ltd
Original Assignee
Shenzhen Realis Multimedia 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 Shenzhen Realis Multimedia Technology Co Ltd filed Critical Shenzhen Realis Multimedia Technology Co Ltd
Priority to CN202110310805.6A priority Critical patent/CN113052982B/en
Publication of CN113052982A publication Critical patent/CN113052982A/en
Application granted granted Critical
Publication of CN113052982B publication Critical patent/CN113052982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2008Assembling, disassembling
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention relates to a method and a device for disassembling and assembling accessories in an industrial model, computer equipment and a storage medium, wherein the method comprises the following steps: creating a blueprint of the management model dismounting logic and adding a Scene component; storing a plurality of accessory models into an array of declared types, and generating a plurality of model accessory blueprints and a plurality of model accessory assembly position blueprints corresponding to the plurality of accessory models; attaching the heel component of each model part blueprint and each model part assembly position blueprint to the Scene component; when the virtual handle grabs the blueprints of a plurality of model accessories and moves to the open space, the accessory disassembly is completed; when the virtual handle grabs one of the model part blueprints and moves to collide with the matched model part assembling position blueprint, the model part blueprint is triggered to highlight and is attached to the Scene component after being released by the virtual handle, and the assembling of the parts is completed. The present invention enables the disassembled target fitting to be accurately assembled by a simple collision response.

Description

Method and device for assembling and disassembling accessories in industrial model, computer equipment and storage medium
Technical Field
The invention relates to the technical field of UE4 engines, in particular to a method and a device for disassembling and assembling accessories in an industrial model, computer equipment and a storage medium.
Background
The UE4 engine is used as an application background, in the existing industrial model dismounting process, the realization mode of dismounting the model accessory is simple, only a series of conventional operations of grabbing, moving and releasing the target accessory by using the ray of the virtual handle are needed, however, for the realization mode of assembling the model accessory, the research direction of the technicians at present is focused on judging whether the target accessory released by the virtual handle is placed on the initial position before dismounting by using the comparison result between the current position and the initial position of the industrial model, but ignores the key information that the current position of the industrial model is possibly far away from the center point of the model, and can not ensure the accurate assembly of the target accessory.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method, a device, computer equipment and a storage medium for dismounting and mounting a part in an industrial model, so that a dismounted target part can be accurately assembled through simple model collision response.
In order to solve at least one technical problem, an embodiment of the present invention provides a method for disassembling and assembling a fitting in an industrial model, where the method includes:
creating a management blueprint of model dismounting logic, and adding a Scene component under the management blueprint, wherein the Scene component is used for processing a position adjusting instruction of an accessory model;
declaring an array of a static model type, storing a plurality of accessory models contained in an industrial model into the array, generating a plurality of model accessory blueprints corresponding to the accessory models in a mode of traversing the array, and generating a plurality of model accessory assembling position blueprints corresponding to the accessory models by taking the array as a template;
attaching the heel component of each model part blueprint and the heel component of each model part assembling position blueprint to the Scene component, setting each model part blueprint as a model display state and keeping each model part assembling position blueprint as a model hiding state;
when a user grasps the plurality of model accessory blueprints by manipulating the virtual handle and moves the model accessory blueprints to an empty place, the disassembly work of the plurality of accessory models is completed;
when a user grasps one model part blueprint to be assembled by manipulating the virtual handle and moves the model part blueprint to a matched model part assembling position blueprint to generate a collision event, the model part blueprint to be assembled is triggered to be highlighted, and the model part blueprint to be assembled is attached to the Scene component again after being released by the virtual handle, so that the assembling work of the model part blueprint to be assembled is completed.
Preferably, before storing a plurality of accessory models included in the industrial model into the array, the method further includes: and carrying out dismounting interactive pretreatment on the plurality of accessory models.
Preferably, the disassembling and assembling interactive preprocessing of the plurality of accessory models comprises:
based on N accessory models contained in the industrial model, M accessory models with regular shapes are screened out from the N accessory models, and a collision effect is added to each of the M accessory models according to the shapes of the accessories;
and adding a three-dimensional collision frame to each of the rest N-M accessory models by utilizing a box body simplified collision algorithm, and converting the three-dimensional collision frame corresponding to each accessory model into an irregular collision frame which is attached to the shape of the accessory model by utilizing an automatic convex hull collision algorithm.
Preferably, the generating a plurality of model accessory blueprints corresponding to the plurality of accessory models by traversing an array includes:
acquiring a first accessory model from the array, and creating a model accessory blueprint for inheriting the first accessory model and the dismounting interactive characteristics thereof, wherein the model accessory blueprint is numbered 0;
setting a heel component of the blueprint of the model accessory as a static model component, and setting the object type of the heel component as WorldDynamic and the collision response thereof as an overlapping mode;
and sequentially and circularly executing the two steps for N times until a model accessory blueprint with the number of N-1 corresponding to the Nth accessory model is created.
Preferably, the generating a plurality of model part assembly position blueprints corresponding to the plurality of part models by using the array as a template includes:
acquiring a first accessory model from the array, and creating a model accessory assembling position blueprint for recording the first accessory model and an initial mounting position of the first accessory model, wherein the number of the model accessory assembling position blueprint is 0;
setting a heel component of the blueprint of the model accessory assembling position as a static model component, and setting the object type of the heel component as WorldDynamic and the collision response thereof as an overlapping mode;
and sequentially and circularly executing the two steps for N times until a model part assembling position blueprint with the number of N-1 corresponding to the Nth part model is created.
Preferably, the user grasps one of the model part blueprints to be assembled by manipulating the virtual handle and moves the model part blueprint to a matched model part assembling position blueprint to generate a collision event, wherein the collision event comprises the following steps:
when a user moves the model part blueprint to be assembled to any model part assembling position blueprint to generate a collision event by operating the virtual handle, calling an OnComponentBeginOverlap event of the model part assembling position blueprint to verify whether the number of the model part assembling position blueprint is the same as that of the model part blueprint to be assembled or not;
if yes, triggering the blue picture highlight of the model part to be assembled;
and if not, returning to move the blueprint of the model part to be assembled to the blueprint of the next model part assembling position for collision verification.
Preferably, in the process that the model part blueprint to be assembled is released by the virtual handle, the IsoverlappingActor function is called to control the model part blueprint to be assembled and the matched model part assembling position blueprint to keep in a touch state.
In addition, the embodiment of the invention also provides a device for dismounting and mounting the accessory in the industrial model, which comprises:
the system comprises a first creating module, a second creating module and a third creating module, wherein the first creating module is used for creating a management blueprint of model dismounting logic and adding a Scene component under the management blueprint, and the Scene component is used for processing a position adjusting instruction of an accessory model;
the second creation module is used for declaring an array of a static model type, storing a plurality of accessory models contained in an industrial model into the array, generating a plurality of model accessory blueprints corresponding to the accessory models in a mode of traversing the array, and generating a plurality of model accessory assembly position blueprints corresponding to the accessory models by taking the array as a template;
the adding module is used for adding the following component of each model part blueprint and the following component of each model part assembling position blueprint to the Scene component, setting each model part blueprint as a model display state and keeping each model part assembling position blueprint as a model hiding state;
the disassembly module is used for completing the disassembly work of the plurality of accessory models when a user grasps the blueprints of the plurality of model accessories by operating the virtual handle and moves the blueprints to an empty place;
and the assembling module is used for triggering the blue picture of the model part to be assembled to be highlighted when a user grabs one of the blue pictures of the model part to be assembled by operating the virtual handle and moves the blue picture to a matched blue picture of the assembling position of the model part to collide with the blue picture, and the blue picture of the model part to be assembled is attached to the Scene component again after being released by the virtual handle, so that the assembling work of the blue picture of the model part to be assembled is completed.
In addition, an embodiment of the present invention further provides a computer device, including: the system comprises a memory, a processor and an application program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the method of any embodiment when executing the application program.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which an application program is stored, and when the application program is executed by a processor, the steps of any one of the above-mentioned embodiments of the method are implemented.
In the embodiment of the invention, by implementing the method, a user simultaneously establishes a model part blueprint for interactive operation and a model part assembling position blueprint for recording an initial position for any detachable target part, and after the user moves the target part by using a virtual handle until the associated model part blueprint and the model part assembling position blueprint have simple collision response, the user can verify that the target part returns to the initial position before being detached, so that the accurate assembly of the target part is realized, and the problem of poor assembling effect caused by reference point offset in the prior art is solved.
Drawings
FIG. 1 is a schematic flow chart of a method for assembling and disassembling an accessory in an industrial model according to an embodiment of the present invention;
FIG. 2 is a schematic view of an apparatus for mounting and dismounting a fitting part in an industrial model according to an embodiment of the present invention;
fig. 3 is a schematic structural composition diagram of a computer device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method for disassembling and assembling accessories in an industrial model, which comprises the following steps of:
s101, creating a management blueprint of model dismounting logic, and adding a Scene component under the management blueprint, wherein the Scene component is used for processing a position adjusting instruction of an accessory model;
wherein the position adjustment instruction comprises: and performing translation operation, rotation operation or zooming operation on the accessory model selected by the virtual handle.
S102, declaring an array of a static model type, storing a plurality of accessory models contained in an industrial model into the array, generating a plurality of model accessory blueprints corresponding to the accessory models in a mode of traversing the array, and generating a plurality of model accessory assembling position blueprints corresponding to the accessory models by taking the array as a template;
in an embodiment, S102 further includes: carrying out dismounting interactive pretreatment on a plurality of accessory models contained in the industrial model, wherein the corresponding realization process comprises the following steps: firstly, based on N accessory models contained in the industrial model, M accessory models with regular shapes are screened out from the N accessory models, and a collision effect is added to each of the M accessory models according to the accessory shapes, wherein each of the M accessory models is in one of a cube, a cylinder, a sphere and a capsule; and secondly, adding a three-dimensional collision frame to each of the rest N-M accessory models by using a box body simplified collision algorithm, and converting the three-dimensional collision frame corresponding to each accessory model into an irregular collision frame fitting the shape of the accessory model by using an automatic convex hull collision algorithm, wherein a convex hull decomposition parameter value set for each of the N-M accessory models is defined by a user according to the complexity of the accessory model.
Specifically, the process of generating the model accessory blueprints corresponding to the accessory models includes: firstly, acquiring a first accessory model from the array, and creating a model accessory blueprint for inheriting the first accessory model and the dismounting interactive characteristics thereof, so that the model accessory blueprint can be detected by rays emitted by a virtual handle, and the number of the model accessory blueprint is 0; secondly, setting a heel component of the model accessory blueprint as a static model component (namely the model accessory blueprint does not have a bone animation characteristic), and setting the object type of the heel component as WorldDynamic and the collision response thereof as an overlapping mode; and sequentially and circularly executing the two steps for N times until a model accessory blueprint with the number of N-1 corresponding to the Nth accessory model is created.
Specifically, the process of generating the blueprint of the assembly positions of the plurality of model parts corresponding to the plurality of part models includes: firstly, acquiring a first accessory model from the array, and creating a model accessory assembling position blueprint for recording the first accessory model and an initial mounting position thereof, wherein the number of the model accessory assembling position blueprint is 0; secondly, in order to enable the model accessory assembling position blueprint to generate collision response with a corresponding model accessory blueprint, setting a following component of the model accessory assembling position blueprint as a static model component, and setting the object type of the following component as WorldDynamic and the collision response thereof as an overlapping mode; and sequentially and circularly executing the two steps for N times until a model part assembling position blueprint with the number of N-1 corresponding to the Nth part model is created.
S103, attaching the following component of each model part blueprint and the following component of each model part assembling position blueprint to the Scene component, setting each model part blueprint as a model display state and keeping each model part assembling position blueprint as a model hiding state;
specifically, when the following components of the N model accessory blueprints and the following components of the N model accessory assembling position blueprints are attached to the Scene component, the user can interactively control one or more model accessory blueprints in a display state through the virtual handle by preferentially setting the relative displacement of each model accessory blueprint as a default value until the model accessory blueprints are subjected to collision verification with one or more model accessory assembling position blueprints in a hidden state, or the user can directly select the Scene component through the virtual handle to perform overall position adjustment.
S104, when a user grasps the blueprints of the plurality of model accessories by operating the virtual handle and moves the blueprints to an empty place, the disassembly work of the plurality of accessory models is completed;
specifically, the fact that the ray of the virtual handle can capture each model accessory blueprint in the current application scene is explained based on the fact that the model accessory blueprints inherit the dismounting interaction characteristics of the corresponding accessory models, at the moment, a user can sequentially control the virtual handle to select one model accessory blueprint according to personal dismounting requirements, when a trigger key of the virtual handle is pressed, the selected model accessory blueprint is captured and the virtual handle is continuously subjected to position translation, when the user releases the trigger key of the virtual handle, the selected model accessory blueprint is released, and therefore dismounting work of moving the selected model accessory blueprint to a vacant place is achieved.
S105, when a user grasps one of the model part blueprints to be assembled by operating the virtual handle and moves the model part blueprint to the matched model part assembling position blueprint to generate a collision event, triggering the model part blueprint to be assembled to be highlighted, and attaching the model part blueprint to be assembled to the Scene component again after the model part blueprint to be assembled is released by the virtual handle, so that the assembling work of the model part blueprint to be assembled is completed.
In one embodiment, the user grasps one of the model part blueprints to be assembled by manipulating the virtual handle and moves the grasped model part blueprint to a matched model part assembling position blueprint to generate a collision event, wherein the collision event comprises the following steps: when a user moves the model part blueprint to be assembled to any model part assembling position blueprint to generate a collision event by operating the virtual handle, calling an OnComponentBeginOverlap event of the model part assembling position blueprint to verify whether the number of the model part assembling position blueprint is the same as that of the model part blueprint to be assembled, wherein the corresponding verification result is as follows: if the numbers of the two blueprints are the same, the blueprint of the model part to be assembled returns to the initial position before disassembly, and the blueprint of the model part to be assembled is triggered to be highlighted; if the numbers of the two blueprints are different, the blueprint of the model part to be assembled still does not meet the assembly matching condition, and at the moment, the blueprint of the model part to be assembled is returned to be moved to the next assembling position blueprint of the model part to be assembled for collision verification.
Specifically, in the process that the model part blueprint to be assembled is released by the virtual handle, the IsoverlappingActor function is called to control the model part blueprint to be assembled and the matched model part assembling position blueprint to keep in a touch state, so that the releasing process is prevented from being influenced by improper operation of a user and generating deviation.
By implementing the method, a user establishes a model part blueprint for interactive operation and a model part assembling position blueprint for recording an initial position for any detachable target part at the same time, and after the user moves the target part by using the virtual handle until the associated model part blueprint and the model part assembling position blueprint have simple collision response, the target part can be verified to return to the initial position before being detached, so that the accurate assembly of the target part is realized, and the problem of poor assembling effect caused by the deviation of a reference point in the prior art is solved.
In one embodiment, the invention further provides a device for assembling and disassembling the accessory in the industrial model. As shown in fig. 2, the apparatus includes:
the first creating module 201 is configured to create a management blueprint of model dismounting logic, and add a Scene component under the management blueprint, where the Scene component is used to process a position adjustment instruction of an accessory model;
the second creating module 202 is configured to declare an array of a static model type, store a plurality of accessory models included in an industrial model into the array, generate a plurality of model accessory blueprints corresponding to the plurality of accessory models by traversing the array, and generate a plurality of model accessory assembly position blueprints corresponding to the plurality of accessory models by using the array as a template;
an adding module 203, configured to attach the heel component of each model component blueprint and the heel component of each model component assembly position blueprint to the Scene component, set each model component blueprint as a model display state, and maintain each model component assembly position blueprint as a model hidden state;
the disassembling module 204 is used for completing the disassembling work of the plurality of accessory models when a user grasps the blueprints of the plurality of model accessories by operating the virtual handle and moves the blueprints to an empty place;
and the assembling module 205 is configured to trigger highlighting of the model part blueprint to be assembled when a user grabs one of the model part blueprints to be assembled by manipulating the virtual handle and moves the model part blueprint to a matched model part assembling position blueprint to generate a collision event, and attach the model part blueprint to the Scene component again after the model part blueprint to be assembled is released by the virtual handle, so as to complete assembling work of the model part blueprint to be assembled.
For the specific definition of the device for assembling and disassembling an accessory in an industrial model, reference may be made to the above definition of the method for assembling and disassembling an accessory in an industrial model, and details are not described here. All or part of each module in the accessory dismounting device in the industrial model can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In an embodiment of the present invention, an application program is stored on a computer-readable storage medium, and when the application program is executed by a processor, the method for detaching and installing an accessory in an industrial model according to any one of the embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the method for assembling and disassembling the accessories in the industrial model in any one of the embodiments.
Fig. 3 is a schematic structural diagram of a computer device in the embodiment of the present invention.
An embodiment of the present invention further provides a computer device, as shown in fig. 3. The computer apparatus includes a processor 302, a memory 303, an input unit 304, a display unit 305, and the like. Those skilled in the art will appreciate that the device configuration means shown in fig. 3 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by running or executing software programs and/or modules stored in the memory 303 and calling data stored in the memory.
As one embodiment, the computer device includes: one or more processors 302, a memory 303, one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, and wherein the one or more applications 301 are configured to perform a method of fitting removal from an industrial model in any of the above embodiments.
In addition, the method, the apparatus, the computer device and the storage medium for disassembling and assembling the accessories in the industrial model provided by the embodiment of the present invention are described in detail above, and a specific example should be adopted herein to explain the principle and the embodiment of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for disassembling and assembling accessories in an industrial model is characterized by comprising the following steps:
creating a management blueprint of model dismounting logic, and adding a Scene component under the management blueprint, wherein the Scene component is used for processing a position adjusting instruction of an accessory model;
declaring an array of a static model type, storing a plurality of accessory models contained in an industrial model into the array, generating a plurality of model accessory blueprints corresponding to the accessory models in a mode of traversing the array, and generating a plurality of model accessory assembling position blueprints corresponding to the accessory models by taking the array as a template;
attaching the heel component of each model part blueprint and the heel component of each model part assembling position blueprint to the Scene component, setting each model part blueprint as a model display state and keeping each model part assembling position blueprint as a model hiding state;
when a user grasps the plurality of model accessory blueprints by manipulating the virtual handle and moves the model accessory blueprints to an empty place, the disassembly work of the plurality of accessory models is completed;
when a user grasps one model part blueprint to be assembled by manipulating the virtual handle and moves the model part blueprint to a matched model part assembling position blueprint to generate a collision event, the model part blueprint to be assembled is triggered to be highlighted, and the model part blueprint to be assembled is attached to the Scene component again after being released by the virtual handle, so that the assembling work of the model part blueprint to be assembled is completed.
2. The method of claim 1, further comprising, before storing a plurality of component models included in the industrial model in the array: and carrying out dismounting interactive pretreatment on the plurality of accessory models.
3. The method for disassembling and assembling accessories in industrial models according to claim 2, wherein the preprocessing of disassembling and assembling the accessory models comprises:
based on N accessory models contained in the industrial model, M accessory models with regular shapes are screened out from the N accessory models, and a collision effect is added to each of the M accessory models according to the shapes of the accessories;
and adding a three-dimensional collision frame to each of the rest N-M accessory models by utilizing a box body simplified collision algorithm, and converting the three-dimensional collision frame corresponding to each accessory model into an irregular collision frame which is attached to the shape of the accessory model by utilizing an automatic convex hull collision algorithm.
4. The method of claim 3, wherein generating a plurality of model part blueprints corresponding to the plurality of part models by traversing an array comprises:
acquiring a first accessory model from the array, and creating a model accessory blueprint for inheriting the first accessory model and the dismounting interactive characteristics thereof, wherein the model accessory blueprint is numbered 0;
setting a heel component of the blueprint of the model accessory as a static model component, and setting the object type of the heel component as WorldDynamic and the collision response thereof as an overlapping mode;
and sequentially and circularly executing the two steps for N times until a model accessory blueprint with the number of N-1 corresponding to the Nth accessory model is created.
5. The method of claim 4, wherein the generating a plurality of model part assembly position blueprints corresponding to the plurality of part models using the array as a template comprises:
acquiring a first accessory model from the array, and creating a model accessory assembling position blueprint for recording the first accessory model and an initial mounting position of the first accessory model, wherein the number of the model accessory assembling position blueprint is 0;
setting a heel component of the blueprint of the model accessory assembling position as a static model component, and setting the object type of the heel component as WorldDynamic and the collision response thereof as an overlapping mode;
and sequentially and circularly executing the two steps for N times until a model part assembling position blueprint with the number of N-1 corresponding to the Nth part model is created.
6. The method for assembling and disassembling accessories in an industrial model according to claim 1, wherein the user grasps one of the blueprints of the model accessories to be assembled by manipulating the virtual handle and moves the blueprint to a matched assembling position of the model accessories to generate a collision event comprises:
when a user moves the model part blueprint to be assembled to any model part assembling position blueprint to generate a collision event by operating the virtual handle, calling an OnComponentBeginOverlap event of the model part assembling position blueprint to verify whether the number of the model part assembling position blueprint is the same as that of the model part blueprint to be assembled or not;
if yes, triggering the blue picture highlight of the model part to be assembled;
and if not, returning to move the blueprint of the model part to be assembled to the blueprint of the next model part assembling position for collision verification.
7. The method for disassembling and assembling accessories in the industrial model according to claim 1, wherein in the process that the model accessory blueprint to be assembled is released by the virtual handle, the IsoverlappingActor function is called to control the model accessory blueprint to be assembled to keep in a touch state with the matched model accessory assembling position blueprint.
8. An apparatus for assembling and disassembling an accessory in an industrial model, the apparatus comprising:
the system comprises a first creating module, a second creating module and a third creating module, wherein the first creating module is used for creating a management blueprint of model dismounting logic and adding a Scene component under the management blueprint, and the Scene component is used for processing a position adjusting instruction of an accessory model;
the second creation module is used for declaring an array of a static model type, storing a plurality of accessory models contained in an industrial model into the array, generating a plurality of model accessory blueprints corresponding to the accessory models in a mode of traversing the array, and generating a plurality of model accessory assembly position blueprints corresponding to the accessory models by taking the array as a template;
the adding module is used for adding the following component of each model part blueprint and the following component of each model part assembling position blueprint to the Scene component, setting each model part blueprint as a model display state and keeping each model part assembling position blueprint as a model hiding state;
the disassembly module is used for completing the disassembly work of the plurality of accessory models when a user grasps the blueprints of the plurality of model accessories by operating the virtual handle and moves the blueprints to an empty place;
and the assembling module is used for triggering the blue picture of the model part to be assembled to be highlighted when a user grabs one of the blue pictures of the model part to be assembled by operating the virtual handle and moves the blue picture to a matched blue picture of the assembling position of the model part to collide with the blue picture, and the blue picture of the model part to be assembled is attached to the Scene component again after being released by the virtual handle, so that the assembling work of the blue picture of the model part to be assembled is completed.
9. A computer device comprising a memory, a processor and an application program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 7 are implemented when the application program is executed by the processor.
10. A computer-readable storage medium, on which an application program is stored, which when executed by a processor implements the steps of the method of any one of claims 1 to 7.
CN202110310805.6A 2021-03-23 2021-03-23 Fitting dismounting method and device in industrial model, computer equipment and storage medium Active CN113052982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110310805.6A CN113052982B (en) 2021-03-23 2021-03-23 Fitting dismounting method and device in industrial model, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110310805.6A CN113052982B (en) 2021-03-23 2021-03-23 Fitting dismounting method and device in industrial model, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113052982A true CN113052982A (en) 2021-06-29
CN113052982B CN113052982B (en) 2023-11-28

Family

ID=76514990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110310805.6A Active CN113052982B (en) 2021-03-23 2021-03-23 Fitting dismounting method and device in industrial model, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113052982B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160078342A1 (en) * 2012-05-04 2016-03-17 Transoft (Shanghai), Inc. Systems and methods of autonomic virtual network management
CN109427096A (en) * 2017-08-29 2019-03-05 深圳市掌网科技股份有限公司 A kind of automatic guide method and system based on augmented reality
CN109427100A (en) * 2017-08-29 2019-03-05 深圳市掌网科技股份有限公司 A kind of assembling fittings method and system based on virtual reality
CN112138393A (en) * 2020-10-15 2020-12-29 腾讯科技(深圳)有限公司 Configuration method, device, terminal and storage medium of virtual prop
CN112451967A (en) * 2020-12-11 2021-03-09 深圳市瑞立视多媒体科技有限公司 Game interaction method and device based on 3D screen interaction and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160078342A1 (en) * 2012-05-04 2016-03-17 Transoft (Shanghai), Inc. Systems and methods of autonomic virtual network management
CN109427096A (en) * 2017-08-29 2019-03-05 深圳市掌网科技股份有限公司 A kind of automatic guide method and system based on augmented reality
CN109427100A (en) * 2017-08-29 2019-03-05 深圳市掌网科技股份有限公司 A kind of assembling fittings method and system based on virtual reality
CN112138393A (en) * 2020-10-15 2020-12-29 腾讯科技(深圳)有限公司 Configuration method, device, terminal and storage medium of virtual prop
CN112451967A (en) * 2020-12-11 2021-03-09 深圳市瑞立视多媒体科技有限公司 Game interaction method and device based on 3D screen interaction and computer equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ERIC T. BLOOMQUIST等: "Framing the Scene: An Examination of Augmented Reality Head Worn Displays in Construction Assembly Tasks", pages 1 - 2, Retrieved from the Internet <URL:《网页在线公开:https://ieeexplore.ieee.org/abstract/document/9090631》> *
龚健虎: "军车发动机组装配件规划模型设计仿真", 《计算机仿真》, vol. 33, no. 4, pages 41 - 44 *

Also Published As

Publication number Publication date
CN113052982B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
KR101511819B1 (en) Method system and software for providing image sensor based human machine interfacing
US7747984B2 (en) Automatic test case for graphics design application
CN106649084B (en) The acquisition methods and device of function call information, test equipment
CN107870672B (en) Method and device for realizing menu panel in virtual reality scene and readable storage medium
CN106201241A (en) The multi-screen display method of terminal screen, device and terminal
CN109240670A (en) Modular software development methodology, system, equipment and medium
US11010276B2 (en) Configurable code fingerprint
CN110262791B (en) Visual programming method and device, operator and readable storage medium
CN103049163A (en) Method and device for controlling intelligent displaying of user interfaces
CN104571916B (en) A kind of method and device for performing terminal operation information
CN111966361B (en) Method, device, equipment and storage medium for determining model to be deployed
CN110909439A (en) AR-based assembly method and device and terminal
CN102193863A (en) Method and device for implementing multi-point touch operation
CN113610984B (en) Augmented reality method based on hollens 2 holographic glasses
CN113052982A (en) Method and device for assembling and disassembling accessories in industrial model, computer equipment and storage medium
CN111309421B (en) Interface resource loading method and device, terminal and storage medium
CN102081521A (en) General development platform of military hardware operation interface
CN112150602A (en) Model image rendering method and device, storage medium and electronic equipment
CN109558187A (en) A kind of user interface rendering method and device
CN114159770A (en) Method and device for preventing mistaken touch of keys of virtual keyboard
CN112451967A (en) Game interaction method and device based on 3D screen interaction and computer equipment
JP4757762B2 (en) User interface device and program for user interface device
CN110335346A (en) Threedimensional model display methods, device, computer equipment and storage medium
CN114327709A (en) Control page generation method and device, intelligent device and storage medium
CN113626309A (en) Method and device for simulating operation of mobile terminal, electronic equipment and storage 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
GR01 Patent grant
GR01 Patent grant