CN112215931A - Method for generating animation in three-dimensional cable laying process - Google Patents

Method for generating animation in three-dimensional cable laying process Download PDF

Info

Publication number
CN112215931A
CN112215931A CN202011071515.2A CN202011071515A CN112215931A CN 112215931 A CN112215931 A CN 112215931A CN 202011071515 A CN202011071515 A CN 202011071515A CN 112215931 A CN112215931 A CN 112215931A
Authority
CN
China
Prior art keywords
cable
animation
max
parts
cable laying
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
Application number
CN202011071515.2A
Other languages
Chinese (zh)
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.)
Nanchang Hangkong University
Original Assignee
Nanchang Hangkong University
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 Nanchang Hangkong University filed Critical Nanchang Hangkong University
Priority to CN202011071515.2A priority Critical patent/CN112215931A/en
Publication of CN112215931A publication Critical patent/CN112215931A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/603D [Three Dimensional] animation of natural phenomena, e.g. rain, snow, water or plants
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method for generating animation in a three-dimensional cable laying process, which belongs to the field of cable laying. In the aspect of process view creation, rigid structural members which represent the pose and the direction of a shielding current cable in the assembly model are removed by using an axial bounding box technology, and a simplified cable view is created and stored in the model. In the aspect of cable laying animation generation, the cable laying process is processed into a series of discrete motion states, and the pose matrix and the homogeneous transformation matrix are used for describing the pose information of the spatial angle and position of the motion states in the motion process.

Description

Method for generating animation in three-dimensional cable laying process
Technical Field
The invention relates to the technical field of cable laying, in particular to a method for generating animation in a three-dimensional cable laying process.
Background
The Persistence of vision (POV) refers to a phenomenon that when a human eye observes a scene, a light signal is transmitted to brain nerves, a short time is required, after the action of light is finished, a visual image does not disappear immediately, the residual vision is called "afterimage", and the phenomenon of vision is called "Persistence of vision".
And in the cable laying, different cable joints and corresponding electric connectors are fixedly installed according to the connection list. The cables and the rigid structural members are arranged in a crossed mode, and when the cables are laid, the rigid structural members can shield the pose trend of the cables and connect the electrical elements of the cables, so that faults such as inaccurate cable laying, poor contact, short circuit, open circuit and the like are caused, and the electrical elements of the equipment are affected. In addition, in the CREO2.0 platform, the cable bundle is assembled as one part in the model, generally, the cable bundle contains all the cables of the whole model, and the cables exist in the model in a manner of cable characteristics. Therefore, the three-dimensional cabling animation generation cannot be realized using the conventional part assembly animation generation method.
Disclosure of Invention
In order to overcome the technical problems that the traditional part assembly animation generation method cannot generate a three-dimensional cable laying animation, the pose and direction of a cable are blocked and the like in the prior art, the invention provides a method for generating the three-dimensional cable laying animation, the cable laying animation is obtained to guide field assembly, and the assembly efficiency is improved.
The POV-based three-dimensional cable laying process animation generation method is used for generating the three-dimensional cable laying animation by intercepting a cable laying key picture and making the picture into a video animation, has a good guiding function on cabling workers, improves the assembly efficiency and quality of cables and products, and shortens the product development period.
The technical purpose of the invention is realized by the following technical scheme:
a method for three-dimensional cabling process animation generation, comprising the steps of:
step 1, key picture interception: traversing all cable groups of the model, selecting a group of cables to be laid, activating a process view of the cables, and intercepting and storing a key picture of the group of cables in the current state;
step 2, processing the intercepted key picture and placing an appointed directory;
step 3, generating a cable laying animation: traversing all pictures under the specified directory, creating a null animation, and writing the pictures under the directory into a null animation file in sequence to form a cable laying animation;
the method for describing the spatial pose of the cable laying process in the step 3 comprises the following steps:
step 301: setting the pose matrix of the cable part at A as PA,PAThe expression of (a) is:
Figure BDA0002715024670000021
wherein (X)vi,Yvi,Zvi) Direction vector (X) representing 3 coordinate axes of cable parts,Ys,Zs) Representing the coordinate value of the origin of the coordinate system of the cable part;
step 302: when P is presentAAfter passing through a transformation matrix, the cable part moves to a position B, and the calculation formula of the pose matrix of the cable part in the position B is as follows:
PB=PATmove (2)
wherein, PBA pose matrix of the cable part moving at the position B is obtained; t ismove4 × 4 homogeneous transformation matrix:
Figure BDA0002715024670000031
wherein [ Mx My Mz]Is a translation component along the directions of 3 coordinate axes in the movement process of the cable part,
Figure BDA0002715024670000032
representing the rotation vector of the cable part along 3 coordinate axes in the motion process;
step 303: translation transformation and rotation transformation in the process of cable laying movement comprise the following steps:
step 303-1: translation transformation in the process of cable laying movement:
assuming the cable parts have coordinates (x, y, z) in space, when the cable parts are translated by M along the coordinate system X, Y, Z respectivelyx、My、MzThen, the translation transformation formula of the new coordinates (x, y, z) of the cable part is:
Figure BDA0002715024670000033
step 303-2: rotation transformation during the cable laying movement:
let the coordinates of the cable parts in space be (x, y, z), when the cable parts are rotated by θ degrees along the coordinate axis X, Y, Z, the rotation transformation formula of the new coordinates (x, y, z) of the cable parts is:
a. when the cable part rotates by theta degrees along the X axis:
Figure BDA0002715024670000041
b. when the cable part rotates by theta degrees along the Y axis:
Figure BDA0002715024670000042
c. when the cable part rotates by theta degrees along the Y axis:
Figure BDA0002715024670000043
as a preferable scheme, in the step 2, the process of processing the key picture is as follows: all key pictures are set to bmp pictures with equal pixels.
As a preferred scheme, the method further comprises the step of creating a process view:
s1: obtaining cable information, including connecting cable electrical connector C1、C2
S2: obtaining a cable inflection point RtAnd calculating the coordinate axis R of each point in the assembly coordinate systemt(xt,yt,zt);
S3: calculating electric connector C1、C2Maximum and minimum values of each item point in an assembly coordinate system (x, y, z coordinates);
s4: calculating global maximum and minimum x between electrical connector and cablemin、ymin、zmin、xmax、ymax、zmaxAnd generating an axially parallel bounding box SCR
S5: traverse all parts P except cable bundle parts in assembly bodyiAnd calculating the part P by adopting a Max-min expression methodiAxial parallel bounding box
Figure BDA0002715024670000051
S6: judging part PiEach coordinate value xi>xmax&&ymin<yi<ymaxOr zi>zmax&&ymin<yi<ymaxIf true, the part PiNeed to make a discharge indication, responsible for, return to S5;
s7: judging whether all parts in the assembly body are traversed or not, and if so, outputting a three-dimensional cable process view of the cable; if not, the process returns to S5.
As a preferred solution, the step of creating the process view precedes step 1.
In conclusion, the invention has the following beneficial effects:
compared with the prior art, the method for generating the three-dimensional cable laying process animation by using the POV has the advantages that the process view and the visual persistence effect are used, the key pictures for cable laying are intercepted, the pictures are made into the video animation, the problems that the traditional part assembly animation cannot generate the cable laying animation and the position and orientation of the cable are blocked are solved, the assembly efficiency and quality of the cable and products are improved, and the product development cycle is shortened.
Drawings
Fig. 1 is a flowchart of animation generation in a three-dimensional cable laying process based on POV according to an embodiment of the present invention.
Detailed Description
This specification and claims do not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms "include" and "comprise" are used in an open-ended fashion, and thus should be interpreted to mean "include, but not limited to. "substantially" means within an acceptable error range, and a person skilled in the art can solve the technical problem within a certain error range to substantially achieve the technical effect.
The terms in upper, lower, left, right and the like in the description and the claims are combined with the drawings to facilitate further explanation, so that the application is more convenient to understand and is not limited to the application.
The present invention will be described in further detail with reference to the accompanying drawings.
A three-dimensional cable laying process animation generation method comprises the following steps:
step 1: a process view is created. The three-position cable laying process view means that rigid structures blocking the pose and direction of the current cable are excluded from the assembly body model, and a cable simplified view is created and stored in the model. The process view is created on the basis of the technology of an axial parallel bounding box, the process view of each cable group is respectively created, and a three-dimensional cable laying process view atlas is formed, wherein the process comprises the following steps:
electric connector C for acquiring cable information (connecting cable)1、C2)。
A cable inflection point R is obtainedtAnd calculating the coordinate axis R of each point in the assembly coordinate systemt(xt,yt,zt)。
Calculating the electric connector C1、C2Each vertex is in an assembly coordinate system (x coordinate, y coordinate, z coordinate)) The maximum and minimum values below.
Fourth, global maximum value and minimum value x between electric connector and cable are calculatedmin、ymin、zmin、xmax、ymax、zmaxAnd generating an axially parallel bounding box SCR
Fifthly, all parts P except cable harness parts in assemblyiAnd calculating the part P by adopting a Max-min expression methodiAxial parallel bounding box
Figure BDA0002715024670000061
Sixthly, judging a part PiEach coordinate value xi>xmax&&ymin<yi<ymaxOr zi>zmax&&ymin<yi<ymaxIf true, the part PiAnd indicating that exclusion is needed, otherwise, returning to the step of fifthly.
And if all parts in the assembly body are traversed, outputting a three-dimensional cable process view of the cable, otherwise, returning to the step of fifthly.
Step 2: and (6) intercepting a key picture. Traversing all cable groups of the model, selecting a group of cables to be laid, activating a process view of the cables, intercepting a key picture of the group of cables in the current state, and storing the key picture in a computer disk.
And step 3: and (5) picture unification processing. All key pictures are set to bmp pictures with equal pixels.
And 4, step 4: and generating a cable laying animation. And traversing all the pictures in the specified directory, creating a null animation, and writing the pictures in the directory into a null animation file in sequence to form the cable laying animation.
The generation of the cable laying animation in the step 4 is mainly to process the continuous motion process of cable laying into a series of discrete motion states through a computer, then form a visual continuous effect and finally form the simulation animation of the cable laying process. The motion state of the cable is mainly fed back by means of pose information of the cable, the pose reflects the spatial angle and position of the cable in the motion process, and the method for describing the spatial pose in the cable laying process comprises the following steps:
step 401: setting the pose matrix of the cable part at A as PA,PAIs represented by the formula:
Figure BDA0002715024670000081
in the formula, PAIs a pose matrix of the cable part at A, (X)vi,Yvi,Zvi) Direction vector (X) representing 3 coordinate axes of cable parts,Ys,Zs) And the coordinate value of the origin of the coordinate system of the cable part is represented. The change of the direction vector and the coordinate value can cause the pose of the cable part in the space to change.
Step 402: when P is presentAAfter passing through a transformation matrix, the cable part moves to the position B, and the calculation formula of the pose matrix of the cable part at the position B is as follows:
PB=PA·Tmove (2)
wherein, PBA pose matrix of the cable part moving at the position B is obtained; t ismove4 × 4 homogeneous transformation matrix:
Figure BDA0002715024670000082
wherein [ Mx My Mz]Is a translation component along the directions of 3 coordinate axes in the movement process of the cable part,
Figure BDA0002715024670000083
the rotation vector of the cable part along 3 coordinate axes in the movement process is shown.
Step 403: translation transformation and rotation transformation in the process of cable laying movement comprise the following steps:
(1) translation transformation during cable laying movement
Assuming the cable parts have coordinates (x, y, z) in space, when the cable parts are translated by M along coordinate axis X, Y, Zx、My、MzNew coordinates (x) of the cable part*,y*,z*) The translation transformation formula of (a) is:
Figure BDA0002715024670000091
(2) rotation transformation during cable laying movement
Let the coordinates of the cable parts in space be (x, y, z), and when the cable parts are rotated by an angle θ along the coordinate axis X, Y, Z, the new coordinates (x) of the cable parts are obtained*,y*,z*) The rotation transformation formulas are respectively as follows:
a. when the cable part rotates by theta degrees along the X axis:
Figure BDA0002715024670000092
b. when the cable part rotates by theta degrees along the Y axis:
Figure BDA0002715024670000093
c. when the cable part rotates by theta degrees along the Y axis:
Figure BDA0002715024670000094
as shown in fig. 1, the method for generating animation in three-dimensional cable laying process disclosed by the invention mainly comprises the following steps:
step 1: and realizing a cable visual laying process simulation function. And realizing the working interface and the function of the cable visual laying process simulation module. In the working interface, a list box displays the process view of the cable group created by the system and the default process view of the system. The rule box on the right side of the interface displays different rules for creating the process view, and the three different process view creation rules are as follows:
rule one is as follows: displaying the selected cable groups individually;
rule two: highlighting the already laid cable group while displaying the currently selected cable;
rule three: and simultaneously displaying the currently selected cable, transparently displaying the laid cable group.
By selecting different process view creation rules, the system will create different cable process views according to the selection.
Step 2: and creating a process view. And sequentially creating process views of the cable groups according to the planned cable laying sequence. Firstly, a group of cable groups and rules needing to be created are selected, then a 'create process view' button is clicked, and the system can automatically generate a process view of the group of cables. Meanwhile, a process view of which cable GROUP is created is displayed in a list box of the working interface, wherein the GROUP2 indicates that a process view of the second cable GROUP is created, and the RULE _ ONE indicates that the process view is created based on RULE ONE.
And step 3: and (5) activating a process view. Selecting a created process view and then clicking the "activate process view" button, the system plans or selects a cable process view, and by clicking the "delete process view" button, the system deletes the selected cable process view.
And 4, step 4: and (6) intercepting a key picture. Firstly, a user selects a process view of a cable group and activates the process view, then the user clicks 'browse' to select a directory needing to be saved to a screenshot, and then clicks a 'screenshot' button, and the system intercepts the process view of the cable group.
And 5: and (5) animation is made on the key pictures laid by the cables. After all the cable-laying key pictures are captured, the user clicks an animation button, and the system pops up an animation dialog box. In the dialog box, a user needs to input the frame number, the picture number and the picture storage path for making the animation, then clicks a 'make animation' button, the system pops up the dialog box for storing the animation path, the user selects the path needing to be stored, and then the system starts to browse the pictures according to the picture sequence number and makes the laying process animation of the cable. When the animation is complete, the system pops up "make successful, refer! And clicking the 'determination' dialog box to finish the cable laying animation.
The present embodiment is only for explaining the present invention, and it is not limited to the present invention, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present invention.

Claims (4)

1. A method for three-dimensional cabling process animation generation, comprising the steps of:
step 1, key picture interception: traversing all cable groups of the model, selecting a group of cables to be laid, activating a process view of the cables, and intercepting and storing a key picture of the group of cables in the current state;
step 2, processing the intercepted key picture and placing an appointed directory;
step 3, generating a cable laying animation: traversing all pictures under the specified directory, creating a null animation, and writing the pictures under the directory into a null animation file in sequence to form a cable laying animation;
the method for describing the spatial pose of the cable laying process in the step 3 comprises the following steps:
step 301: setting the pose matrix of the cable part at A as PA,PAThe expression of (a) is:
Figure FDA0002715024660000011
wherein (X)vi,Yvi,Zvi) Direction vector (X) representing 3 coordinate axes of cable parts,Ys,Zs) Coordinate value of origin of coordinate system for representing cable parts;
Step 302: when P is presentAAfter passing through a transformation matrix, the cable part moves to a position B, and the calculation formula of the pose matrix of the cable part in the position B is as follows:
PB=PATmove (2)
wherein, PBA pose matrix of the cable part moving at the position B is obtained; t ismove4 × 4 homogeneous transformation matrix:
Figure FDA0002715024660000021
wherein [ Mx My Mz]Is a translation component along the directions of 3 coordinate axes in the movement process of the cable part,
Figure FDA0002715024660000022
representing the rotation vector of the cable part along 3 coordinate axes in the motion process;
step 303: translation transformation and rotation transformation in the process of cable laying movement comprise the following steps:
step 303-1: translation transformation in the process of cable laying movement:
assuming the cable parts have coordinates (x, y, z) in space, when the cable parts are translated by M along the coordinate system X, Y, Z respectivelyx、My、MzThen, the translation transformation formula of the new coordinates (x, y, z) of the cable part is:
Figure FDA0002715024660000023
step 303-2: rotation transformation during the cable laying movement:
let the coordinates of the cable parts in space be (x, y, z), when the cable parts are rotated by θ degrees along the coordinate axis X, Y, Z, the rotation transformation formula of the new coordinates (x, y, z) of the cable parts is:
a. when the cable part rotates by theta degrees along the X axis:
Figure FDA0002715024660000031
b. when the cable part rotates by theta degrees along the Y axis:
Figure FDA0002715024660000032
c. when the cable part rotates by theta degrees along the Y axis:
Figure FDA0002715024660000033
2. the method for three-dimensional cable laying process animation generation according to claim 1, wherein in the step 2 process, the key picture is processed by: all key pictures are set to bmp pictures with equal pixels.
3. The method for three-dimensional cabling process animation generation as claimed in claim 1 or 2, further comprising the step of creating a process view:
s1: obtaining cable information, including connecting cable electrical connector C1、C2
S2: obtaining a cable inflection point RtAnd calculating the coordinate axis R of each point in the assembly coordinate systemt(xt,yt,zt);
S3: calculating electric connector C1、C2Maximum and minimum values of each item point in an assembly coordinate system (x, y, z coordinates);
s4: calculating global maximum and minimum x between electrical connector and cablemin、ymin、zmin、xmax、ymax、zmaxAnd generating an axially parallel bounding box SCR
S5: traverse all parts P except cable bundle parts in assembly bodyiAnd calculating the part P by adopting a Max-min expression methodiAxial parallel bounding box
Figure FDA0002715024660000041
S6: judging part PiEach coordinate value xi>xmax&&ymin<yi<ymaxOr zi>zmax&&ymin<yi<ymaxIf true, the part PiNeed to make a discharge indication, responsible for, return to S5;
s7: judging whether all parts in the assembly body are traversed or not, and if so, outputting a three-dimensional cable process view of the cable; if not, the process returns to S5.
4. The method for three-dimensional cabling process animation generation according to claim 3, wherein said step of creating a process view precedes step 1.
CN202011071515.2A 2020-10-09 2020-10-09 Method for generating animation in three-dimensional cable laying process Pending CN112215931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011071515.2A CN112215931A (en) 2020-10-09 2020-10-09 Method for generating animation in three-dimensional cable laying process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011071515.2A CN112215931A (en) 2020-10-09 2020-10-09 Method for generating animation in three-dimensional cable laying process

Publications (1)

Publication Number Publication Date
CN112215931A true CN112215931A (en) 2021-01-12

Family

ID=74052866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011071515.2A Pending CN112215931A (en) 2020-10-09 2020-10-09 Method for generating animation in three-dimensional cable laying process

Country Status (1)

Country Link
CN (1) CN112215931A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376432A (en) * 2018-10-26 2019-02-22 北京理工大学 A kind of emulation mode of assembling process, device and emulator
CN110866332A (en) * 2019-10-29 2020-03-06 中国电子科技集团公司第三十八研究所 Complex cable assembly assembling method and system
CN111159872A (en) * 2019-12-23 2020-05-15 中国一拖集团有限公司 Three-dimensional assembly process teaching method and system based on human-machine engineering simulation analysis

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376432A (en) * 2018-10-26 2019-02-22 北京理工大学 A kind of emulation mode of assembling process, device and emulator
CN110866332A (en) * 2019-10-29 2020-03-06 中国电子科技集团公司第三十八研究所 Complex cable assembly assembling method and system
CN111159872A (en) * 2019-12-23 2020-05-15 中国一拖集团有限公司 Three-dimensional assembly process teaching method and system based on human-machine engineering simulation analysis

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
WANG FALIN 等: "Research on Visualization Technology of 3D Cable Harness Wiring of Complex Electromechanical Products", 《2020 CHINESE CONTROL AND DECISION CONFERENCE》 *
王发麟等: "坐标系导引下的线缆布线点位对应关系自动提取方法", 《中国机械工程》 *
王金芳 等: "基于Pro/E的线缆装配工艺规划系统关键技术研究", 《中国机械工程》 *
王金芳: "基于Pro/E的线缆装配规划系统的研究与设计", 《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》 *

Similar Documents

Publication Publication Date Title
US20200167570A1 (en) Method and apparatus for 3-d auto tagging
US11748934B2 (en) Three-dimensional expression base generation method and apparatus, speech interaction method and apparatus, and medium
CN103988497B (en) A kind of method for creating space bookmark
CN110765620B (en) Aircraft visual simulation method, system, server and storage medium
CN1093956C (en) Information searching device
CN109859538A (en) A kind of key equipment training system and method based on mixed reality
CN108765576B (en) OsgEarth-based VIVE virtual earth roaming browsing method
CN106791778A (en) A kind of interior decoration design system based on AR virtual reality technologies
CN109598796A (en) Real scene is subjected to the method and apparatus that 3D merges display with dummy object
Tatzgern et al. Dynamic compact visualizations for augmented reality
CN110544314A (en) Fusion method, system, medium and device of virtual reality and simulation model
US11328437B2 (en) Method for emulating defocus of sharp rendered images
CN105866950A (en) Data processing method and device
CN108038916A (en) A kind of display methods of augmented reality
CN106227327A (en) A kind of display converting method, device and terminal unit
Sun et al. Enabling participatory design of 3D virtual scenes on mobile devices
CN112215931A (en) Method for generating animation in three-dimensional cable laying process
CN105979239A (en) Virtual reality terminal, display method of video of virtual reality terminal and device
CN112291550A (en) Free viewpoint image generation method, device and system and readable storage medium
CN111429587A (en) Display method, terminal and storage medium of three-dimensional design model
CN115239636A (en) Assembly detection method based on augmented reality technology
US11308586B2 (en) Method for applying a vignette effect to rendered images
CN113592918A (en) Image processing method and device, electronic equipment and computer readable storage medium
CN110018733A (en) Determine that user triggers method, equipment and the memory devices being intended to
CN114029952A (en) Robot operation control method, device and system

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