CN114169031A - Model consistency automatic comparison method and system based on CAD - Google Patents

Model consistency automatic comparison method and system based on CAD Download PDF

Info

Publication number
CN114169031A
CN114169031A CN202111361688.2A CN202111361688A CN114169031A CN 114169031 A CN114169031 A CN 114169031A CN 202111361688 A CN202111361688 A CN 202111361688A CN 114169031 A CN114169031 A CN 114169031A
Authority
CN
China
Prior art keywords
comparison
compared
model
intermediate file
consistency
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
CN202111361688.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.)
Wuhan Km Information Technology Co ltd
Original Assignee
Wuhan Km Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Km Information Technology Co ltd filed Critical Wuhan Km Information Technology Co ltd
Priority to CN202111361688.2A priority Critical patent/CN114169031A/en
Publication of CN114169031A publication Critical patent/CN114169031A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computational Mathematics (AREA)
  • Architecture (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention belongs to the technical field of three-dimensional CAD software, and particularly provides a method and a system for automatically comparing model consistency based on CAD, wherein the method comprises the following steps: s1, respectively converting the model to be compared and the target model established by the three-dimensional CAD software to be compared into an intermediate file in a unified STP format; and S2, importing the STP file to be compared and the target STP file into a consistency comparison tool, automatically performing geometric shape comparison and MBD information comparison to obtain comparison results, and respectively marking and displaying the comparison results according to differences. The scheme only focuses on modeling results and does not focus on modeling process data for model comparison. The models established by different three-dimensional CAD are converted into a uniform intermediate format and then compared. The scheme can also be used for checking the three-dimensional CAD compatibility test result by comparing the conversion result of the model data. The method can quickly and accurately detect the subtle difference between the two three-dimensional models and provide a support tool for the modeling precision analysis of the three-dimensional CAD software.

Description

Model consistency automatic comparison method and system based on CAD
Technical Field
The invention relates to the technical field of three-dimensional CAD software, in particular to a method and a system for automatically comparing model consistency based on CAD.
Background
The automatic model consistency comparison tool is used for comparing the three-dimensional models in the STEP format, verifying the correctness of the models and visually presenting difference points, such as displaying the geometric shape difference of the models in various modes of colors, animations, Boolean operations and the like.
Disclosure of Invention
The invention aims to solve the technical problem that the model consistency comparison of the three-dimensional CAD is difficult in the prior art.
The invention provides a CAD-based model consistency automatic comparison method, which comprises the following steps:
s1, converting the model to be compared and the corresponding standard model established by the three-dimensional CAD software to be compared into a unified STP format intermediate file to be compared and a unified comparison intermediate file respectively;
and S2, importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain test results, and respectively marking and displaying the test results according to differences.
Preferably, the standard model in S1 is obtained by performing operations in standard three-dimensional CAD software through corresponding functional operations.
Preferably, the S2 specifically includes: after the geometric shapes are compared, the difference is presented in a dynamic flashing mode, a color identification mode or a Boolean operation result display mode.
Preferably, the S2 specifically includes: the two model files of the intermediate file to be compared and the comparison intermediate file are installed into one assembly part in an assembly mode, the display/hidden state and the wire frame blanking state of the two models are switched at different time to achieve the effect of dynamic flicker, and the difference between the two model files is visually displayed.
Preferably, the S2 specifically includes: by comparing the differences of the facet information of the models of the intermediate file to be compared and the intermediate file to be compared, facets are distinguished with different colors, for example: green is used to represent identical faces, orange to represent only the differing faces, and red to represent the completely different faces.
Preferably, comparing the to-be-compared intermediate file and the difference of the face information of the model of the compared intermediate file specifically includes:
s21, comparing the parameters of the surface and the parameters of the comparison side in sequence;
s22, distinguishing the faces by different colors according to the difference of the face information, and displaying green if the faces are equal; if the color difference is not equal, displaying red; otherwise, orange color is displayed.
Preferably, the S2 specifically includes:
importing the intermediate file to be compared into a test result directory of a consistency comparison tool, and importing the intermediate file to be compared into a baseline directory of the consistency comparison tool;
and selecting the corresponding files under the test result directory and the baseline directory respectively and putting the files into corresponding tables for comparison to obtain the test result.
The invention also provides a system for implementing the CAD-based model consistency automatic comparison method, which is characterized by comprising the following steps:
the model conversion module is used for respectively converting the model to be compared established by the three-dimensional CAD software to be compared and the corresponding standard model into an intermediate file to be compared and an intermediate file to be compared in a unified STP format;
and the comparison analysis module is used for importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain a test result, and respectively marking and displaying the test result according to the difference.
The invention also provides electronic equipment which comprises a memory and a processor, wherein the processor is used for realizing the step of the CAD-based model consistency automatic comparison method when executing the computer management program stored in the memory.
The invention also provides a computer readable storage medium, on which a computer management program is stored, which when executed by a processor implements the steps of the CAD-based model consistency automatic comparison method.
Has the advantages that: the invention provides a CAD-based model consistency automatic comparison method and system, wherein the method comprises the following steps: s1, converting the model to be compared and the corresponding standard model established by the three-dimensional CAD software to be compared into a unified STP format intermediate file to be compared and a unified comparison intermediate file respectively; and S2, importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain test results, and respectively marking and displaying the test results according to differences. The scheme only focuses on modeling results and does not focus on modeling process data for model comparison. Models built by different three-dimensional CAD are converted into a uniform intermediate format (STP) and then compared. The scheme can also be used for checking the three-dimensional CAD compatibility test result by comparing the conversion result of the model data. The method can quickly and accurately detect the subtle difference between the two three-dimensional models and provide a support tool for the modeling precision analysis of the three-dimensional CAD software.
Drawings
FIG. 1 is a flow chart of a CAD-based model consistency automatic comparison method according to the present invention;
FIG. 2 is a schematic diagram of a hardware structure of a possible electronic device provided in the present invention;
fig. 3 is a schematic diagram of a hardware structure of a possible computer-readable storage medium according to the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides a method and a system for automatically comparing model consistency based on CAD, where the method includes: s1, converting the model to be compared and the corresponding standard model established by the three-dimensional CAD software to be compared into a unified STP format intermediate file to be compared and a unified comparison intermediate file respectively; and S2, importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain test results, and respectively marking and displaying the test results according to differences. The scheme only focuses on modeling results and does not focus on modeling process data for model comparison. Models built by different three-dimensional CAD are converted into a uniform intermediate format (STP) and then compared. The scheme can also be used for checking the three-dimensional CAD compatibility test result by comparing the conversion result of the model data. The method can quickly and accurately detect the subtle difference between the two three-dimensional models and provide a support tool for the modeling precision analysis of the three-dimensional CAD software.
The scheme supports three-dimensional model consistency comparison tools of various mainstream file formats (three-dimensional CAD file formats which are required to be converted into STP file formats), so that subtle differences between two three-dimensional models can be found quickly and accurately, and a support tool is provided for modeling precision analysis of three-dimensional CAD software. For model comparison, only the modeling result is concerned, and modeling process data is not concerned (modeling process data of different three-dimensional CAD software are different). Models created by different three-dimensional CAD can be converted to a unified intermediate format (STP) before comparison is performed. The tool can also be used for three-dimensional CAD compatibility test result checking by comparing the results of model data conversion.
The scheme supports comparison of 3D model results, and comprehensively compares a model generated by an automatic function and performance test tool with a standard model, wherein the model comprises the geometric shape of the model, MBD information and the like. And verifying the correctness of the model and visually presenting difference points.
In the preferred scheme, batch comparison is performed through a batch comparison module: and executing a comparison function, automatically comparing the files with the same name in the baseline directory and the result directory by the test tool, and feeding back a comparison result. The comparison results for the specified models can be viewed. And the batch comparison module can compare the test result directory with the files with the same name under the baseline directory and feed back a comparison result. And respectively appointing a test result directory and a baseline directory through a 'selection button', and respectively placing files under the directories in corresponding lists. And automatically finishing file comparison in the background, and displaying the comparison result on an interface. Red is a differentiating file; green is a perfectly equal file; black is a file for which no file of the same name was found for comparison. Selecting a file in any list can check the difference and time.
Specifically, the geometric shape comparison result can show differences in various ways such as a dynamic flashing way, a way of identifying differences by colors, a way of displaying boolean operation results, and the like. The specific display process of the geometric shape comparison result is as follows:
(1) displaying in a dynamic flashing mode:
the two model files of the intermediate file to be compared and the comparison intermediate file are installed into one assembly part in an assembly mode, the display/hidden state and the wire frame blanking state of the two models are switched at different time to achieve the effect of dynamic flicker, and the difference between the two model files is visually displayed.
(2) Displaying by means of color identification differences:
by comparing the difference of the plane information of the two models, the planes are distinguished with different colors, for example:
green: represent identical faces;
orange color: representing noodles with difference only;
red: representing completely different facets.
The MBD information results are shown below: the system supports the comparison of MBD information, and the system can display the difference information in the interface through different colors. MBD is an abbreviation of Model Based Definition, namely, an integrated three-dimensional digital solid Model is used for expressing complete product Definition information and becomes a unique basis in the manufacturing process.
The comparison criteria for the models may be selected by the user at his or her discretion as desired. For example, for the comparison standard of the same side, when all the edges are the same or only the outer edges are the same, the user can select the edges according to the needs. In addition, the method also comprises comparison precision and the like, and all the methods can be customized. The parameters are manually set in a system setting interface.
The invention also provides a system for implementing the CAD-based model consistency automatic comparison method, which comprises the following steps:
the model conversion module is used for respectively converting the model to be compared established by the three-dimensional CAD software to be compared and the corresponding standard model into an intermediate file to be compared and an intermediate file to be compared in a unified STP format;
and the comparison analysis module is used for importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain a test result, and respectively marking and displaying the test result according to the difference.
Specifically, the model consistency comparison system comprehensively compares the three-dimensional model in the test result data STEP format generated by the automatic test tool with the standard model, verifies the correctness of the model, and visually presents difference points, such as displaying the geometric shape difference of the model in various modes of color, animation, boolean operation and the like. The system mainly comprises the following functional modules:
(1) selecting a model module: and selecting the model file under the appointed directory, and comparing the single files.
(2) A consistency comparison module: and appointing two model files, executing a consistency comparison function, comprehensively comparing the two models and visually presenting difference points.
(3) A batch comparison module: and executing a comparison function, automatically comparing the files with the same name in the baseline directory and the result directory by the test tool, and feeding back a comparison result. The comparison results for the specified models can be viewed. And the batch comparison module can compare the test result directory with the files with the same name under the baseline directory and feed back a comparison result. And respectively appointing a test result directory and a baseline directory through a 'selection button', and respectively placing files under the directories in corresponding lists. And automatically finishing file comparison in the background, and displaying the comparison result on an interface.
Fig. 2 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the invention. As shown in fig. 2, an embodiment of the present invention provides an electronic device, which includes a memory 1310, a processor 1320, and a computer program 1311 stored in the memory 1310 and executable on the processor 1320, where the processor 1320 executes the computer program 1311 to implement the following steps: s1, converting the model to be compared and the corresponding standard model established by the three-dimensional CAD software to be compared into a unified STP format intermediate file to be compared and a unified comparison intermediate file respectively;
and S2, importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain test results, and respectively marking and displaying the test results according to differences.
Please refer to fig. 3, which is a schematic diagram of an embodiment of a computer-readable storage medium according to the present invention. As shown in fig. 3, the present embodiment provides a computer-readable storage medium 1400, on which a computer program 1411 is stored, which computer program 1411, when executed by a processor, implements the steps of: s1, converting the model to be compared and the corresponding standard model established by the three-dimensional CAD software to be compared into a unified STP format intermediate file to be compared and a unified comparison intermediate file respectively;
and S2, importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain test results, and respectively marking and displaying the test results according to differences.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A CAD-based model consistency automatic comparison method is characterized by comprising the following steps:
s1, converting the model to be compared and the corresponding comparison target model established by the three-dimensional CAD software to be compared into a unified STP format intermediate file to be compared and a unified comparison intermediate file respectively;
and S2, importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain comparison test results, and respectively marking and displaying the comparison test results according to differences.
2. The method according to claim 1, wherein the standard model in S1 is obtained by performing operations in standard three-dimensional CAD software through corresponding functional operations.
3. The method according to claim 1, wherein the step S2 specifically includes: after the geometric shapes are compared, the difference is presented in a dynamic flashing mode, a color identification mode or a Boolean operation result display mode.
4. The method according to claim 3, wherein the step S2 specifically comprises: the two model files of the intermediate file to be compared and the comparison intermediate file are installed into one assembly part in an assembly mode, the display/hidden state and the wire frame blanking state of the two models are switched at different time to achieve the effect of dynamic flicker, and the difference between the two model files is visually displayed.
5. The method according to claim 3, wherein the step S2 specifically comprises: by comparing the differences of the facet information of the models of the intermediate file to be compared and the intermediate file to be compared, facets are distinguished with different colors, for example: green is used to represent identical faces, orange to represent only the differing faces, and red to represent the completely different faces.
6. The method according to claim 5, wherein comparing the difference between the area information of the intermediate file to be compared and the area information of the model of the intermediate file comprises:
s21, comparing the parameters of the surface and the parameters of the comparison side in sequence;
s22, the difference of the plane information is distinguished by different colors, such as: if the two are equal, displaying green; if the color difference is not equal, displaying red; otherwise, orange color is displayed.
7. The method according to claim 1, wherein the step S2 specifically includes:
importing the intermediate file to be compared into a test result directory of a consistency comparison tool, and importing the intermediate file to be compared into a baseline directory of the consistency comparison tool;
and selecting the corresponding files under the test result directory and the baseline directory respectively and putting the files into corresponding tables for comparison to obtain the test result.
8. A system for implementing the CAD-based model consistency automatic comparison method according to any one of claims 1 to 7, comprising:
the model conversion module is used for respectively converting the model to be compared established by the three-dimensional CAD software to be compared and the corresponding standard model into an intermediate file to be compared and an intermediate file to be compared in a unified STP format;
and the comparison analysis module is used for importing the intermediate file to be compared and the comparison intermediate file into a consistency comparison tool, automatically carrying out geometric shape comparison and MBD information comparison to obtain a test result, and respectively marking and displaying the test result according to the difference.
9. An electronic device comprising a memory and a processor, wherein the processor is configured to execute a computer management program stored in the memory to implement the steps of the CAD-based model consistency automatic comparison method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer management-like program, which when executed by a processor, performs the steps of the CAD-based model consistency automatic comparison method according to any one of claims 1 to 7.
CN202111361688.2A 2021-11-17 2021-11-17 Model consistency automatic comparison method and system based on CAD Pending CN114169031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111361688.2A CN114169031A (en) 2021-11-17 2021-11-17 Model consistency automatic comparison method and system based on CAD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111361688.2A CN114169031A (en) 2021-11-17 2021-11-17 Model consistency automatic comparison method and system based on CAD

Publications (1)

Publication Number Publication Date
CN114169031A true CN114169031A (en) 2022-03-11

Family

ID=80479375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111361688.2A Pending CN114169031A (en) 2021-11-17 2021-11-17 Model consistency automatic comparison method and system based on CAD

Country Status (1)

Country Link
CN (1) CN114169031A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114792036A (en) * 2022-06-02 2022-07-26 广东工业大学 Method, device and medium for judging conversion of standard part into non-standard part
CN115544594A (en) * 2022-09-20 2022-12-30 杭州宏深科技有限公司 General automatic batch three-dimensional CAD modeling scoring method
CN116204974A (en) * 2022-12-22 2023-06-02 中国航空综合技术研究所 Method for evaluating geometric consistency of CAD model of aeroengine blade part

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114792036A (en) * 2022-06-02 2022-07-26 广东工业大学 Method, device and medium for judging conversion of standard part into non-standard part
CN115544594A (en) * 2022-09-20 2022-12-30 杭州宏深科技有限公司 General automatic batch three-dimensional CAD modeling scoring method
CN116204974A (en) * 2022-12-22 2023-06-02 中国航空综合技术研究所 Method for evaluating geometric consistency of CAD model of aeroengine blade part
CN116204974B (en) * 2022-12-22 2024-01-09 中国航空综合技术研究所 Method for evaluating geometric consistency of CAD model of aeroengine blade part

Similar Documents

Publication Publication Date Title
CN114169031A (en) Model consistency automatic comparison method and system based on CAD
CN105608254B (en) A kind of the Automation Design method and platform towards Intelligent hardware system development
US20080062195A1 (en) Method for coordinated drawing review of realted cad drawings
CN113010359B (en) Bus test system generation method, system, device and storage medium
KR102279061B1 (en) Methdo for Optimizing Analysed Model based on Lightweight Models
CN111199062A (en) Simulation method and system based on industrial development software and electronic equipment
US20080004855A1 (en) Design support apparatus, design support method, and design support program
CN109086476B (en) Data processing method for drawing design, PLM plug-in and computing equipment
US20110142336A1 (en) Similar shader search apparatus and method using image feature extraction
CN105701262A (en) Three-dimensional model part comparison system and method
US20160147907A1 (en) Method and cad system for verifying design changes of components based on cad platform
JP7033913B2 (en) Highly automated application for digital finishing materials for 3D data
CN107330199B (en) Automatic design system and design method for automobile radiator based on CATIA (computer-graphics aided three-dimensional Interactive application)
US20220180011A1 (en) Systems and methods for modifying cad files
CN112328680B (en) Electronic component data processing method, data interface and management system
CN106570004B (en) Data management method and device
CN107944083A (en) A kind of automatic method for making PCB circuits and cutting copper
CN114661576A (en) Three-dimensional CAD software testing method and system based on unified interface drive
CN111353269A (en) Data rapid transmission method based on AutoCAD and Cadence real-time communication
US11410383B2 (en) Automated component design extraction
JP2007109088A (en) Nc path generation method and device
CN111473969B (en) Interference inspection auxiliary system based on strategy reconstruction and interference inspection system
CN117315097A (en) Manufacturing tool and method for three-dimensional animation manufacturing process
CN115578005A (en) Method, system, equipment and storage medium for managing whole process of bonding manufacture
CN114546834A (en) Three-dimensional CAD software testing method and system based on unified test case script

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