CN111833438A - Method and device for breaking reference by three-dimensional model - Google Patents

Method and device for breaking reference by three-dimensional model Download PDF

Info

Publication number
CN111833438A
CN111833438A CN202010661899.7A CN202010661899A CN111833438A CN 111833438 A CN111833438 A CN 111833438A CN 202010661899 A CN202010661899 A CN 202010661899A CN 111833438 A CN111833438 A CN 111833438A
Authority
CN
China
Prior art keywords
target
feature
model
assembly
model information
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
CN202010661899.7A
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.)
Sungrow Power Supply Co Ltd
Original Assignee
Sungrow Power Supply 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 Sungrow Power Supply Co Ltd filed Critical Sungrow Power Supply Co Ltd
Priority to CN202010661899.7A priority Critical patent/CN111833438A/en
Publication of CN111833438A publication Critical patent/CN111833438A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data

Abstract

After the reference type of the target reference relation in the target model information corresponding to the user instruction is determined by reading the target model information in the preset three-dimensional design software after the reference system is loaded, the target reference relation can be automatically and rapidly and accurately interrupted or interrupted and modified according to the reference type of the target reference relation, and the modeling efficiency of the three-dimensional model is improved.

Description

Method and device for breaking reference by three-dimensional model
Technical Field
The invention relates to the technical field of three-dimensional model modeling, in particular to a method and a device for breaking a reference by a three-dimensional model.
Background
In the modeling process of a designer, some modeling features need to be deleted or modified due to certain considerations, such as protection of core secrets, product update and the like, and if the modeling features have reference modeling conditions, the subsequent generation of the three-dimensional model fails, or the generated three-dimensional model cannot be shared for use.
At present, when a system model designer carries out three-dimensional model modeling, if the modeling fails due to deletion or modification of some modeling characteristics, the system model designer needs to manually search the reason of the failure of the modeling and manually modify the three-dimensional model, so that the three-dimensional model modeling efficiency is low.
Disclosure of Invention
In view of this, the invention provides a method and a device for breaking a reference by a three-dimensional model, which improve the modeling efficiency of the three-dimensional model.
In order to achieve the above purpose, the invention provides the following specific technical scheme:
a method of three-dimensional model breaking a reference, comprising:
loading an interruption reference system;
reading target model information in preset three-dimensional design software;
under the condition of receiving a user instruction, determining a reference type of a target reference relation in the target model information corresponding to the user instruction;
and interrupting or interrupting and modifying the target reference relation according to the reference type of the target reference relation.
Optionally, the target model information is assembly model information and/or part model information.
Optionally, the determining a reference type of a target reference relationship in the target model information corresponding to the user instruction includes:
analyzing the user instruction to obtain the target reference relation;
when the target model information is assembly model information, determining the reference type of the target reference relationship as an assembly constraint reference;
when the target model information is part model information, determining the reference type of the target reference relation as a part modeling feature reference in a part environment;
and when the target model information is the assembling model information and the part model information, determining the reference type of the target reference relation as the part modeling feature reference in the assembling environment.
Optionally, the determining a reference type of a target reference relationship in the target model information corresponding to the user instruction includes:
under the condition that the user instruction indicates that the target model information is automatically interrupted by reference processing, reading model tree information of the target model information in the preset three-dimensional design software;
determining the reference relation of the part or sub-assembly with the labeled name as the target reference relation and determining the reference type of the target reference relation as an assembly constraint reference under the condition that the target model information is assembly model information and the name of the part or sub-assembly is labeled in the assembly model tree;
determining the reference relation of the feature with the marked name as the target reference relation and determining the reference type of the target reference relation as the part modeling reference loss under the part environment under the condition that the target model information is the part model information and the feature name is marked in the part model tree;
and when the target model information is assembly model information and part model information and the part feature names of the model tree in the assembly environment are labeled, determining the reference relation of the feature with the labeled name as the target reference relation, and determining the reference type of the target reference relation as the part modeling feature reference in the assembly environment.
Optionally, the interrupting or interrupting the modification of the target reference relationship according to the reference type of the target reference relationship includes:
and when the target model information is assembly model information, breaking the target reference relation in the target model information, deleting a core model in the target model information, and regenerating a new assembly model.
Optionally, the interrupting or interrupting the modification of the target reference relationship according to the reference type of the target reference relationship includes:
when the reference type of the target reference relation is an assembly constraint reference, reading an assembly level sequence in a corresponding target assembly model tree, and identifying a part failed in assembly;
deleting the assembly constraint relation of the part which fails to be assembled, and setting the fixed assembly constraint relation as the assembly constraint relation of the part which fails to be assembled;
and regenerating an assembly model corresponding to the target model information.
Optionally, the interrupting or interrupting the modification of the target reference relationship according to the reference type of the target reference relationship includes:
when the reference type is a part modeling reference in a part environment, judging whether the corresponding part feature is a sketch feature reference deletion or a non-sketch feature reference deletion;
if the sketch feature reference is missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the part model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a part model corresponding to the part model tree;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the part model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the part model tree.
Optionally, the interrupting or interrupting the modification of the target reference relationship according to the reference type of the target reference relationship includes:
when the reference type is a part modeling reference in an assembly environment, judging whether the part features in the corresponding assembly model are sketch feature reference deletion or non-sketch feature reference deletion;
if the target feature is the sketch feature reference missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the assembly model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a model;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the assembly model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the assembly model tree.
An apparatus for three-dimensional model breaking a reference, comprising:
the loading unit of the interrupt reference system is used for loading the interrupt reference system;
the model information reading unit is used for reading target model information in preset three-dimensional design software;
the reference type determining unit is used for determining a reference type of a target reference relation in the target model information corresponding to a user instruction under the condition that the user instruction is received;
and the interruption reference processing unit is used for interrupting or interrupting and modifying the target reference relationship according to the reference type of the target reference relationship.
Optionally, the target model information is assembly model information and/or part model information.
Optionally, the reference type determining unit is specifically configured to:
analyzing the user instruction to obtain the target reference relation;
when the target model information is assembly model information, determining the reference type of the target reference relationship as an assembly constraint reference;
when the target model information is part model information, determining the reference type of the target reference relation as a part modeling feature reference in a part environment;
and when the target model information is the assembling model information and the part model information, determining the reference type of the target reference relation as the part modeling feature reference in the assembling environment.
Optionally, the reference type determining unit is specifically configured to:
under the condition that the user instruction indicates that the target model information is automatically interrupted by reference processing, reading model tree information of the target model information in the preset three-dimensional design software;
determining the reference relation of the part or sub-assembly with the labeled name as the target reference relation and determining the reference type of the target reference relation as an assembly constraint reference under the condition that the target model information is assembly model information and the name of the part or sub-assembly is labeled in the assembly model tree;
determining the reference relation of the feature with the marked name as the target reference relation and determining the reference type of the target reference relation as the part modeling reference loss under the part environment under the condition that the target model information is the part model information and the feature name is marked in the part model tree;
and when the target model information is assembly model information and part model information and the part feature names of the model tree in the assembly environment are labeled, determining the reference relation of the feature with the labeled name as the target reference relation, and determining the reference type of the target reference relation as the part modeling feature reference in the assembly environment.
Optionally, the interruption reference processing unit is specifically configured to:
and when the target model information is assembly model information, breaking the target reference relation in the target model information, deleting a core model in the target model information, and regenerating a new assembly model.
Optionally, the interruption reference processing unit is specifically configured to:
when the reference type of the target reference relation is an assembly constraint reference, reading an assembly level sequence in a corresponding target assembly model tree, and identifying a part failed in assembly;
deleting the assembly constraint relation of the part which fails to be assembled, and setting the fixed assembly constraint relation as the assembly constraint relation of the part which fails to be assembled;
and regenerating an assembly model corresponding to the target model information.
Optionally, the interruption reference processing unit is specifically configured to:
when the reference type is a part modeling reference in a part environment, judging whether the corresponding part feature is a sketch feature reference deletion or a non-sketch feature reference deletion;
if the sketch feature reference is missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the part model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a part model corresponding to the part model tree;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the part model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the part model tree.
Optionally, the interruption reference processing unit is specifically configured to:
when the reference type is a part modeling reference in an assembly environment, judging whether the part features in the corresponding assembly model are sketch feature reference deletion or non-sketch feature reference deletion;
if the target feature is the sketch feature reference missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the assembly model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a model;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the assembly model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the assembly model tree.
Compared with the prior art, the invention has the following beneficial effects:
after the reference system is loaded, the target model information in the preset three-dimensional design software is read, the reference type of the target reference relation in the target model information corresponding to the user instruction is determined, the target reference relation can be automatically and rapidly and accurately interrupted or interrupted and modified according to the reference type of the target reference relation, and the modeling efficiency of the three-dimensional model is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for breaking a reference by a three-dimensional model according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a method for interrupting or interrupting modification of a target reference relationship when a reference type of the target reference relationship is an assembly constraint reference, according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a method for interrupting or interrupting modification of a target reference relationship when a reference type is a part modeling reference in a part environment according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an interruption of a sketch feature reference relationship disclosed in an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a method for interrupting or interrupting modification of a target reference relationship when a reference type is a part modeling reference in an assembly environment, according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for breaking a reference by a three-dimensional model according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses a method for breaking reference of a three-dimensional model, which is applied to preset three-dimensional design software integrated with a breaking reference system, namely the preset three-dimensional design software with a breaking reference function, wherein the preset three-dimensional design software can be Creo software. The method and the device realize quick and accurate interruption or interruption modification of the target reference relationship, namely delete the target reference relationship with reference loss in the three-dimensional model or modify the target reference relationship, and improve the modeling efficiency of the three-dimensional model.
Referring to fig. 1, a method for breaking a reference by a three-dimensional model disclosed in this embodiment includes the following steps:
s101: loading an interruption reference system;
the interrupt reference system is loaded when the interrupt reference function is required to be realized, and if the interrupt reference function is not required to be realized, the three-dimensional design software is preset to realize the basic function.
S102: reading target model information in preset three-dimensional design software;
the target model information is assembly model information and/or part model information.
S103: under the condition of receiving a user instruction, determining a reference type of a target reference relation in target model information corresponding to the user instruction;
it should be noted that the method for three-dimensional model reference interruption of the present embodiment supports interruption or interruption modification of a missing reference relationship in target model information, and also supports interruption of a reference according to subjective initiative of a designer, for example, a core model needs to be deleted in order to protect core confidentiality of a product.
And analyzing the user instruction, and interrupting the reference condition according to the subjective initiative of the designer when the user instruction is determined to indicate that the target reference relation exists. Under the condition, analyzing the user instruction to obtain a target reference relation; when the target model information is the assembly model information, determining the reference type of the target reference relationship as an assembly constraint reference; when the target model information is part model information, determining the reference type of the target reference relation as a part modeling feature reference in the part environment; and when the target model information is the assembling model information and the part model information, determining the reference type of the target reference relation as the part modeling characteristic reference in the assembling environment.
Analyzing the user instruction, and under the condition that the user instruction is determined to automatically interrupt reference processing on the target model information, reading model tree information of the target model in the preset three-dimensional design software, and determining the reference type of the target reference relationship in the target model information by using the functions of marking missing reference relationships, such as red marking, yellow marking, highlight display and the like, of the preset three-dimensional design software.
Specifically, under the condition that the target model information is assembly model information and the names of the parts or sub-assemblies in the assembly model tree are labeled, determining the reference relationship of the parts or sub-assemblies with the labeled names as a target reference relationship, and determining the reference type of the target reference relationship as an assembly constraint reference;
determining the reference relation of the feature with the marked name as a target reference relation under the condition that the target model information is the part model information and the feature name is marked in the part model tree, and determining the reference type of the target reference relation as the part modeling reference loss under the part environment;
and when the target model information is the assembly model information and the part feature names of the model tree in the assembly environment are marked, determining the reference relation of the marked features as a target reference relation, and determining the reference type of the target reference relation as the part modeling feature reference in the assembly environment.
It should be noted that the part modeling feature reference is divided into a part modeling feature reference in a part environment and a part modeling feature reference in an assembly environment, the part modeling feature reference in the part environment is from a reference relationship between features of the part modeling feature reference in the part environment, and the part modeling feature reference in the assembly environment is from a part or a sub-assembly body in the same level.
S104: and interrupting or interrupting and modifying the target reference relation according to the reference type of the target reference relation.
And compared with the situation that the reference is interrupted according to the subjective initiative of the designer, when the target model information is the assembly model information, interrupting the target reference relation in the target model information, deleting the core model in the target model information, and regenerating a new assembly model.
In the case of automatically performing the interruption reference processing on the target model information, when the reference type of the target reference relationship is the assembly constraint reference, please refer to fig. 2, a method for interrupting or interrupting and modifying the target reference relationship is as follows:
s201: reading an assembly level sequence in a corresponding target assembly model tree, and identifying parts which fail to be assembled;
s202: deleting the assembly constraint relation of the part which fails to be assembled, and setting the fixed assembly constraint relation as the assembly constraint relation of the part which fails to be assembled;
s203: and regenerating an assembly model corresponding to the target model information.
When the reference type is a part modeling reference in a part environment, please refer to fig. 3, a method for interrupting or interrupting modification of the target reference relationship is as follows:
s301: judging whether the corresponding part feature is a sketch feature reference deletion or a non-sketch feature reference deletion;
if the reference deletion is a sketch feature reference deletion, S302: identifying and modifying a two-dimensional sketch of a target feature with part modeling reference missing in a part model tree;
s303: establishing new reference and new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a part model corresponding to the part model tree;
if the reference deletion is a non-sketch feature reference deletion, S304: determining the type of the target feature with the reference of the non-sketch feature missing;
s305: when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the part model tree;
s306: deleting the missing reference when the type of the target feature with the missing non-sketch feature reference is the hole feature;
s307: and establishing a new reference and regenerating a part model corresponding to the part model tree on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is unchanged.
Specifically, referring to fig. 4, assuming that the left graph reference relationship is complete, where circle 2 is modeled with circle 1 as the reference feature, if the circle 1 feature is deleted or modified for some reason, then the lack of reference of the circle 2 feature will cause the modeling failure. The method for breaking the reference of the three-dimensional model disclosed in this embodiment reads the feature ID of the reference modeling failure in the part model tree, determines whether the feature is a two-dimensional sketch-to-three-dimensional entity feature, identifies the sketch feature, further sketches the interface, automatically locks the point and line of the lost reference, finds a new reference, locks the size value, as shown in the right diagram in fig. 4, and finally regenerates the feature. Thus, feature 1 is corrected with reference to missing modeling, and failed features are retrieved in a loop over the feature model tree until all features are corrected.
In the event that a feature reference for non-sketch modeling of part modeling features is lost, such as a chamfer feature, because the chamfer feature is modeled with reference to an edge of a previous feature, if the edge of the previous feature is lost or changed, the chamfer feature may fail to model. The method for interrupting reference of the three-dimensional model disclosed by the embodiment comprises the steps of reading the chamfering feature ID, judging whether the reference fails, searching the number of chamfering feature sets, sequentially judging the edges losing the reference in the sets, deleting the edges, deleting the sets if the reference is all failed in the sets, and regenerating the features. And deleting missing references for hole features, establishing new references and regenerating the model on the premise of ensuring that the hole position is unchanged.
When the reference type is a part modeling reference in an assembly environment, referring to fig. 5, the method for interrupting or interrupting modification of the target reference relationship is as follows:
s401: judging whether the part features in the corresponding assembly model are sketch feature reference deletion or non-sketch feature reference deletion;
if the reference is missing for the sketch feature, S402: identifying and modifying a two-dimensional sketch of a target feature with part modeling reference missing in an assembly model tree;
s403: on the premise of ensuring that the target feature information of the sketch feature reference deletion is not changed, establishing a new reference and a new reference size of the target feature of the sketch feature reference deletion, and regenerating a model;
if the reference is missing, S404: determining the type of the target feature with the reference of the non-sketch feature missing;
s405: when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the assembly model tree;
s406: deleting the missing reference when the type of the target feature with the missing non-sketch feature reference is the hole feature;
s407: and establishing a new reference and regenerating a part model corresponding to the assembly model tree on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is unchanged.
Therefore, according to the method for interrupting reference of the three-dimensional model disclosed by the embodiment, after the interruption reference system is loaded, the reference type of the target reference relationship in the target model information corresponding to the user instruction is determined by reading the target model information in the preset three-dimensional design software, and then the target reference relationship can be automatically interrupted or interrupted and modified quickly and accurately according to the reference type of the target reference relationship, so that the modeling efficiency of the three-dimensional model is improved.
Based on the method for breaking a reference by a three-dimensional model disclosed in the above embodiments, this embodiment correspondingly discloses a device for breaking a reference by a three-dimensional model, please refer to fig. 6, and the device includes:
an interruption reference system loading unit 100 for loading an interruption reference system;
a model information reading unit 200 for reading target model information in preset three-dimensional design software;
a reference type determining unit 300, configured to determine, in a case that a user instruction is received, a reference type of a target reference relationship in the target model information corresponding to the user instruction;
an interruption reference processing unit 400, configured to perform interruption or interruption modification on the target reference relationship according to the reference type of the target reference relationship.
Optionally, the target model information is assembly model information and/or part model information.
Optionally, the reference type determining unit 300 is specifically configured to:
analyzing the user instruction to obtain the target reference relation;
when the target model information is assembly model information, determining the reference type of the target reference relationship as an assembly constraint reference;
when the target model information is part model information, determining the reference type of the target reference relation as a part modeling feature reference;
and when the target model information is the assembling model information and the part model information, determining the reference type of the target reference relation as the part modeling feature reference in the assembling environment.
Optionally, the reference type determining unit 300 is specifically configured to:
under the condition that the user instruction indicates that the target model information is automatically interrupted by reference processing, reading model tree information of the target model information in the preset three-dimensional design software;
determining the reference relation of the part or sub-assembly with the labeled name as the target reference relation and determining the reference type of the target reference relation as an assembly constraint reference under the condition that the target model information is assembly model information and the name of the part or sub-assembly is labeled in the assembly model tree;
determining the reference relation of the feature with the marked name as the target reference relation and determining the reference type of the target reference relation as the part modeling reference missing under the condition that the target model information is the part model information and the feature name is marked in the part model tree;
and when the target model information is assembly model information and part model information and the part feature names of the model tree in the assembly environment are labeled, determining the reference relation of the feature with the labeled name as the target reference relation, and determining the reference type of the target reference relation as the part modeling feature reference in the assembly environment.
Optionally, the interruption reference processing unit 400 is specifically configured to:
and when the target model information is assembly model information, breaking the target reference relation in the target model information, deleting a core model in the target model information, and regenerating a new assembly model.
Optionally, the interruption reference processing unit 400 is specifically configured to:
when the reference type of the target reference relation is an assembly constraint reference, reading an assembly level sequence in a corresponding target assembly model tree, and identifying a part failed in assembly;
deleting the assembly constraint relation of the part which fails to be assembled, and setting the fixed assembly constraint relation as the assembly constraint relation of the part which fails to be assembled;
and regenerating an assembly model corresponding to the target model information.
Optionally, the interruption reference processing unit 400 is specifically configured to:
when the reference type is a part modeling reference, judging whether the corresponding part feature is a sketch feature reference deletion or a non-sketch feature reference deletion;
if the sketch feature reference is missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the part model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a part model corresponding to the part model tree;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the part model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the part model tree.
Optionally, the interruption reference processing unit 400 is specifically configured to:
when the reference type is a part modeling reference in an assembly environment, judging whether the part features in the corresponding assembly model are sketch feature reference deletion or non-sketch feature reference deletion;
if the target feature is the sketch feature reference missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the assembly model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a model;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the assembly model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the assembly model tree.
After the device for three-dimensional model reference interruption disclosed by the embodiment is loaded with the reference interruption system, the reference type of the target reference relationship in the target model information corresponding to the user instruction is determined by reading the target model information in the preset three-dimensional design software, and then the target reference relationship can be automatically interrupted or interrupted and modified quickly and accurately according to the reference type of the target reference relationship, so that the modeling efficiency of the three-dimensional model is improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (16)

1. A method for breaking a reference by a three-dimensional model, comprising:
loading an interruption reference system;
reading target model information in preset three-dimensional design software;
under the condition of receiving a user instruction, determining a reference type of a target reference relation in the target model information corresponding to the user instruction;
and interrupting or interrupting and modifying the target reference relation according to the reference type of the target reference relation.
2. The method according to claim 1, wherein the target model information is assembly model information and/or part model information.
3. The method according to claim 2, wherein the determining a reference type of a target reference relationship in the target model information corresponding to the user instruction comprises:
analyzing the user instruction to obtain the target reference relation;
when the target model information is assembly model information, determining the reference type of the target reference relationship as an assembly constraint reference;
when the target model information is part model information, determining the reference type of the target reference relation as a part modeling feature reference in a part environment;
and when the target model information is the assembling model information and the part model information, determining the reference type of the target reference relation as the part modeling feature reference in the assembling environment.
4. The method according to claim 2, wherein the determining a reference type of a target reference relationship in the target model information corresponding to the user instruction comprises:
under the condition that the user instruction indicates that the target model information is automatically interrupted by reference processing, reading model tree information of the target model information in the preset three-dimensional design software;
determining the reference relation of the part or sub-assembly with the labeled name as the target reference relation and determining the reference type of the target reference relation as an assembly constraint reference under the condition that the target model information is assembly model information and the name of the part or sub-assembly is labeled in the assembly model tree;
determining the reference relation of the feature with the marked name as the target reference relation and determining the reference type of the target reference relation as the part modeling reference loss under the part environment under the condition that the target model information is the part model information and the feature name is marked in the part model tree;
and when the target model information is assembly model information and part model information and the part feature names of the model tree in the assembly environment are labeled, determining the reference relation of the feature with the labeled name as the target reference relation, and determining the reference type of the target reference relation as the part modeling feature reference in the assembly environment.
5. The method according to claim 3, wherein the interrupting or interrupting the modification of the target reference relationship according to the reference type of the target reference relationship comprises:
and when the target model information is assembly model information, breaking the target reference relation in the target model information, deleting a core model in the target model information, and regenerating a new assembly model.
6. The method according to claim 4, wherein the interrupting or interrupting the modification of the target reference relationship according to the reference type of the target reference relationship comprises:
when the reference type of the target reference relation is an assembly constraint reference, reading an assembly level sequence in a corresponding target assembly model tree, and identifying a part failed in assembly;
deleting the assembly constraint relation of the part which fails to be assembled, and setting the fixed assembly constraint relation as the assembly constraint relation of the part which fails to be assembled;
and regenerating an assembly model corresponding to the target model information.
7. The method according to claim 4, wherein the interrupting or interrupting the modification of the target reference relationship according to the reference type of the target reference relationship comprises:
when the reference type is a part modeling reference in a part environment, judging whether the corresponding part feature is a sketch feature reference deletion or a non-sketch feature reference deletion;
if the sketch feature reference is missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the part model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a part model corresponding to the part model tree;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the part model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the part model tree.
8. The method according to claim 4, wherein the interrupting or interrupting the modification of the target reference relationship according to the reference type of the target reference relationship comprises:
when the reference type is a part modeling reference in an assembly environment, judging whether the part features in the corresponding assembly model are sketch feature reference deletion or non-sketch feature reference deletion;
if the target feature is the sketch feature reference missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the assembly model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a model;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the assembly model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the assembly model tree.
9. An apparatus for breaking a reference by a three-dimensional model, comprising:
the loading unit of the interrupt reference system is used for loading the interrupt reference system;
the model information reading unit is used for reading target model information in preset three-dimensional design software;
the reference type determining unit is used for determining a reference type of a target reference relation in the target model information corresponding to a user instruction under the condition that the user instruction is received;
and the interruption reference processing unit is used for interrupting or interrupting and modifying the target reference relationship according to the reference type of the target reference relationship.
10. The apparatus according to claim 9, wherein the target model information is assembly model information and/or part model information.
11. The apparatus according to claim 10, wherein the reference type determining unit is specifically configured to:
analyzing the user instruction to obtain the target reference relation;
when the target model information is assembly model information, determining the reference type of the target reference relationship as an assembly constraint reference;
when the target model information is part model information, determining the reference type of the target reference relation as a part modeling feature reference in a part environment;
and when the target model information is the assembling model information and the part model information, determining the reference type of the target reference relation as the part modeling feature reference in the assembling environment.
12. The apparatus according to claim 10, wherein the reference type determining unit is specifically configured to:
under the condition that the user instruction indicates that the target model information is automatically interrupted by reference processing, reading model tree information of the target model information in the preset three-dimensional design software;
determining the reference relation of the part or sub-assembly with the labeled name as the target reference relation and determining the reference type of the target reference relation as an assembly constraint reference under the condition that the target model information is assembly model information and the name of the part or sub-assembly is labeled in the assembly model tree;
determining the reference relation of the feature with the marked name as the target reference relation and determining the reference type of the target reference relation as the part modeling reference loss under the part environment under the condition that the target model information is the part model information and the feature name is marked in the part model tree;
and when the target model information is assembly model information and part model information and the part feature names of the model tree in the assembly environment are labeled, determining the reference relation of the feature with the labeled name as the target reference relation, and determining the reference type of the target reference relation as the part modeling feature reference in the assembly environment.
13. The apparatus according to claim 11, wherein the break reference processing unit is specifically configured to:
and when the target model information is assembly model information, breaking the target reference relation in the target model information, deleting a core model in the target model information, and regenerating a new assembly model.
14. The apparatus according to claim 12, wherein the break reference processing unit is specifically configured to:
when the reference type of the target reference relation is an assembly constraint reference, reading an assembly level sequence in a corresponding target assembly model tree, and identifying a part failed in assembly;
deleting the assembly constraint relation of the part which fails to be assembled, and setting the fixed assembly constraint relation as the assembly constraint relation of the part which fails to be assembled;
and regenerating an assembly model corresponding to the target model information.
15. The apparatus according to claim 12, wherein the break reference processing unit is specifically configured to:
when the reference type is a part modeling reference in a part environment, judging whether the corresponding part feature is a sketch feature reference deletion or a non-sketch feature reference deletion;
if the sketch feature reference is missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the part model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a part model corresponding to the part model tree;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the part model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the part model tree.
16. The apparatus according to claim 12, wherein the break reference processing unit is specifically configured to:
when the reference type is a part modeling reference in an assembly environment, judging whether the part features in the corresponding assembly model are sketch feature reference deletion or non-sketch feature reference deletion;
if the target feature is the sketch feature reference missing, identifying and modifying the two-dimensional sketch of the target feature with the part modeling reference missing in the assembly model tree, establishing a new reference and a new reference size of the target feature with the sketch feature reference missing on the premise of ensuring that the target feature information with the sketch feature reference missing is not changed, and regenerating a model;
if the target feature is not the sketch feature reference deletion, determining the type of the target feature which is not the sketch feature reference deletion;
when the type of the target feature missing from the non-sketch feature reference is a fillet or chamfer feature, deleting the edge missing the reference, and regenerating a part model corresponding to the assembly model tree;
and when the type of the target feature with the missing non-sketch feature reference is the hole feature, deleting the missing reference, establishing a new reference on the premise of ensuring that the hole position of the target feature with the missing non-sketch feature reference is not changed, and regenerating the part model corresponding to the assembly model tree.
CN202010661899.7A 2020-07-10 2020-07-10 Method and device for breaking reference by three-dimensional model Pending CN111833438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010661899.7A CN111833438A (en) 2020-07-10 2020-07-10 Method and device for breaking reference by three-dimensional model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010661899.7A CN111833438A (en) 2020-07-10 2020-07-10 Method and device for breaking reference by three-dimensional model

Publications (1)

Publication Number Publication Date
CN111833438A true CN111833438A (en) 2020-10-27

Family

ID=72901283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010661899.7A Pending CN111833438A (en) 2020-07-10 2020-07-10 Method and device for breaking reference by three-dimensional model

Country Status (1)

Country Link
CN (1) CN111833438A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020097248A1 (en) * 2001-01-19 2002-07-25 Shinya Kano Three-dimensional CAD system
KR20070049753A (en) * 2005-11-09 2007-05-14 한국전자통신연구원 Apparatus and method of phrase break prediction for synthesizing text-to-speech system
CN101324964A (en) * 2008-06-03 2008-12-17 奇瑞汽车股份有限公司 Three-dimensional modeling method
CN102722614A (en) * 2012-06-04 2012-10-10 中国电子科技集团公司第三十八研究所 Method for building dynamic three-dimensional process model
CN109035424A (en) * 2018-06-29 2018-12-18 陕西心像信息科技有限公司 Three dimensional design platform device interrupts method
KR20200021115A (en) * 2018-08-20 2020-02-28 한양대학교 산학협력단 Automated design generation method and system
CN111143923A (en) * 2019-12-17 2020-05-12 万翼科技有限公司 Model processing method and related device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020097248A1 (en) * 2001-01-19 2002-07-25 Shinya Kano Three-dimensional CAD system
KR20070049753A (en) * 2005-11-09 2007-05-14 한국전자통신연구원 Apparatus and method of phrase break prediction for synthesizing text-to-speech system
CN101324964A (en) * 2008-06-03 2008-12-17 奇瑞汽车股份有限公司 Three-dimensional modeling method
CN102722614A (en) * 2012-06-04 2012-10-10 中国电子科技集团公司第三十八研究所 Method for building dynamic three-dimensional process model
CN109035424A (en) * 2018-06-29 2018-12-18 陕西心像信息科技有限公司 Three dimensional design platform device interrupts method
KR20200021115A (en) * 2018-08-20 2020-02-28 한양대학교 산학협력단 Automated design generation method and system
CN111143923A (en) * 2019-12-17 2020-05-12 万翼科技有限公司 Model processing method and related device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
侯青林, 李卫民, 张伟: "三维实体造型技巧研究", 辽宁工学院学报, no. 05 *
杨磊;: "基于三维软件的机械可视化模型设计研究", 时代农机, no. 05 *

Similar Documents

Publication Publication Date Title
CN110659257B (en) Metadata object repairing method, device, equipment and readable storage medium
US8874519B1 (en) Method and apparatus for restoring a table in a database
CN110287696B (en) Detection method, device and equipment for rebound shell process
CN110888837B (en) Object storage small file merging method and device
CN114564446B (en) File storage method, device, system and storage medium
CN110471909B (en) Database management method, device, server and storage medium
JP2006114043A (en) Data processing apparatus and method for flash memory
CN109213450B (en) Associated metadata deleting method, device and equipment based on flash memory array
CN109299205B (en) Method and device for warehousing spatial data used by planning industry
CN109408539B (en) Data operation method, device, server and storage medium
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN111552438B (en) Method, device, server and storage medium for writing object
CN111444208B (en) Data updating method and related equipment
CN110647463B (en) Method and device for restoring test breakpoint and electronic equipment
CN111833438A (en) Method and device for breaking reference by three-dimensional model
WO2021042542A1 (en) Table of contents storage method and apparatus, computer device and storage medium
CN107315806B (en) Embedded storage method and device based on file system
CN110688200A (en) Method and device for migrating disk tree of virtual machine on line
CN110750496A (en) File copying method, system, equipment and computer readable storage medium
CN111881281B (en) Log processing method, device, equipment and medium
CN113535470A (en) Configuration backup method and device, electronic equipment and storage medium
CN112887328A (en) Sample detection method, device, equipment and computer readable storage medium
CN112463228A (en) Storage pool hybrid deployment method and device
CN108415814B (en) Method for automatically recording field change, application server and computer readable storage medium
CN114968963A (en) File overwriting method and device and electronic equipment

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