Method, device and equipment for generating laser processing path of three-dimensional curve and storage medium

By acquiring and processing the boundary information of the 3D model, generating a topological curve representation and sampling it, determining the offset point set, and generating a high-precision laser processing path, the problem of low accuracy of 3D curve processing paths in existing technologies is solved, and processing accuracy and efficiency are improved.

CN118768718BActive Publication Date: 2026-05-29SHENZHEN TETELASER TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN TETELASER TECH CO LTD
Filing Date
2024-07-11
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing laser processing path generation methods have difficulty obtaining three-dimensional spatial trajectories, resulting in low accuracy of the processing path generated from the three-dimensional curve.

Method used

By acquiring the boundary information of the model to be processed, a path wireframe is generated and converted into a topological curve representation. The full contour edge is synthesized and converted into a discrete topological curve representation. Sampling is performed to obtain sampling points. The offset point set is determined based on the surface normal vector and tangent vector, and the target processing path is generated.

Benefits of technology

It improves the accuracy of 3D curve machining paths, reduces machining tool skipping, avoids inaccurate allowances for machining contours due to different spot sizes, and improves the accuracy of machining trajectories and production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118768718B_ABST
    Figure CN118768718B_ABST
Patent Text Reader

Abstract

The application discloses a three-dimensional curve laser processing path generation method, device and equipment and a storage medium, relates to the field of laser manufacturing technology, and comprises the following steps: acquiring boundary information of a model to be processed, generating a path wire frame and a topological curve representation corresponding to the path wire frame 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; determining an offset point set according to normal vectors of surfaces to which the sampling points belong and tangent vectors of the sampling points on the discrete topological curve; and generating a target processing path according to the offset point set. The application can realize splicing of multiple contour sections of the model to be processed, ensures the smoothness of the target processing path finally generated, and generates the target processing path through the offset point set obtained by discrete sampling, so that the processing track precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of laser manufacturing technology, and in particular to a method, apparatus, equipment and storage medium for generating laser processing paths of three-dimensional curves. Background Technology

[0002] The processing path of a laser machine is the path along which the laser moves on the surface of a workpiece. Typically, laser machines cut, engrave, or weld on the workpiece surface according to a preset processing path. These processing paths can be determined based on the workpiece's design requirements and the intended processing purpose.

[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 methods are more friendly to planar trajectories, but it is more difficult to obtain three-dimensional spatial trajectories. This results in low accuracy of processing paths generated based on three-dimensional curves, which affects the subsequent laser processing process.

[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main objective of this application is to provide a method, apparatus, device, and storage medium for generating laser processing paths based on three-dimensional curves, aiming to solve the technical problem that the accuracy of processing paths generated based on three-dimensional curves is low due to the difficulty in obtaining three-dimensional spatial trajectories in existing processing path generation methods.

[0006] To achieve the above objectives, this application proposes a method for generating laser processing paths for three-dimensional curves, the method comprising:

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

[0008] The full contour edges of the model to be processed are synthesized according to the topological curve representation, and the full contour edges are converted into discrete topological curve representations.

[0009] The discrete topological curve representation is sampled to obtain several sampling points;

[0010] The offset point set is determined based on 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;

[0011] The target processing path is generated based on the set of offset points.

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

[0013] The steps of obtaining the boundary information of the model to be processed, and generating path wireframes and corresponding topological curve representations of the path wireframes based on the boundary information, include:

[0014] Obtain the contour edges and corresponding endpoint coordinates of the model to be processed;

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

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

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

[0018] Convert the path wireframe into a composite topology chain curve;

[0019] The range of topological parameters for the combined topological chain curve is determined based on the coordinates of each endpoint.

[0020] The combined topology chain curves are self-consistently pruned according to the range of topology parameters to obtain a topology curve representation.

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

[0022] The topological curve representation is fitted according to preset tolerance conditions to obtain an approximate topological curve representation;

[0023] Extract the geometric curves that satisfy the preset tolerance conditions from the approximate topological curves;

[0024] The full contour edges of the model to be processed are generated based on the geometric curves, and the full contour edges are converted into discrete topological curve representations.

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

[0026] Using the Cauchy equal-distance sampling method, the discrete topological curve representation is sampled based on a preset discrete distance to obtain a number of sampling points.

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

[0028] The surface associated with the full contour edge is determined as the surface to which each sampling point belongs;

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

[0030] The optical compensation direction corresponding to each sampling point is determined based on the product of the normal vector and the tangent vector.

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

[0032] In one embodiment, the step of generating the target processing path based on the offset point set includes:

[0033] Interpolation calculations are performed based on the set of offset points to generate spline curves;

[0034] Using the spline curve as the centerline, a target processing path is generated to guide laser processing.

[0035] Furthermore, to achieve the above objectives, this application also proposes a laser processing path generation device for three-dimensional curves, 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 laser processing path generation method for three-dimensional curves as described above.

[0036] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the laser processing path generation method for three-dimensional curves as described above.

[0037] Furthermore, to achieve the above objectives, this application also provides a laser processing path generation device for three-dimensional curves, the device comprising:

[0038] The first curve representation module is used to obtain the boundary information of the model to be processed, and generate a path wireframe and a corresponding topological curve representation of the path wireframe based on the boundary information.

[0039] The second curve representation module is used to synthesize the full contour edge of the model to be processed according to the topological curve representation, and convert the full contour edge into a discrete topological curve representation.

[0040] The curve sampling module is used to sample the discrete topological curve representation to obtain a number of sampling points;

[0041] A supplementary calculation module is used to determine the set of offset points based on 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.

[0042] The path generation module is used to generate a target processing path based on the set of offset points.

[0043] This application provides a method for generating laser processing paths from three-dimensional curves. The method involves acquiring the boundary information of the model to be processed, generating a path wireframe and a corresponding topological curve representation based on the boundary information; synthesizing the full contour edges of the model to be processed based on the topological curve representation, and converting the full contour edges into a discrete topological curve representation; sampling the discrete topological curve representation to obtain several sampling points; determining an offset point set based on 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 based on the offset point set. The full contour edges of the processing model generated in this application enable the splicing of multiple contour segments of the model to be processed, ensuring the smoothness of the final generated target processing path and reducing tool skipping during processing. The offset point set obtained through discrete sampling effectively avoids inaccurate machining of the machining contour allowance due to different spot sizes, thereby improving the accuracy of the machining trajectory. Attached Figure Description

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

[0045] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0046] Figure 1 A flowchart illustrating an embodiment of the laser processing path generation method for three-dimensional curves in this application;

[0047] Figure 2 This is a flowchart illustrating Embodiment 2 of the laser processing path generation method for three-dimensional curves in this application.

[0048] Figure 3 A flowchart illustrating the laser processing path generation apparatus for three-dimensional curves in an embodiment of this application;

[0049] Figure 4 This is a schematic diagram of the hardware operating environment involved in the laser processing path generation method for three-dimensional curves in this application embodiment. Detailed Implementation

[0050] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0051] To better understand the technical solution of this application, a detailed description will be provided 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 the rapid development of complex, domain-specific applications. OpenCASCADE (OCC) provides display and interactive operations for points, lines, surfaces, volumes, and complex shapes, and allows for graphical operations such as texturing, lighting, primitive filling, and rendering, as well as dynamic operations such as zooming in, zooming out, rotating, roaming, simulated flight, and simulated traversal. Using OCC technology, processing paths for laser equipment can be generated.

[0053] When generating laser processing paths using OCC technology, users need to design or input the desired pattern or shape to be processed. The OCC software then generates the laser processing path trajectory based on the set parameters and path planning algorithm. However, since laser equipment is typically designed and optimized for processing tasks on a two-dimensional plane, the processing difficulty increases significantly when dealing with three-dimensional curves due to the complex and varied boundary processing trajectories of three-dimensional graphics, resulting in lower accuracy of the generated processing path.

[0054] Based on this, this application provides a method for generating laser processing paths from three-dimensional curves. The method involves acquiring the boundary information of the model to be processed, generating a path wireframe and a corresponding topological curve representation based on the boundary information; synthesizing the full contour edges of the model to be processed based on the topological curve representation, and converting the full contour edges into a discrete topological curve representation; sampling the discrete topological curve representation to obtain several sampling points; determining an offset point set based on 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 based on the offset point set. The full contour edges of the processing model generated in this application can achieve the splicing of multiple contour segments of the model to be processed, ensuring the smoothness of the final generated target processing path and reducing tool skipping during processing. The offset point set obtained through discrete sampling can effectively avoid inaccurate processing of the machining contour allowance due to different spot sizes, thereby improving the accuracy of the machining trajectory.

[0055] It should be noted that the executing entity in this embodiment can be a computer service device with data processing, program execution, and data processing functions, such as a mobile phone, tablet computer, or personal computer. It can also be other electronic devices capable of implementing the laser processing path generation method for three-dimensional curves of this application, such as laser processing equipment. The following explanation uses a laser processing equipment as an example to illustrate this embodiment and the subsequent embodiments.

[0056] Based on this, embodiments of this application provide a method for generating laser processing paths from three-dimensional curves, referring to... Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the laser processing path generation method for three-dimensional curves according to this application. In this embodiment, the laser processing path generation method for three-dimensional curves includes steps S10 to S50:

[0057] Step S10: Obtain the boundary information of the model to be processed, and generate a path wireframe and a corresponding topological curve representation of the path wireframe based on the boundary information.

[0058] It should be noted that the model to be processed can be a three-dimensional model that needs to be laser-processed. This three-dimensional model includes several outline edges, which define the outline or image of the three-dimensional model.

[0059] It should be understood that the contour edges can be sorted in a way that connects the beginning and the end to form a continuous wireframe structure, i.e., a path wireframe, and then the wireframe can be converted into a mathematical representation in three-dimensional space, i.e., a topological curve representation.

[0060] Furthermore, the boundary information includes: several contour edges and corresponding endpoint coordinates. To specifically illustrate how to generate the path wireframe, step S10 includes steps S101 to S103:

[0061] Step S101: Obtain the contour edges of the model to be processed and the corresponding endpoint coordinates.

[0062] Step S102: Based on the coordinates of each endpoint, the contour edges are spliced ​​together to obtain the path wireframe corresponding to the processing model.

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

[0064] In the actual implementation, each contour edge can be traversed to find which contour edges have matching coordinates at their endpoints, thus determining that they are connected, and then the connected contour edges can form a continuous wireframe structure.

[0065] Step S103: Convert the path wireframe into a combined topology chain curve, and trim the combined topology chain curve to obtain a topology 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 spatial set, step S103 includes steps S1031 to S1033:

[0067] Step S1031: Convert the path wireframe into a combined topology chain curve.

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

[0069] Step S1032: Determine the range of topology parameters of the combined topology chain curve based on the coordinates of each endpoint.

[0070] Step S1032: Perform self-consistent pruning on the combined topology chain curve according to the range of topology parameters to obtain a topology curve representation.

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

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

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

[0074] Step S201: Fit the topology curve representation according to the preset tolerance conditions to obtain an approximate topology curve representation.

[0075] Understandably, this preset tolerance condition can be the fitting accuracy set by the user. Specifically, the 3d_Curve curve can be approximated based on the user-specified tolerance, thereby transforming it into an approx_Curve3d (A_Curve3d) curve representation that includes geometric topological information.

[0076] It should be understood that Approx_Curve3d is used to approximate a precise 3D geometric curve. For complex topological curves, direct processing can be computationally expensive, while approximation simplifies subsequent calculations, reduces computational complexity, speeds up processing, and in some cases, reduces the amount of data. Furthermore, by setting preset tolerance conditions, it can be applied to different use cases.

[0077] Step S202: Extract the geometric curve that satisfies the preset tolerance condition from the approximate topological curve.

[0078] It should be understood that a geometric curve that meets the tolerances can be extracted from the A_Curve3d approximate curve representation. This curve includes topological edge information. Because the extraction process allows for the refinement of the geometric curve according to specific tolerance conditions, it ensures that the geometric properties of the geometric curve meet the accuracy requirements of design and manufacturing.

[0079] Step S203: Generate the full contour edge of the model to be processed based on the geometric curve, and convert 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 from a curve containing topological edge information. This completes the merging of multiple contour edges into a single full-contour edge, thus completing the geometric stitching and facilitating subsequent overall offset operations. The edge is then transformed into a self-consistent curved geometry BRepAdaptor_Curve (B_Curve) with discrete topological properties, which is a discrete topological curve representation. This B_Curve also contains topological information such as point positions, the first and second derivatives of the curve.

[0081] Step S30: Sample the discrete topological curve representation to obtain several 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 OCC, thereby generating several equidistant sampling points that meet the user's needs.

[0083] Step S40: Determine the set of offset points based on 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, firstly, the surface 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 on the surface and the tangent vector on the discrete topological curve of each sampling point can be calculated as the offset direction of each sampling point. Finally, the directed offset of each sampling point can be calculated according to the original point position and offset 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: Generate the target processing path based on the set of offset points.

[0086] It should be understood that the offset point set includes the directed offset of each sampling point, and thus the offset curve offcurve can be generated by interpolation based on the discrete offset point set Q, so as to obtain the target processing path used to guide the laser equipment processing process.

[0087] This embodiment provides a method for generating laser processing paths from three-dimensional curves. It involves acquiring the boundary information of the model to be processed, generating a path wireframe and a corresponding topological curve representation based on the boundary information; synthesizing the full contour edges of the model to be processed based on the topological curve representation, and converting the full contour edges into a discrete topological curve representation; sampling the discrete topological curve representation to obtain several sampling points; determining an offset point set based on 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 the target processing path based on the offset point set. In this embodiment, the generated full contour edges of the processing model can achieve the splicing of multiple contour segments of the model to be processed, ensuring the smoothness of the final generated target processing path, reducing machining jumps, and the offset point set obtained through discrete sampling can effectively avoid inaccurate machining of the machining contour allowance due to different spot sizes, thereby improving the accuracy of the machining trajectory.

[0088] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 , Figure 2 This is a flowchart illustrating Embodiment 2 of the laser processing path generation method for three-dimensional curves in this application.

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

[0090] Step S300: Using the Cauchy equal-distance sampling method, the discrete topological curve representation is sampled based on a preset discrete distance to obtain a number of sampling points.

[0091] It should be understood that the Cauchy equal-distance dispersion method is a common method for generating equally spaced sampling points on a curve. The preset discrete distance can be set by the user based on their needs. This embodiment does not impose any restrictions on this. Setting the sampling density to 0.01 mm means that the distance between each sampling point will be as close as possible to 0.01 mm.

[0092] In the specific implementation, the Cauchy equidistant dispersion GCPnts_QuasiUniformDeflection interface provided by OCC can be selected, and equidistant dispersion B_Curve with a spacing of 0.01mm can be used to generate equidistant sampling points that meet the requirements.

[0093] Furthermore, to illustrate the process of generating the offset point set in detail, step S40 specifically includes steps S401 to S404:

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

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

[0096] Step S402: Determine the normal vector of each sampling point on its respective surface, and determine the tangent vector of each sampling point on the discrete topological curve.

[0097] Step S403: Determine the optical compensation direction corresponding to each sampling point based on the product of the normal vector and the tangent vector.

[0098] It should be understood that, taking one sampling point 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 offset, i.e., the direction of laser spot radius compensation.

[0099] Step S404: Determine the offset of each sampling point according to the optical compensation direction, and obtain the offset point set.

[0100] It should be understood that after obtaining the light compensation direction Fi, in order to obtain the quantized 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 by a laser spot radius compensation distance. This ensures that the spherical surface of the laser equipment spot is always tangent to the product outline of the model to be processed, avoiding non-contact or over-cutting.

[0101] It is understandable 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] Furthermore, to illustrate in detail how to generate the target processing path based on the offset point set, step S50 includes steps S501 to S502:

[0103] Step S501: Perform interpolation calculations based on the offset point set to generate a spline curve.

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

[0105] Understandably, based on the offset point set Q, an offset smooth spline curve offcurve is generated by interpolation calculation, which serves as the centerline of the laser equipment processing path, i.e., the trajectory of the centerline for spot radius interpolation correction. This satisfies the smoothness of the center trajectory and ensures that the spherical surface of the laser spot is tangent to the product outline of the model to be processed at every point.

[0106] In this embodiment, the Cauchy equidistant dispersion method is used to sample the discrete topological curve representation based on a preset discrete distance to obtain several 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 its respective surface is determined, 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 based on the offset point set to generate a spline curve; the spline curve is used as the centerline to generate the target processing path to guide laser processing. This method can calculate the processing path trajectory based on the modeling data of the product contour of the model to be processed, and then offset according to the spot size to obtain the centerline trajectory of the spot. This effectively avoids inaccurate processing of the processing contour allowance due to different spot sizes, thereby improving the accuracy of the generated target processing path and reducing cases of non-contact or over-cutting, thus reducing defects in the processing process and greatly improving the overall production efficiency of laser cutting.

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

[0108] This application also provides a laser processing path generation device for three-dimensional curves. Please refer to... Figure 3 , Figure 3 This is a schematic diagram of the module structure of the laser processing path generation device for three-dimensional curves according to an embodiment of this application. The device includes:

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

[0110] The second curve representation module 302 is used to synthesize the full contour edge of the model to be processed according to the topological curve representation, and convert the full contour edge into a discrete topological curve representation.

[0111] The curve sampling module 303 is used to sample the discrete topological curve representation to obtain a number of sampling points;

[0112] The supplementary calculation module 304 is used to determine the set of offset points based on 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.

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

[0114] This embodiment provides a method for generating laser processing paths from three-dimensional curves. It involves acquiring the boundary information of the model to be processed, generating a path wireframe and a corresponding topological curve representation based on the boundary information; synthesizing the full contour edges of the model to be processed based on the topological curve representation, and converting the full contour edges into a discrete topological curve representation; sampling the discrete topological curve representation to obtain several sampling points; determining an offset point set based on 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 the target processing path based on the offset point set. In this embodiment, the generated full contour edges of the processing model can achieve the splicing of multiple contour segments of the model to be processed, ensuring the smoothness of the final generated target processing path, reducing machining jumps, and the offset point set obtained through discrete sampling can effectively avoid inaccurate machining of the machining contour allowance due to different spot sizes, thereby improving the accuracy of the machining trajectory.

[0115] This application also provides a laser processing path generation device for three-dimensional curves. The laser processing path generation device for three-dimensional curves includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the laser processing path generation method for three-dimensional curves in the above embodiment 1.

[0116] The following is for reference. Figure 4 , Figure 4 This is a schematic diagram of the hardware operating environment involved in the laser processing path generation method for three-dimensional curves in this application embodiment. The laser processing path generation device for three-dimensional curves in this application embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), vehicle terminals (e.g., vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The laser processing path generation device for the three-dimensional curve shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0117] like Figure 4As shown, the laser processing path generation device for three-dimensional curves may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the laser processing path generation device for three-dimensional curves. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the laser processing path generation device for 3D curves to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a laser processing path generation device for 3D curves with various systems, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.

[0118] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0119] The laser processing path generation device for three-dimensional curves provided in this application, employing the laser processing path generation method for three-dimensional curves in the above embodiments, can solve the technical problem of generating laser processing paths for three-dimensional curves. Compared with the prior art, the beneficial effects of the laser processing path generation device for three-dimensional curves provided in this application are the same as those of the laser processing path generation method for three-dimensional curves provided in the above embodiments, and other technical features in this laser processing path generation device for three-dimensional curves are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.

[0120] It should be understood that the various parts disclosed in this application can be implemented using 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 suitable manner in one or more embodiments or examples.

[0121] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0122] This application also provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the laser processing path generation method for three-dimensional curves in the above embodiments.

[0123] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. 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 conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0124] The aforementioned computer-readable storage medium may be included in the laser processing path generation device for three-dimensional curves; or it may exist independently and not be assembled into the laser processing path generation device for three-dimensional curves.

[0125] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by a laser processing path generation device for three-dimensional curves, the laser processing path generation device for three-dimensional curves causes the device to: acquire boundary information of the model to be processed; generate a path wireframe and a corresponding topological curve representation based on the boundary information; synthesize the full contour edge of the model to be processed based on the topological curve representation, and convert the full contour edge into a discrete topological curve representation; sample the discrete topological curve representation to obtain several sampling points; determine an offset point set based on 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 generate a target processing path based on the offset point set.

[0126] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0127] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0128] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0129] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the laser processing path generation method for three-dimensional curves described above, thereby solving the technical problem of the laser processing path generation method for three-dimensional curves. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the laser processing path generation method for three-dimensional curves provided in the above embodiments, and will not be repeated here.

Claims

1. A method for generating a laser processing path for a three-dimensional curve, characterized in that, The method includes: Obtain the boundary information of the model to be processed, and generate a path wireframe and a corresponding topological curve representation of the path wireframe based on the boundary information; The full contour edges of the model to be processed are synthesized according to the topological curve representation, and the full contour edges are converted into discrete topological curve representations. The discrete topological curve representation is sampled to obtain several sampling points; The offset point set is determined based on the normal vector of the surface to which each sampling point belongs and the tangent vector of each sampling point on the discrete topology curve, including: determining the light compensation direction corresponding to each sampling point based on the product of the normal vector and the tangent vector, and determining the offset of each sampling point based on the light compensation direction to obtain the offset point set; The target processing path is generated based on the set of offset points.

2. The method as described in claim 1, characterized in that, The boundary information includes: several contour edges and their corresponding endpoint coordinates; The steps of obtaining the boundary information of the model to be processed, and generating path wireframes and corresponding topological curve representations of the path wireframes based on the boundary information, include: Obtain the contour edges and corresponding endpoint coordinates of the model to be processed; Based on the coordinates of each endpoint, the contour edges are spliced ​​together to obtain the path wireframe corresponding to the processing model; The path wireframe is converted into a composite topology chain curve, and the composite topology chain curve is trimmed to obtain a topology curve representation.

3. The method as described in claim 2, characterized in that, The step of converting the path wireframe into a composite topology chain curve and trimming the composite topology chain curve to obtain a topology curve representation includes: Convert the path wireframe into a composite topology chain curve; The range of topological parameters for the combined topological chain curve is determined based on the coordinates of each endpoint. The combined topology chain curves are self-consistently pruned according to the range of topology parameters to obtain a topology curve representation.

4. The method as described in claim 3, characterized in that, The step of synthesizing the full contour edges of the model to be processed based on the topological curve representation and converting the full contour edges into discrete topological curve representations includes: The topological curve representation is fitted according to preset tolerance conditions to obtain an approximate topological curve representation; Extract the geometric curves that satisfy the preset tolerance conditions from the approximate topological curves; The full contour edges of the model to be processed are generated based on the geometric curves, and the full contour edges are converted into discrete topological curve representations.

5. The method as described in claim 4, characterized in that, The step of sampling the discrete topological curve representation to obtain a plurality of sampling points includes: Using the Cauchy equal-distance sampling method, the discrete topological curve representation is sampled based on a preset discrete distance to obtain a number of sampling points.

6. The method as described in claim 5, characterized in that, The surface to which each sampling point belongs is the surface associated with the full contour edge.

7. The method as described in claim 6, characterized in that, The step of generating the target processing path based on the offset point set includes: Interpolation calculations are performed based on the set of offset points to generate spline curves; Using the spline curve as the centerline, a target processing path is generated to guide laser processing.

8. A laser processing path generation device for three-dimensional curves, characterized in that, The device includes: The first curve representation module is used to obtain the boundary information of the model to be processed, and generate a path wireframe and a corresponding topological curve representation of the path wireframe based on the boundary information. The second curve representation module is used to synthesize the full contour edge of the model to be processed according to the topological curve representation, and to convert the full contour edge into a discrete topological curve representation. The curve sampling module is used to sample the discrete topological curve representation to obtain a number of sampling points; A supplementary calculation module is used to determine the set of offset points based on 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. The path generation module is used to generate a target processing path based on the set of offset points; The supplementary calculation module is further configured to determine the light compensation direction corresponding to each sampling point based on the product of the normal vector and the tangent vector, and to determine the offset of each sampling point based on the light compensation direction to obtain the offset point set.

9. A laser processing path generation device for three-dimensional curves, characterized in that, The device includes: 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 laser processing path generation method for a three-dimensional curve as described in 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, it implements the steps of the laser processing path generation method for three-dimensional curves as described in any one of claims 1 to 7.