Disclosure of Invention
The application relates to a method for identifying the processing characteristics of a broken surface based on an attribute adjacency graph, which improves the identification effect on the processing characteristics of the broken surface, and is applied to computer equipment, and the method comprises the following steps:
Obtaining a target processing solid model, wherein the target processing solid model comprises at least one processing feature;
extracting node characteristics of the target processing entity model to obtain an initial attribute adjacency graph corresponding to the target processing entity model, wherein the initial attribute adjacency graph comprises at least two characteristic nodes, and the adjacent two characteristic nodes are connected through a characteristic connecting line;
determining at least one broken surface node in the attribute adjacency graph based on the broken surface set judgment rule;
Screening out broken surface nodes in the initial attribute adjacency graph to obtain an attribute adjacency graph corresponding to the target processing entity;
And generating a processing characteristic recognition result corresponding to the target processing entity model based on the attribute adjacency graph.
In an alternative embodiment, extracting node characteristics of the target processing solid model to obtain an initial attribute adjacency graph corresponding to the target processing solid model includes:
extracting node characteristics in the target processing solid model, wherein the node characteristics comprise at least one of plane node characteristics, cylindrical surface node characteristics, conical surface node characteristics, spherical surface node characteristics, circular ring surface node characteristics, spline surface node characteristics and other curved surface node characteristics;
Generating feature nodes in the initial attribute adjacency graph based on the node features;
Extracting edge features between two adjacent feature nodes in the target processing entity model, wherein the edge features comprise same-value directed edge features and different-value directed edge features;
generating feature connecting lines in the initial attribute adjacency graph based on the edge features;
and generating an initial attribute adjacency graph corresponding to the target processing entity model based on the characteristic connecting lines and the characteristic nodes.
In an alternative embodiment, extracting edge features between two adjacent feature nodes in the target processing solid model includes:
Determining a side curve type between two adjacent characteristic nodes in the target processing solid model, wherein the side curve type comprises at least one of a straight line type, an arc type, an elliptical arc type, a spiral line type, a spline curve type and other curve types;
Based on the type of the side curve and the in-plane shape assignment rule corresponding to the type of the side curve, 1 generating the side characteristic between two adjacent characteristic nodes.
In an alternative embodiment, the method further comprises:
And carrying out assignment numbering on the characteristic connecting lines based on the edge characteristics.
In an alternative embodiment, the broken surface set decision rules include a surface type restriction rule, an adjoining edge restriction rule, and a directed edge attribute restriction rule.
In an alternative embodiment, determining at least one broken surface node in the attribute adjacency graph based on a broken surface set decision rule includes:
and determining the adjacent at least two feature nodes as broken surface nodes and belonging to the same broken surface node set in response to the fact that the adjacent at least two feature nodes meet the broken surface set judging rule.
In an alternative embodiment, the feature connection lines further comprise broken surface feature connection lines;
the method further comprises the steps of:
and in response to the adjacent at least two feature nodes being broken surface nodes, modifying a connecting line for connecting the adjacent two broken surface nodes into broken surface feature connecting lines.
In an alternative embodiment, screening out broken surface nodes in the initial attribute adjacency graph to obtain an attribute adjacency graph corresponding to the target processing entity includes:
extracting key broken surface nodes in a broken surface node set;
and reserving the key broken surface nodes, and screening out other broken surface nodes in the broken surface node set to obtain an attribute adjacency graph corresponding to the target processing entity.
In an alternative embodiment, the method further comprises:
Determining association relations between broken surface nodes in the broken surface node set and other characteristic nodes in the initial attribute adjacency graph;
and adjusting the topological relation between the key broken surface nodes and other characteristic nodes in the initial attribute adjacency graph based on the association relation.
In an alternative embodiment, generating a process feature identification result corresponding to the target process entity model based on the attribute adjacency graph includes:
and generating a processing characteristic recognition result in a text form corresponding to the target processing entity model based on the attribute adjacency graph.
The technical effects included in each embodiment of the application at least include:
In the process of identifying the processing characteristics of the target processing entity, after an initial attribute adjacency graph corresponding to the target processing entity is generated, identifying broken surface nodes in the initial attribute adjacency graph, screening the broken surface nodes, and determining a processing characteristic identification result corresponding to the target processing entity model after screening. In the process of feature processing identification, through identification and screening of broken surfaces, more accurate identification of processing features in a target processing entity is realized, and further, the accuracy of feature identification on a three-dimensional model containing broken surfaces is improved.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for identifying a machined feature of a broken surface based on an attribute adjacency graph according to an exemplary embodiment of the present application, and the method is applied to a computer device for explanation, and includes:
And step 101, acquiring a target processing entity model.
In the embodiment of the application, the target machining solid model is a corresponding solid model obtained from the part to be machined. Alternatively, the target process entity model may be a model obtained based on artificial intelligence techniques, which corresponds to a part entity.
And 102, extracting node characteristics of the target processing entity model to obtain an initial attribute adjacency graph corresponding to the target processing entity model.
In an embodiment of the application, the initial attribute adjacency graph is implemented in a computer device in the form of a picture. The initial attribute adjacency graph comprises at least two feature nodes, and the two adjacent feature nodes are connected through a feature connecting line.
Step 103, determining at least one broken surface node in the attribute adjacency graph based on the broken surface set judgment rule.
In the embodiment of the application, the broken surface set judging rule is used for judging whether the node obtained by extracting the broken surface features is contained or not based on the initial attribute adjacency graph. In the embodiment of the application, the number of the broken surface characteristic nodes is usually more than 2, and the broken surface characteristic nodes are used for representing broken surfaces.
And 104, screening out broken surface nodes in the initial attribute adjacency graph to obtain an attribute adjacency graph corresponding to the target processing entity.
The process is the screening process of broken surface nodes. In some embodiments of the application, the broken surface nodes are completely screened out, in other embodiments of the application, the broken surface nodes are replaced by newly built feature nodes, and in other embodiments of the application, the broken surface nodes and the corresponding topological relations are consolidated to form the attribute adjacency graph. The present application is not limited to the actual form of the attribute adjacency graph.
Step 105, generating a processing feature recognition result corresponding to the target processing entity model based on the attribute adjacency graph.
In the embodiment of the application, the processing feature recognition result is a result corresponding to the target processing entity, and comprises the type, the content and the corresponding numerical value of the processing feature in the target processing entity. In one example, the processing feature recognition result can be implemented in text form.
In summary, in the method provided by the embodiment of the present application, in the process of identifying the processing characteristics of the target processing entity, after generating the initial attribute adjacency graph corresponding to the target processing entity, the broken surface nodes are identified in the initial attribute adjacency graph, and the broken surface nodes are screened out, and after screening out, the processing characteristic identification result corresponding to the target processing entity model is determined. In the process of feature processing identification, through identification and screening of broken surfaces, more accurate identification of processing features in a target processing entity is realized, and further, the accuracy of feature identification on a three-dimensional model containing broken surfaces is improved.
Fig. 2 is a schematic flow chart of another method for identifying characteristics of broken surface processing based on attribute adjacency graph according to an exemplary embodiment of the present application, where the method is applied to a computer device for illustration, and the method includes:
step 201, a target processing solid model is obtained.
This process corresponds to the process shown in step 101, and will not be described here.
And 202, extracting node characteristics in the target processing entity model.
It should be noted that, in the embodiment of the present application, before extracting the node features of the target processing entity model, the target processing entity model needs to be extracted as a wire frame model, that is, a model that only characterizes the line of the target processing entity, but not the color of the target processing entity, and in one example, the form of the target processing entity model 310 is shown in fig. 3.
In an embodiment of the present application, the node features include at least one of planar node features, cylindrical surface node features, conical surface node features, spherical surface node features, annular surface node features, spline surface node features, and other surface node features.
Step 203, generating feature nodes in the initial attribute adjacency graph based on the node features.
It should be noted that, the computer device assigns values corresponding to different node features, in one example, the values of the nodes are defined as n=0 to 5, where 1 to 5 corresponds to a plane/cylindrical surface/conical surface/spherical surface/circular surface, and 0 represents other planes not belonging to the above type.
And 204, extracting edge features between two adjacent feature nodes in the target processing entity model.
In the embodiment of the application, the edge features comprise the same-value directed edge features and different-value directed edge features.
In the embodiment of the application, the edge between two feature nodes has the type feature of the edge and the phase feature of the edge. The computer equipment firstly obtains the internal and external relation between the edges and the corresponding surfaces, the concave-convex state of the edges and the shapes of the edges, and finally generates edge characteristics. Optionally, the computer device defines the value e=xyz of the directed edge. X=1-2, Y=1-3, concave/convex/smooth, Z=0-4, wherein 1-4 corresponds to straight line/circular arc/elliptic arc/spiral line, 0 represents other directed edges not belonging to the geometric type. Optionally, the edge curve type includes at least one of a straight line type, an arc type, an elliptical arc type, a spiral type, a spline curve type, and other curve types.
In step 205, feature connection lines in the initial attribute adjacency graph are generated based on the edge features.
In the embodiment of the application, a process of assigning a value to a feature connection line based on an edge feature exists.
And 206, generating an initial attribute adjacency graph corresponding to the target processing entity model based on the characteristic connecting lines and the characteristic nodes.
In one embodiment of the application, the initial attribute adjacency graph is in the form of FIG. 4. In fig. 4, feature nodes 401 to 408 are included, and assigned feature connection lines exist between two adjacent feature nodes.
In step 207, in response to the at least two adjacent feature nodes meeting the broken surface set determination rule, the at least two adjacent feature nodes are determined to be broken surface nodes and belong to the same broken surface node set.
In the embodiment of the application, the broken surface set judging rule comprises a surface type limiting rule, an adjacent edge limiting rule and a directed edge attribute limiting rule. It corresponds to the full necessity of judging that two faces belong to one broken face set in the entity, and the two faces are the same in type and smooth in transition edge. And decomposing the corresponding node characteristics and the edge characteristics to obtain three conditions of identical surface types, smooth adjacent edges and identical directional edge attributes adjacent to the same surface, and judging that the corresponding nodes belong to broken surface nodes and the corresponding broken surface nodes belong to the same broken surface node set when the adjacent characteristic nodes meet at least three conditions.
In the embodiment of the application, in response to the fact that at least two adjacent characteristic nodes are broken surface nodes, a connecting line used for connecting the two adjacent broken surface nodes is modified into a broken surface characteristic connecting line. In the initial feature adjacency graph, the connecting lines between the broken surface nodes can be equivalently represented by a dotted line.
Step 208, extracting key broken surface nodes in the broken surface node set.
The process is based on the extraction process of the key broken surface nodes embodied in step 207.
And 209, reserving the key broken surface nodes, and screening out other broken surface nodes in the broken surface node set to obtain an attribute adjacency graph corresponding to the target processing entity.
In this process, the association relationship between the broken surface nodes in the broken surface node set and other characteristic nodes in the initial attribute adjacency graph needs to be determined, and the topological relationship between the key broken surface nodes and other characteristic nodes in the initial attribute adjacency graph is adjusted based on the association relationship, so that part of broken surface nodes are deleted, and at least one broken surface node in one broken surface node set is reserved to obtain the attribute adjacency graph corresponding to the target processing entity.
Step 210, generating a processing feature recognition result in a text form corresponding to the target processing entity model based on the attribute adjacency graph.
In the embodiment of the application, the processing characteristic recognition result can be realized in a text form. In one example, a database associated with the prior art process features is correspondingly stored in a computer device, and based on a comparison of database attribute adjacency graphs, the computer device generates at least one process feature corresponding to the target process entity and generates visual information in textual form for illustration.
In summary, in the method provided by the embodiment of the present application, in the process of identifying the processing characteristics of the target processing entity, after generating the initial attribute adjacency graph corresponding to the target processing entity, the broken surface nodes are identified in the initial attribute adjacency graph, and the broken surface nodes are screened out, and after screening out, the processing characteristic identification result corresponding to the target processing entity model is determined. In the process of feature processing identification, through identification and screening of broken surfaces, more accurate identification of processing features in a target processing entity is realized, and further, the accuracy of feature identification on a three-dimensional model containing broken surfaces is improved.
The foregoing description of the preferred embodiments of the present application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements within the spirit and principles of the present application.