Three-dimensional curve laser processing path generation method, device and equipment and storage medium

By acquiring and processing the boundary information of the three-dimensional model, generating a discrete topological curve representation and determining the offset point set, the problem of low accuracy of the three-dimensional curve laser processing path is solved, and the accuracy and smoothness of the processing trajectory are improved.

CN118768718AActive Publication Date: 2024-10-15SHENZHEN TETELASER TECH CO LTD

Patent Information

Application Number
CN202410929992.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-15
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

The existing laser processing path generation method is difficult to obtain the trajectory in the three-dimensional space, resulting in a low accuracy of the processing path generated by the three-dimensional curve, which affects the laser processing process.

Method used

By obtaining the boundary information of the model to be processed, the path wireframe and topology curve representation are generated, the full contour edge is synthesized and converted into a discrete topology curve representation, sampling points are obtained, the offset point set is determined based on the normal vector and tangent vector, and the target processing is generated path.

Benefits of technology

It improves the accuracy of the three-dimensional curve machining path, reduces the machining jump, avoids inaccurate machining of the machining contour margin due to different spot sizes, and ensures the smoothness and accuracy of the machining trajectory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118768718A_ABST
    Figure CN118768718A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional curve laser processing path generation method, device and equipment and a storage medium, and relates to the technical field of laser manufacturing, and the method comprises the following steps: obtaining boundary information of a to-be-processed model, and generating a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information; synthesizing a full contour edge of the to-be-processed model according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation; sampling the discrete topological curve representation to obtain a plurality of sampling points; determining an offset point set according to the normal vector of the curved surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve; and generating a target processing path according to the offset point set. According to the method, splicing of multiple sections of contours of the to-be-machined model can be achieved, the fairing degree of the finally generated target machining path is ensured, the target machining path is generated through the offset point set obtained through discrete sampling, and the machining track precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of laser manufacturing technology, and in particular to a method, device, equipment and storage medium for generating a laser processing path for a three-dimensional curve. Background Art

[0002] The processing path of a laser device is the path that the laser moves on the surface of a workpiece. Generally speaking, a laser device will cut, engrave or weld on the surface of a workpiece according to a preset processing path. These processing paths can be determined based on the design requirements and processing purpose of the workpiece.

[0003] The processing path of laser equipment can be designed and generated using tool libraries such as Open CASCADE (OCC). However, the existing processing path generation method is more friendly to planar trajectories, but it is difficult to obtain three-dimensional space trajectories, which leads to low accuracy of processing paths generated based on three-dimensional curves, affecting the subsequent laser processing process.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a method, device, equipment and storage medium for generating a laser processing path for a three-dimensional curve, aiming to solve the technical problem that the accuracy of the processing path generated based on the three-dimensional curve is low due to the difficulty in obtaining the three-dimensional space trajectory in the existing processing path generation method.

[0006] To achieve the above purpose, the present application proposes a method for generating a laser processing path of a three-dimensional curve, the method comprising:

[0007] Acquire boundary information of the model to be processed, and generate a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information;

[0008] Synthesizing a full contour edge of the model to be processed according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation;

[0009] Sampling the discrete topological curve representation to obtain a plurality of sampling points;

[0010] Determine an offset point set according to a normal vector of the surface to which each sampling point belongs and a tangent vector of each sampling point on the discrete topological curve;

[0011] A target machining path is generated according to the offset point set.

[0012] In one embodiment, the boundary information includes: a number of contour edges and corresponding endpoint coordinates;

[0013] The step of obtaining boundary information of the model to be processed and generating a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information comprises:

[0014] Obtaining each contour edge and corresponding endpoint coordinates of the model to be processed;

[0015] Based on the coordinates of the endpoints, the contour edges are spliced ​​to obtain a path wireframe corresponding to the processing model;

[0016] The path wireframe is converted into a combined topological chain curve, and the combined topological chain curve is trimmed to obtain a topological curve representation.

[0017] In one embodiment, the step of converting the path wireframe into a combined topological chain curve and trimming the combined topological chain curve to obtain a topological curve representation includes:

[0018] Converting the path wireframe into a combined topology chain curve;

[0019] Determining a topological parameter range of the combined topological chain curve according to the coordinates of each of the endpoints;

[0020] The combined topological chain curve is self-consistently pruned according to the topological parameter range to obtain a topological curve representation.

[0021] In one embodiment, the step of synthesizing the full contour edge of the model to be processed according to the topological curve representation and converting the full contour edge into a discrete topological curve representation includes:

[0022] Fitting the topological curve representation according to a preset tolerance condition to obtain an approximate topological curve representation;

[0023] Extracting a geometric curve satisfying the preset tolerance condition from the approximate topological curve;

[0024] A full contour edge of the model to be processed is generated according to the geometric curve, and the full contour edge is converted into a discrete topological curve representation.

[0025] In one embodiment, the step of sampling the discrete topological curve representation to obtain a plurality of sampling points includes:

[0026] The discrete topological curve representation is sampled based on a preset discrete distance using a Cauchy equidistance discretization method to obtain a plurality of sampling points.

[0027] In one embodiment, the step of determining the offset point set according to the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve includes:

[0028] Determine the curved surface associated with the full contour edge as the curved surface to which each of the sampling points belongs;

[0029] Determine respectively the normal vector of each sampling point on the corresponding surface, and determine the tangent vector of each sampling point on the discrete topological curve;

[0030] Determining the light compensation direction corresponding to each of the sampling points according to the product of the normal vector and the tangent vector;

[0031] The offset of each sampling point is determined according to the light compensation direction, and an offset point set is obtained.

[0032] In one embodiment, the step of generating a target machining path according to the offset point set includes:

[0033] Perform interpolation calculation according to the offset point set to generate a spline curve;

[0034] The spline curve is used as a center line to generate a target processing path to guide laser processing.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a three-dimensional curve laser processing path generation device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the three-dimensional curve laser processing path generation method as described above.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the laser processing path generation method for the three-dimensional curve as described above are implemented.

[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a three-dimensional curve laser processing path generation device, the device comprising:

[0038] A first curve representation module is used to obtain boundary information of the model to be processed, and generate a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information;

[0039] A second curve representation module, used for synthesizing the full contour edge of the to-be-processed model according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation;

[0040] A curve sampling module, used for sampling the discrete topological curve representation to obtain a plurality of sampling points;

[0041] A supplementary calculation module, used to determine an offset point set according to a normal vector of the surface to which each of the sampling points belongs and a tangent vector of each of the sampling points on the discrete topological curve;

[0042] The path generation module is used to generate a target processing path according to the offset point set.

[0043] The present application provides a method for generating a laser processing path for a three-dimensional curve, by acquiring the boundary information of a model to be processed, generating a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information; synthesizing the full contour edge of the model to be processed according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation; sampling the discrete topological curve representation to obtain a number of sampling points; determining an offset point set according to the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve; and generating a target processing path according to the offset point set. The full contour edge of the processing model generated in the present application can realize the splicing of multiple contours of the model to be processed, ensure the smoothness of the target processing path finally generated, reduce tool jumping during processing, and the offset point set obtained by discrete sampling can effectively avoid inaccurate processing of the residual processing of the processing contour due to different spot sizes, so as to improve the accuracy of the processing trajectory. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0046] Figure 1 A schematic diagram of a process flow provided in Example 1 of a method for generating a laser processing path for a three-dimensional curve of the present application;

[0047] Figure 2 A schematic diagram of a process flow provided for the second embodiment of the method for generating a laser processing path for a three-dimensional curve of the present application;

[0048] Figure 3 A schematic diagram of a process flow provided by a laser processing path generation device for a three-dimensional curve according to an embodiment of the present application;

[0049] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the method for generating a laser processing path for a three-dimensional curve in an embodiment of the present application. DETAILED DESCRIPTION

[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0052] OpenCASCADE Technology (OCCT) is an open source software development platform that provides services for 3D computer-aided design (CAD), computer-aided manufacturing (CAM) and computer-aided engineering (CAE). This platform is an object-oriented C++ class library designed for rapid development of complex domain-specific applications. OpenCASCADE (OCC) provides display and interactive operations including points, lines, surfaces, bodies and complex shapes, and can perform graphic operations such as texture, lighting, primitive filling, rendering, as well as dynamic operations such as zooming in, zooming out, rotating, roaming, simulated flight, simulated crossing, etc. With the help of OCC technology, the processing path of laser equipment can be generated.

[0053] When using OCC technology to generate laser equipment processing paths, users need to design or input the pattern or shape to be processed, and then the OCC software will generate the path trajectory of laser processing according to the set parameters and path planning algorithm. However, since laser equipment is usually designed and optimized to handle processing tasks on two-dimensional planes, when it comes to three-dimensional curves, the processing difficulty increases significantly due to the complex and changeable boundary processing trajectory of three-dimensional graphics, resulting in lower accuracy of the generated processing route.

[0054] Based on this, the present application provides a method for generating a laser processing path for a three-dimensional curve, by obtaining the boundary information of the model to be processed, generating a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information; synthesizing the full contour edge of the model to be processed according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation; sampling the discrete topological curve representation to obtain a number of sampling points; determining an offset point set according to the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve; generating a target processing path according to the offset point set. The full contour edge of the processing model generated in the present application can realize the splicing of multiple contours of the model to be processed, ensure the smoothness of the target processing path finally generated, reduce tool jumping during processing, and the offset point set obtained by discrete sampling can effectively avoid inaccurate processing of the residual processing of the processing contour due to different spot sizes, so as to improve the accuracy of the processing trajectory.

[0055] It should be noted that the execution subject of this embodiment can be a computer service device with data processing, program running, and data processing functions, such as a mobile phone, a tablet computer, a personal computer, etc., and can also be other electronic devices that can implement the laser processing path generation method of the three-dimensional curve of the present application, such as laser processing equipment, etc. The following takes the laser processing equipment as an example to explain this embodiment and the following embodiments.

[0056] Based on this, the embodiment of the present application provides a method for generating a laser processing path for a three-dimensional curve, referring to Figure 1 , Figure 1 A flow chart of the first embodiment of the method for generating a laser processing path for a three-dimensional curve of the present application is provided. In this embodiment, the method for generating a laser processing path for a three-dimensional curve includes steps S10 to S50:

[0057] Step S10: obtaining boundary information of the model to be processed, and generating a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information.

[0058] It should be noted that the model to be processed may be a three-dimensional model that needs to be laser processed, and the three-dimensional model includes a plurality of contour edges (Edges), and these contour edges define the outline or image of the three-dimensional model.

[0059] It should be understood that the contour edges can be arranged in a head-to-tail manner to form a continuous wireframe structure, namely a path wireframe, and then the wireframe can be converted into a mathematical representation in three-dimensional space, namely a topological curve representation.

[0060] Furthermore, the boundary information includes: a plurality of contour edges and corresponding endpoint coordinates. In order to specifically explain how to generate a path wireframe, step S10 includes steps S101 to S103:

[0061] Step S101: Acquire each contour edge of the model to be processed and the corresponding endpoint coordinates.

[0062] Step S102: based on the coordinates of the endpoints, the contour edges are spliced ​​to obtain a path wireframe corresponding to the processing model.

[0063] It should be understood that the coordinates of the first and last endpoints of each contour edge can be obtained, and the corresponding endpoints with the same coordinates can be selected as connection points. That is, when the coordinates of the tail endpoint of one contour edge are the same as the coordinates of the first endpoint of another contour edge, it means that they are connected in space.

[0064] In a specific implementation, each contour edge can be traversed to find out which contour edges have matching coordinates of their endpoints, thereby determining that they are connected, and then forming a continuous wireframe structure from the connected contour edges.

[0065] Step S103: converting the path wireframe into a combined topological chain curve, and trimming the combined topological chain curve to obtain a topological curve representation.

[0066] It should be noted that, in order to ensure that the obtained topological curve representation is self-consistent and conforms to the topological information of the space set, step S103 includes steps S1031 to S1033:

[0067] Step S1031: converting the path wireframe into a combined topological chain curve.

[0068] In a specific implementation, after obtaining the path wireframe, the path wireframe can be converted into a combined topology chain curve BRepAdaptor_CompCurve (BRCC), that is, a combined topology chain curve, through an interface provided by OCC.

[0069] Step S1032: determining the topological parameter range of the combined topological chain curve according to the coordinates of each of the endpoints.

[0070] Step S1032: performing self-consistency pruning on the combined topology chain curve according to the topology parameter range to obtain a topology curve representation.

[0071] It should be understood that the topological parameters u and v ranges of the two endpoints of the combined topological chain curve can be determined according to the endpoint coordinates of the above-mentioned contour edges (generally between 0 and 1), and the BRCC can be trimmed according to the (u, v) range into a spatial curve Adaptor3d_Curve (3d_Curve) that is self-consistent with the spatial geometric topological information to obtain a topological curve representation.

[0072] Step S20: synthesizing the full contour edge of the model to be processed according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation.

[0073] It should be noted that, in order to simplify the processing process, improve efficiency, and meet the needs of specific applications while maintaining sufficient accuracy, the topological curve representation can be approximated and then a curve can be extracted therefrom. Step S20 includes steps S201 to S203:

[0074] Step S201: fitting the topological curve representation according to a preset tolerance condition to obtain an approximate topological curve representation.

[0075] It is understandable that the preset tolerance condition may be a fitting accuracy preset by the user. Specifically, the 3d_Curve curve may be approximately fitted according to the tolerance size specified by the user, thereby converting it into a curve Approx_Curve3d (A_Curve3d) containing geometric topology information, i.e., an approximate curve representation.

[0076] It should be understood that Approx_Curve3d is used to approximate an accurate 3D geometric curve. For complex topological curves, direct processing may be very costly. Approximation can simplify the subsequent calculation process, reduce the complexity of calculation, speed up the processing, and in some cases reduce the amount of data. And through the user's setting of preset tolerance conditions, it can be applied to different usage scenarios.

[0077] Step S202: extracting a geometric curve that meets the preset tolerance condition from the approximate topological curve.

[0078] It should be understood that a geometric curve that meets the tolerance can be extracted from A_Curve3d, i.e., the approximate curve representation, which contains topological edge information. Since the extraction process allows the geometric curve to be refined according to specific tolerance conditions, it can ensure that the geometric properties of the geometric curve meet the accuracy requirements of design and manufacturing.

[0079] Step S203: generating a full contour edge of the model to be processed according to the geometric curve, and converting the full contour edge into a discrete topological curve representation.

[0080] It should be understood that the interface BRepBuilderAPI_MakeEdge provided by OCC can be used to create a full-contour edge (Edge) from a curve containing topological edge information, thereby merging multiple contour edges (Edges) into a full-contour edge (Edge) and completing the geometric splicing, which is helpful for subsequent overall bias operations; then the edge is converted into a self-consistent geometric line BRepAdaptor_Curve (B_Curve) with discrete topological properties, that is, a discrete topological curve representation. The B_Curve also contains topological information such as point positions, first-order and second-order derivatives of the curve, etc.

[0081] Step S30: sampling the discrete topological curve representation to obtain a plurality of sampling points.

[0082] It should be understood that the discrete topology curve B_Curve can be sampled according to the interval distance set by the user through the discrete interface provided by the OCC, thereby generating a number of equidistant sampling points that meet the needs of the user.

[0083] Step S40: determining an offset point set according to the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve.

[0084] It should be understood that, first, the surface face where each contour edge of the model to be processed is located can be selected, and each sampling point can be traversed. Then, the product of the normal vector of each sampling point on the surface face and the tangent vector on the discrete topological curve is calculated as the bias direction of each sampling point. Finally, the directed offset corresponding to each sampling point is calculated according to the original point position and bias direction of each sampling point to obtain the offset point set, thereby realizing the offset of the 3D curve to compensate for the light spot.

[0085] Step S50: generating a target processing path according to the offset point set.

[0086] It should be understood that the offset point set includes the directed offset of each sampling point, and then the offset curve offcurve can be generated by interpolation calculation according to the discrete offset point set Q to obtain the target processing path for guiding the laser equipment processing process.

[0087] This embodiment provides a method for generating a laser processing path for a three-dimensional curve, by obtaining the boundary information of the model to be processed, generating a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information; synthesizing the full contour edge of the model to be processed according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation; sampling the discrete topological curve representation to obtain a number of sampling points; determining an offset point set according to the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve; generating a target processing path according to the offset point set. The full contour edge of the processing model generated in this embodiment can realize the splicing of multiple contours of the model to be processed, ensure the smoothness of the target processing path finally generated, reduce tool jumping during processing, and the offset point set obtained by discrete sampling can effectively avoid the inaccurate processing of the residual processing of the processing contour due to different spot sizes, so as to improve the accuracy of the processing trajectory.

[0088] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 A schematic flow chart of the second embodiment of the method for generating a laser processing path for a three-dimensional curve in the present application.

[0089] In this embodiment, step S30 specifically includes step S300:

[0090] Step S300: adopting the Cauchy equidistance discretization method, sampling the discrete topological curve representation based on a preset discrete distance to obtain a plurality of sampling points.

[0091] It should be understood that the Cauchy equidistant discretization method is a common method for generating equidistant sampling points on a curve. The preset discrete distance can be set by the user based on demand. This embodiment is not limited here. The sampling density is set to 0.01 mm, which means that the distance between each sampling point will be as close to 0.01 mm as possible.

[0092] In the specific implementation, you can select the Cauchy equidistant dispersion GCPnts_QuasiUniformDeflection interface provided by OCC, and use the equidistant dispersion B_Curve of 0.01mm to generate equidistant sampling points that meet the needs.

[0093] Further, in order to specifically illustrate the generation process of the offset point set, step S40 specifically includes steps S401 to S404:

[0094] Step S401: Determine the curved surface associated with the full contour edge as the curved surface to which each sampling point belongs.

[0095] It can be understood that the curved surface associated with the full contour edge may be the curved surface face where each contour edge of the to-be-processed model is located, and the curved surface face includes each of the above-mentioned sampling points.

[0096] Step S402: respectively determining the normal vector of each sampling point on the corresponding surface, and determining the tangent vector of each sampling point on the discrete topological curve.

[0097] Step S403: determining the light compensation direction corresponding to each sampling point according to the product of the normal vector and the tangent vector.

[0098] It should be understood that, taking one of the sampling points Pi as an example, we can first determine the normal vector Ni of Pi on the face, then determine the tangent vector Ti of Pi on B_Curve, and finally calculate<Ni×Ti> The unit vector product Fi is obtained as the direction of the point bias, that is, the direction of the laser spot radius compensation.

[0099] Step S404: determining the offset of each sampling point according to the light compensation direction, and obtaining an offset point set.

[0100] It should be understood that after obtaining the light compensation direction Fi, in order to obtain the quantitative value of the spot compensation, the offset corresponding to the sampling point Pi can be calculated by Qi=Pi+r*Fi, where r is the curve offset of a laser spot radius compensation distance. This ensures that the spot sphere of the laser equipment is always tangent to the product contour of the model to be processed to avoid lack of contact or overcutting.

[0101] It can be understood that, by referring to the above steps to obtain the offset corresponding to each sampling point, the offset point set Q can be obtained.

[0102] Further, in order to specifically explain how to generate a target processing path according to an offset point set, step S50 includes steps S501 to S502:

[0103] Step S501: performing interpolation calculation according to the offset point set to generate a spline curve.

[0104] Step S503: using the spline curve as a center line to generate a target processing path to guide laser processing.

[0105] It can be understood that, based on the offset point set Q, the interpolation calculation generates a biased smooth spline curve offcurve, which is used as the center line of the laser equipment processing path, that is, the center line trajectory corrected by the spot radius interpolation, which not only meets the smoothness of the center trajectory, but also ensures that the laser spot sphere is tangent to the product contour of the model to be processed everywhere.

[0106] In this embodiment, the Cauchy equidistance dispersion method is adopted to sample the discrete topological curve representation based on the preset discrete distance to obtain a number of sampling points; the surface associated with the full contour edge is determined as the surface to which each sampling point belongs; the normal vector of each sampling point on the surface to which it belongs is determined respectively, and the tangent vector of each sampling point on the discrete topological curve is determined; the light compensation direction corresponding to each sampling point is determined according to the product of the normal vector and the tangent vector; the offset of each sampling point is determined according to the light compensation direction, and an offset point set is obtained; interpolation calculation is performed according to the offset point set to generate a spline curve; the spline curve is used as the center line to generate a target processing path to guide laser processing. The processing path trajectory can be calculated according to the modeling data of the product contour of the model to be processed, and then the center line trajectory of the spot is obtained by offsetting according to the spot size, effectively avoiding the inaccurate processing of the margin of the processing contour due to different spot sizes, so as to improve the accuracy of the generated target processing path and reduce the situation of not being able to contact or overcutting, thereby reducing the defects of the processing process and greatly improving the production efficiency of the entire laser cutting process.

[0107] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the laser processing path generation method for three-dimensional curves of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0108] The present application also provides a three-dimensional curve laser processing path generation device, please refer to Figure 3 , Figure 3 This is a schematic diagram of the module structure of a three-dimensional curve laser processing path generation device according to an embodiment of the present application, the device comprising:

[0109] The first curve representation module 301 is used to obtain boundary information of the model to be processed, and generate a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information;

[0110] A second curve representation module 302, for synthesizing the full contour edge of the to-be-processed model according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation;

[0111] A curve sampling module 303, used to sample the discrete topological curve representation to obtain a plurality of sampling points;

[0112] A supplementary calculation module 304, used to determine an offset point set according to a normal vector of the surface to which each sampling point belongs and a tangent vector of each sampling point on the discrete topological curve;

[0113] The path generation module 305 is used to generate a target processing path according to the offset point set.

[0114] This embodiment provides a method for generating a laser processing path for a three-dimensional curve, by obtaining the boundary information of the model to be processed, generating a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information; synthesizing the full contour edge of the model to be processed according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation; sampling the discrete topological curve representation to obtain a number of sampling points; determining an offset point set according to the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve; generating a target processing path according to the offset point set. The full contour edge of the processing model generated in this embodiment can realize the splicing of multiple contours of the model to be processed, ensure the smoothness of the target processing path finally generated, reduce tool jumping during processing, and the offset point set obtained by discrete sampling can effectively avoid the inaccurate processing of the residual processing of the processing contour due to different spot sizes, so as to improve the accuracy of the processing trajectory.

[0115] The present application also provides a three-dimensional curve laser processing path generation device, the three-dimensional curve laser processing path generation device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the three-dimensional curve laser processing path generation method in the above-mentioned embodiment one.

[0116] Reference below Figure 4 , Figure 4 The device structure diagram of the hardware operating environment involved in the method for generating a laser processing path for a three-dimensional curve in the embodiment of the present application is shown in FIG. The device for generating a laser processing path for a three-dimensional curve in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The laser processing path generation device for the three-dimensional curve shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0117] like Figure 4As shown, the laser processing path generation device for three-dimensional curves may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the laser processing path generation device for three-dimensional curves are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the laser processing path generation device for three-dimensional curves to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a laser processing path generation device for three-dimensional curves with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0118] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0119] The three-dimensional curve laser processing path generation device provided by the present application adopts the three-dimensional curve laser processing path generation method in the above embodiment, which can solve the technical problem of three-dimensional curve laser processing path generation. Compared with the prior art, the beneficial effects of the three-dimensional curve laser processing path generation device provided by the present application are the same as the beneficial effects of the three-dimensional curve laser processing path generation method provided by the above embodiment, and other technical features in the three-dimensional curve laser processing path generation device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0120] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0121] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0122] The present application also provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the method for generating a laser processing path for a three-dimensional curve in the above-mentioned embodiment.

[0123] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0124] The computer-readable storage medium may be included in the three-dimensional curve laser processing path generation device; or may exist independently without being assembled into the three-dimensional curve laser processing path generation device.

[0125] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a three-dimensional curve laser processing path generation device, the three-dimensional curve laser processing path generation device: obtains boundary information of a model to be processed, generates a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information; synthesizes the full contour edge of the model to be processed according to the topological curve representation, and converts the full contour edge into a discrete topological curve representation; samples the discrete topological curve representation to obtain a number of sampling points; determines an offset point set according to the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve; and generates a target processing path according to the offset point set.

[0126] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0128] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0129] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for generating a laser processing path for a three-dimensional curve, and can solve the technical problems of the method for generating a laser processing path for a three-dimensional curve. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the method for generating a laser processing path for a three-dimensional curve provided by the above-mentioned embodiment, and will not be described in detail here.

Claims

1. A method for generating a laser processing path of a three-dimensional curve, characterized in that: The method comprises: Acquire boundary information of the model to be processed, and generate a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information; Synthesizing a full contour edge of the model to be processed according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation; Sampling the discrete topological curve representation to obtain a plurality of sampling points; Determine an offset point set according to a normal vector of the surface to which each sampling point belongs and a tangent vector of each sampling point on the discrete topological curve; A target machining path is generated according to the offset point set.

2. The method according to claim 1, characterized in that The boundary information includes: a number of contour edges and corresponding endpoint coordinates; The step of obtaining boundary information of the model to be processed and generating a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information comprises: Obtaining each contour edge and corresponding endpoint coordinates of the model to be processed; Based on the coordinates of the endpoints, the contour edges are spliced ​​to obtain a path wireframe corresponding to the processing model; The path wireframe is converted into a combined topological chain curve, and the combined topological chain curve is trimmed to obtain a topological curve representation.

3. The method according to claim 2, characterized in that The step of converting the path wireframe into a combined topological chain curve and trimming the combined topological chain curve to obtain a topological curve representation includes: Converting the path wireframe into a combined topology chain curve; Determining a topological parameter range of the combined topological chain curve according to the coordinates of each of the endpoints; The combined topological chain curve is self-consistently pruned according to the topological parameter range to obtain a topological curve representation.

4. The method according to claim 3, characterized in that The step of synthesizing the full contour edge of the model to be processed according to the topological curve representation and converting the full contour edge into a discrete topological curve representation comprises: Fitting the topological curve representation according to a preset tolerance condition to obtain an approximate topological curve representation; Extracting a geometric curve satisfying the preset tolerance condition from the approximate topological curve; A full contour edge of the model to be processed is generated according to the geometric curve, and the full contour edge is converted into a discrete topological curve representation.

5. The method according to claim 4, characterized in that The step of sampling the discrete topological curve representation to obtain a plurality of sampling points comprises: The discrete topological curve representation is sampled based on a preset discrete distance using a Cauchy equidistance discretization method to obtain a plurality of sampling points.

6. The method according to claim 5, characterized in that The step of determining the offset point set according to the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topological curve comprises: Determine the curved surface associated with the full contour edge as the curved surface to which each of the sampling points belongs; Determine respectively the normal vector of each sampling point on the corresponding surface, and determine the tangent vector of each sampling point on the discrete topological curve; Determining the light compensation direction corresponding to each of the sampling points according to the product of the normal vector and the tangent vector; The offset of each sampling point is determined according to the light compensation direction, and an offset point set is obtained.

7. The method according to claim 6, characterized in that The step of generating a target processing path according to the offset point set comprises: Perform interpolation calculation according to the offset point set to generate a spline curve; The spline curve is used as a center line to generate a target processing path to guide laser processing.

8. A three-dimensional curve laser processing path generation device, characterized in that: The device comprises: A first curve representation module is used to obtain boundary information of the model to be processed, and generate a path wireframe and a topological curve representation corresponding to the path wireframe according to the boundary information; A second curve representation module, used for synthesizing the full contour edge of the to-be-processed model according to the topological curve representation, and converting the full contour edge into a discrete topological curve representation; A curve sampling module, used for sampling the discrete topological curve representation to obtain a plurality of sampling points; A supplementary calculation module, used to determine an offset point set according to a normal vector of the surface to which each of the sampling points belongs and a tangent vector of each of the sampling points on the discrete topological curve; The path generation module is used to generate a target processing path according to the offset point set.

9. A three-dimensional curve laser processing path generation device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for generating a laser processing path for a three-dimensional curve according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for generating a laser processing path for a three-dimensional curve as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Curved-surface workpiece machining track planning method

    CN112666890A

  • Method, device and system for recognizing machining characteristics of laser cutting of thin-walled tube

    CN116416377A

  • Laser deposition forming method, electronic equipment and storage medium

    CN116493604A

  • Machining path generation method, device and equipment and computer readable storage medium

    CN116945189A

  • Workpiece surface coating thickness measuring method and system

    CN117387499A

Cited By

  • Method and system for controlling plate pattern cutting path

    CN119238205A

  • Aspheric mirror processing method, equipment and computer program product

    CN121299821A

  • Aspherical mirror processing method, apparatus, and computer program product

    CN121299821B