Workpiece cutting simulation method and system

By pixelating the cutting head and workpiece, and updating the workpiece pixel body based on the overlapping area of ​​the pixel points, the problems of high algorithm complexity and high calculation amount in the prior art are solved, and efficient workpiece drilling and milling simulation is realized, which is suitable for deployment on ordinary industrial control machines.

CN120162999APending Publication Date: 2025-06-17GUANGZHOU CORESING ROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510164582.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The existing drilling and milling simulation technology has high algorithm complexity, which makes it difficult to deploy on ordinary industrial control machines, especially in the case of complex paths and complex shapes, and is less efficient.

Method used

By pixelating the cutting head and workpiece, a cutting head pixel body and workpiece pixel body composed of several pixel points are generated. The spatial position comparison of the pixel points is used to intuitively obtain the overlapping area of ​​the cutting head and workpiece, and update the workpiece pixel body according to the overlapping area, avoiding real-time calculation of traditional geometric Boolean operations.

Benefits of technology

The calculation amount of workpiece processing simulation is reduced, the time of workpiece cutting simulation is reduced, and the efficiency of workpiece drilling and milling processing is improved, so that the simulation method can be deployed on ordinary industrial control machines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120162999A_ABST
    Figure CN120162999A_ABST
Patent Text Reader

Abstract

The invention relates to a workpiece cutting simulation method and system, and the method comprises the steps: obtaining all edge pixel points in a preset cutting head pixel body, and obtaining all workpiece pixel points in a preset workpiece pixel body; acquiring a plurality of processing positions based on a preset processing path; based on the machining path, the cutting head prime body is sequentially positioned to a plurality of machining positions; when the cutting head prime body is positioned to any processing position, acquiring an overlapping area of the cutting head prime body and a workpiece pixel body based on all edge pixel points and all workpiece pixel points, further updating the workpiece pixel body based on the overlapping area, and storing the cutting head prime body and the workpiece pixel body as frame data; and generating a workpiece cutting simulation animation based on all frame data. According to the method, a three-dimensional graphic operation problem in traditional cutting simulation is converted into a simple pixel point updating problem, the calculation amount of workpiece machining simulation is reduced, the time of workpiece cutting analog simulation is shortened, and the efficiency of workpiece drilling and milling machining simulation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of drilling and milling machining, and particularly to a workpiece cutting simulation method and system. Background Art

[0002] Currently, in the technical field of drilling and milling machining of workpieces, the simulation of the machining process is a key link to ensure machining accuracy and quality. In order to ensure the accurate drilling and milling path of the cutting head in the actual machining process and guarantee the machining quality, it is necessary to perform three-dimensional animation simulation on the drilling and milling process of the workpiece according to the set movement trajectory of the cutting head to intuitively judge whether the machining process is accurate.

[0003] The existing drilling and milling simulation technologies mainly rely on geometric Boolean operations to achieve the dynamic simulation of the machining process. Its core principle is based on the three-dimensional simulation model of the cutting head and the three-dimensional simulation model of the blank workpiece. By dynamically performing the Boolean difference operation between the geometric model of the cutting head and the blank workpiece model, the overlapping area of the cutting head model and the blank workpiece model at each moment is calculated in real time, and the position of the cutting head model and the shape of the blank workpiece model are updated in real time. Since the Boolean operation needs to accurately calculate the overlapping area of the two three-dimensional solid models of the cutting head and the blank workpiece at each step, the algorithm complexity is too high. In the actual application process, the amount of calculation for performing real-time Boolean operations on the cutting head model and the blank workpiece model is large, and the operation takes a long time. For cutting trajectories with complex paths and blank workpieces with complex shapes, the existing simulation methods are less efficient. Therefore, the existing simulation methods require high-performance CPUs or GPUs to support the operation and are difficult to be deployed on ordinary industrial control computers. Summary of the Invention

[0004] The present invention aims to provide a workpiece cutting simulation method and system to reduce the amount of calculation for workpiece machining simulation and improve the efficiency of workpiece drilling and milling machining simulation.

[0005] To achieve the above object, in the first aspect of the present invention, a workpiece cutting simulation method is provided, including the following steps: obtaining all edge pixel points in a preset cutting head pixel body, and obtaining all workpiece pixel points in a preset workpiece pixel body; obtaining a plurality of machining positions based on a preset machining path; based on the machining path, positioning the cutting head pixel body to the plurality of machining positions in sequence; when the cutting head pixel body is positioned at any of the machining positions, obtaining the overlapping area of the cutting head pixel body and the workpiece pixel body based on all the edge pixel points and all the workpiece pixel points, and then updating the workpiece pixel body based on the overlapping area, and storing the cutting head pixel body and the workpiece pixel body as frame data; generating a workpiece cutting simulation animation based on all the frame data.

[0006] The above workpiece cutting simulation method pixelizes the cutting head and the workpiece to be cut, generating a cutting head pixel body and a workpiece pixel body composed of a number of pixel points. By comparing the spatial positions of the pixel points in the workpiece pixel body and the edge layer of pixel points in the cutting head pixel body, the overlapping area between the cutting head pixel body and the workpiece pixel body can be visually obtained. Then, as long as the workpiece pixel points in the workpiece pixel body are updated according to the overlapping area, the pixel body state of the workpiece after being cut by the cutting head can be obtained, avoiding the topological structure surface changes during the real-time calculation of geometric body overlap using traditional geometric Boolean operations. This method transforms the three-dimensional graphic operation problem in traditional cutting simulation into a simple pixel point update problem, reducing the computational amount of workpiece machining simulation, shortening the time of workpiece cutting simulation, and improving the efficiency of workpiece drilling and milling machining simulation.

[0007] In a possible implementation manner, when the cutting head pixel body is positioned at any of the machining positions, based on all the edge pixel points and all the workpiece pixel points, the overlapping area between the cutting head pixel body and the workpiece pixel body is obtained. Then, based on the overlapping area, the workpiece pixel body is updated, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: obtaining the vertical coordinates of each of the edge pixel points; obtaining the vertical coordinates of each of the workpiece pixel points; for any workpiece pixel point, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, then the workpiece pixel point is divided into the overlapping area.

[0008] In this implementation manner, the calculation problem of the topological structure surface change during the three-dimensional graphic overlap is transformed into a logical problem of vertical coordinate size judgment, simplifying the computational amount of three-dimensional cutting simulation. Among them, in the three-dimensional space rectangular coordinate system, there is a horizontal horizontal axis and vertical axis, and a vertical axis in the vertical direction; the vertical coordinates of the edge pixel points and the workpiece pixel points refer to the coordinate values of the edge pixel points and the workpiece pixel points in the vertical axis direction. When the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, it indicates that the workpiece pixel point is already above the corresponding cutting head edge pixel point in the three-dimensional space rectangular coordinate system. Since the edge pixel points are the edge layer of pixel points of the cutting head pixel body, it indicates that at this moment the workpiece pixel point has already overlapped with the internal area of the cutting head pixel body, that is, the workpiece pixel point is located in the overlapping area of the workpiece pixel body and the cutting head pixel body, simulating the effect of the cutting head cutting into the blank workpiece during actual cutting.

[0009] In a possible implementation, when positioning the cutting head pixel body to any of the machining positions, the overlapping area of the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points. Then, the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: for any workpiece pixel point in the overlapping area, moving the workpiece pixel point based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point, so that the workpiece pixel point coincides with the edge pixel point corresponding to the workpiece pixel point. Then, the workpiece pixel body is updated based on the overlapping area.

[0010] In this implementation, the vertical coordinate of the workpiece pixel point is updated so that the vertical coordinate value of the workpiece pixel point is equal to the vertical coordinate value of the corresponding edge pixel point, realizing moving the workpiece pixel point based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point, so that the workpiece pixel point coincides with the edge pixel point corresponding to the workpiece pixel point. Thus, all workpiece pixel points in the overlapping area are moved to the positions corresponding to the edge pixel points of the cutting head, and then only the outermost layer of pixel points remains in the overlapping area of the workpiece pixel body and the cutting head pixel body, realizing the visual effect of "the overlapping area of the workpiece pixel body and the cutting head pixel body is milled by the cutting head pixel body". This method transforms the complex calculation problem of the continuously changing spatial geometric structure of the blank workpiece when the cutting head drills and mills the blank workpiece into a simple problem of moving workpiece pixel points. On the basis of ensuring that the visual drilling and milling simulation effect can provide an accurate analysis and judgment basis for the processing project, the calculation amount of the drilling and milling simulation is simplified. In the actual operation process of the computer program, only by updating the vertical coordinate of the workpiece pixel point so that the vertical coordinate value of the workpiece pixel point is equal to the vertical coordinate value of the corresponding edge pixel point, the workpiece pixel body can be updated based on the overlapping area, without the support of a high-performance CPU or GPU for operation, which is convenient to be deployed on an ordinary industrial control computer.

[0011] In a possible implementation, before moving the workpiece pixel point based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point for any workpiece pixel point in the overlapping area so that the workpiece pixel point coincides with the edge pixel point corresponding to the workpiece pixel point, and then updating the workpiece pixel body based on the overlapping area, it further includes: obtaining the lowest pixel point in the workpiece pixel body.

[0012] For any workpiece pixel point in the overlapping region, move the workpiece pixel point based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point, so that the workpiece pixel point coincides with the edge pixel point corresponding to the workpiece pixel point, and then update the workpiece pixel body based on the overlapping region. It further includes: obtaining the vertical coordinate of the lowest pixel point; if the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point is less than the vertical coordinate of the lowest pixel point, remove the workpiece pixel point from the workpiece pixel body.

[0013] In this implementation manner, considering the situation where the cutting head completely penetrates the blank workpiece during actual drilling and milling processing, it is necessary to determine whether the cutting head pixel body at the current position completely penetrates or partially penetrates the workpiece pixel body. When the vertical coordinate of the edge layer of pixels of the cutting head pixel body is less than the vertical coordinate of the lowest pixel point of the workpiece pixel body before processing, it indicates that the edge pixel point of the cutting head is already below the bottom layer of the workpiece pixel body in the three-dimensional space rectangular coordinate system, that is, it has penetrated the bottom of the workpiece pixel body. Therefore, in order to simulate the effect that the corresponding position of the workpiece pixel body has been completely cut, it is necessary to remove the workpiece pixel point corresponding to the cutting head pixel point from the workpiece pixel body. Otherwise, if the workpiece pixel point moves below the lowest pixel point, it will not conform to the geometric shape change during the actual processing of the blank workpiece. Through the above steps, this implementation manner expands the applicable processing scenarios of the above workpiece cutting simulation method, makes the above workpiece cutting simulation method applicable to more types of workpiece processing processes, and improves the practicality of the present invention.

[0014] In a possible implementation manner, after the step of moving any workpiece pixel point in the overlapping region based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point to make the workpiece pixel point coincide with the edge pixel point corresponding to the workpiece pixel point, and then updating the workpiece pixel body based on the overlapping region, it further includes: for any workpiece pixel point, if the workpiece pixel point coincides with any other workpiece pixel point, remove the workpiece pixel point from the workpiece pixel body.

[0015] It should be noted that in the process of moving any workpiece pixel point in the overlapping region based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point to make the workpiece pixel point coincide with the edge pixel point corresponding to the workpiece pixel point, several of the workpiece pixel points may coincide at the same spatial position, so that visually, only the edge layer of pixels remains in the overlapping region of the workpiece pixel body and the cutting head pixel body, achieving the visual effect of "the overlapping region where the workpiece pixel body and the cutting head pixel body coincide is milled by the cutting head pixel body".

[0016] In this implementation manner, in order to reduce the memory occupation space during the operation in the processor when the present invention is actually applied, a plurality of workpiece pixel points that overlap at the same spatial position are removed, so that there is exactly one workpiece pixel point at each spatial position, reducing the number of workpiece pixel points and eliminating the situation where a plurality of workpiece pixel points overlap with each other, thereby reducing the amount of computation of the processor, reducing the memory occupation space during the operation of the present invention, and making the present invention more suitable for deployment on an ordinary industrial control computer; and by reducing the amount of computation, the time for workpiece cutting simulation is reduced, and the efficiency of workpiece drilling and milling processing simulation is improved.

[0017] In a possible implementation manner, for any of the workpiece pixel points, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, then dividing the workpiece pixel point into the overlapping region includes: obtaining the horizontal coordinate of each of the edge pixel points; obtaining the horizontal coordinate of the workpiece pixel point; when the horizontal coordinate of any of the edge pixel points is equal to the horizontal coordinate of the workpiece pixel point, taking the edge pixel point as the corresponding edge pixel point of the workpiece pixel point.

[0018] It should be noted that in a three-dimensional space rectangular coordinate system, there is a horizontal horizontal axis and vertical axis, and a vertical vertical axis. The above-mentioned horizontal coordinate includes the abscissa in the horizontal axis direction and the ordinate in the vertical axis direction.

[0019] In this implementation manner, the workpiece pixel point and the edge pixel point with equal horizontal coordinates are taken as the corresponding workpiece pixel point and edge pixel point; at this time, the workpiece pixel point and the edge pixel point are located on the same vertical axis in the three-dimensional space. Therefore, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point at this time, it can be explained that the workpiece pixel point is directly above the corresponding edge pixel point. Since the edge pixel point is the edge layer of pixel points of the cutting head pixel body, it shows that the workpiece pixel point has overlapped with the internal area of the cutting head pixel body at this moment, that is, the workpiece pixel point is located in the overlapping region of the workpiece pixel body and the cutting head pixel body, simulating the effect of the cutting head cutting into the blank workpiece during actual cutting.

[0020] In a possible implementation manner, generating a workpiece cutting simulation animation based on all the frame data includes: sequentially displaying all the frame data based on a preset time speed, so as to achieve an animation simulation effect.

[0021] In this implementation, after obtaining a number of machining positions based on the preset machining path and sequentially obtaining the states of the cutting head pixel body and the workpiece pixel body at each machining position as the frame data in each machining state, all the frame data is sequentially displayed based on the preset time speed to achieve the animation simulation effect. The complex dynamic operation process of calculating the overlapping area of the cutting head model and the blank workpiece model at each moment in real time and updating the position of the cutting head model and the shape of the blank workpiece model in the traditional simulation method is simplified to a process of obtaining frame data in several static states, and the original complex dynamic simulation animation generation process is simplified to a process of sequentially displaying frame data, reducing the occupied space of the processor computing resources and rendering resources, improving the efficiency of workpiece drilling and milling machining simulation, and not requiring a high-performance CPU or GPU to support the operation, making it more suitable for deployment on a general industrial control computer.

[0022] The second aspect of the present invention provides a workpiece cutting simulation system, including a pixel generation module, a machining position module, a frame data acquisition module, and an animation generation module, where: the pixel generation module is used to obtain all the edge pixel points in the preset cutting head pixel body and all the workpiece pixel points in the preset workpiece pixel body; the machining position module is used to obtain a number of machining positions based on the preset machining path, and then, based on the machining path, position the cutting head pixel body to the number of machining positions in sequence; the frame data acquisition module is used to, when the cutting head pixel body is positioned at any of the machining positions, obtain the overlapping area of the cutting head pixel body and the workpiece pixel body based on all the edge pixel points and all the workpiece pixel points, and then update the workpiece pixel body based on the overlapping area, and store the cutting head pixel body and the workpiece pixel body as frame data; the animation generation module is used to generate a workpiece cutting simulation animation based on all the frame data.

[0023] In the above workpiece cutting simulation system, the cutting head and the workpiece to be cut are pixelated through the pixel generation module to generate a cutting head pixel body and a workpiece pixel body composed of a number of pixel points. By comparing the spatial positions of the pixel points in the workpiece pixel body and the edge layer of pixel points in the cutting head pixel body, the frame data acquisition module can intuitively obtain the overlapping area of the cutting head pixel body and the workpiece pixel body. Then, as long as the workpiece pixel points in the workpiece pixel body are updated according to the overlapping area, the pixel body state of the workpiece after being cut by the cutting head can be obtained, avoiding the topological structure surface change when using traditional geometric Boolean operations to calculate the geometric overlap in real time. This method transforms the three-dimensional graphic operation problem in traditional cutting simulation into a simple pixel point update problem, reducing the operation amount of workpiece machining simulation, reducing the time of workpiece cutting simulation, and improving the efficiency of workpiece drilling and milling machining simulation.

[0024] In a possible implementation, in the frame data acquisition module, when the cutting head pixel body is positioned at any of the machining positions, the overlapping area of the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points. Then, the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: obtaining the vertical coordinates of each of the edge pixel points; obtaining the vertical coordinates of each of the workpiece pixel points; for any of the workpiece pixel points, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, then the workpiece pixel point is classified into the overlapping area.

[0025] In this implementation, the problem of calculating the topological structure surface change during the overlapping of three-dimensional graphics is transformed into a logical problem of judging the vertical coordinate size, which simplifies the computational workload of three-dimensional cutting simulation. Among them, in a three-dimensional space rectangular coordinate system, there is a horizontal horizontal axis and vertical axis, and a vertical axis in the vertical direction; the vertical coordinates of the edge pixel points and the workpiece pixel points refer to the coordinate values of the edge pixel points and the workpiece pixel points in the vertical axis direction. When the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, it means that the workpiece pixel point is already above the corresponding cutting head edge pixel point in the three-dimensional space rectangular coordinate system. Since the edge pixel points are the edge layer of pixels of the cutting head pixel body, it means that at this moment, the workpiece pixel point has already overlapped with the internal area of the cutting head pixel body, that is, the workpiece pixel point is located in the overlapping area of the workpiece pixel body and the cutting head pixel body, simulating the effect of the cutting head cutting into the blank workpiece during actual cutting.

[0026] In a possible implementation, in the frame data acquisition module, when the cutting head pixel body is positioned at any of the machining positions, the overlapping area of the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points. Then, the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: for any of the workpiece pixel points in the overlapping area, moving the workpiece pixel point based on the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point so that the workpiece pixel point coincides with the corresponding edge pixel point of the workpiece pixel point, and then updating the workpiece pixel body based on the overlapping area.

[0027] In this implementation, the vertical coordinate of the workpiece pixel is updated so that the value of the vertical coordinate of the workpiece pixel is equal to the vertical coordinate value of the corresponding edge pixel, thereby realizing the movement of the workpiece pixel based on the vertical coordinate of the corresponding edge pixel of the workpiece pixel, making the workpiece pixel coincide with the corresponding edge pixel of the workpiece pixel, so that all workpiece pixels in the coincidence area are moved to the position of the corresponding edge pixel of the cutting head, and further making the coincidence area between the workpiece pixel body and the cutting head pixel body only have one layer of edge pixels left, realizing the visual effect of "the area where the workpiece pixel body coincides with the cutting head pixel body is milled by the cutting head pixel body". This method transforms the complex calculation problem of the continuously changing spatial geometric structure of the blank workpiece during the cutting head drilling and milling of the blank workpiece into a simple problem of moving the workpiece pixel. On the basis of ensuring that the visual drilling and milling simulation effect can provide an accurate analysis and judgment basis for the processing project, the calculation amount of the drilling and milling simulation is simplified. During the actual operation of the computer program, only the vertical coordinate of the workpiece pixel needs to be updated so that the value of the vertical coordinate of the workpiece pixel is equal to the vertical coordinate value of the corresponding edge pixel, and the workpiece pixel body can be updated based on the coincidence area without the support of a high-performance CPU or GPU, which is convenient for deployment on an ordinary industrial control computer. Brief Description of the Drawings

[0028] Figure 1 is a schematic flowchart of a workpiece cutting simulation method provided by an embodiment of the present invention;

[0029] Figure 2 is a schematic structural diagram of a workpiece cutting simulation system provided by an embodiment of the present invention;

[0030] Wherein: 100, pixel generation module; 200, processing position module; 300, frame data acquisition module; 400, animation generation module. Detailed Embodiment

[0031] The present invention will be described in detail below with reference to the drawings and in conjunction with embodiments. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.

[0032] The following detailed descriptions are all exemplary descriptions, aiming to provide further details of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which this application belongs; the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification, claims and drawings of this application are intended to cover non-exclusive inclusion. The terms "first", "second", etc. in the specification, claims or drawings of this application are used to distinguish different objects and not to describe a specific order.

[0033] It should be understood that although each step in the flowchart of the drawings is shown in sequence according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order restriction and can be executed in other orders. Moreover, at least some of the steps in the flowchart of the drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed alternately or alternately with at least some of the sub-steps or stages of other steps.

[0034] Referring to "embodiment" herein means that a specific feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.

[0035] In the field of precision machining, the numerical simulation technology of drilling and milling processes is an important prerequisite for ensuring machining accuracy and process reliability. The current mainstream dynamic simulation method for machining processes is based on the principle of Boolean operations on geometric solid models. By establishing a parametric correspondence between the kinematic model of the cutting head and the geometric model of the workpiece blank, real-time Boolean subtraction operations are used to achieve the dynamic visualization of the material removal process. The core algorithm of this technology system needs to continuously calculate the spatial interference area between the envelope of the cutting head and the geometry of the workpiece, and iteratively update the geometric topology of the workpiece in the discrete time domain. However, due to the Boolean operations on 3D solid models involving complex geometric intersection calculations and mesh reconstruction processes, the time complexity of its algorithm reaches the order of O(n2). When faced with complex tool path planning in multi-axis machining or workpieces with irregular geometric features, the consumption of computing resources increases exponentially. This computationally intensive characteristic causes the existing simulation systems to heavily rely on high-performance heterogeneous computing architectures, such as multi-core CPUs or parallel GPUs, and it is difficult to achieve real-time simulation on the conventional industrial control computer platforms commonly configured in industrial sites, severely restricting the application and popularization of this technology in workshop-level digital manufacturing systems. Especially when dealing with long-path machining tasks or complex thin-walled structural parts, the existing simulation framework based on precise Boolean operations has significant performance bottlenecks, and there is an urgent need to develop new lightweight simulation algorithms to balance the contradiction between computational accuracy and operation efficiency.

[0036] See Figure 1 To achieve the above object, an embodiment of the present invention provides a workpiece cutting simulation method, including the following steps:

[0037] S101. Obtain all edge pixel points in a preset cutting head pixel body, and obtain all workpiece pixel points in a preset workpiece pixel body. Specifically, in this embodiment, the cutting head model and the blank workpiece model that need to perform drilling and milling simulation are three-dimensionally pixelated according to the input voxel accuracy to obtain a cutting head pixel body and a workpiece pixel body.

[0038] S102. Obtain a plurality of machining positions based on a preset machining path. Specifically, in this embodiment, according to the machining code generated by CAM software, the machining path is obtained, and then the machining path is parsed to obtain a plurality of machining path position points sequentially distributed along the machining path.

[0039] S103. Based on the machining path, sequentially position the cutting head pixel body to the plurality of machining positions.

[0040] S104: When the cutting head pixel body is positioned at any of the processing positions, the overlapping area of ​​the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points, and then the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data. Specifically, after the workpiece pixel body is updated based on the overlapping area, the remaining pixel points of the workpiece pixel body are triangulated, and then the current part of the workpiece pixel body and the current part of the cutting head pixel body are displayed as a frame of data according to the triangulation result.

[0041] S105: Generate a workpiece cutting simulation animation based on all the frame data.

[0042] The above-mentioned workpiece cutting simulation method pixelates the cutting head and the workpiece to be cut to generate a cutting head pixel body and a workpiece pixel body composed of a number of pixel points. By comparing the spatial positions of the pixel points in the workpiece pixel body and the edge layer pixel points in the cutting head pixel body, the overlapping area of ​​the cutting head pixel body and the workpiece pixel body can be intuitively obtained, and then as long as the workpiece pixel points in the workpiece pixel body are updated according to the overlapping area, the pixel body state of the workpiece after being cut by the cutting head can be obtained, avoiding the use of traditional geometric Boolean operations to calculate the topological surface changes when the geometric bodies overlap in real time. This method converts the three-dimensional graphics calculation problem in the traditional cutting simulation into a simple pixel point update problem, reduces the amount of calculation of the workpiece processing simulation, reduces the time of the workpiece cutting simulation, and improves the efficiency of the workpiece drilling and milling simulation.

[0043] In a possible embodiment, when the cutting head pixel body is positioned to any of the processing positions, the overlapping area between the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points, and then the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: obtaining the vertical coordinate of each of the edge pixel points; obtaining the vertical coordinate of each of the workpiece pixel points; for any of the workpiece pixel points, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point, then the workpiece pixel point is divided into the overlapping area.

[0044] Specifically, in this embodiment, the vertical coordinate z of the pixel point at the edge of the cutting head pixel body is first recorded. c . And record all the pixel points P in the workpiece pixel body t The vertical coordinate z t , if the pixel point P t The vertical coordinate z t Greater than the vertical coordinate z of the corresponding edge pixel c , then the pixel point Pt Partitioned into the overlapping region.

[0045] In this embodiment, the problem of calculating the topological structure surface change when three-dimensional graphics overlap is transformed into a logical problem of judging the vertical coordinate size, which simplifies the computational workload of three-dimensional cutting simulation. Among them, in a three-dimensional space rectangular coordinate system, there are a horizontal horizontal axis and a vertical axis, and a vertical axis in the vertical direction; the vertical coordinates of the edge pixel points and the workpiece pixel points refer to the coordinate values of the edge pixel points and the workpiece pixel points in the vertical axis direction. When the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, it means that the workpiece pixel point is already above the corresponding cutting head edge pixel point in the three-dimensional space rectangular coordinate system. Since the edge pixel points are the edge layer of pixel points of the cutting head pixel body, it means that at this moment the workpiece pixel point has already overlapped with the internal area of the cutting head pixel body, that is, the workpiece pixel point is located in the overlapping region of the workpiece pixel body and the cutting head pixel body, simulating the effect of the cutting head cutting into the blank workpiece during actual cutting.

[0046] In a possible embodiment, when positioning the cutting head pixel body to any of the processing positions, obtaining the overlapping region of the cutting head pixel body and the workpiece pixel body based on all the edge pixel points and all the workpiece pixel points, and then updating the workpiece pixel body based on the overlapping region, and storing the cutting head pixel body and the workpiece pixel body as frame data, includes: for any workpiece pixel point in the overlapping region, moving the workpiece pixel point based on the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, so that the workpiece pixel point coincides with the corresponding edge pixel point of the workpiece pixel point, and then updating the workpiece pixel body based on the overlapping region.

[0047] Specifically, in this embodiment, updating the vertical coordinate z of the workpiece pixel point P t of the workpiece pixel point P t such that the vertical coordinate z t of the workpiece pixel point P t is equal to the vertical coordinate z c of the corresponding edge pixel point, that is, making z t =z c , realizing moving the workpiece pixel point based on the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point.

[0048] In this embodiment, the workpiece pixel is moved based on the vertical coordinate of the edge pixel corresponding to the workpiece pixel, so that the workpiece pixel coincides with the edge pixel corresponding to the workpiece pixel, so that all workpiece pixels in the overlapping area are moved to the position of the corresponding edge pixel of the cutting head. Furthermore, only the outermost layer of pixels remains in the overlapping area between the workpiece pixel body and the cutting head pixel body, achieving the visual effect of "the overlapping area between the workpiece pixel body and the cutting head pixel body is milled by the cutting head pixel body". This method transforms the complex calculation problem of the continuously changing spatial geometric structure of the blank workpiece during the cutting head drilling and milling of the blank workpiece into a simple problem of moving workpiece pixels. On the basis of ensuring that the visual drilling and milling simulation effect can provide an accurate analysis and judgment basis for the processing project, the calculation amount of the drilling and milling simulation is simplified. During the actual operation of the computer program, only the vertical coordinate of the workpiece pixel needs to be updated so that the vertical coordinate value of the workpiece pixel is equal to the vertical coordinate value of the corresponding edge pixel, and the workpiece pixel body can be updated based on the overlapping area without the support of a high-performance CPU or GPU, which is convenient for deployment on an ordinary industrial control computer.

[0049] In a possible embodiment, before moving the workpiece pixel based on the vertical coordinate of the edge pixel corresponding to the workpiece pixel for any workpiece pixel in the overlapping area to make the workpiece pixel coincide with the edge pixel corresponding to the workpiece pixel, and then updating the workpiece pixel body based on the overlapping area, it further includes: obtaining the lowest pixel point in the workpiece pixel body.

[0050] For any workpiece pixel in the overlapping area, moving the workpiece pixel based on the vertical coordinate of the edge pixel corresponding to the workpiece pixel to make the workpiece pixel coincide with the edge pixel corresponding to the workpiece pixel, and then updating the workpiece pixel body based on the overlapping area, further includes: obtaining the vertical coordinate of the lowest pixel point; if the vertical coordinate of the edge pixel corresponding to the workpiece pixel is less than the vertical coordinate of the lowest pixel point, the workpiece pixel is removed from the workpiece pixel body.

[0051] Specifically, in this embodiment, the vertical coordinate of the lowest pixel point of the workpiece pixel body before being cut is recorded as Z min , if the vertical coordinate z t of the edge pixel corresponding to the workpiece pixel P c is less than the vertical coordinate Z min of the lowest pixel point, the workpiece pixel is removed from the workpiece pixel body.

[0052] In this embodiment, considering the situation where the cutting head completely penetrates the blank workpiece during actual drilling and milling operations, it is necessary to determine whether the cutting head pixel body at the current position completely penetrates or partially penetrates the workpiece pixel body. When the vertical coordinates of the edge layer of pixel points of the cutting head pixel body are less than the vertical coordinates of the lowest pixel points of the workpiece pixel body before machining, it indicates that the edge pixel points of the cutting head are already below the bottom layer of the workpiece pixel body in the three-dimensional rectangular coordinate system, that is, the bottom of the workpiece pixel body has been penetrated. Therefore, in order to simulate the effect that the corresponding position of the workpiece pixel body has been completely cut, it is necessary to remove the workpiece pixel points corresponding to the cutting head pixel points from the workpiece pixel body. Otherwise, if the workpiece pixel points move below the lowest pixel points, it will not conform to the geometric shape changes during the actual machining of the blank workpiece. Through the above steps, this embodiment expands the applicable machining scenarios of the above workpiece cutting simulation method, making the above workpiece cutting simulation method applicable to more types of workpiece machining processes and improving the practicality of the present invention.

[0053] In a possible embodiment, after moving any workpiece pixel point in the overlapping area based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point to make the workpiece pixel point coincide with the edge pixel point corresponding to the workpiece pixel point, and then updating the workpiece pixel body based on the overlapping area, it further includes: for any workpiece pixel point, if the workpiece pixel point coincides with any other workpiece pixel point, the workpiece pixel point is removed from the workpiece pixel body.

[0054] Specifically, if the abscissa, ordinate, and vertical coordinate of any two workpiece pixel points are respectively equal, it is considered that the two workpiece pixel points coincide, and any one of the two workpiece pixel points is removed from the workpiece pixel body.

[0055] It should be noted that during the process of moving any workpiece pixel point in the overlapping area based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point to make the workpiece pixel point coincide with the edge pixel point corresponding to the workpiece pixel point, several of the workpiece pixel points may coincide at the same spatial position, resulting in only the edge layer of pixel points remaining in the overlapping area of the workpiece pixel body and the cutting head pixel body visually, achieving the visual effect of "the overlapping area of the workpiece pixel body and the cutting head pixel body is milled by the cutting head pixel body".

[0056] In this embodiment, in order to reduce the memory occupied during the operation in the processor when the present invention is actually applied, a plurality of workpiece pixel points that overlap at the same spatial position are removed, so that there is only one workpiece pixel point at each spatial position, reducing the number of workpiece pixel points and eliminating the situation where a plurality of workpiece pixel points overlap with each other. Thereby, the computing amount of the processor is reduced, the memory occupied during the operation of the present invention is reduced, and the present invention is more suitable for deployment on an ordinary industrial control computer; and by reducing the computing amount, the time of workpiece cutting simulation is reduced, and the efficiency of workpiece drilling and milling processing simulation is improved.

[0057] In a possible embodiment, for any of the workpiece pixel points, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, then dividing the workpiece pixel point into the overlapping region includes: obtaining the horizontal coordinate of each edge pixel point; obtaining the horizontal coordinate of the workpiece pixel point; when the horizontal coordinate of any edge pixel point is equal to the horizontal coordinate of the workpiece pixel point, taking the edge pixel point as the corresponding edge pixel point of the workpiece pixel point.

[0058] It should be noted that in a three-dimensional space rectangular coordinate system, there is a horizontal transverse axis and a vertical axis, as well as a vertical axis in the vertical direction. In this embodiment, the above horizontal coordinates include the abscissa in the transverse axis direction and the ordinate in the vertical axis direction. For the workpiece pixel point P on the workpiece pixel body t , record its abscissa as x t , and the ordinate as y t , then there is P t [x t [y t = z t . For the edge pixel points on the cutting head pixel body, record their abscissa x c and ordinate y c respectively, and there is P c [x c [y c = z c .

[0059] In this embodiment, workpiece pixel points and edge pixel points with equal horizontal coordinates are regarded as corresponding workpiece pixel points and edge pixel points; at this time, the workpiece pixel points and the edge pixel points are located in the same vertical axis in the three-dimensional space. Therefore, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point at this time, it can be explained that the workpiece pixel point is directly above the corresponding edge pixel point. Since the edge pixel point is the edge layer of pixel points of the cutting head pixel body, it shows that the workpiece pixel point has now coincided with the internal area of the cutting head pixel body, that is, the workpiece pixel point is located in the overlapping area of the workpiece pixel body and the cutting head pixel body, simulating the effect of the cutting head cutting into the blank workpiece during actual cutting.

[0060] In a possible embodiment, generating the workpiece cutting simulation animation based on all the frame data includes: sequentially displaying all the frame data based on a preset time speed, so as to achieve the animation simulation effect.

[0061] In this embodiment, after obtaining several machining positions based on the preset machining path and sequentially obtaining the states of the cutting head pixel body and the workpiece pixel body at each machining position as the frame data for each machining state, all the frame data are sequentially displayed based on the preset time speed to achieve the animation simulation effect. The complex dynamic operation process of calculating the overlapping area of the cutting head model and the blank workpiece model at each moment in real time and updating the position of the cutting head model and the shape of the blank workpiece model in the traditional simulation method is simplified into a process of obtaining frame data in several static states, and the originally complex dynamic simulation animation generation process is simplified into a process of sequentially displaying frame data, reducing the occupied space of the processor's computing resources and rendering resources, improving the efficiency of workpiece drilling and milling machining simulation, and not requiring a high-performance CPU or GPU to support the operation, being more suitable for deployment on a general industrial control computer.

[0062] The embodiment of the present invention also provides another workpiece cutting simulation method, including the following steps:

[0063] S201. Three-dimensionally pixelize the cutting head model and the blank workpiece model that need to perform drilling and milling simulation according to the input voxel accuracy to obtain a cutting head pixel body and a workpiece pixel body, and obtain all the edge pixel points in the cutting head pixel body and all the workpiece pixel points in the workpiece pixel body.

[0064] S202. Obtain the machining path according to the machining code generated by the CAM software, and then parse the machining path to obtain several machining path position points sequentially distributed along the machining path.

[0065] S203. Move the workpiece pixel body to the coordinate origin, and record the current workpiece edge values X, Y, and Z to obtain the edge value coordinates of the workpiece pixel body. For the workpiece pixel points on the workpiece pixel body, there is P t [x t [y t = z t , z t represents the highest vertical coordinate value of the workpiece pixel body at the current abscissa x t and ordinate y t coordinates. For the workpiece pixel points P t [x t [y t represents the workpiece pixel points P with the same abscissa x t and ordinate y t . They are on the same vertical axis, and the highest vertical coordinate values of the corresponding workpiece pixel bodies are equal. t

[0066] S204. Based on the machining path, make the cutting head pixel body locate at a number of the machining path position points in sequence;

[0067] S205. When the cutting head pixel body locates at any machining position, traverse and calculate all the workpiece pixel points P of the workpiece pixel body t , and for each pixel point P t , obtain the highest vertical coordinate value z of the workpiece pixel body at the x t , y t coordinates where it is located, and the vertical coordinate z of the cutting head edge pixel point at the same x t , y t coordinates. If z t is greater than z c , it indicates that the edge of the workpiece pixel body at this x t , y c coordinates is about to be drilled and milled. Therefore, change the highest vertical coordinate value of the workpiece pixel body at the current abscissa x t , y t coordinates to make P t [x t [y t = z t [y t = z c .

[0068] S206. Judge the cut part and the remaining part of the current craftsman pixel body according to the highest pixel point vertical coordinate Z max and the lowest pixel point vertical coordinate Z of the workpiece pixel body before cutting min . For the pixel points with z t value less than Z min , it indicates that at this abscissa x tand the vertical coordinate y t All the corresponding pixel points have been completely cut, so the relevant pixel points are removed. Obtain all the current highest pixel points and current lowest pixel points of all the current workpiece pixel bodies, and perform triangulation on them to obtain the remaining part of the workpiece pixel body after cutting.

[0069] S207. Display the current part of the workpiece pixel body and the current part of the cutting head pixel body according to the result of triangulation as the frame data at the corresponding machining position.

[0070] S208. Display all the frame data in sequence based on a preset time speed to generate a workpiece cutting simulation animation.

[0071] See Figure 2 , an embodiment of the present invention provides a workpiece cutting simulation system, including a pixel generation module 100, a machining position module 200, a frame data acquisition module 300, and an animation generation module 400, where: the pixel generation module 100 is used to obtain all the edge pixel points in a preset cutting head pixel body and obtain all the workpiece pixel points in a preset workpiece pixel body; the machining position module 200 is used to obtain a plurality of machining positions based on a preset machining path, and then based on the machining path, make the cutting head pixel body locate at the plurality of machining positions in sequence; the frame data acquisition module 300 is used to, when the cutting head pixel body locates at any of the machining positions, obtain the overlapping area of the cutting head pixel body and the workpiece pixel body based on all the edge pixel points and all the workpiece pixel points, and then update the workpiece pixel body based on the overlapping area, and store the cutting head pixel body and the workpiece pixel body as frame data; the animation generation module 400 is used to generate a workpiece cutting simulation animation based on all the frame data.

[0072] For the above workpiece cutting simulation system, through the pixel generation module 100, the cutting head and the workpiece to be cut are pixelated to generate a cutting head pixel body and a workpiece pixel body composed of a plurality of pixel points. The frame data acquisition module 300 can intuitively obtain the overlapping area of the cutting head pixel body and the workpiece pixel body by comparing the spatial positions of the pixel points in the workpiece pixel body and the edge layer pixel points in the cutting head pixel body. Then, as long as the workpiece pixel points in the workpiece pixel body are updated according to the overlapping area, the pixel body state of the workpiece after being cut by the cutting head can be obtained, avoiding the topological structure surface change when using traditional geometric Boolean operations to calculate geometric overlaps in real time. This method transforms the three-dimensional graphic operation problem in traditional cutting simulation into a simple pixel point update problem, reduces the operation amount of workpiece machining simulation, reduces the time of workpiece cutting simulation, and improves the efficiency of workpiece drilling and milling machining simulation.

[0073] In a possible embodiment, in the frame data acquisition module 300, when the cutting head pixel body is positioned at any of the machining positions, the overlapping area of the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points. Then, the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: obtaining the vertical coordinates of each of the edge pixel points; obtaining the vertical coordinates of each of the workpiece pixel points; for any of the workpiece pixel points, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, then the workpiece pixel point is divided into the overlapping area.

[0074] In this embodiment, the problem of calculating the topological structure surface change during the overlapping of three-dimensional graphics is transformed into a logical problem of judging the vertical coordinate size, which simplifies the computational workload of three-dimensional cutting simulation. Among them, in a three-dimensional space rectangular coordinate system, there are a horizontal horizontal axis and a vertical axis, and a vertical axis in the vertical direction; the vertical coordinates of the edge pixel points and the workpiece pixel points refer to the coordinate values of the edge pixel points and the workpiece pixel points in the vertical axis direction. When the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point, it means that the workpiece pixel point is already above the corresponding cutting head edge pixel point in the three-dimensional space rectangular coordinate system. Since the edge pixel points are the edge layer of pixels of the cutting head pixel body, it means that at this moment the workpiece pixel point has overlapped with the internal area of the cutting head pixel body, that is, the workpiece pixel point is located in the overlapping area of the workpiece pixel body and the cutting head pixel body, simulating the effect of the cutting head cutting into the blank workpiece during actual cutting.

[0075] In a possible embodiment, in the frame data acquisition module 300, when the cutting head pixel body is positioned at any of the machining positions, the overlapping area of the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points. Then, the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: for any of the workpiece pixel points in the overlapping area, moving the workpiece pixel point based on the vertical coordinate of the corresponding edge pixel point of the workpiece pixel point so that the workpiece pixel point coincides with the corresponding edge pixel point of the workpiece pixel point, and then updating the workpiece pixel body based on the overlapping area.

[0076] In this embodiment, the vertical coordinate of the workpiece pixel is updated so that the vertical coordinate value of the workpiece pixel is equal to the vertical coordinate value of the corresponding edge pixel, thereby realizing the movement of the workpiece pixel based on the vertical coordinate of the edge pixel corresponding to the workpiece pixel, so that the workpiece pixel coincides with the edge pixel corresponding to the workpiece pixel. As a result, all workpiece pixels in the overlapping area are moved to the position of the corresponding edge pixel of the cutting head. Furthermore, only the outermost layer of pixels remains in the overlapping area between the workpiece pixel body and the cutting head pixel body, achieving the visual effect of "the overlapping area between the workpiece pixel body and the cutting head pixel body is milled by the cutting head pixel body". This method transforms the complex calculation problem of the continuously changing spatial geometric structure of the blank workpiece during the cutting head drilling and milling of the blank workpiece into a simple problem of moving workpiece pixels. On the basis of ensuring that the visual drilling and milling simulation effect can provide an accurate analysis and judgment basis for the processing project, the calculation amount of the drilling and milling simulation is simplified. During the actual operation of the computer program, only the vertical coordinate of the workpiece pixel needs to be updated so that the vertical coordinate value of the workpiece pixel is equal to the vertical coordinate value of the corresponding edge pixel, and the workpiece pixel body can be updated based on the overlapping area without the support of a high-performance CPU or GPU, which is convenient for deployment on an ordinary industrial control computer.

[0077] A workpiece cutting simulation method and system provided by the present invention has at least the following advantages compared with the prior art:

[0078] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0079] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0080] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several improvements and substitutions can be made, and these improvements and substitutions should also be regarded as the protection scope of the present invention. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A workpiece cutting simulation method, characterized in that: include: Acquire all edge pixel points in a preset cutting head pixel volume, and acquire all workpiece pixel points in a preset workpiece pixel volume; Obtaining several processing positions based on a preset processing path; Based on the processing path, positioning the cutting head pixel body to a plurality of processing positions in sequence; When the cutting head pixel body is positioned at any of the processing positions, an overlapping area between the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points, and then the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data; A workpiece cutting simulation animation is generated based on all the frame data.

2. A workpiece cutting simulation method according to claim 1, characterized in that: When the cutting head pixel body is positioned at any of the processing positions, an overlapping area between the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points, and then the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: Obtaining the vertical coordinate of each edge pixel point; Obtaining the vertical coordinate of each pixel point of the workpiece; For any workpiece pixel point, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point, the workpiece pixel point is divided into the overlap area.

3. A workpiece cutting simulation method according to claim 2, characterized in that: When the cutting head pixel body is positioned at any of the processing positions, an overlapping area between the cutting head pixel body and the workpiece pixel body is obtained based on all the edge pixel points and all the workpiece pixel points, and then the workpiece pixel body is updated based on the overlapping area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: For any workpiece pixel point in the overlapped area, the workpiece pixel point is moved based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point so that the workpiece pixel point and the edge pixel point corresponding to the workpiece pixel point overlap, and then the workpiece pixel body is updated based on the overlapped area.

4. A workpiece cutting simulation method according to claim 3, characterized in that: Before the workpiece pixel point in the overlapped area is moved based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point so that the workpiece pixel point and the edge pixel point corresponding to the workpiece pixel point overlap, and then the workpiece pixel body is updated based on the overlapped area, the method further includes: Obtaining the lowest pixel point in the workpiece pixel volume; For any of the workpiece pixel points in the overlapped area, the workpiece pixel point is moved based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point, so that the workpiece pixel point and the edge pixel point corresponding to the workpiece pixel point overlap, and then the workpiece pixel body is updated based on the overlapped area, further comprising: Obtaining the vertical coordinate of the lowest pixel point; If the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point is smaller than the vertical coordinate of the lowest pixel point, the workpiece pixel point is removed from the workpiece pixel body.

5. A workpiece cutting simulation method according to claim 3, characterized in that: After the workpiece pixel point in the overlapped area is moved based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point so that the workpiece pixel point and the edge pixel point corresponding to the workpiece pixel point overlap, and then the workpiece pixel body is updated based on the overlapped area, the method further includes: For any workpiece pixel point, if the workpiece pixel point coincides with any other workpiece pixel point, the workpiece pixel point is removed from the workpiece pixel body.

6. A workpiece cutting simulation method according to claim 2, characterized in that: For any of the workpiece pixel points, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point, dividing the workpiece pixel point into the overlap area includes: Obtaining the horizontal coordinate of each edge pixel point; Get the horizontal coordinates of the pixel point of the workpiece; When the horizontal coordinate of any edge pixel point is equal to the horizontal coordinate of the workpiece pixel point, the edge pixel point is used as the edge pixel point corresponding to the workpiece pixel point.

7. A workpiece cutting simulation method according to claim 1, characterized in that: The step of generating a workpiece cutting simulation animation based on all the frame data comprises: All the frame data are displayed in sequence based on a preset time speed, thereby achieving an animation simulation effect.

8. A workpiece cutting simulation system, characterized in that: It includes a pixel generation module, a processing position module, a frame data acquisition module and an animation generation module, wherein: The pixel generation module is used to obtain all edge pixel points in a preset cutting head pixel volume, and to obtain all workpiece pixel points in a preset workpiece pixel volume; The processing position module is used to obtain a plurality of processing positions based on a preset processing path, and then based on the processing path, position the pixel body of the cutting head to the plurality of processing positions in sequence; The frame data acquisition module is used for acquiring the overlapping area of ​​the cutting head pixel body and the workpiece pixel body based on all the edge pixel points and all the workpiece pixel points when the cutting head pixel body is positioned at any processing position, and then updating the workpiece pixel body based on the overlapping area, and storing the cutting head pixel body and the workpiece pixel body as frame data; The animation generation module is used to generate a workpiece cutting simulation animation based on all the frame data.

9. A workpiece cutting simulation system according to claim 8, characterized in that: In the frame data acquisition module, when the cutting head pixel body is positioned at any processing position, an overlap area between the cutting head pixel body and the workpiece pixel body is acquired based on all the edge pixel points and all the workpiece pixel points, and then the workpiece pixel body is updated based on the overlap area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: Obtaining the vertical coordinate of each edge pixel point; Obtaining the vertical coordinate of each pixel point of the workpiece; For any workpiece pixel point, if the vertical coordinate of the workpiece pixel point is greater than the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point, the workpiece pixel point is divided into the overlap area.

10. A workpiece cutting simulation system according to claim 9, characterized in that: In the frame data acquisition module, when the cutting head pixel body is positioned at any processing position, an overlap area between the cutting head pixel body and the workpiece pixel body is acquired based on all the edge pixel points and all the workpiece pixel points, and then the workpiece pixel body is updated based on the overlap area, and the cutting head pixel body and the workpiece pixel body are stored as frame data, including: For any workpiece pixel point in the overlapped area, the workpiece pixel point is moved based on the vertical coordinate of the edge pixel point corresponding to the workpiece pixel point so that the workpiece pixel point and the edge pixel point corresponding to the workpiece pixel point overlap, and then the workpiece pixel body is updated based on the overlapped area.