Automatic extraction method of machining area boundary for three-axis machining
By converting the three-dimensional information of the workpiece model into two-dimensional information and combining the hidden surface removal algorithm and Z-map model for three-dimensional stitching, the efficiency and accuracy problems of three-axis machining area boundary extraction in the existing technology are solved, and efficient and accurate automatic extraction of machining area boundaries is achieved.
Patent Information
- Application Number
- CN202310568942.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-19
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-05-19
AI Technical Summary
Existing automatic boundary extraction methods for three-axis machining are difficult to extract boundaries efficiently and accurately when dealing with complex cavities, and they fail to comprehensively consider the impact of tool interference, line spacing and step length on material cutting, which increases the difficulty of subsequent processing.
By acquiring the 3D information of the workpiece model and converting it into 2D information, the surface topology information of the six faces of the workpiece model and the depth topology information of the normal of a certain face are extracted. Using the hidden surface removal algorithm and the face-to-face intersection technology, combined with the Z-map model, 3D stitching is performed to determine the boundary of the processing area. The inner and outer ring recognition algorithm and the tree structure diagram are used to determine the processable area.
It achieves efficient and accurate extraction of the boundaries of complex cavity parts, avoids the uncertainty of manual operation and the difficulty of subsequent calibration, optimizes the operation plan and running cycle, and improves the processing accuracy and efficiency.
Smart Images

Figure CN116563507B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of automatic machining boundary extraction methods, specifically relating to an automatic machining area boundary extraction method for three-axis machining. Background Technology
[0002] Tool path generation is the most critical step in CNC machining of parts, directly determining the quality of the machined product. Extraction of the machining area boundary is a crucial research topic in tool path generation. In practical applications, especially when machining complex cavities, high precision and efficiency are required. Traditional manual programming is time-consuming and prone to errors. Automatic machining area boundary extraction methods can effectively accomplish this task. By automatically calculating the machinable domain through a program, a virtual environment for offline programming can be built. Simply import the solid model of the workpiece and the initial machining area, and the machining area boundary will be automatically extracted. Research on three-axis machining area boundary extraction technology has mainly developed the following typical methods: G-Buffer method, Z-map method, polyhedron method, projection method, and offset surface method.
[0003] Existing methods for automatic extraction of machining area boundaries for three-axis machining can efficiently and accurately extract machining boundaries, but they are subject to significant constraints from workpiece posture and machining plane. They typically require finding edge contours through surface-to-surface intersections, where fitting the intersection curves of complex surfaces is challenging and the algorithms are complex. After the machining area is extracted, machining toolpath planning is also required. Some algorithms fail to comprehensively consider the impact of tool interference, line spacing, and step size on material cutting, increasing the difficulty of subsequent processing.
[0004] Therefore, an automatic extraction method for machining area boundaries for three-axis machining is provided to address the shortcomings of existing technologies. Summary of the Invention
[0005] To address the aforementioned problems in the prior art, this invention provides an automatic extraction method for machining area boundaries in three-axis machining, which suffers from the inability to efficiently and accurately extract the boundary contours of complex cavity parts.
[0006] The present invention adopts the following technical solution: An automatic method for extracting the machining area boundary for three-axis machining. Includes the following steps: S1. Obtain the workpiece model and convert the three-dimensional information in the workpiece model into two-dimensional information; S2. Extract the effective closed-loop boundaries from the surface topology information of the six faces of the workpiece model; S3. Extract the effective closed-loop boundary from the depth topology information of a certain face of the workpiece model; S4. Perform three-dimensional stitching of the effective closed-loop boundaries in the collected surface topology information and the effective closed-loop boundaries in the depth topology information.
[0007] As a further improvement to the technical solution of the present invention, in step S1: after obtaining the workpiece model information, the process parameters of the workpiece model and the initial constraint plane of the part to be processed are generated according to the user's instructions.
[0008] As a further improvement to the technical solution of the present invention, step S2 includes the following steps: S2.1 Analyze the obtained workpiece model, determine a view according to the user's instructions, use a set of initial constraint planes to intersect the machining surface, use the hidden line removal algorithm to extract the contour lines in the projection direction, and plan the machining area after obtaining the contour lines; S2.2. Perform deduplication on the extracted contour lines of the processing area and extract the effective closed-loop boundaries; S2.3 After deduplication of each topological graph, various ring data are classified and output. The processable and non-processable regions are determined by the inner and outer ring identification algorithm. S2.4 Change the view and repeat steps S2.1-S2.3. After classifying and outputting various ring data, determine the machinable and non-machinable areas.
[0009] As a further improvement to the technical solution of the present invention, in step S2.1, during processing, the processing area is planned by intersecting the plane constraint surface with the XOY coordinate plane, and the surface information is projected and transformed along the direction of the external normal vector of the view.
[0010] As a further improvement to the technical solution of the present invention, in step S2.1, when extracting the contour lines of the projection direction by the hidden line removal algorithm, the visible part and the hidden part of each edge are calculated and extracted by comparing the visibility of each edge of the shape relative to each face, highlighting the visible lines such as sharp edges, smooth edges, seam edges, and contour lines, and reconstructing a simplified model composed of contour lines.
[0011] As a further improvement to the technical solution of the present invention, step S3 includes the following steps: S3.1. Use AABB bounding boxes to set the coordinate system and view direction. According to the user's instructions, determine a view direction and step depth, and construct the constraint plane through point method. S3.2. Intersect the model with the plane to obtain a depth information map based on the above-set view, and extract the contour line of the depth section information projection; S3.3. Perform deduplication on the extracted depth section information and extract the effective closed-loop boundary; S3.4 Change the view and repeat steps S2.1-S2.3. After deduplication of each topological graphic, output various ring data by category, and use the inner and outer ring identification algorithm to determine the processable and non-processable areas.
[0012] As a further improvement to the technical solution of the present invention, step S4 includes the following steps: S4.1 Extract the geometric information of each loop itself, and classify the effective closed loops into cavity contour loops and island contour loops; S4.2. Place all closed loops into a tree structure representing the positional relationship of each loop according to their mutual relationship. Use the two-dimensional multi-cavity part cavity region automatic identification algorithm to identify the processing area and non-processing area within the closed loop boundary. The tree structure of the mutual position of each closed loop determines whether its material domain needs to be cut off. S4.3. After the entire set of constraint planes intersects with the machining surface, the extracted closed-loop contours are spliced together in three dimensions to obtain the machinable and non-machinable areas.
[0013] As a further improvement to the technical solution of the present invention, in step S4.2, the ring on the root and its sibling rings must be the contour ring of the cavity, the sub-rings of the outer ring and its sibling rings must be the contour rings of the island, and the sub-rings of the inner ring and its sibling rings must be the contour rings of the cavity.
[0014] As a further improvement to the technical solution of this invention, when extracting the closed loop, the regular grid of points under the Z-map model is transformed into a binary graph for boundary extraction by the processing area boundary extraction algorithm based on the Z-map model. Then, the step length segment is scanned line by line based on the segment length, and the connection between the left and right nodes of the segment is determined by the relationship between the up and down segments to form a directed loop, thereby determining whether the boundary is the outer contour or the inner contour, thus determining the boundary of the processing area.
[0015] A computer device characterized in that: the automatic extraction system for machining area boundaries for three-axis machining stores at least one instruction, at least one program, code set or instruction set, wherein the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the above method.
[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention proposes an automatic boundary extraction method for machining areas in three-axis machining. This method extracts effective closed-loop boundaries from the topological information of a workpiece model, converting three-dimensional information into two-dimensional information. By inputting the workpiece model into software, it sequentially collects effective closed-loop boundaries from the surface topological information of the six faces of the workpiece model and from the depth topological information of a certain face. The collected effective closed-loop boundaries from the surface and depth topological information are then 3D stitched together to determine the boundary of the machining area. This method achieves automatic boundary extraction for three-axis machining, avoiding the uncertainties, high workload, and difficulties in post-calibration associated with manual operation of complex workpieces. By controlling and manipulating graphics to plan machining trajectories offline, it allows operators to optimize operation plans and running cycles in advance. This invention's automatic boundary extraction method for three-axis machining features efficient and accurate extraction of the boundary contours of complex cavity parts. Attached Figure Description
[0017] The technology of the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments: Figure 1 This is a schematic diagram of an automatic extraction method for machining area boundaries in three-axis machining. Detailed Implementation
[0018] The following will provide a clear and complete description of the concept, specific structure, and technical effects of the present invention in conjunction with embodiments and accompanying drawings, so as to fully understand the purpose, solution, and effects of the present invention. It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The same reference numerals used throughout the accompanying drawings indicate the same or similar parts.
[0019] It should be noted that, unless otherwise specified, when a feature is referred to as "fixed" or "connected" to another feature, it can be directly fixed or connected to the other feature, or indirectly fixed or connected to the other feature. Furthermore, the descriptions of "up," "down," "left," and "right" used in this invention are only relative to the relative positional relationships of the various components of the invention in the accompanying drawings.
[0020] An automatic method for extracting the boundary of the machining area for three-axis machining includes the following steps: S1. Obtain the workpiece model and convert the three-dimensional information in the workpiece model into two-dimensional information; S2. Extract the effective closed-loop boundaries from the surface topology information of the six faces of the workpiece model; S3. Extract the effective closed-loop boundary from the depth topology information of a certain face of the workpiece model; S4. Perform three-dimensional stitching of the effective closed-loop boundaries in the collected surface topology information and the effective closed-loop boundaries in the depth topology information.
[0021] This method involves extracting effective closed-loop boundaries from the topological information of the workpiece model. It transforms three-dimensional information into two-dimensional information. By inputting the workpiece model into the software, it sequentially collects effective closed-loop boundaries from the surface topological information of the six faces of the workpiece model and from the depth topological information of the normals of each face. The collected effective closed-loop boundaries from the surface and depth topological information are then stitched together in three dimensions to determine the boundary of the machining area. This method achieves automatic extraction of machining area boundaries for three-axis machining, avoiding the uncertainties, high workload, and difficulties in post-calibration associated with manual operation of complex workpieces. By controlling and manipulating graphics to plan the machining trajectory offline, operators can optimize operation plans and running cycles in advance. The automatic extraction method for machining area boundaries for three-axis machining in this invention features efficient and accurate extraction of the boundary contours of complex cavity parts.
[0022] Specifically, in step S1, after obtaining the workpiece model information, the process parameters of the workpiece model and the initial constraint plane of the part to be processed are generated according to the user's instructions. The file format of the workpiece model includes STEP and IGES formats. The STEP model includes various forms of B-Rep data, which has complete geometric and topological information. Extracting the effective closed-loop boundary in its topological information is a key step to realize the automatic extraction of the boundary of the three-axis machining area.
[0023] Specifically, step S2 includes the following steps: S2.1 Analyze the obtained workpiece model, determine a view according to the user's instructions, intersect the machining surface with a set of initial constraint planes, extract the contour lines in the projection direction using the hidden line removal algorithm, and plan the machining area after obtaining the contour lines; during machining, planar constraint surfaces intersect with the XOY coordinate plane to plan the machining area, and perform projection transformation on the surface information along the outward normal vector direction of the view. S2.2. Perform deduplication on the extracted contour lines of the processing area and extract the effective closed-loop boundaries; S2.3 After deduplication of each topological graph, various ring data are classified and output. The processable and non-processable regions are determined by the inner and outer ring identification algorithm. S2.4 Change the view and repeat steps S2.1-S2.3. After classifying and outputting various ring data, determine the machinable and non-machinable areas.
[0024] After the above steps, you only need to input the workpiece model to obtain the surface topology information of the model in the selected view.
[0025] In step S2.1, when extracting the contour lines of the projection direction using the hidden line removal algorithm, the visible part and the hidden line removal part of each edge are calculated and extracted by comparing the visibility of each edge of the shape relative to each face, highlighting the visible lines such as sharp edges, smooth edges, seam edges, and contour lines, thus reconstructing a simplified model composed of contour lines.
[0026] Specifically, in step S2.2, the effective closed-loop boundary is extracted by depth-first traversing the container storing lines, iteratively determining whether the current line is connected to the traversed lines, and whether the connection is through the start or end point, ultimately traversing multiple edges to form a closed loop. The closed-loop container is further traversed to output rectangles or trapezoids. Non-rectangular and non-trapezoidal closed loops are first traversed and output as straight lines, arcs, or elliptical arcs. Then, the remaining splines and other curves are discretized into points according to the chord height difference. By determining whether the discrete points can be connected to form small straight line segments, the points are finally spliced and output.
[0027] Specifically, step S3 includes the following steps: S3.1 After inputting the workpiece model, use the AABB bounding box to set the coordinate system and view direction, and then determine a view direction and step depth according to the user's instructions, and construct the constraint plane through the point method; S3.2. Intersect the model with the plane to obtain a depth information map based on the above-set view, and extract the contour line of the depth section information projection; S3.3. Perform deduplication on the extracted depth section information and extract the effective closed-loop boundary; S3.4 Change the view and repeat steps S2.1-S2.3. After deduplication of each topological graphic, output various ring data by category, and use the inner and outer ring identification algorithm to determine the processable and non-processable areas.
[0028] Specifically, in step S3, the top view perspective and depth are selected: the viewpoint is at positive infinity on the Z-axis, the line of sight is in the negative Z-axis direction, the depth has been set, the object is projected onto the XOY plane, and the subsequent steps for extracting information about the closed loop lines are the same as above.
[0029] Specifically, step S4 includes the following steps: S4.1 Extract the geometric information of each loop itself, and classify the effective closed loops into cavity contour loops and island contour loops; S4.2. Place all closed loops into a tree structure representing the positional relationship of each loop according to their mutual relationship. Use the two-dimensional multi-cavity part cavity region automatic identification algorithm to identify the processing area and non-processing area within the closed loop boundary. The tree structure of the mutual position of each closed loop determines whether its material domain needs to be cut off. S4.3. After intersecting the entire set of constraint planes with the machining surface, the extracted closed-loop contours are 3D stitched together to obtain the machinable and non-machinable regions. Specifically, in step S4, since the three-axis machining tool starts machining the workpiece model from the model surface and advances the tool layer by layer along the normal vector of a certain surface during machining, the boundary of the machining area can be determined by simply stitching the surface topology information and depth topology information of the workpiece model in three dimensions according to their sequential positional relationship.
[0030] In step S4.2, the ring at the root and its sibling rings are definitely the contour rings of the cavity; the sub-rings of the outer ring and their sibling rings are definitely the contour rings of the island; and the sub-rings of the inner ring and their sibling rings are definitely the contour rings of the cavity. In this method, the boundary extraction of the processing area is mainly accomplished by extracting closed rings in the plane layer by layer. However, it is not possible to directly determine whether a closed ring is the contour ring of an island or the contour ring of a cavity on a two-dimensional diagram; a nested tree structure is needed for this determination. The top of a tree structure is the root; the rings at the root and their sibling rings at the same level are all outer rings, determined to be contour rings of the cavity; the next level after the root are the sub-rings of the outer ring and their sibling rings at the same level, which are all inner rings, determined to be contour rings of the island; and so on.
[0031] More specifically, when extracting closed loops, the regular grid points under the Z-map model are transformed into a binary graph by the processing area boundary extraction algorithm based on the Z-map model for boundary extraction. Then, the step length segments are scanned line by line in a segment length-based manner, and the connection between the left and right nodes of the segment is determined by the relationship between the up and down segments to form a directed loop, thereby determining whether the boundary is the outer contour or the inner contour, thus determining the processing area boundary.
[0032] A computer device characterized in that: the automatic extraction system for machining area boundaries for three-axis machining stores at least one instruction, at least one program, code set or instruction set, wherein the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the above method.
[0033] Other aspects of the automatic extraction method for machining area boundaries for three-axis machining described in this invention can be found in the prior art and will not be repeated here.
[0034] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Therefore, any modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.
Claims
1. A method for automatically extracting the boundary of the machining area for three-axis machining, characterized in that, Includes the following steps: S1. Obtain the workpiece model and convert the three-dimensional information in the workpiece model into two-dimensional information; S2. Extract the effective closed-loop boundaries from the surface topology information of the six faces of the workpiece model; S3. Extract the effective closed-loop boundary from the depth topology information of a certain face of the workpiece model; S4. Perform three-dimensional stitching of the effective closed-loop boundaries in the collected surface topology information and the effective closed-loop boundaries in the depth topology information. Step S2 includes the following steps: S2.1 Analyze the obtained workpiece model, determine a view according to the user's instructions, use a set of initial constraint planes to intersect the machining surface, use the hidden line removal algorithm to extract the contour lines in the projection direction, and plan the machining area after obtaining the contour lines; S2.
2. Perform deduplication on the extracted contour lines of the processing area and extract the effective closed-loop boundaries; S2.3 After deduplication of each topological graph, various ring data are classified and output. The processable and non-processable regions are determined by the inner and outer ring identification algorithm. S2.4 Change the view and repeat steps S2.1-S2.
3. After classifying and outputting the data of various rings, determine the machinable and non-machinable areas. Step S3 includes the following steps: S3.
1. Use AABB bounding boxes to set the coordinate system and view direction. According to the user's instructions, determine a view direction and step depth, and construct the constraint plane through point method. S3.
2. Intersect the model with the plane to obtain a depth information map based on the above-set view, and extract the contour line of the depth section information projection; S3.
3. Perform deduplication on the extracted depth section information and extract the effective closed-loop boundary; S3.4 Change the view and repeat steps S2.1-S2.
3. After deduplication of each topological graphic, output various ring data by category, and use the inner and outer ring identification algorithm to determine the processable area and the non-processable area. Step S4 includes the following steps: S4.1 Extract the geometric information of each closed loop and classify the effective closed loops into cavity contour loops and island contour loops; S4.
2. Place all closed loops into a tree structure representing the positional relationship of each loop according to their mutual relationship. Use the two-dimensional multi-cavity part cavity region automatic identification algorithm to identify the processing area and non-processing area within the closed loop boundary. The tree structure of the mutual position of each closed loop determines whether its material domain needs to be cut off. S4.
3. After the entire set of constraint planes intersects with the machining surface, the extracted closed-loop contours are 3D stitched together to obtain the machinable and non-machinable areas. In step S4.2, the ring on the root and its sibling rings must be the contour rings of the cavity, the sub-rings of the outer ring and their sibling rings must be the contour rings of the island, and the sub-rings of the inner ring and their sibling rings must be the contour rings of the cavity.
2. The method for automatic extraction of machining area boundaries for three-axis machining according to claim 1, characterized in that: In step S1: After obtaining the workpiece model information, the process parameters of the workpiece model and the initial constraint plane are generated according to the user's instructions.
3. The method for automatic extraction of machining area boundaries for three-axis machining according to claim 1, characterized in that: In step S2.1, during machining, the machining area is planned by intersecting the plane constraint surface with the XOY coordinate plane, and the surface information is projected and transformed along the direction of the outward normal vector of the view.
4. The method for automatic extraction of machining area boundaries for three-axis machining according to claim 1, characterized in that: In step S2.1, when extracting the contour lines of the projection direction using the hidden line removal algorithm, the visible part and the hidden line removal part of each edge are calculated and extracted by comparing the visibility of each edge of the shape relative to each face, highlighting sharp edges, smooth edges, seam edges, and visible lines of the contour lines, and reconstructing a simplified model composed of contour lines.
5. The method for automatic extraction of machining area boundaries for three-axis machining according to claim 1, characterized in that: When extracting the closed-loop boundary, the regular grid of points under the Z-map model is transformed into a binary graph by the processing area boundary extraction algorithm based on the Z-map model for boundary extraction. Then, the step length segment is scanned line by line based on the segment length, and the connection between the left and right nodes of the segment is determined by the relationship between the up and down segments to form a directed loop, thereby determining whether the boundary is the outer contour or the inner contour, thus determining the processing area boundary.
6. A computer device, characterized in that: The automatic extraction system for machining area boundaries for three-axis machining stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement the automatic extraction method for machining area boundaries for three-axis machining as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Detection method and system suitable for highlighting surface defects of multiple types of ceramic tiles
CN114202508A
Reconstructing three-dimensional models of objects from real images based on depth information
US20230147722A1
