[go: up one dir, main page]

CN109801362B - Mirror image method, system, storage medium and mirror image data processing method - Google Patents

Mirror image method, system, storage medium and mirror image data processing method Download PDF

Info

Publication number
CN109801362B
CN109801362B CN201811639005.3A CN201811639005A CN109801362B CN 109801362 B CN109801362 B CN 109801362B CN 201811639005 A CN201811639005 A CN 201811639005A CN 109801362 B CN109801362 B CN 109801362B
Authority
CN
China
Prior art keywords
data model
side data
mirror image
reference side
plane
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
CN201811639005.3A
Other languages
Chinese (zh)
Other versions
CN109801362A (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.)
Guangzhou Mino Equipment Co Ltd
Original Assignee
Guangzhou Mino Equipment 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 Guangzhou Mino Equipment Co Ltd filed Critical Guangzhou Mino Equipment Co Ltd
Priority to CN201811639005.3A priority Critical patent/CN109801362B/en
Publication of CN109801362A publication Critical patent/CN109801362A/en
Application granted granted Critical
Publication of CN109801362B publication Critical patent/CN109801362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a mirror image method, a mirror image system, a storage medium and a mirror image data processing method, wherein the mirror image method comprises the following steps: acquiring a reference side data model of the equipment part and a first plane of the reference side data model; acquiring a mirror matrix according to a first plane of the reference side data model; and obtaining a symmetrical side data model symmetrical to the reference side data model according to the reference side data model and the mirror image matrix. According to the invention, the mirror image matrix is obtained according to the first plane by acquiring the reference side data model of the equipment part and the first plane on the reference side data model, so that a user can rapidly mirror image the data model of the equipment part through the mirror image matrix, and the user can immediately react to the symmetrical side data model when modifying the reference side data model. The invention can be widely applied to the field of computer aided design.

Description

Mirror image method, system, storage medium and mirror image data processing method
Technical Field
The invention relates to the field of computer aided design, in particular to a mirror image method, a mirror image system, a storage medium and a mirror image data processing method.
Background
Three-dimensional design software CATIA has been commonly used in tooling design for automotive equipment integrators, and in curved surface design for automobiles and aircraft. When designing a bilateral symmetry side object by using a CATIA, a designer usually designs a unilateral object, then switches the unilateral object into an assembly module of the CATIA, and then designs the object by using a symmetry command under an assembly feature toolbar of the assembly module, wherein the effect of the symmetry command is that a three-dimensional model selected is made to be on the other side of a symmetry plane selected to generate a three-dimensional model copy symmetrical to the designer, and the symmetry plane has the effect of a mirror, and the symmetry command is called entity mirror image.
Because the entity mirror image does not have setting options for each attribute and standard of the data model object, the symmetrical result data is newly built by default, which leads to slow generation of mirror image side data, and the local object which does not need mirror image is added with one more data copy, and the name, the reference path, the description and the product structure tree of the symmetrical data model object must be modified to the corresponding standard after the entity mirror image is used.
Disclosure of Invention
In order to solve the technical problems, the invention aims to: the mirror image method, the mirror image system and the storage medium can be used for rapidly mirroring and can be immediately displayed on the symmetrical side data model when the reference side data model is modified, and the mirror image data processing method can be used for rapidly modifying the mirror image data after entity mirroring.
The first technical scheme adopted by the invention is as follows:
a mirroring method comprising the steps of:
acquiring a reference side data model of the equipment part and a first plane of the reference side data model;
acquiring a mirror matrix according to a first plane of the reference side data model;
and obtaining a symmetrical side data model symmetrical to the reference side data model according to the reference side data model and the mirror image matrix.
Further, the mirror matrix is obtained according to the first plane of the reference side data model, which specifically includes the following steps:
acquiring a pose matrix of a first plane;
acquiring a normal axis vector of a first plane according to the pose matrix;
and obtaining a mirror image matrix of the reference side data model according to the normal axis vector and the pose matrix.
Further, the acquiring the pose matrix of the first plane specifically includes the following steps:
acquiring a space coordinate system of a first plane;
and obtaining the pose matrix of the first plane according to the space coordinate system.
Further, the mirror image matrix of the reference side data model is obtained according to the normal axis vector and the pose matrix, and the method specifically comprises the following steps:
and judging whether the first plane is an axial section of the space coordinate system, if so, directly acquiring the mirror image matrix, otherwise, acquiring the mirror image matrix after reversing and unitizing the normal axial vector.
Further, the symmetric side data model symmetric to the reference side data model is obtained according to the reference side data model and the mirror matrix, which specifically comprises:
and mirror image movement is carried out on the reference side data model according to the reference side data model and the mirror image matrix, so that a symmetrical side data model is obtained.
The second technical scheme adopted by the invention is as follows:
a mirroring system comprising:
the first acquisition module is used for acquiring a reference side data model of the equipment part and a first plane of the reference side data model;
the second acquisition module is used for acquiring a mirror matrix according to the first plane of the reference side data model;
and the mirror image processing module is used for obtaining a symmetrical side data model symmetrical to the reference side data model according to the reference side data model and the mirror image matrix.
The third technical scheme adopted by the invention is as follows:
a mirroring system comprising:
at least one memory for storing a program;
at least one processor for loading the program to implement the one mirroring method.
The fourth technical scheme adopted by the invention is as follows:
a storage medium having stored therein processor-executable instructions which, when executed by a processor, are for performing the mirroring method.
The fifth technical scheme adopted by the invention is as follows:
a method of processing mirrored data, comprising the steps of:
acquiring a data model of the equipment part and a first standard corresponding to the data model;
processing the data model according to the first standard to obtain a processing result;
wherein the first criteria includes a first identification and a first class of data models.
Further, the processing the data model according to the first standard to obtain a processing result specifically includes: a first judging step, a second judging step and a third judging step;
the first judging step is as follows:
judging whether the name of the data model contains the first identifier, if so, modifying the name of the data model, executing the second judging step, otherwise, executing the third judging step;
the second judging step is as follows:
judging whether the data model is a first class data model, if so, modifying the data model, and executing a third judging step, otherwise, directly executing the third step;
the third judging step is as follows:
and judging whether all the data models are judged to be finished, if so, ending the judging process, otherwise, acquiring the next data model, and executing a first judging step.
The beneficial effects of the invention are as follows:
aiming at a mirroring method, a mirroring matrix is obtained according to a first plane by acquiring a reference side data model of an equipment part and the first plane on the reference side data model, a user can rapidly mirror the data model of the equipment part through the mirroring matrix, and when the user modifies the reference side data model, the user can immediately react to the symmetrical side data model;
aiming at the processing method of mirror image data, the data model is processed, so that a user does not need to process the data model again in the subsequent use process, and a great amount of design time is saved for the user.
Drawings
FIG. 1 is a flow chart of a mirroring method of the present invention;
FIG. 2 is a block diagram of a mirroring system according to the present invention;
FIG. 3 is a flow chart of a method for processing mirrored data according to the present invention.
Detailed Description
The invention will now be described in further detail with reference to the drawings and to specific examples. The step numbers in the following embodiments are set for convenience of illustration only, and the order between the steps is not limited in any way, and the execution order of the steps in the embodiments may be adaptively adjusted according to the understanding of those skilled in the art.
Referring to fig. 1, a mirroring method includes the steps of:
s101, acquiring a reference side data model of an equipment part and a first plane of the reference side data model;
specifically, the reference-side data model is designed by a user on three-dimensional software CATIA in advance. The first plane is a plane selected by a user on the reference-side data model.
S102, acquiring a mirror matrix according to a first plane of a reference side data model;
specifically, the mirror matrix is a space coordinate system matrix which is automatically constructed according to a first plane selected by a user on three-dimensional software, and is used for carrying out mirror processing on a reference side data model.
S103, obtaining a symmetrical side data model symmetrical to the reference side data model according to the reference side data model and the mirror matrix.
In particular, the symmetry with the reference-side data model refers to mirror symmetry with the reference-side data model. And mirroring the data model to be mirrored through a mirroring matrix according to the data model to be mirrored selected by the user on the reference side data model of the equipment part, so as to obtain a symmetrical side object meeting the user requirement.
Specifically, through the mirror matrix, a user can rapidly mirror the data model of the equipment part, and when the user modifies the reference side data model, the user can immediately react to the symmetrical side data model.
Further as a preferred embodiment, the acquiring the mirror matrix according to the first plane of the reference side data model specifically includes the following steps:
acquiring a pose matrix of a first plane;
acquiring a normal axis vector of a first plane according to the pose matrix;
and obtaining a mirror image matrix of the reference side data model according to the normal axis vector and the pose matrix.
Specifically, the first plane refers to a plane selected by a user. The normal axis vector is a vector perpendicular to the first plane. In some embodiments, the pose matrix is a 3×4 pose matrix corresponding to the selected plane by combining the user-selected plane by utilizing the feature that the part graphics of the three-dimensional design software CATIA are transformed by rotation and translation through homogeneous linear matrices. By means of the pose matrix and the normal axis vector, a mirror image matrix for mirroring the equipment parts can be quickly obtained.
Further as a preferred embodiment, the acquiring the pose matrix of the first plane specifically includes the following steps:
acquiring a space coordinate system of a first plane;
and obtaining the pose matrix of the first plane according to the space coordinate system.
In particular, the spatial coordinate system is a coordinate system constructed with respect to the first plane. Through a space coordinate system, the pose matrix of the first plane can be quickly constructed.
Further as a preferred embodiment, the obtaining a mirror image matrix of the reference side data model according to the normal axis vector and the pose matrix specifically includes the following steps:
and judging whether the first plane is an axial section of the space coordinate system, if so, directly acquiring the mirror image matrix, otherwise, acquiring the mirror image matrix after reversing and unitizing the normal axial vector.
Specifically, the axial tangent plane refers to a plane determined by any two coordinate axes on a space coordinate system. In some embodiments, the spatial coordinate system is a spatial three-dimensional coordinate system and the axis-tangential plane refers to the xy-plane, the xz-plane, and the yz-plane. By judging the first plane, the mirror image matrix meeting the user requirement can be obtained.
Further as a preferred embodiment, the obtaining a symmetric side data model symmetric to the reference side data model according to the reference side data model and the mirror matrix specifically includes:
and mirror image movement is carried out on the reference side data model according to the reference side data model and the mirror image matrix, so that a symmetrical side data model is obtained.
Specifically, the mirror image matrix can be used for rapidly and accurately carrying out mirror image processing on the reference side data model, and the mirror image processing can be immediately displayed on the symmetrical side data model when the reference side data model is subjected to mirror image modification, so that a user can rapidly acquire the modified mirror image model.
Referring to fig. 2, an embodiment of the present invention further provides a mirroring system corresponding to the method of fig. 1, including:
the first acquisition module is used for acquiring a reference side data model of the equipment part and a first plane of the reference side data model;
the second acquisition module is used for acquiring a mirror matrix according to the first plane of the reference side data model;
and the mirror image processing module is used for obtaining a symmetrical side data model symmetrical to the reference side data model according to the reference side data model and the mirror image matrix.
The content in the method embodiment is applicable to the system embodiment, the functions specifically realized by the system embodiment are the same as those of the method embodiment, and the achieved beneficial effects are the same as those of the method.
The embodiment of the invention also provides a mirror image system corresponding to the method of fig. 1, which comprises the following steps:
at least one memory for storing a program;
at least one processor for loading the program to implement the one mirroring method.
The content in the method embodiment is applicable to the system embodiment, the functions specifically realized by the system embodiment are the same as those of the method embodiment, and the achieved beneficial effects are the same as those of the method.
Embodiments of the present invention also provide a storage medium corresponding to the method of fig. 1, in which processor-executable instructions are stored, which when executed by a processor are adapted to carry out the mirroring method.
Referring to fig. 3, the embodiment of the invention further provides a method for processing mirror image data, which includes the following steps:
s201, acquiring a data model of the equipment part and a first standard corresponding to the data model;
in particular, the data model comprises a reference side data model and a symmetric side data model. In some embodiments, the data model consists essentially of a symmetric side data model. The first standard may be a user-defined standard or a standard automatically set by the system.
S202, processing the data model according to a first standard to obtain a processing result;
wherein the first criteria includes a first identification and a first class of data models.
Specifically, in some embodiments, the first identifier is a letter identifier specific to a name of the data model after the entity is mirrored, for example, a typeface including "symmetry of" before the data name. The first class of data models refers to data models of factory markers, procurement pieces, and fasteners. By processing the data model, the user does not need to process the data model again in the subsequent use process, and a great amount of design time is saved for the user.
Further as a preferred embodiment, the processing the data model according to the first standard to obtain a processing result specifically includes: a first judging step, a second judging step and a third judging step;
the first judging step is as follows:
judging whether the name of the data model contains the first identifier, if so, modifying the name of the data model, executing the second judging step, otherwise, executing the third judging step;
in some embodiments, determining whether the name of the data model includes the first identifier mainly determines the name of the mirrored data model. The method comprises the step of modifying the name of mirror image data, wherein the step of modifying the name of mirror image data refers to using user-defined identification letters to replace the identification letters in the original name.
The second judging step is as follows:
judging whether the data model is a first class data model, if so, modifying the data model, and executing a third judging step, otherwise, directly executing the third step;
in some embodiments, the modifying the data model refers to searching a model library for a corresponding data model through a CATIA secondary development interface, and replacing the data model of the entity image in the equipment part with the searched data model. By using the data model in the model library to replace the data model of the entity image, the arrangement of the reference path, description and product structure tree of the data model after the entity image is ensured to be on the corresponding standard.
The third judging step is as follows:
and judging whether all the data models are judged to be finished, if so, ending the judging process, otherwise, acquiring the next data model, and executing a first judging step.
Specifically, through the third judging step, all the data models to be judged are ensured to be judged, and the missing condition in the judging process is prevented.
Specifically, the uniqueness and the correctness of the connection of the data model are ensured by judging the name and the category of the data model and correspondingly modifying the data model to be modified.
In summary, for a mirroring method, a mirroring matrix is obtained according to a first plane by acquiring a reference side data model of an equipment part and the first plane on the reference side data model, and a user can quickly mirror the data model of the equipment part through the mirroring matrix, and can immediately react to a symmetric side data model when the user modifies the reference side data model;
aiming at the processing method of mirror image data, the data model is processed, so that a user does not need to process the data model again in the subsequent use process, and a great amount of design time is saved for the user.
While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the embodiments described above, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the present invention, and these equivalent modifications and substitutions are intended to be included in the scope of the present invention as defined in the appended claims.

Claims (8)

1. A mirroring method, characterized by: the method comprises the following steps:
acquiring a reference side data model of the equipment part and a first plane of the reference side data model;
acquiring a pose matrix of a first plane;
acquiring a normal axis vector of a first plane according to the pose matrix;
obtaining a mirror image matrix of the reference side data model according to the normal axis vector and the pose matrix;
and obtaining a symmetrical side data model symmetrical to the reference side data model according to the reference side data model and the mirror image matrix.
2. A mirroring method according to claim 1, characterized in that: the method for acquiring the pose matrix of the first plane specifically comprises the following steps:
acquiring a space coordinate system of a first plane;
and obtaining the pose matrix of the first plane according to the space coordinate system.
3. A mirroring method according to claim 2, characterized in that: the mirror image matrix of the reference side data model is obtained according to the normal axis vector and the pose matrix, and the mirror image matrix specifically comprises the following steps:
and judging whether the first plane is an axial section of the space coordinate system, if so, directly acquiring the mirror image matrix, otherwise, acquiring the mirror image matrix after reversing and unitizing the normal axial vector.
4. A mirroring method according to claim 1, characterized in that: the symmetrical side data model symmetrical to the reference side data model is obtained according to the reference side data model and the mirror image matrix, and the symmetrical side data model is specifically:
and mirror image movement is carried out on the reference side data model according to the reference side data model and the mirror image matrix, so that a symmetrical side data model is obtained.
5. A mirroring system, characterized by: comprising the following steps:
the first acquisition module is used for acquiring a reference side data model of the equipment part and a first plane of the reference side data model;
the second acquisition module is used for acquiring the pose matrix of the first plane; acquiring a normal axis vector of a first plane according to the pose matrix; obtaining a mirror image matrix of the reference side data model according to the normal axis vector and the pose matrix;
and the mirror image processing module is used for obtaining a symmetrical side data model symmetrical to the reference side data model according to the reference side data model and the mirror image matrix.
6. A mirroring system, comprising:
at least one memory for storing a program;
at least one processor for loading the program to perform a mirroring method as claimed in any one of claims 1-4.
7. A storage medium having stored therein instructions executable by a processor, characterized by: the processor-executable instructions, when executed by a processor, are for implementing a mirroring method as claimed in any one of claims 1-4.
8. A processing method of mirror image data is characterized in that: the method comprises the following steps:
acquiring a data model of the equipment part and a first standard corresponding to the data model;
processing the data model according to the first standard to obtain a processing result;
wherein the first criteria includes a first identity and a first class of data models; the data model is processed according to a first standard to obtain a processing result, which specifically comprises: a first judging step, a second judging step and a third judging step;
the first judging step is as follows:
judging whether the name of the data model contains the first identifier, if so, modifying the name of the data model, executing the second judging step, otherwise, executing the third judging step;
the second judging step is as follows:
judging whether the data model is a first class data model, if so, modifying the data model, and executing a third judging step, otherwise, directly executing the third step;
the third judging step is as follows:
and judging whether all the data models are judged to be finished, if so, ending the judging process, otherwise, acquiring the next data model, and executing a first judging step.
CN201811639005.3A 2018-12-29 2018-12-29 Mirror image method, system, storage medium and mirror image data processing method Active CN109801362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811639005.3A CN109801362B (en) 2018-12-29 2018-12-29 Mirror image method, system, storage medium and mirror image data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811639005.3A CN109801362B (en) 2018-12-29 2018-12-29 Mirror image method, system, storage medium and mirror image data processing method

Publications (2)

Publication Number Publication Date
CN109801362A CN109801362A (en) 2019-05-24
CN109801362B true CN109801362B (en) 2023-06-13

Family

ID=66558226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811639005.3A Active CN109801362B (en) 2018-12-29 2018-12-29 Mirror image method, system, storage medium and mirror image data processing method

Country Status (1)

Country Link
CN (1) CN109801362B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110465968B (en) * 2019-08-19 2022-03-08 南京埃斯顿机器人工程有限公司 Robot space position point mirroring method
CN113706675B (en) * 2021-08-17 2023-07-21 网易(杭州)网络有限公司 Mirror image processing method, mirror image processing device, storage medium and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011020206A (en) * 2009-07-15 2011-02-03 Panasonic Corp Method for preparing mirror image program of vertical articulated robot
CN104394391B (en) * 2014-11-25 2016-09-28 广东威创视讯科技股份有限公司 The image processing method of the dot matrix image of collected by camera and system
CN107146251B (en) * 2017-03-28 2020-08-18 浙江大学 Symmetry analysis method of three-dimensional face model
US10198829B2 (en) * 2017-04-25 2019-02-05 Symbol Technologies, Llc Systems and methods for extrinsic calibration of a plurality of sensors
CN107121109B (en) * 2017-06-12 2019-12-06 北京航空航天大学 A structured light parameter calibration device and method based on a front-coated plane mirror

Also Published As

Publication number Publication date
CN109801362A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
US8896597B2 (en) System and method for modifying geometric relationships in a solid model
US8872820B2 (en) System and method for splitting faces on a solid model
CA2667334C (en) Method and devices for aiding in the modeling of 3d objects
Hel-Or et al. Relaxed parametric design with probabilistic constraints
US11126759B2 (en) Adding constraints between components of a computer-aided design (CAD) model
US10909724B2 (en) Method, apparatus, and computer readable medium for adjusting color annotation of an image
CN109801362B (en) Mirror image method, system, storage medium and mirror image data processing method
US10467359B2 (en) Special-purpose programmed computer for numerical simulation of a metal forming process having a predefined load path with corresponding mesh adjustment scheme
CN107562459B (en) Management system, interface generating/displaying/operating method, medium, and terminal
CN109213480B (en) Method, storage medium, equipment and system for developing background management page
CN102177518B (en) Method and device for producing a finite element model
CN111739136B (en) Rendering method, computer device, and storage medium
US8217933B2 (en) Method and apparatus for detecting between virtual objects
CN111177828A (en) Linkage method and device applied to standard floor model and computer storage medium
CN119150615A (en) Method, device, equipment and medium for simulating assembly of railway vehicle
CN108241775B (en) Highly automated application of digital trim materials to 3D data
US9041729B1 (en) Graphical design tool
US7653518B2 (en) System and method for generating matched contour profiles
CN116579034A (en) Method, system, device and storage medium for fixing position of part under global coordinate system
US11947877B2 (en) Anti-constraint configuration and enforcement for computer-aided design (CAD) models
JPH05225290A (en) Shape correction system by three dimensional parametric function
CN109785304B (en) Method, system, device and storage medium for detecting macro program mirror image
EP4357958A2 (en) System and methods for automatic repair of missing mate references
EP4357963A2 (en) System and methods for automatic repair of missing mate references for tessellated data
CN118570410B (en) Method, device and equipment for geometric reconstruction of three-dimensional lightweight BIM model

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
CB02 Change of applicant information

Address after: Room 101 and 201, building C3, No. 11, Kaiyuan Avenue, Huangpu District, Guangzhou City, Guangdong Province

Applicant after: Guangzhou mingluo Equipment Co.,Ltd.

Address before: 510530 Unit A and Second Floor of Building C3, No.11 Kaiyuan Avenue, Guangzhou High-tech Industrial Development Zone, Guangdong Province

Applicant before: GUANGZHOU MINO AUTOMOTIVE EQUIPMENT Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant