A method and system for generating a process model of a sheet metal part
By automatically identifying the design features of sheet metal parts and calculating the flattening matrix, the sheet metal unfolded parts and blanks are generated, and the process model is automatically generated, which solves the problems of low efficiency and unsuitability for sheet metal process models in the existing technology, and achieves high efficiency. , Accurate sheet metal part process model construction.
Patent Information
- Application Number
- CN202311666994.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-07
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-12-07
AI Technical Summary
When generating sheet metal part process models in the existing technology, methods based on manual interaction are inefficient and not conducive to process sequence adjustment. Methods based on manufacturing features cannot accurately reflect the actual processing process, and most methods are only suitable for machined parts. Not available for sheet metal craft models.
By obtaining the design model of sheet metal parts, extracting Brep information, automatically identifying design features, calculating the flattening matrix, generating sheet metal unfolded parts and blanks, automatically generating process models, and using sheet metal features to compile processing routes.
It improves the efficiency and accuracy of process model generation, is suitable for the processing of sheet metal parts, supports the construction of sheet metal unfolded parts and blanks, and has a wide range of applications.
Smart Images

Figure CN117786874B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of three-dimensional digital process design, and more specifically, relates to a method and system for generating a process model of a sheet metal part. Background Art
[0002] During the processing of parts, it is necessary to first establish the corresponding process model. There are two main methods for generating part process models. The first is the process model reverse generation method. This method needs to consider the actual processing situation during the feature design process, refine the design features, and ensure that each process model has a corresponding process model. Then, the feature fallback technology is used, that is, all features behind any feature node are temporarily suppressed or hidden to gradually generate a three-dimensional process model. The second method is a three-dimensional process model construction method based on manufacturing feature bodies. This method uses feature recognition technology to extract the face groups of concave features, convex features, and transition features, and then uses the half-space idea and basic modeling methods to construct the local manufacturing features, and generates the part blank model through Boolean addition operations, and then the blank model and the obtained manufacturing feature body are Boolean subtracted to create the process model.
[0003] However, the above-mentioned process model generation methods all have some defects that cannot be ignored:
[0004] First, the three-dimensional process model construction method based on manual interaction requires a lot of manual interaction, heavy workload, and low efficiency, and the constructed process model is not conducive to the adjustment of the process sequence.
[0005] Second, the three-dimensional process model construction method based on manufacturing feature bodies uses manufacturing feature bodies as basic units, which cannot accurately reflect the actual processing process. Some intersecting features are difficult to accurately describe, and manufacturing feature bodies cannot be accurately generated, and the accuracy of process model generation cannot be guaranteed.
[0006] Third, most of the existing process model construction methods are only applicable to machined parts, and are not suitable for the construction of sheet metal process models. Summary of the invention
[0007] In view of the above defects or improvement needs of the prior art, the present invention provides a method for generating a process model of a sheet metal part, the purpose of which is to obtain a design model of the sheet metal part and extract the Brep information of the design model, automatically identify the design features in the sheet metal (such as bending features, curling features, punching hole features, etc.) according to the Brep information, calculate the sheet metal flattening matrix according to the sheet metal bending features, calculate the sheet metal unfolded part using the sheet metal flattening matrix, sheet metal plane contour information, and sheet metal bending surface information, calculate the geometric envelope according to the sheet metal unfolded part, obtain the sheet metal blank, and finally use the sheet metal blank, sheet metal unfolded part, and sheet metal to generate a sheet metal blank. The sheet metal machining process route is compiled based on metal features, and the sheet metal process model is automatically generated to solve the technical problems that the existing 3D process model construction method based on manual interaction requires a lot of manual interaction, is labor-intensive, and inefficient, and the constructed process model is not conducive to the adjustment of the process sequence; the existing 3D process model construction method based on manufacturing feature body uses the manufacturing feature body as the basic unit, which cannot accurately reflect the process model of the manufacturing feature in the rough processing and semi-finishing state in the actual processing process; and the existing process model construction method is only applicable to machined parts, but not to the construction of sheet metal process models.
[0008] To achieve the above object, according to one aspect of the present invention, a method for generating a process model of a sheet metal part is provided, comprising the following steps:
[0009] (1) Obtaining a design model and reading Brep information and geometric information in the design model;
[0010] (2) acquiring all faces in the design model and the adjacent faces and opposite faces of each face in the design model according to the Brep information and geometric information acquired in step (1), and constructing a first multi-branch tree according to all the acquired adjacent faces and opposite faces;
[0011] (3) identifying all sheet metal features in the design model and the relative relationships between the sheet metal features based on all the faces obtained in step (2) and the first multi-branch tree constructed;
[0012] (4) establishing a second multi-branch tree based on all sheet metal features obtained in step (3) and the relative relationships between the sheet metal features;
[0013] (5) calculating the flattened matrix corresponding to each sheet metal feature in step (3) according to the second multi-branch tree established in step (4), and recording each obtained flattened matrix into the corresponding node in the second multi-branch tree;
[0014] (6) generating a sheet metal unfolded part according to the flattened matrix of all bending features in the design model obtained in step (5);
[0015] (7) generating a sheet metal blank according to the sheet metal unfolded part obtained in step (6);
[0016] (8) Obtain the process route compiled by the process designer based on the design model, which includes multiple processing steps.
[0017] (9) For each processing step in the process route generated in step (8), the processing steps before and after the processing step are obtained from the process route, all the sheet metal features associated with the previous processing step are obtained from the previous processing step for bending processing to obtain a solid model after the bending processing, and all the sheet metal features associated with the subsequent processing step are obtained for flattening processing to obtain a solid model after the flattening processing. The solid model generated after the bending processing and the solid model generated after the flattening processing together constitute the process model of the processing step.
[0018] Preferably, step (2) specifically comprises the following sub-steps:
[0019] (2-1) According to the Brep information and geometric information obtained in step (1), the areas of all faces in the design model are calculated, and the face baseFace with the largest area is obtained;
[0020] (2-2) Determine whether the face baseFace obtained in step (2-1) has a corresponding face oppoFace in the design model. If so, proceed to step (2-3), otherwise the process ends;
[0021] (2-3) Obtain the distance between the surface baseFace obtained in step (2-1) and its opposite surface oppoFace as the sheet metal thickness thickness of the surface;
[0022] (2-4) constructing an object RootNode using the face baseFace and its opposite face oppoFace obtained in step (2-1) as a tuple, and using the object RootNode as the root node of the first multitree;
[0023] (2-5) Construct an array object set AllNodes, and add the object RootNode obtained in step (2-4) to the array object set AllNodes;
[0024] (2-6) Set counter i=0;
[0025] (2-7) Determine whether i is less than the total number of objects in the array object set AllNodes. If so, proceed to step (2-8), otherwise the process ends;
[0026] (2-8) Get the face corresponding to the i-th object AllNodes[i] in the array object set AllNodes and its adjacent faces and opposite faces;
[0027] (2-9) The adjacent face and the opposite face corresponding to the i-th object in the array object set AllNodes obtained in step (2-8) are used as a tuple to construct an object pNode, and the object pNode is added to the array object set AllNodes, and it is determined whether the counter i is equal to 0. If so, it proceeds to step (2-10), otherwise it proceeds to step (2-11);
[0028] (2-10) Set the object pNode obtained in step (2-9) as the child node of the i-th object AllNodes[i] in the object set AllNodes, and go to step (2-12);
[0029] (2-11) Set the object pNode obtained in step (2-9) as the child node of the i-1th object AllNodes[i-1] in the object set AllNodes, and go to step (2-12);
[0030] (2-12) Set i=i+1 and return to step (2-7).
[0031] Preferably, the sheet metal features include bending features, hemming features, rib features, stamping cutout features, dimple features, reinforcing rib features, louver features, and stamping hole features;
[0032] The relative relationships between sheet metal features include precedence and dependency relationships.
[0033] Preferably, step (3) specifically comprises the following sub-steps:
[0034] (3-1) Obtain the root node RootNode in the first multi-branch tree constructed in step (2);
[0035] (3-2) construct an array object set AllNodes1, and add the root node RootNode obtained in step (3-1) as an object to the array object set AllNodes1;
[0036] (3-3) Set counter k = 0;
[0037] (3-4) Determine whether the counter k is less than the total number of objects in the array object set AllNodes1. If so, proceed to step (3-5), otherwise the process ends;
[0038] (3-5) Get the sheet metal feature pFeature of the kth object AllNodes1[i] in the array object set AllNodes1;
[0039] (3-6) Get the child node set childList consisting of all child nodes in the k-th object AllNodes1[i] in the array object set AllNodes1;
[0040] (3-7) Set counter j = 0;
[0041] (3-8) Determine whether the counter j is less than the total number of child nodes in the child node set childList. If so, proceed to step (3-9); otherwise, proceed to step (3-13);
[0042] (3-9) Get the j-th object childList[j] in the child node set childList, identify the sheet metal feature pFeature2 of the object childList[j], and determine whether the sheet metal feature pFeature2 is a bending feature. If so, proceed to step (3-10), otherwise proceed to step (3-11);
[0043] (3-10) Record the order of sheet metal feature pFeature and sheet metal feature pFeature2 in sheet metal feature pFeature and sheet metal feature pFeature2 (i.e., sheet metal feature pFeature comes first, and sheet metal feature pFeature2 comes later), and record the recorded sheet metal feature pFeature2 into object childList[j], and go to step (3-12);
[0044] (3-11) The dependency relationship between sheet metal feature pFeature and sheet metal feature pFeature2 is recorded in sheet metal feature pFeature and sheet metal feature pFeature2 (i.e. sheet metal feature pFeature2 depends on feature pFeature), and the recorded sheet metal feature pFeature2 is recorded in object childList[j], and then the process goes to step (3-12)
[0045] (3-12) Set counter j = j + 1 and return to step (3-8);
[0046] (3-13) Add the child node set childList to the array object set AllNodes1, and return to step (3-4);
[0047] (3-14) Set counter k=k+1 and return to step (3-4).
[0048] Preferably, step (4) comprises the following sub-steps:
[0049] (4-1) Obtain the face baseFace with the largest area in step (2-1), and determine whether the bending feature corresponding to the face baseFace can be obtained. If yes, proceed to step (4-2), otherwise the process ends;
[0050] (4-2) Initialize the object ParentNode to be empty, which serves as the root node of the second multi-branch tree;
[0051] (4-3) Create a node Node of the second multi-branch tree, and record the bending features obtained in step (4-1) into the node Node, and determine whether the object ParentNode is empty. If so, proceed to step (4-4), otherwise proceed to step (4-5);
[0052] (4-4) Take the node Node created in step (4-3) as the object ParentNode and go to step (4-6);
[0053] (4-5) Set the node ParentNode as the parent node of the node Node;
[0054] (4-6) Determine whether the next sheet metal feature pNextFeat of the bending feature obtained in step (4-1) can be obtained according to the relative relationship of the sheet metal features obtained in step (3). If so, proceed to step (4-7). Otherwise, the process ends.
[0055] (4-7) Use the sheet metal feature pNextFeat obtained in step (4-6) to replace the sheet metal feature obtained in step (4-1), and return to step (4-3).
[0056] Preferably, step (5) comprises the following sub-steps:
[0057] (5-1) Obtain the largest face baseFace obtained in step (2-1);
[0058] (5-2) Obtain a bending feature set FeatList consisting of all bending features corresponding to the face baseFace;
[0059] (5-3) Set counter m=0;
[0060] (5-4) Determine whether the counter m is less than the total number of bending features in the bending feature set FeatList, if so, proceed to step (5-5), otherwise the process ends;
[0061] (5-5) Initialize object pFeature1 = FeatList[m], and search for node Node1 corresponding to object pFeature1 in the second multi-branch tree established in step (4), where FeatList[m] represents the mth bending feature in the bending feature set;
[0062] (5-6) Obtain the plane and the cylindrical surface in the object pFeature1, calculate the angle between the axis of the cylindrical surface and the plane, obtain the rotation matrix according to the axis and the angle of the cylindrical surface, obtain the translation matrix according to the neutral line of the cylindrical surface, perform cross product on the calculated rotation matrix and translation matrix, and record the cross product result as the flattened matrix of the object pFeature1 in the node Node1;
[0063] (5-7) searching all child nodes and bending features of node Node1 according to the second multi-branch tree established in step (4), and all bending features constitute a bending feature list childList1;
[0064] (5-8) Set counter n = 0;
[0065] (5-9) Determine whether the counter n is less than the total number of bending features in the bending feature list childList1, if so, proceed to step (5-10), otherwise proceed to step (5-12);
[0066] (5-10) Set the object pFeature1 to the nth object childList1[n] in the bending feature list childList1;
[0067] (5-11) Set counter n=n+1 and return to step (5-6);
[0068] (5-12) Set counter m=m+1 and return to step (5-4).
[0069] Preferably, step (6) comprises the following sub-steps:
[0070] (6-1) Initialize the object sets NodeArray and BodyArrays, obtain the root node in the second multi-branch tree established in step (4), and add the root node to the object set NodeArray;
[0071] (6-2) Set counter t=0;
[0072] (6-3) Determine whether the counter t is less than the total number of objects in the object set NodeArray. If so, proceed to step (6-4); otherwise, proceed to step (6-11);
[0073] (6-4) Get the tth object NodeArray[t] in the object collection NodeArray, get the sheet metal feature pFeat and its corresponding flattened matrix in the object NodeArray[t], and get the folded plane baseFace1, the folded plane bendFace1, and the bent cylindrical surface cylFace1 in the sheet metal feature pFeat.
[0074] (6-5) Obtain the boundary and normal of the plane baseFace1 obtained in step (6-4), and stretch the boundary of the plane in the opposite direction of the normal to obtain the solid body baseBody, where the stretching length is the sheet metal thickness of the plane (i.e., the distance between the plane and its opposite surface in the design model);
[0075] (6-6) According to the folded plane bendFace1 obtained in step (6-4), the boundary and normal of the plane are obtained, and the product of all points on the boundary of the plane and the exhibit matrix obtained in step (6-4) is calculated by matrix multiplication to obtain the transformed boundary; the product dotVec1 of the normal and the flattened matrix is calculated by matrix multiplication, and the product dotVec2 of the coordinate origin (0,0,0) and the flattened matrix is calculated by matrix multiplication, and the product dotVec1 minus dotVec2 is subtracted from dotVec1 to obtain the transformed normal, and the transformed boundary is stretched in the opposite direction of the transformed normal to obtain the solid bendBody, wherein the stretched length is the sheet metal thickness of the plane;
[0076] (6-7) Establishing entity cylBody between entity baseBody after the position is changed in step (6-5) and entity bendBody obtained in step (6-6);
[0077] (6-8) Combine the entity baseBody obtained in step (6-5), the entity bendBody obtained in step (6-6), and the entity cylBody obtained in step (6-7) into a whole, and add the whole to the object collection BodyArrays.
[0078] (6-9) Get all child nodes in the object NodeArray[t] and add all child nodes to the array object NodeArray;
[0079] (6-10) Set counter t=t+1 and return to step (6-3);
[0080] (6-11) The modeler kernel OpernCascade is used to merge all objects in the object collection BodyArrays into sheet metal unfolded parts.
[0081] Preferably, step (7) is specifically as follows: first, all vertices on the unfolded sheet metal part are obtained; then, six poles in the six directions of the positive x-axis, negative x-axis, positive y-axis, negative y-axis, positive z-axis, and negative z-axis are taken from all the vertices; the minimum x-axis coordinate x0, the minimum y-axis coordinate y0, and the minimum z-axis coordinate z0 are obtained from the six poles; point P is constructed using x0, y0, and z0; the maximum x-axis coordinate x1, the maximum y-axis coordinate y1, and the maximum z-axis coordinate z1 are taken from the six poles; point Q is constructed using x1, y1, and z1; a rectangular closed wireframe Wire1 is constructed using x0, y0, x1, and y1; a vector is constructed using points P and Q and the vector is multiplied with the positive z-axis point to obtain a vector vec1; the rectangular closed wireframe Wire1 is stretched along the direction of the vector vec1, i.e., the sheet metal blank, wherein the stretching length is the modulus length of the vector vec1.
[0082] Preferably, step (9) comprises the following sub-steps:
[0083] (9-1) Obtaining a processing step set AllSteps consisting of all processing steps from the process route obtained in step (8);
[0084] (9-2) Design counter r = 0;
[0085] (9-3) Determine whether the technology r is less than the total number of processing steps in the processing step set AllSteps. If so, proceed to step (9-4), otherwise the process ends;
[0086] (9-4) Get the rth processing step AllSteps[r] from the processing step set AllSteps, and determine whether the processing step AllSteps[r] is a blanking step. If it is, proceed to step (9-12), otherwise proceed to step (9-5);
[0087] (9-5) Using the sheet metal blank obtained in step (7) as the process model of the processing step AllSteps[r];
[0088] (9-6) Obtain all processing steps prevs before the processing step AllSteps[r] and all processing steps after the processing step afters from the process route obtained in step (8);
[0089] (9-7) According to all the processing steps prevs obtained in step (9-6), the bending features pFeats associated with these processing steps prevs are obtained;
[0090] (9-8) Obtain the unfolded plane baseFace2, the folded plane bendFace2, and the bent cylindrical surface cylFace2 in the bending feature pFeats obtained in step (9-7), and construct the bending entity body1 according to the unfolded plane baseFace2, the folded plane bendFace2, and the bent cylindrical surface cylFace2;
[0091] This step is specifically as follows: first, obtain the boundary of the surface through the surface baseFace2, construct a closed wireframe using the boundary, stretch the closed wireframe in the opposite direction of the normal of the surface baseFace2, and obtain the entity b1; then, obtain the boundary of the surface through the surface bendFace2, construct a closed wireframe using the boundary, stretch the closed wireframe in the opposite direction of the normal of bendFace2, and obtain the entity b2; then, obtain an arc e1 through the surface cylFace2, obtain the starting point spt, the midpoint mpt and the end point ept of the arc e1, obtain the axis axis of the surface cylFace2, project the points spt, the point mpt and the point ept onto the axis axis respectively to obtain the projection points proj1, proj2 and proj3, and construct the points proj1, proj2 and proj3 using the points spt and proj Create vector v1, use point mpt and point proj2 to construct vector v2, use point ept and point proj3 to construct vector v3, offset point spt, point mpt and point ept along the opposite direction of vector v1, vector v2 and vector v3 respectively to obtain three points off1, off2 and off3; then, use these three points off1, off2 and off3 to construct arc e2; then, connect point spt and point off1, connect point ept and off3, together with arc e1 and arc e2 to form a closed wireframe, stretch the closed wireframe along the axis axis direction (the stretching length is the length of face cylFace2 on the axis axis) to obtain entity b3; finally, merge entities b1, b2 and b3 to get the bent entity body1.
[0092] (9-9) Obtain all bending features pFeats2 associated with the processing operation afters obtained in step (9-6);
[0093] (9-10) Obtain the folded plane baseFaces3, the bent cylindrical surface cylFace3, and the folded plane bendFace3 in the sheet metal feature pFeats2 obtained in step (9-9), and construct a flattened entity body2 based on the folded plane baseFaces3, the bent cylindrical surface cylFace3, and the folded plane bendFace3;
[0094] (9-11) The modeler kernel OpernCascade is used to combine the entity body1 constructed in step (9-8) and the entity body2 constructed in step (9-10) into a whole to obtain the process model of the rth processing step AllSteps[r].
[0095] (9-12) Set counter r=r+1 and return to step (9-3);
[0096] According to another aspect of the present invention, there is provided a system for generating a process model of a sheet metal part, comprising:
[0097] The first module is used to obtain the design model and read the Brep information and geometric information in the design model;
[0098] The second module is used to obtain all faces in the design model and the adjacent faces and relative faces of each face in the design model according to the Brep information and geometric information obtained by the first module, and construct a first multi-branch tree according to all the adjacent faces and relative faces obtained;
[0099] A third module is used to identify all sheet metal features in the design model and the relative relationship between the sheet metal features according to all the faces obtained by the second module and the first multi-branch tree constructed;
[0100] The fourth module is used to establish a second multi-branch tree according to all the sheet metal features obtained by the third module and the relative relationship between the sheet metal features;
[0101] A fifth module is used to calculate the flattened matrix corresponding to each sheet metal feature in the third module according to the second multi-branch tree established by the fourth module, and record each obtained flattened matrix into a corresponding node in the second multi-branch tree;
[0102] A sixth module is used to generate a sheet metal unfolded part according to the flattened matrix of all bending features in the design model obtained in the fifth module;
[0103] The seventh module is used to generate a sheet metal blank according to the sheet metal unfolded part obtained in the sixth module;
[0104] The eighth module is used to obtain the process route compiled by the process designer based on the design model, which includes multiple processing procedures.
[0105] The ninth module is used for obtaining, for each processing procedure in the process route generated by the eighth module, the processing procedures before and after the processing procedure from the process route, obtaining all the sheet metal features associated with the previous processing procedure for bending processing to obtain a solid model after the bending processing, obtaining all the sheet metal features associated with the subsequent processing procedure for flattening processing to obtain a solid model after the flattening processing, and the solid model generated after the bending processing and the solid model generated after the flattening processing together constitute the process model of the processing procedure.
[0106] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0107] (1) The present invention adopts step (3), step (5), step (6), step (7), and step (9), which can realize automatic recognition of sheet metal features, automatic calculation of sheet metal flattening matrix, and automatic generation of sheet metal blanks, sheet metal unfolded parts, and sheet metal process models. Therefore, it can solve the technical problems that the existing three-dimensional process model construction method based on manual interaction requires a large amount of manual interaction, has a large workload, is inefficient, and the constructed process model is not conducive to the adjustment of the process sequence.
[0108] (2) The present invention adopts step (2), step (5), and step (6) to extract the boundary data on the original design model, and construct the process model through the boundary data of the surface and the flattened matrix, so as to make the best use of the original design model data and ensure the accuracy of the process model. Therefore, it can solve the technical problems in the method of constructing a three-dimensional process model based on manufacturing feature bodies, that is, some intersecting features are difficult to describe accurately, the manufacturing feature bodies cannot be accurately generated, and the accuracy of the process model generation cannot be guaranteed.
[0109] (3) Since the present invention adopts step (2) and step (5), it can specifically identify sheet metal features and deal with the flattening matrix problem unique to sheet metal parts. Therefore, the present invention can be better applied to sheet metal parts and can solve the technical problem that most of the existing process model construction methods are only applicable to machined parts and are not applicable to the construction of sheet metal process models.
[0110] (4) Step process model generation speed block. The present invention adopts a feature-based approach to construct process models. Different process models are generated using different features. Since the feature data remains unchanged during the generation process, each time a process model for a different step is generated, a piece of feature data is used multiple times, which improves data utilization and speeds up the generation speed of the process model.
[0111] (5) The present invention has a wide range of applications. For a complete sheet metal processing process, not only the process model but also the sheet metal unfolded parts and sheet metal blanks must be considered. The present invention not only supports the construction of sheet metal process models but also supports the construction of sheet metal unfolded parts and sheet metal blanks. Therefore, the present invention can be applied to more links of the sheet metal processing process and has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0112] Figure 1 It is an overall flow chart of the method for generating a sheet metal part process model of the present invention;
[0113] Figure 2 It is a schematic diagram of adjacent faces and opposite faces in the design model of the present invention;
[0114] Figure 3 is a detailed flow chart of step (2) in the method of the present invention;
[0115] Figure 4 is a detailed flow chart of step (3) in the method of the present invention;
[0116] Figure 5 It is a schematic diagram of an undone plane, a folded plane, and a bent cylindrical surface in the sheet metal feature of the present invention. DETAILED DESCRIPTION
[0117] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0118] like Figure 1 As shown, the present invention provides a method for generating a sheet metal part process model, comprising the following steps:
[0119] (1) Obtaining a design model and reading Brep information and geometric information in the design model;
[0120] Specifically, this step takes the design model as the system input, and the system automatically obtains the Brep information and geometric information in the design model; the Brep information in the design model includes the topological relationships of points, edges, rings, faces, and bodies, and the geometric information includes the geometric data of points (i.e., the three-dimensional coordinates of points), the geometric data of edges (such as the type of edges, the parameters of edges), and the geometric data of faces (such as the type of faces, and the parameters of faces).
[0121] (2) acquiring all faces in the design model and the adjacent faces and opposite faces of each face in the design model according to the Brep information and geometric information acquired in step (1), and constructing a first multi-branch tree according to all the acquired adjacent faces and opposite faces;
[0122] Specifically, the adjacent faces of a face are the faces adjacent to the outer boundary of the face, and the opposite face of a face is the face on the other side of the design model. Figure 2 As shown, face A and face B are adjacent faces, and face A and face C are opposite faces. When constructing the first multi-branch tree, face A and face C are used as a tuple to construct node pNode1, face B and the opposite face of B are used as a tuple to construct node pNode2, and node pNode1 is set as the parent node of node pNode2, and node pNode2 is set as the child node of node pNode1.
[0123] like Figure 3 As shown, this step specifically includes the following sub-steps:
[0124] (2-1) According to the Brep information and geometric information obtained in step (1), the areas of all faces in the design model are calculated, and the face baseFace with the largest area is obtained;
[0125] (2-2) Determine whether the face baseFace obtained in step (2-1) has a corresponding face oppoFace in the design model. If so, proceed to step (2-3), otherwise the process ends;
[0126] (2-3) Obtain the distance between the surface baseFace obtained in step (2-1) and its opposite surface oppoFace as the sheet metal thickness thickness of the surface;
[0127] (2-4) constructing an object RootNode using the face baseFace and its opposite face oppoFace obtained in step (2-1) as a tuple, and using the object RootNode as the root node of the first multitree;
[0128] (2-5) Construct an array object set AllNodes, and add the object RootNode obtained in step (2-4) to the array object set AllNodes;
[0129] (2-6) Set counter i=0;
[0130] (2-7) Determine whether i is less than the total number of objects in the array object set AllNodes. If so, proceed to step (2-8), otherwise the process ends;
[0131] (2-8) Get the face corresponding to the i-th object AllNodes[i] in the array object set AllNodes and its adjacent faces and opposite faces;
[0132] (2-9) The adjacent face and the opposite face corresponding to the i-th object in the array object set AllNodes obtained in step (2-8) are used as a tuple to construct an object pNode, and the object pNode is added to the array object set AllNodes, and it is determined whether the counter i is equal to 0. If so, it proceeds to step (2-10), otherwise it proceeds to step (2-11);
[0133] (2-10) Set the object pNode obtained in step (2-9) as the child node of the i-th object AllNodes[i] in the object set AllNodes, and go to step (2-12);
[0134] (2-11) Set the object pNode obtained in step (2-9) as the child node of the i-1th object AllNodes[i-1] in the object set AllNodes, and go to step (2-12);
[0135] (2-12) Set i=i+1 and return to step (2-7);
[0136] The advantage of this step is that the first multi-branch tree is constructed by obtaining the adjacent faces and relative faces of the face, and the face, the adjacent faces and the relative faces are recorded in one calculation process to avoid subsequent repeated calculations. The use of multi-branch trees to manage data facilitates data and improves the efficiency of data search. After using a custom data structure to manage data, it is convenient for data maintenance and updating, and more convenient for adjustment of program functions.
[0137] (3) identifying all sheet metal features in the design model and the relative relationships between the sheet metal features based on all the faces obtained in step (2) and the first multi-branch tree constructed;
[0138] Specifically, sheet metal features include bending features, hemming features, rib features, stamping cutout features, pit features, rib features, louver features, and stamping hole features.
[0139] The relative relationship between sheet metal features includes the order relationship and the dependency relationship. The order relationship exists between bend features, indicating which bend is generated first and which bend is generated later. The dependency relationship exists between bend features and other sheet metal features. When there are other sheet metal features on the surface of a bend feature, the other sheet metal features depend on the bend feature.
[0140] like Figure 4 As shown, this step specifically includes the following sub-steps:
[0141] (3-1) Obtain the root node RootNode in the first multi-branch tree constructed in step (2);
[0142] (3-2) construct an array object set AllNodes1, and add the root node RootNode obtained in step (3-1) as an object to the array object set AllNodes1;
[0143] (3-3) Set counter k = 0;
[0144] (3-4) Determine whether the counter k is less than the total number of objects in the array object set AllNodes1. If so, proceed to step (3-5), otherwise the process ends;
[0145] (3-5) Get the sheet metal feature pFeature of the kth object AllNodes1[i] in the array object set AllNodes1;
[0146] (3-6) Get the child node set childList consisting of all child nodes in the k-th object AllNodes1[i] in the array object set AllNodes1;
[0147] (3-7) Set counter j = 0;
[0148] (3-8) Determine whether the counter j is less than the total number of child nodes in the child node set childList. If so, proceed to step (3-9); otherwise, proceed to step (3-13);
[0149] (3-9) Get the j-th object childList[j] in the child node set childList, identify the sheet metal feature pFeature2 of the object childList[j], and determine whether the sheet metal feature pFeature2 is a bending feature. If so, proceed to step (3-10), otherwise proceed to step (3-11);
[0150] (3-10) Record the order of sheet metal feature pFeature and sheet metal feature pFeature2 in sheet metal feature pFeature and sheet metal feature pFeature2 (i.e., sheet metal feature pFeature comes first, and sheet metal feature pFeature2 comes later), and record the recorded sheet metal feature pFeature2 into object childList[j], and go to step (3-12);
[0151] (3-11) The dependency relationship between sheet metal feature pFeature and sheet metal feature pFeature2 is recorded in sheet metal feature pFeature and sheet metal feature pFeature2 (i.e. sheet metal feature pFeature2 depends on feature pFeature), and the recorded sheet metal feature pFeature2 is recorded in object childList[j], and then the process goes to step (3-12)
[0152] (3-12) Set counter j = j + 1 and return to step (3-8);
[0153] (3-13) Add the child node set childList to the array object set AllNodes1, and return to step (3-4);
[0154] (3-14) Set counter k=k+1 and return to step (3-4);
[0155] The advantage of this step is that it not only identifies the sheet metal features, making the various surfaces of the design model form an organic whole and giving the part structure processing characteristics, but also establishes the relationship between features, making it easier to find related features through a feature in the future, thereby improving data search efficiency.
[0156] (4) establishing a second multi-branch tree based on all sheet metal features and the relative relationships between sheet metal features in step (3);
[0157] Specifically, when judging the relative relationship between the bending features, it is necessary to first obtain the faces from the bending features, judge the relative relationship of the faces according to the first multi-branch tree of the faces obtained in step (2), and determine the relative relationship of the bending features according to the relative relationship of the faces. This step includes the following sub-steps:
[0158] (4-1) Obtain the face baseFace with the largest area in step (2-1), and determine whether the bending feature corresponding to the face baseFace can be obtained. If yes, proceed to step (4-2), otherwise the process ends;
[0159] (4-2) Initialize the object ParentNode to be empty, which serves as the root node of the second multi-branch tree;
[0160] (4-3) Create a node Node of the second multi-branch tree, and record the bending features obtained in step (4-1) into the node Node, and determine whether the object ParentNode is empty. If so, proceed to step (4-4), otherwise proceed to step (4-5);
[0161] (4-4) Take the node Node created in step (4-3) as the object ParentNode and go to step (4-6);
[0162] (4-5) Set the node ParentNode as the parent node of the node Node;
[0163] (4-6) Determine whether the next sheet metal feature pNextFeat of the bending feature obtained in step (4-1) can be obtained according to the relative relationship of the sheet metal features obtained in step (3). If so, proceed to step (4-7). Otherwise, the process ends.
[0164] (4-7) Use the sheet metal feature pNextFeat obtained in step (4-6) to replace the sheet metal feature obtained in step (4-1), and return to step (4-3);
[0165] The advantage of this step is that the second multitree is constructed according to the sheet metal features, making the data more abstract and general, and more applicable to different sheet metal models. Using the second multitree to manage sheet metal data facilitates the subsequent traversal and search of data, improves efficiency, and the second multitree also makes it easier to manage other data such as flattened matrices.
[0166] (5) calculating the flattened matrix corresponding to each sheet metal feature in step (3) according to the second multi-branch tree established in step (4), and recording each obtained flattened matrix into the corresponding node in the second multi-branch tree;
[0167] Specifically, this step includes the following sub-steps:
[0168] (5-1) Obtain the largest face baseFace obtained in step (2-1);
[0169] (5-2) Obtain a bending feature set FeatList consisting of all bending features corresponding to the face baseFace;
[0170] (5-3) Set counter m=0;
[0171] (5-4) Determine whether the counter m is less than the total number of bending features in the bending feature set FeatList, if so, proceed to step (5-5), otherwise the process ends;
[0172] (5-5) Initialize object pFeature1 = FeatList[m], and search for node Node1 corresponding to object pFeature1 in the second multi-branch tree established in step (4), where FeatList[m] represents the mth bending feature in the bending feature set;
[0173] (5-6) Obtain the plane and the cylindrical surface in the object pFeature1, calculate the angle between the axis of the cylindrical surface and the plane, obtain the rotation matrix according to the axis of the cylindrical surface (which serves as the rotation axis) and the angle (which serves as the rotation angle), obtain the translation matrix according to the neutral line of the cylindrical surface, perform cross product on the calculated rotation matrix and translation matrix, and record the cross product result as the flattened matrix of the object pFeature1 in the node Node1;
[0174] (5-7) searching all child nodes and bending features of node Node1 according to the second multi-branch tree established in step (4), and all bending features constitute a bending feature list childList1;
[0175] (5-8) Set counter n = 0;
[0176] (5-9) Determine whether the counter n is less than the total number of bending features in the bending feature list childList1, if so, proceed to step (5-10), otherwise proceed to step (5-12);
[0177] (5-10) Set the object pFeature1 to the nth object childList1[n] in the bending feature list childList1;
[0178] (5-11) Set counter n=n+1 and return to step (5-6);
[0179] (5-12) Set counter m=m+1 and return to step (5-4);
[0180] The advantage of this step is that the flattening matrix of the sheet metal is calculated using the data of the design model, which makes full use of the original data of the design model, reduces the process of manual participation, and improves the utilization rate of data and the degree of automation of the system.
[0181] (6) generating a sheet metal unfolded part according to the flattened matrix of all bending features in the design model obtained in step (5);
[0182] In this step, the geometric boundary of the surface is obtained based on the plane information and the bending information, and the spatial position of the geometric boundary is obtained using the exhibit matrix. The geometric boundary is transformed to the specified position through matrix calculation, and the geometric boundary is stretched using the direction of the surface and the sheet metal thickness calculated in step (2-6) to obtain an unfolded entity of a sheet metal bending feature. All sheet metal features are unfolded in turn, and all unfolded entities are merged to finally obtain a sheet metal unfolded part.
[0183] Specifically, this step includes the following sub-steps:
[0184] (6-1) Initialize the object sets NodeArray and BodyArrays, obtain the root node in the second multi-branch tree established in step (4), and add the root node to the object set NodeArray;
[0185] (6-2) Set counter t=0;
[0186] (6-3) Determine whether the counter t is less than the total number of objects in the object set NodeArray. If so, proceed to step (6-4); otherwise, proceed to step (6-11);
[0187] (6-4) Get the tth object NodeArray[t] in the object set NodeArray, get the sheet metal feature pFeat and its corresponding flattened matrix in the object NodeArray[t], and get the folded plane baseFace1, the folded plane bendFace1, and the bent cylindrical surface cylFace1 in the sheet metal feature pFeat, such as Figure 5 shown.
[0188] (6-5) Obtain the boundary and normal of the plane baseFace1 obtained in step (6-4), and stretch the boundary of the plane in the opposite direction of the normal to obtain the solid body baseBody, where the stretching length is the sheet metal thickness of the plane (i.e., the distance between the plane and its opposite surface in the design model);
[0189] (6-6) According to the folded plane bendFace1 obtained in step (6-4), the boundary and normal of the plane are obtained, and the product of all points on the boundary of the plane and the exhibit matrix obtained in step (6-4) is calculated by matrix multiplication to obtain the transformed boundary; the product dotVec1 of the normal and the flattened matrix is calculated by matrix multiplication, and the product dotVec2 of the coordinate origin (0,0,0) and the flattened matrix is calculated by matrix multiplication, and the product dotVec1 minus dotVec2 is subtracted from dotVec1 to obtain the transformed normal, and the transformed boundary is stretched in the opposite direction of the transformed normal to obtain the solid bendBody, wherein the stretched length is the sheet metal thickness of the plane;
[0190] (6-7) Establishing entity cylBody between entity baseBody after the position is changed in step (6-5) and entity bendBody obtained in step (6-6);
[0191] Specifically, after obtaining the entity baseBody and the entity bendBody, obtain two edges of the two entities that are on the same plane and parallel to each other, connect the starting points and end points of the two edges to obtain a closed wireframe, and stretch the closed wireframe in the opposite direction of the plane to obtain the entity cylBody, where the stretching length is the sheet metal thickness of the plane;
[0192] (6-8) Combine the entity baseBody obtained in step (6-5), the entity bendBody obtained in step (6-6), and the entity cylBody obtained in step (6-7) into a whole, and add the whole to the object collection BodyArrays.
[0193] (6-9) Get all child nodes in the object NodeArray[t] and add all child nodes to the array object NodeArray;
[0194] (6-10) Set counter t=t+1 and return to step (6-3);
[0195] (6-11) The modeler kernel OpernCascade is used to merge all objects in the object collection BodyArrays into sheet metal unfolded parts.
[0196] The advantages of the present invention are that the sheet metal unfolded parts are calculated using the sheet metal flattening matrix, the calculation process is automated, manual errors are avoided, the accuracy of the sheet metal unfolded parts generation is improved, and after the sheet metal unfolded parts are obtained in this step, it is also convenient for the subsequent steps to calculate the sheet metal blanks.
[0197] (7) generating a sheet metal blank according to the sheet metal unfolded part obtained in step (6);
[0198] Specifically, this step first obtains all vertices on the unfolded sheet metal part, and then takes out 6 poles in the six directions of positive x-axis, negative x-axis, positive y-axis, negative y-axis, positive z-axis, and negative z-axis from all the vertices, obtains the minimum x-axis coordinate x0, the minimum y-axis coordinate y0, and the minimum z-axis coordinate z0 from the 6 poles, and constructs point P using x0, y0, and z0, takes out the maximum x-axis coordinate x1, the maximum y-axis coordinate y1, and the maximum z-axis coordinate z1 from the 6 poles, and constructs point Q using x1, y1, and z1, constructs a rectangular closed wireframe Wire1 using x0, y0, x1, and y1, constructs a vector using points PQ and multiplies it with the positive z-axis point to obtain vector vec1, and stretches the rectangular closed wireframe Wire1 along the direction of vector vec1, that is, the sheet metal blank, where the stretching length is the modulus length of vector vec1.
[0199] The advantage of this step is that the sheet metal blank is generated by using the sheet metal unfolding part, the poles of the sheet metal unfolding part in 6 directions are obtained through the sheet metal unfolding part, and the sheet metal blank is calculated using the poles. This method is simple to calculate, easy to implement, and has a small amount of calculation and a fast speed.
[0200] (8) Obtain the process route compiled by the process designer based on the design model, which includes multiple processing steps.
[0201] (9) For each processing step in the process route generated in step (8), the processing steps before and after the processing step are obtained from the process route, all the sheet metal features associated with the previous processing step are obtained from the previous processing step for bending processing to obtain a solid model after the bending processing, and all the sheet metal features associated with the subsequent processing step are obtained for flattening processing to obtain a solid model after the flattening processing. The solid model generated after the bending processing and the solid model generated after the flattening processing together constitute the process model of the processing step.
[0202] Specifically, for the current processing procedure to be processed, the previous processing procedure is obtained from the process route, and its associated sheet metal features need to be bent; for the subsequent processing procedures, its associated processing features are still in the blank state, so they need to be flattened.
[0203] This step includes the following sub-steps:
[0204] (9-1) Obtaining a processing step set AllSteps consisting of all processing steps from the process route obtained in step (8);
[0205] (9-2) Design counter r = 0;
[0206] (9-3) Determine whether the technology r is less than the total number of processing steps in the processing step set AllSteps. If so, proceed to step (9-4), otherwise the process ends;
[0207] (9-4) Get the rth processing step AllSteps[r] from the processing step set AllSteps, and determine whether the processing step AllSteps[r] is a blanking step. If it is, proceed to step (9-12), otherwise proceed to step (9-5);
[0208] (9-5) Using the sheet metal blank obtained in step (7) as the process model of the processing step AllSteps[r];
[0209] (9-6) Obtain all processing steps prevs before the processing step AllSteps[r] and all processing steps after the processing step afters from the process route obtained in step (8);
[0210] (9-7) According to all the processing steps prevs obtained in step (9-6), the bending features pFeats associated with these processing steps prevs are obtained;
[0211] (9-8) Obtain the unfolded plane baseFace2, the folded plane bendFace2, and the bent cylindrical surface cylFace2 in the bending feature pFeats obtained in step (9-7), and construct the bending entity body1 according to the unfolded plane baseFace2, the folded plane bendFace2, and the bent cylindrical surface cylFace2;
[0212] Specifically, this step is as follows: first, obtain the boundary of the surface through the surface baseFace2, construct a closed wireframe using the boundary, stretch the closed wireframe in the opposite direction of the normal of the surface baseFace2 (the stretching length is the thickness of the sheet metal), and obtain the entity b1; then, obtain the boundary of the surface through the surface bendFace2, construct a closed wireframe using the boundary, stretch the closed wireframe in the opposite direction of the normal of bendFace2 (the stretching length is the thickness of the sheet metal), and obtain the entity b2; then, obtain an arc e1 through the surface cylFace2, obtain the starting point spt, midpoint mpt and end point ept of the arc e1, obtain the axis axis of the surface cylFace2, project the points spt, mpt and ept onto the axis axis respectively to obtain the projection points proj1, proj2 and proj3, and use Point spt and point proj construct vector v1, point mpt and point proj2 construct vector v2, point ept and point proj3 construct vector v3, point spt, point mpt and point ept are offset in the opposite direction of vector v1, vector v2 and vector v3 respectively to obtain three points off1, off2 and off3; then, arc e2 is constructed using these three points off1, off2 and off3; then, point spt and point off1 are connected, point ept and off3 are connected, together with arc e1 and arc e2, they are constructed into a closed wireframe, and the closed wireframe is stretched along the axis axis direction (the stretching length is the length of the face cylFace2 on the axis axis) to obtain entity b3; finally, entities b1, b2 and b3 are merged to obtain the bent entity body1.
[0213] (9-9) Obtain all bending features pFeats2 associated with the processing operation afters obtained in step (9-6);
[0214] (9-10) Obtain the folded plane baseFaces3, the bent cylindrical surface cylFace3, and the folded plane bendFace3 in the sheet metal feature pFeats2 obtained in step (9-9), and construct a flattened entity body2 based on the folded plane baseFaces3, the bent cylindrical surface cylFace3, and the folded plane bendFace3;
[0215] Specifically, the specific implementation process of this step is exactly the same as step (9-5), and will not be repeated here.
[0216] (9-11) The modeler kernel OpernCascade is used to combine the entity body1 constructed in step (9-8) and the entity body2 constructed in step (9-10) into a whole to obtain the process model of the rth processing step AllSteps[r].
[0217] (9-12) Set counter r=r+1 and return to step (9-3);
[0218] The advantage of this step is that the process model of each process step adopts bending or flattening processing. Compared with the method based on manufacturing feature bodies, this method is more suitable for sheet metal parts and more feasible. In addition, each bending or flattening process reuses the sheet metal feature data obtained in the previous steps, achieving efficient use of data and improving the efficiency of process model generation.
[0219] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating a process model of a sheet metal part, comprising the following steps: (1) Obtaining a design model and reading Brep information and geometric information in the design model; (2) acquiring all faces in the design model and the adjacent faces and the opposite faces of each face in the design model according to the Brep information and the geometric information acquired in step (1), and constructing a first multi-branch tree according to all the acquired adjacent faces and the opposite faces; step (2) specifically comprises the following sub-steps: (2-1) According to the Brep information and geometric information obtained in step (1), the areas of all faces in the design model are calculated, and the face baseFace with the largest area is obtained; (2-2) Determine whether the face baseFace obtained in step (2-1) has a corresponding face oppoFace in the design model. If so, proceed to step (2-3), otherwise the process ends; (2-3) Obtain the distance between the surface baseFace obtained in step (2-1) and its opposite surface oppoFace as the sheet metal thickness thickness of the surface; (2-4) constructing an object RootNode using the face baseFace and its opposite face oppoFace obtained in step (2-1) as a tuple, and using the object RootNode as the root node of the first multitree; (2-5) Construct an array object set AllNodes, and add the object RootNode obtained in step (2-4) to the array object set AllNodes; (2-6) Set counter i=0; (2-7) Determine whether i is less than the total number of objects in the array object set AllNodes. If so, proceed to step (2-8), otherwise the process ends; (2-8) Get the face corresponding to the i-th object AllNodes[i] in the array object set AllNodes and its adjacent faces and opposite faces; (2-9) The adjacent face and the opposite face corresponding to the i-th object in the array object set AllNodes obtained in step (2-8) are used as a tuple to construct an object pNode, and the object pNode is added to the array object set AllNodes, and it is determined whether the counter i is equal to 0. If so, it proceeds to step (2-10), otherwise it proceeds to step (2-11); (2-10) Set the object pNode obtained in step (2-9) as the child node of the i-th object AllNodes[i] in the object set AllNodes, and go to step (2-12); (2-11) Set the object pNode obtained in step (2-9) as the child node of the i-1th object AllNodes[i-1] in the object set AllNodes, and go to step (2-12); (2-12) Set i=i+1 and return to step (2-7); (3) identifying all sheet metal features in the design model and the relative relationships between the sheet metal features based on all the faces obtained in step (2) and the first multi-branch tree constructed; step (3) specifically includes the following sub-steps: (3-1) Obtain the root node RootNode in the first multi-branch tree constructed in step (2); (3-2) construct an array object set AllNodes1, and add the root node RootNode obtained in step (3-1) as an object to the array object set AllNodes1; (3-3) Set counter k = 0; (3-4) Determine whether the counter k is less than the total number of objects in the array object set AllNodes1. If so, proceed to step (3-5), otherwise the process ends; (3-5) Get the sheet metal feature pFeature of the kth object AllNodes1[i] in the array object set AllNodes1; (3-6) Get the child node set childList consisting of all child nodes in the k-th object AllNodes1[i] in the array object set AllNodes1; (3-7) Set counter j = 0; (3-8) Determine whether the counter j is less than the total number of child nodes in the child node set childList. If so, proceed to step (3-9); otherwise, proceed to step (3-13); (3-9) Get the j-th object childList[j] in the child node set childList, identify the sheet metal feature pFeature2 of the object childList[j], and determine whether the sheet metal feature pFeature2 is a bending feature. If so, proceed to step (3-10), otherwise proceed to step (3-11); (3-10) Record the order of sheet metal feature pFeature and sheet metal feature pFeature2 in sheet metal feature pFeature and sheet metal feature pFeature2, and record the recorded sheet metal feature pFeature2 into object childList[j], and go to step (3-12); (3-11) Record the dependency relationship between sheet metal feature pFeature and sheet metal feature pFeature2 in sheet metal feature pFeature and sheet metal feature pFeature2, and record the recorded sheet metal feature pFeature2 into object childList[j], and go to step (3-12); (3-12) Set counter j = j + 1 and return to step (3-8); (3-13) Add the child node set childList to the array object set AllNodes1, and return to step (3-4); (3-14) Set counter k=k+1 and return to step (3-4); (4) establishing a second multi-branch tree based on all sheet metal features obtained in step (3) and the relative relationships between the sheet metal features; (5) calculating the flattened matrix corresponding to each sheet metal feature in step (3) according to the second multi-branch tree established in step (4), and recording each obtained flattened matrix into the corresponding node in the second multi-branch tree; (6) generating a sheet metal unfolded part according to the flattened matrix of all bending features in the design model obtained in step (5); (7) generating a sheet metal blank according to the sheet metal unfolded part obtained in step (6); (8) obtaining a process route compiled by a process designer based on a design model, which includes multiple processing steps; (9) For each processing step in the process route generated in step (8), the processing steps before and after the processing step are obtained from the process route, all the sheet metal features associated with the previous processing step are obtained from the previous processing step for bending processing to obtain a solid model after the bending processing, and all the sheet metal features associated with the subsequent processing step are obtained for flattening processing to obtain a solid model after the flattening processing. The solid model generated after the bending processing and the solid model generated after the flattening processing together constitute the process model of the processing step.
2. The method for generating a sheet metal part process model according to claim 1, characterized in that: Sheet metal features include bend features, hem features, rib features, stamping cutout features, dimple features, rib features, louver features, and punching hole features; The relative relationships between sheet metal features include precedence and dependency relationships.
3. The method for generating a sheet metal part process model according to claim 2, characterized in that: Step (4) includes the following sub-steps: (4-1) Obtain the face baseFace with the largest area in step (2-1), and determine whether the bending feature corresponding to the face baseFace can be obtained. If yes, proceed to step (4-2), otherwise the process ends; (4-2) Initialize the object ParentNode to be empty, which serves as the root node of the second multi-branch tree; (4-3) Create a node Node of the second multi-branch tree, and record the bending features obtained in step (4-1) into the node Node, and determine whether the object ParentNode is empty. If so, proceed to step (4-4), otherwise proceed to step (4-5); (4-4) Take the node Node created in step (4-3) as the object ParentNode and go to step (4-6); (4-5) Set the node ParentNode as the parent node of the node Node; (4-6) Determine whether the next sheet metal feature pNextFeat of the bending feature obtained in step (4-1) can be obtained according to the relative relationship of the sheet metal features obtained in step (3). If so, proceed to step (4-7). Otherwise, the process ends. (4-7) Use the sheet metal feature pNextFeat obtained in step (4-6) to replace the sheet metal feature obtained in step (4-1), and return to step (4-3).
4. The method for generating a sheet metal part process model according to claim 3, characterized in that: Step (5) includes the following sub-steps: (5-1) Obtain the largest face baseFace obtained in step (2-1); (5-2) Obtain a bending feature set FeatList consisting of all bending features corresponding to the face baseFace; (5-3) Set counter m=0; (5-4) Determine whether the counter m is less than the total number of bending features in the bending feature set FeatList, if so, proceed to step (5-5), otherwise the process ends; (5-5) Initialize object pFeature1 = FeatList[m], and search for node Node1 corresponding to object pFeature1 in the second multi-branch tree established in step (4), where FeatList[m] represents the mth bending feature in the bending feature set; (5-6) Obtain the plane and the cylindrical surface in the object pFeature1, calculate the angle between the axis of the cylindrical surface and the plane, obtain the rotation matrix according to the axis and the angle of the cylindrical surface, obtain the translation matrix according to the neutral line of the cylindrical surface, perform cross product on the calculated rotation matrix and translation matrix, and record the cross product result as the flattened matrix of the object pFeature1 in the node Node1; (5-7) searching all child nodes and bending features of node Node1 according to the second multi-branch tree established in step (4), and all bending features constitute a bending feature list childList1; (5-8) Set counter n = 0; (5-9) Determine whether the counter n is less than the total number of bending features in the bending feature list childList1, if so, proceed to step (5-10), otherwise proceed to step (5-12); (5-10) Set the object pFeature1 to the nth object childList1[n] in the bending feature list childList1; (5-11) Set counter n=n+1 and return to step (5-6); (5-12) Set counter m=m+1 and return to step (5-4).
5. The method for generating a sheet metal part process model according to claim 4, characterized in that: Step (6) includes the following sub-steps: (6-1) Initialize the object sets NodeArray and BodyArrays, obtain the root node in the second multi-branch tree established in step (4), and add the root node to the object set NodeArray; (6-2) Set counter t=0; (6-3) Determine whether the counter t is less than the total number of objects in the object set NodeArray. If so, proceed to step (6-4); otherwise, proceed to step (6-11); (6-4) Get the t-th object NodeArray[t] in the object set NodeArray, get the sheet metal feature pFeat and its corresponding flattened matrix in the object NodeArray[t], and get the folded plane baseFace1, the folded plane bendFace1, and the bent cylindrical surface cylFace1 in the sheet metal feature pFeat; (6-5) Obtain the boundary and normal of the plane baseFace1 obtained in step (6-4), and stretch the boundary of the plane in the opposite direction of the normal to obtain the solid body baseBody, where the stretching length is the sheet metal thickness of the plane; (6-6) According to the folded plane bendFace1 obtained in step (6-4), the boundary and normal of the plane are obtained, and the product of all points on the boundary of the plane and the exhibit matrix obtained in step (6-4) is calculated by matrix multiplication to obtain the transformed boundary; the product dotVec1 of the normal and the flattened matrix is calculated by matrix multiplication, and the product dotVec2 of the coordinate origin (0,0,0) and the flattened matrix is calculated by matrix multiplication, and the product dotVec1 minus dotVec2 is subtracted from dotVec1 to obtain the transformed normal, and the transformed boundary is stretched in the opposite direction of the transformed normal to obtain the solid bendBody, wherein the stretched length is the sheet metal thickness of the plane; (6-7) Establishing entity cylBody between entity baseBody after the position is changed in step (6-5) and entity bendBody obtained in step (6-6); (6-8) Merge the entity baseBody obtained in step (6-5), the entity bendBody obtained in step (6-6), and the entity cylBody obtained in step (6-7) into a whole, and add the whole to the object collection BodyArrays; (6-9) Get all child nodes in the object NodeArray[t] and add all child nodes to the array object NodeArray; (6-10) Set counter t=t+1 and return to step (6-3); (6-11) The modeler kernel OpernCascade is used to merge all objects in the object collection BodyArrays into sheet metal unfolded parts.
6. The method for generating a sheet metal part process model according to claim 5, characterized in that: Step (7) is specifically as follows: first, all vertices on the unfolded sheet metal part are obtained; then, six poles in the six directions of the positive x-axis, negative x-axis, positive y-axis, negative y-axis, positive z-axis, and negative z-axis are taken from all the vertices; the minimum x-axis coordinate x0, the minimum y-axis coordinate y0, and the minimum z-axis coordinate z0 are obtained from the six poles; point P is constructed using x0, y0, and z0; the maximum x-axis coordinate x1, the maximum y-axis coordinate y1, and the maximum z-axis coordinate z1 are taken from the six poles; point Q is constructed using x0, y0, x1, and z1; a rectangular closed wireframe Wire1 is constructed using x0, y0, x1, and y1; a vector is constructed using points P and Q and the vector is multiplied with the positive z-axis point to obtain a vector vec1; the rectangular closed wireframe Wire1 is stretched along the direction of the vector vec1, i.e., the sheet metal blank, wherein the stretching length is the modulus length of the vector vec1.
7. The method for generating a sheet metal part process model according to claim 6, characterized in that: Step (9) includes the following sub-steps: (9-1) Obtaining a processing step set AllSteps consisting of all processing steps from the process route obtained in step (8); (9-2) Design counter r = 0; (9-3) Determine whether the technology r is less than the total number of processing steps in the processing step set AllSteps. If so, proceed to step (9-4), otherwise the process ends; (9-4) Get the rth processing step AllSteps[r] from the processing step set AllSteps, and determine whether the processing step AllSteps[r] is a blanking step. If it is, proceed to step (9-12), otherwise proceed to step (9-5); (9-5) Using the sheet metal blank obtained in step (7) as the process model of the processing step AllSteps[r]; (9-6) Obtain all processing steps prevs before the processing step AllSteps[r] and all processing steps after the processing step afters from the process route obtained in step (8); (9-7) According to all the processing steps prevs obtained in step (9-6), the bending features pFeats associated with these processing steps prevs are obtained; (9-8) Obtain the unfolded plane baseFace2, the folded plane bendFace2, and the bent cylindrical surface cylFace2 in the bending feature pFeats obtained in step (9-7), and construct the bending entity body1 according to the unfolded plane baseFace2, the folded plane bendFace2, and the bent cylindrical surface cylFace2; This step is specifically as follows: first, obtain the boundary of the surface through the surface baseFace2, construct a closed wireframe using the boundary, stretch the closed wireframe in the opposite direction of the normal of the surface baseFace2, and obtain the entity b1; then, obtain the boundary of the surface through the surface bendFace2, construct a closed wireframe using the boundary, stretch the closed wireframe in the opposite direction of the normal of bendFace2, and obtain the entity b2; then, obtain an arc e1 through the surface cylFace2, obtain the starting point spt, the midpoint mpt and the end point ept of the arc e1, obtain the axis axis of the surface cylFace2, project the points spt, mpt and ept onto the axis axis respectively, to obtain the projection points proj1, proj2 and proj3, Use points spt and proj to construct vector v1, use points mpt and proj2 to construct vector v2, use points ept and proj3 to construct vector v3, offset points spt, mpt and ept in the opposite directions of vector v1, vector v2 and vector v3 respectively to obtain three points off1, off2 and off3; then, use these three points off1, off2 and off3 to construct arc e2; then, connect points spt and off1, connect points ept and off3, together with arcs e1 and e2 to form a closed wireframe, stretch the closed wireframe along the axis direction to obtain entity b3; finally, merge entities b1, b2 and b3 to obtain the bent entity body1; (9-9) Obtain all bending features pFeats2 associated with the processing operation afters obtained in step (9-6); (9-10) Obtain the folded plane baseFaces3, the bent cylindrical surface cylFace3, and the folded plane bendFace3 in the sheet metal feature pFeats2 obtained in step (9-9), and construct a flattened entity body2 based on the folded plane baseFaces3, the bent cylindrical surface cylFace3, and the folded plane bendFace3; (9-11) Using the modeler kernel OpernCascade, the entity body1 constructed in step (9-8) and the entity body2 constructed in step (9-10) are combined into a whole to obtain the process model of the rth processing step AllSteps[r]; (9-12) Set counter r=r+1 and return to step (9-3).
8. A system for generating a process model of a sheet metal part, comprising: The first module is used to obtain the design model and read the Brep information and geometric information in the design model; The second module is used to obtain all faces in the design model, as well as the adjacent faces and relative faces of each face in the design model according to the Brep information and geometric information obtained by the first module, and construct a first multi-branch tree according to all the adjacent faces and relative faces obtained; the second module specifically includes the following sub-modules: The first submodule is used to calculate the areas of all faces in the design model according to the Brep information and geometric information obtained in the first module, and obtain the face baseFace with the largest area therefrom; The second submodule is used to determine whether the face baseFace obtained by the first submodule has a corresponding face oppoFace in the design model. If so, the process proceeds to the third submodule, otherwise the process ends. The third submodule is used to obtain the distance between the surface baseFace obtained by the first submodule and its opposite surface oppoFace as the sheet metal thickness thickness of the surface; A fourth submodule is used to construct a RootNode object using the face baseFace and its opposite face oppoFace obtained by the first submodule as a tuple, and use the RootNode object as the root node of the first multi-branch tree; The fifth submodule is used to construct the array object set AllNodes, and add the object RootNode obtained by the fourth submodule to the array object set AllNodes; The sixth submodule is used to set the counter i=0; The seventh submodule is used to determine whether i is less than the total number of objects in the array object set AllNodes. If so, the process proceeds to the eighth submodule, otherwise the process ends; The eighth submodule is used to obtain the face corresponding to the i-th object AllNodes[i] in the array object set AllNodes and its adjacent faces and opposite faces; The ninth submodule is used to construct an object pNode by taking the adjacent face and the opposite face corresponding to the i-th object in the array object set AllNodes obtained by the eighth submodule as a tuple, and add the object pNode to the array object set AllNodes, and determine whether the counter i is equal to 0, if so, transfer to the tenth submodule, otherwise transfer to the eleventh submodule; The tenth submodule is used to set the object pNode obtained in the ninth submodule as the child node of the i-th object AllNodes[i] in the object set AllNodes, and transfer to the twelfth submodule; The eleventh submodule is used to set the object pNode obtained in the ninth submodule as the child node of the i-1th object AllNodes[i-1] in the object set AllNodes, and transfer to the twelfth submodule; The twelfth submodule is used to set i=i+1 and return to the seventh submodule; The third module is used to identify all sheet metal features in the design model and the relative relationship between the sheet metal features according to all the faces obtained by the second module and the first multi-branch tree constructed; the third module specifically includes the following sub-modules: The thirteenth submodule is used to obtain the root node RootNode in the first multi-branch tree constructed by the second module; The fourteenth submodule is used to construct the array object set AllNodes1, and add the root node RootNode obtained by the thirteenth submodule as an object to the array object set AllNodes1; A fifteenth submodule is used to set the counter k=0; The sixteenth submodule is used to determine whether the counter k is less than the total number of objects in the array object set AllNodes1. If so, the process proceeds to the seventeenth submodule, otherwise the process ends; The seventeenth submodule is used to obtain the sheet metal feature pFeature of the k-th object AllNodes1[i] in the array object set AllNodes1; The eighteenth submodule is used to obtain the child node set childList consisting of all child nodes in the k-th object AllNodes1[i] in the array object set AllNodes1; A nineteenth submodule is used to set a counter j=0; The 20th submodule is used to determine whether the counter j is less than the total number of child nodes in the child node set childList. If so, it goes to the 21st submodule, otherwise it goes to the 25th submodule; The twenty-first submodule is used to obtain the j-th object childList[j] in the child node set childList, identify the sheet metal feature pFeature2 of the object childList[j], and determine whether the sheet metal feature pFeature2 is a bending feature. If so, it is transferred to the twenty-second submodule, otherwise it is transferred to the twenty-third submodule; The twenty-second submodule is used to record the order of the sheet metal feature pFeature and the sheet metal feature pFeature2 in the sheet metal feature pFeature and the sheet metal feature pFeature2, and record the recorded sheet metal feature pFeature2 into the object childList[j], and transfer to the twenty-fourth submodule; The twenty-third submodule is used to record the dependency relationship between the sheet metal feature pFeature and the sheet metal feature pFeature2 in the sheet metal feature pFeature and the sheet metal feature pFeature2, and record the recorded sheet metal feature pFeature2 into the object childList[j], and then transfer to the twenty-fourth submodule; The twenty-fourth submodule is used to set the counter j=j+1 and return to step (3-8); The twenty-fifth submodule is used to add the child node set childList to the array object set AllNodes1, and return to the sixteenth submodule; The twenty-sixth submodule is used to set the counter k=k+1 and return to the sixteenth submodule; The fourth module is used to establish a second multi-branch tree according to all the sheet metal features obtained by the third module and the relative relationship between the sheet metal features; A fifth module is used to calculate the flattened matrix corresponding to each sheet metal feature in the third module according to the second multi-branch tree established by the fourth module, and record each obtained flattened matrix into a corresponding node in the second multi-branch tree; A sixth module is used to generate a sheet metal unfolded part according to the flattened matrix of all bending features in the design model obtained in the fifth module; The seventh module is used to generate a sheet metal blank according to the sheet metal unfolded part obtained in the sixth module; The eighth module is used to obtain the process route compiled by the process designer according to the design model, which includes multiple processing procedures; The ninth module is used for obtaining, for each processing procedure in the process route generated by the eighth module, the processing procedures before and after the processing procedure from the process route, obtaining all the sheet metal features associated with the previous processing procedure for bending processing to obtain a solid model after the bending processing, obtaining all the sheet metal features associated with the subsequent processing procedure for flattening processing to obtain a solid model after the flattening processing, and the solid model generated after the bending processing and the solid model generated after the flattening processing together constitute the process model of the processing procedure.
