Linear processing path fairing method and system

Through the smoothing method of quadratic B-spline curves, the continuous tiny straight line segments of complex workpieces are replaced, which solves the problems of large data volume and frequent changes in processing direction, achieves more efficient processing path smoothing, and improves processing efficiency and surface quality. .

CN118732606AActive Publication Date: 2024-10-01WUHAN HUAZHONG NUMERICAL CONTROL +1

Patent Information

Application Number
CN202410712943.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-01
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

In the existing technology, the processing path data of complex workpieces is large and the processing direction changes frequently, resulting in low processing speed and insufficient surface finish. The feed rate fluctuates greatly, which affects the processing efficiency.

Method used

Smooth quadratic B-spline curves are used to replace continuous tiny straight line segments. By constructing auxiliary point sets, determining control points and internal control points, the smoothness of the linear processing path is achieved, meeting error requirements and line segment length constraints, and ensuring G2 continuity.

Benefits of technology

It effectively reduces feed rate fluctuations, improves the quality of processed surfaces, increases processing efficiency, is suitable for high-speed processing of discrete paths, and improves the kinematic performance of CNC machine tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732606A_ABST
    Figure CN118732606A_ABST
Patent Text Reader

Abstract

The invention discloses a linear processing path fairing method and system, and the method comprises the steps: S1, constructing an auxiliary point set according to a linear processing path through employing a line segment length constraint and a maximum approximation error constraint; s2, on the basis of the auxiliary point set, determining specific positions of head and tail control points of a biquadratic B-spline curve of an approximation straight line segment meeting error requirements through convex hull properties of the biquadratic B-spline curve; s3, calculating to obtain a plurality of internal control points based on the specific positions and under the constraint that the curvature values of the adjacent spline curves at the joint points are equal; s4, obtaining a target quadratic B spline curve according to the control points; and S5, smoothing the linear processing path by adopting the target quadratic B-spline curve. According to the method, the precision requirement is met during path smoothing, G2 continuity is achieved at the data point, the kinematics performance of the numerical control machine tool during high-speed machining of the inflection point of the discrete path can be effectively improved, the method is suitable for machine tool machining, the real-time performance is good, and the machining efficiency can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer-aided manufacturing and numerical control machining, and in particular relates to a linear machining path smoothing method and system. Background Art

[0002] At present, for complex workpieces, the processing path described by continuous tiny straight line segments generated by CAD / CAM software often has the characteristics of large data volume and frequent changes in processing direction, which leads to defects such as low processing speed and insufficient smoothness of the processed surface. Summary of the invention

[0003] The purpose of the present invention is to overcome the defects of the prior art. The present invention provides a linear machining path smoothing method and system. The present invention adopts a smooth curve to replace the original continuous small straight line segments to achieve the purpose of trajectory smoothing, which is of great significance for reducing the fluctuation of feed rate, improving the surface quality of parts and improving machining efficiency.

[0004] In order to achieve the expected effect, the present invention adopts the following technical solutions:

[0005] The invention discloses a linear machining path smoothing method, comprising:

[0006] S1. According to the linear machining path, the auxiliary point set is constructed using the line segment length constraint and the maximum approximation error constraint;

[0007] S2. Based on the auxiliary point set, the specific positions of the first and last control points of the biquadratic B-spline curve that approximates the straight line segment that meets the error requirements are determined by the convex hull property of the quadratic B-spline curve;

[0008] S3. Based on the specific position and the constraint that the curvature values ​​of adjacent spline curves at the connection points are equal, several internal control points are calculated;

[0009] S4. Obtaining a target quadratic B-spline curve according to the control points;

[0010] S5. Use the target quadratic B-spline curve to smooth the linear machining path.

[0011] Furthermore, the S1 specifically includes:

[0012] Marking a number of shape value points on the linear processing path and forming a shape value point set;

[0013] Connect two adjacent type value points in the type value point set to form a type value point line segment, calculate the length of the type value point line segment and form a type value point line segment length set;

[0014] Set the maximum approximation error of the fitting curve according to the linear processing path;

[0015] An auxiliary point is constructed for each type value point in the type value point set to form an auxiliary point set, and the auxiliary point set is respectively subject to the constraints of the type value point line segment length set and the maximum approximation error of the fitting curve.

[0016] Furthermore, constructing an auxiliary point for each type value point in the type value point set and forming an auxiliary point set specifically includes:

[0017] Let the type value point set be Q i ,i=0,1,…n, let the auxiliary point set be P i ,i=0,1,2…,2n+1, n is a positive integer greater than or equal to 2, point P 2i ,Q i ,P 2i+1 The three points are on the same straight line, and the straight line is connected to the line segment Q i-1 Q i+1 Parallel to the straight line.

[0018] Furthermore, the auxiliary point set is respectively subject to the constraints of the type value point segment length set and the constraint of the maximum approximation error of the fitting curve, specifically including:

[0019] Two adjacent auxiliary points P in the auxiliary point set 2i and P 2i+1 The line segment length is subject to the constraints of the type value point line segment length set, and the auxiliary point P 2i To the value point line segment Q i-1 Q i The distance does not exceed the maximum approximation error of the fitting curve, the auxiliary point P 2i+1 To the value point line segment Q i Q i+1 The distance does not exceed the maximum approximation error of the fitting curve.

[0020] Furthermore, two adjacent auxiliary points in the auxiliary point set satisfy the following expression:

[0021]

[0022] Among them, l i,1 Auxiliary point P 2i To the value point Q i The distance, l i,2 Auxiliary point P 2i+1 To the value point Q i The distance, l i For line segment Q i Q i+1 length, ε is the maximum approximation error of the fitting curve, e i is the vector Q i-1 Q i+1The unit vector, α i,1 is the unit vector e i With vector Q i-1 Q i The angle, α i,2 is the unit vector e i With vector Q i Q i+1 Angle.

[0023] Furthermore, the line segment Q approximating the type value point i-1 Q i The biquadratic B-spline curve C 2i-1 (u) and C 2i (u) satisfies the following expression:

[0024]

[0025] Where N k,2 , k = 0, 1, 2, 3 is the quadratic B-spline basis function determined by the node vector u; Q 2i-1,k For curve C 2i-1 (u) control point; Q 2i,k For curve C 2i (u) control point; control point Q 2i-1,0 and type value point Q i-1 Coincident, control point Q 2i,3 and type value point Q i Coincidence; control point Q 2i-1,3 and Q 2i,0 Both with auxiliary point line segment P 2i-1 P 2i The midpoint of the control point Q 2i-1,1 and Q 2i-1,2 Located on line segment Q i-1 P 2i-1 and P 2i-1 P 2i On, and to the auxiliary point P 2i-1 The distances between the control points are equal; 2i,1 and Q 2i,2 Located on line segment P 2i-1 P 2i and P 2i Q i On, and to the auxiliary point P 2i The distances are equal.

[0026] Furthermore, the S3 specifically includes: based on the specific position, through two adjacent quadratic B-spline curves C i (u) and C i+1 The four parameters of (u) are calculated to obtain the internal control points under the constraint that the curvature values ​​at the connection points are equal.

[0027] Furthermore, the first parameter λ i,1 is the control point Q i,1 To auxiliary point P i The distance between the line segment Q i,0 P i The length l i,1 The ratio of the second parameter λ i,2 is the control point Q i,2 To auxiliary point P i The distance between the line segment Q i,3 P i The length l i,2 The ratio of the control point Q i,1 and Q i,2 To auxiliary point P i The distances are equal, so it satisfies

[0028] Furthermore, the third parameter λ i+1,1 Satisfies the following expression:

[0029]

[0030] Where b i+1 = l i,2 (1-λ i,2 ) 2 sinθ i+1 , a i+1 = l i+1,1 λ i,2 sinθ i ,θ i is the vector P i-1 P i With vector P i P i+1 The angle between.

[0031] The present invention also discloses a linear machining path smoothing system, comprising:

[0032] A collection module, used for collecting linear processing paths;

[0033] A smoothing module is used to smooth the linear machining path according to any of the methods described above.

[0034] Compared with the prior art, the invention has the following beneficial effects: the invention provides a linear machining path smoothing method and system, and the invention uses a biquadratic B-spline curve to approximate each straight line segment of the discrete machining path. Under the constraints of the approximation error and the line segment length, a pass-through point is generated and G is achieved at the pass-through point. 2The continuous smooth path solves the problems of feed rate fluctuation and poor processing quality in conventional discrete processing paths. Compared with the existing technology, this method meets the accuracy requirements when smoothing the path and achieves G at the shape value point. 2 It is continuous and can effectively improve the kinematic performance of CNC machine tools when processing discrete path turning points at high speed. It is suitable for machine tool processing, has good real-time performance, and can effectively improve processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 It is a schematic diagram of a smoothing process path of two consecutive straight line segments provided by an embodiment of the present invention.

[0037] Figure 2 It is a schematic diagram of the smoothing of a separate two-segment processing path provided by an embodiment of the present invention.

[0038] Figure 3 This is another linear processing path smoothing schematic diagram provided by an embodiment of the present invention.

[0039] Figure 4 The present invention provides a flow chart of a linear machining path smoothing method using biquadratic B-spline curve approximation. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] See also Figures 1 to 4 The present invention discloses a linear machining path smoothing method, comprising:

[0042] S1. According to the tool linear machining path, using the line segment length constraint and the maximum approximation error constraint, construct an auxiliary point set;

[0043] In one embodiment, the S1 specifically includes:

[0044] Marking a number of shape value points on the linear processing path and forming a shape value point set;

[0045] Connect two adjacent type value points in the type value point set to form a type value point line segment, calculate the length of the type value point line segment and form a type value point line segment length set;

[0046] Set the maximum approximation error of the fitting curve according to the linear processing path;

[0047] An auxiliary point is constructed for each type value point in the type value point set to form an auxiliary point set, and the auxiliary point set is respectively subject to the constraints of the type value point line segment length set and the maximum approximation error of the fitting curve.

[0048] Furthermore, constructing an auxiliary point for each type value point in the type value point set and forming an auxiliary point set specifically includes:

[0049] Let the type value point set be Q i ,i=0,1,…n, let the auxiliary point set be P i ,i=0,1,2…,2n+1, n is a positive integer greater than or equal to 2, point P 2i ,Q i ,P 2i+1 The three points are on the same straight line, and the straight line is connected to the line segment Q i-1 Q i+1 Parallel to the straight line.

[0050] Furthermore, the auxiliary point set is respectively subject to the constraints of the type value point segment length set and the constraint of the maximum approximation error of the fitting curve, specifically including:

[0051] Two adjacent auxiliary points P in the auxiliary point set 2i and P 2i+1 The line segment length is subject to the constraints of the type value point line segment length set, and the auxiliary point P 2i To the value point line segment Q i-1 Q i The distance does not exceed the maximum approximation error of the fitting curve, the auxiliary point P 2i+1 To the value point line segment Q i Q i+1 The distance does not exceed the maximum approximation error of the fitting curve.

[0052] Furthermore, two adjacent auxiliary points in the auxiliary point set satisfy the following expression:

[0053]

[0054] Among them, l i,1 Auxiliary point P 2i To the value point Q i The distance, l i,2 Auxiliary point P 2i+1 To the value point Q iThe distance, l i For line segment Q i Q i+1 length, ε is the maximum approximation error of the fitting curve, e i is the vector Q i-1 Q i+1 The unit vector, α i,1 is the unit vector e i With vector Q i-1 Q i The angle, α i,2 is the unit vector e i With vector Q i Q i+1 Angle.

[0055] P0 coincides with Q0, P 2n+1 With Q n Construct auxiliary point P1 so that line segment P1P2 is parallel to line segment Q0Q1 and quadrilateral P0P1P2Q1 is an isosceles trapezoid; construct auxiliary point P 2n So that line segment P 2n-1 P 2n With line segment Q n-1 Q n Parallel and quadrilateral P 2n+1 P 2n P 2n- 1Q n-1 is an isosceles trapezoid; thus the auxiliary points P1 and P 2n At the same time, the line segment length constraint and the maximum approximation error constraint are satisfied.

[0056] S2. Based on the auxiliary point set, the specific positions of the first and last control points of the biquadratic B-spline curve that approximates the straight line segment that meets the error requirements are determined by the convex hull property of the quadratic B-spline curve;

[0057] Further, approaching the value point line segment Q i-1 Q i The biquadratic B-spline curve C 2i-1 (u) and C 2i (u) satisfies the following expression:

[0058]

[0059] Where N k,2 , k=0,1,2,3 are the quadratic B-spline basis functions determined by the node vector u (the value of u is U=[0,0,0,0.5,1,1,1]); Q 2i-1,k For curve C 2i-1 (u) control point; Q 2i,k For curve C 2i (u) control point; control point Q 2i-1,0 and type value point Qi-1 Coincident, control point Q 2i,3 and type value point Q i Coincidence; control point Q 2i-1,3 and Q 2i,0 Both with auxiliary point line segment P 2i-1 P 2i The midpoint of the control point Q 2i-1,1 and Q 2i-1,2 Located on line segment Q i-1 P 2i-1 and P 2i-1 P 2i On, and to the auxiliary point P 2i-1 The distances between the control points are equal; 2i,1 and Q 2i,2 Located on line segment P 2i-1 P 2i and P 2i Q i On, and to the auxiliary point P 2i The distances are equal.

[0060] S3. Based on the specific position and the constraint that the curvature values ​​of adjacent spline curves at the connection points are equal, several internal control points are calculated;

[0061] In one embodiment, S3 specifically includes: based on the specific position, through two adjacent quadratic B-spline curves C i (u) and C i+1 (u) Four parameters, the internal control points are calculated under the constraint that the curvature values ​​at the connection points are equal.

[0062] In another embodiment, the first parameter λ i,1 is the control point Q i,1 To auxiliary point P i The distance between the line segment Q i,0 P i The length l i,1 The ratio of the second parameter λ i,2 is the control point Q i,2 To auxiliary point P i The distance between the line segment Q i,3 P i The length l i,2 The ratio of the control point Q i,1 and Q i,2 To auxiliary point P i The distances are equal, so it satisfies

[0063] In yet another embodiment, the third parameter λ i+1,1 Satisfies the following expression:

[0064]

[0065] Where b i+1 = l i,2 (1-λ i,2 ) 2 sinθ i+1 , a i+1 = l i+1,1 λ i,2 sinθ i ,θ i is the vector P i-1 P i With vector P i P i+1 The angle between.

[0066] By a i+1 >0,b i+1 >0, we can know:

[0067]

[0068] Assume that curve C i (u) The curvature at the junction is κ i , then:

[0069]

[0070] Let curve C i+1 (u) The curvature at the junction is κ i+1 , similarly we can get:

[0071]

[0072] because

[0073]

[0074] so

[0075]

[0076] According to the internal control point Q 2i,1 and Q 2i,2 To auxiliary point P 2i The distance between i+1,2 , the fourth parameter λ i+1,2 Satisfies the following expression:

[0077]

[0078] In summary, the approximation to the straight line segment Q i-1 Q i The double B-spline curve is C 2i-1 (u) and C 2i(u). If the first curve C 2i-1 The first parameter λ of (u) 2i-1,1 Given, the second parameter λ can be calculated 2i-1,2 and another spline curve C 2i (u) two parameters λ 2i,1 ,λ 2i,2 , and then all internal control points Q can be obtained 2i-1,1 ,Q 2i-1,2 ,Q 2i,1 ,Q 2i,2 .

[0079] S4. Obtaining a target quadratic B-spline curve according to the control points;

[0080] Specifically, the biquadratic B-spline curve used to approximate all the shape value point segments is obtained based on the obtained control points. i-1 Q i , according to the obtained control point Q 2i-1,k and Q 2i,k , k = 0, 1, 2, 3, we get curve C 2i-1 (u) and C 2i (u).

[0081] S5. Use the target quadratic B-spline curve to smooth the linear machining path.

[0082] The present invention uses a biquadratic B-spline curve to approximate each straight line segment of the discrete linear machining path, generates a pass point under the constraints of the maximum approximation error and the line segment length, and reaches G at the pass point. 2 The continuous smoothing path solves the problems of feed rate fluctuation and poor processing quality in conventional discrete processing paths. Compared with the existing technology based on quadratic B-spline curves, this method meets the accuracy requirements when smoothing the path and achieves G at the shape value point. 2 It is continuous and can effectively improve the kinematic performance of CNC machine tools when processing discrete path turning points at high speed. It is suitable for machine tool processing, has good real-time performance, and can effectively improve processing efficiency.

[0083] The present invention also discloses a linear machining path smoothing system, comprising:

[0084] A collection module, used for collecting linear processing paths;

[0085] A smoothing module is used to smooth the linear machining path according to any of the methods described above.

[0086] The system embodiments can be implemented one-to-one with the aforementioned method embodiments, and will not be described in detail here.

[0087] For complex workpieces, the processing path described by continuous tiny straight line segments generated by CAD / CAM software often has the characteristics of large data volume and frequent changes in processing direction, which leads to defects such as low processing speed and insufficient surface finish of the processed surface. Therefore, replacing the original continuous tiny straight line segments with smooth curves to achieve the purpose of trajectory smoothing is of great significance for reducing feed rate fluctuations, improving part surface quality and improving processing efficiency. The quadratic B-spline curve has the advantages of simple expression and low computational complexity, which can meet the subsequent real-time processing requirements. The trajectory smoothing method based on the quadratic B-spline curve of the present invention can achieve passing the type value point and reaching G at the type value point. 2 Smoothness.

[0088] Based on the same inventive concept, the present invention also discloses an electronic device, which may include: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. The processor may call the logic instructions in the memory to execute a linear machining path smoothing method, including:

[0089] S1. According to the linear machining path, the auxiliary point set is constructed using the line segment length constraint and the maximum approximation error constraint;

[0090] S2. Based on the auxiliary point set, the specific positions of the first and last control points of the biquadratic B-spline curve that approximates the straight line segment that meets the error requirements are determined by the convex hull property of the quadratic B-spline curve;

[0091] S3. Based on the specific position and the constraint that the curvature values ​​of adjacent spline curves at the connection points are equal, several internal control points are calculated;

[0092] S4. Obtaining a target quadratic B-spline curve according to the control points;

[0093] S5. Use the target quadratic B-spline curve to smooth the linear machining path.

[0094] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0095] On the other hand, an embodiment of the present invention further provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, and when the program instructions are executed by a computer, the computer can execute a linear machining path smoothing method provided by the above-mentioned method embodiments, including:

[0096] S1. According to the linear machining path, the auxiliary point set is constructed using the line segment length constraint and the maximum approximation error constraint;

[0097] S2. Based on the auxiliary point set, the specific positions of the first and last control points of the biquadratic B-spline curve that approximates the straight line segment that meets the error requirements are determined by the convex hull property of the quadratic B-spline curve;

[0098] S3. Based on the specific position and the constraint that the curvature values ​​of adjacent spline curves at the connection points are equal, several internal control points are calculated;

[0099] S4. Obtaining a target quadratic B-spline curve according to the control points;

[0100] S5. Use the target quadratic B-spline curve to smooth the linear machining path.

[0101] In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, a linear machining path smoothing method provided in the above embodiments is implemented, including:

[0102] S1. According to the linear machining path, the auxiliary point set is constructed using the line segment length constraint and the maximum approximation error constraint;

[0103] S2. Based on the auxiliary point set, the specific positions of the first and last control points of the biquadratic B-spline curve that approximates the straight line segment that meets the error requirements are determined by the convex hull property of the quadratic B-spline curve;

[0104] S3. Based on the specific position and the constraint that the curvature values ​​of adjacent spline curves at the connection points are equal, several internal control points are calculated;

[0105] S4. Obtaining a target quadratic B-spline curve according to the control points;

[0106] S5. Use the target quadratic B-spline curve to smooth the linear machining path.

[0107] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A linear machining path smoothing method, characterized in that: include: S1. According to the linear machining path, the auxiliary point set is constructed using the line segment length constraint and the maximum approximation error constraint; S2. Based on the auxiliary point set, the specific positions of the first and last control points of the biquadratic B-spline curve that approximates the straight line segment that meets the error requirements are determined by the convex hull property of the quadratic B-spline curve; S3. Based on the specific position and the constraint that the curvature values ​​of adjacent spline curves at the connection points are equal, several internal control points are calculated; S4. Obtaining a target quadratic B-spline curve according to the control points; S5. Use the target quadratic B-spline curve to smooth the linear machining path.

2. A linear machining path smoothing method as claimed in claim 1, characterized in that: The S1 specifically includes: Marking a number of shape value points on the linear processing path and forming a shape value point set; Connect two adjacent type value points in the type value point set to form a type value point line segment, calculate the length of the type value point line segment and form a type value point line segment length set; Set the maximum approximation error of the fitting curve according to the linear processing path; An auxiliary point is constructed for each type value point in the type value point set to form an auxiliary point set, and the auxiliary point set is respectively subject to the constraints of the type value point line segment length set and the maximum approximation error of the fitting curve.

3. A linear machining path smoothing method as claimed in claim 2, characterized in that: The step of constructing an auxiliary point for each type value point in the type value point set and forming an auxiliary point set specifically includes: Let the type value point set be Q i ,i=0,1,…n, let the auxiliary point set be P i ,i=0,1,2…,2n+1, n is a positive integer greater than or equal to 2, point P 2i ,Q i ,P 2i+1 The three points are on the same straight line, and the straight line is connected to the line segment Q i-1 Q i+1 Parallel to the straight line.

4. A linear machining path smoothing method as claimed in any one of claim 3, characterized in that: The auxiliary point set is respectively subject to the constraints of the type value point line segment length set and the constraints of the maximum approximation error of the fitting curve, specifically including: Two adjacent auxiliary points P in the auxiliary point set 2i and P 2i+1 The line segment length is subject to the constraints of the type value point line segment length set, and the auxiliary point P 2i To the value point line segment Q i-1 Q i The distance does not exceed the maximum approximation error of the fitting curve, the auxiliary point P 2i+1 To the value point line segment Q i Q i+1 The distance does not exceed the maximum approximation error of the fitting curve.

5. A linear machining path smoothing method as claimed in claim 4, characterized in that: Two adjacent auxiliary points in the auxiliary point set satisfy the following expression: Among them, l i,1 Auxiliary point P 2i To the value point Q i The distance, l i,2 Auxiliary point P 2i+1 To the value point Q i The distance, l i For line segment Q i Q i+1 length, ε is the maximum approximation error of the fitting curve, e i is the vector Q i-1 Q i+1 The unit vector, α i,1 is the unit vector e i With vector Q i-1 Q i The angle, α i,2 is the unit vector e i With vector Q i Q i+1 Angle.

6. A linear machining path smoothing method as claimed in claim 5, characterized in that: Approaching the value point line segment Q i-1 Q i The biquadratic B-spline curve C 2i-1 (u) and C 2i (u) satisfies the following expression: Where N k,2 , k = 0, 1, 2, 3 is the quadratic B-spline basis function determined by the node vector u; Q 2i-1,k For curve C 2i-1 (u) control point; Q 2i,k For curve C 2i (u) control point; control point Q 2i-1,0 and type value point Q i-1 Coincident, control point Q 2i,3 and type value point Q i Coincidence; control point Q 2i-1,3 and Q 2i,0 Both with auxiliary point line segment P 2i-1 P 2i The midpoints of the control points coincide with each other, and the control points Q 2i-1,1 and Q 2i-1,2 Located on line segment Q i-1 P 2i-1 and P 2i-1 P 2i On, and to the auxiliary point P 2i-1 The distances of the control points are equal; 2i,1 and Q 2i,2 Located on line segment P 2i-1 P 2i and P 2i Q i On, and to the auxiliary point P 2i The distances are equal.

7. A linear machining path smoothing method as claimed in claim 6, characterized in that: The S3 specifically includes: based on the specific position, through two adjacent quadratic B-spline curves C i (u) and C i+1 (u) Four parameters, the internal control points are calculated under the constraint that the curvature values ​​at the connection points are equal.

8. A linear machining path smoothing method as claimed in claim 7, characterized in that: The first parameter λ i,1 is the control point Q i,1 To auxiliary point P i The distance between the line segment Q i,0 P i The length l i,1 The ratio of the second parameter λ i,2 is the control point Q i,2 To auxiliary point P i The distance between the line segment Q i,3 P i The length l i,2 The ratio of the control point Q i,1 and Q i,2 To auxiliary point P i The distances are equal, so it satisfies 9. A linear machining path smoothing method as claimed in claim 8, characterized in that: The third parameter λ i+1,1 Satisfies the following expression: Where b i+1 = l i,2 (1-λ i,2 ) 2 sinθ i+1 , a i+1 = l i+1,1 λ i,2 sinθ i ,θ i is the vector P i-1 P i With vector P i P i+1 The angle between.

10. A linear machining path smoothing system, characterized in that: include: A collection module, used for collecting linear processing paths; A smoothing module is used to smooth a linear machining path according to the method described in any one of claims 1-9.

Citation Information

Patent Citations

  • Method for smoothing inflection point of discrete processing path

    CN105955194A

  • Local smoothing method having controllable errors and capable of passing predetermined cutter location points of scattering processing path

    CN107255998A

  • Method of realizing cutter path parameter arc length based on three times of Bezier curve interpolations

    CN107450472A

  • Continuous online real-time analysis fairing method for robot milling tool path C3

    CN112847364A

  • B spline corner fairing method and system based on maximum curvature optimization

    CN115145146A

Cited By

  • Method and device for generating tool path in five-axis numerical control machine tool and storage medium

    CN119828587A