G2 continuous fillet curved surface generation method

By using 5th order B-spline curves with 8 control points and a variable acceleration energy optimization method, a G2 continuous rounded curve with easy-to-control shape is generated, which solves the problem of unintuitive free parameters and limited control capabilities in the existing technology, and realizes the Efficient rounded surface generation and robustness, suitable for automotive manufacturing and other fields.

CN118940340AActive Publication Date: 2024-11-12ZHEJIANG UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410996137.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-12
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

When generating G2 continuous rounded curved surfaces, the free parameters for controlling the surface shape are not intuitive enough, difficult for users to understand and have limited control capabilities, and cannot generate a smooth rounded curved surface under bad boundaries.

Method used

The 5th order B-spline curve with 8 control points is used to represent the cross-sectional curve of the rounded curve surface. The surface shape is optimized by minimizing the variable acceleration energy of the curve, and 6 degrees of freedom are fixed, so that the user only needs to control 1 free parameter. It can generate rounded surfaces with better shapes and provide robustness in boundary situations.

Benefits of technology

It enhances the controllability and robustness of rounded curved surfaces, improves the surface calculation efficiency, and can be widely used in scenarios with high-gloss compliance requirements in automobile manufacturing and other fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940340A_ABST
    Figure CN118940340A_ABST
Patent Text Reader

Abstract

The invention discloses a G2 continuous fillet curved surface generation method. The method comprises the following steps: firstly, determining a boundary curve and a reference curve, and sampling to generate a section plane; then, according to the position relation between the current section plane and the boundary curve, G2 continuity information of the section curve is determined; a fifth-order B-spline curve is used for representing a section curve, then a Newton iteration method is used for conducting optimization iteration on control points of the section curve, variable acceleration energy of the generated section curve is minimized, and therefore the optimal section curve of the current section plane is obtained; and repeating the sampling and optimization iteration process, and finally generating the fillet curved surface according to all the optimal section curves. According to the method, the fillet curved surface control parameters easy to understand are provided for a user, and the robustness of the fillet curved surface is improved; and the method can be widely applied to scenes with high fairness requirements on transition between the curved surfaces in mechanical manufacturing modeling, such as automobile manufacturing and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to a curved surface generation method in the field of computer-aided design, and in particular relates to a G2 continuous fillet curved surface generation method. Background Art

[0002] Filleting is a geometry processing technology widely used in computer-aided design (CAD), computer-aided manufacturing (CAM), 3D modeling and other engineering design fields. Filleting is designed to eliminate sharp corners in a model, and to achieve safety, aesthetics, or to prevent stress concentration and meet dynamics requirements by adding smooth surface transitions to the edges or vertices of the model.

[0003] Filleting involves a variety of methods, including determining the fillet boundary through user input, generating fillet surfaces, and topology modification. One of the key steps is the fillet surface generation method. The method uses the fillet surface boundary information calculated in the previous step to generate a transition surface that meets certain continuity requirements at the boundary.

[0004] Geometric continuity is a concept used to indicate the smoothness of the connection between two curve segments or surface segments. Compared with parametric continuity, geometric continuity does not change according to different parameterization modes, so it has been more widely used. G0 continuity requires that the endpoints of two curves or surfaces are in the same position at the connection; G1 continuity is based on G0 continuity and requires that the tangent directions at the connection are the same; G2 continuity is based on G1 and requires that the curvature of the curve or surface at the connection is also the same.

[0005] There are many methods to generate rounded surfaces. Hartmann (Hartmann E. Parametric Gnblending of curves and surfaces [J]. The Visual Computer, 2001, 17: 1-13) proposed a method for generating rounded surfaces that can ensure Cn continuity, but this method requires parameterization of the base surface. When applied, local parameterization of the base surface is required, and the generated rounded surface has a specific parameter representation, which is not convenient to introduce into general CAD systems. Bloor et al. (Bloor M, Wilson M. Generating blend surfaces using partial differential equations [J]. Computer-aided design, 1989, 21: 165-171) proposed a method for constructing rounded surfaces based on solving partial differential equations, but the solution of partial differential equations is difficult and inefficient. Filkins (Filkins P, Tuohy S, Patrikalakis N. Computational methods for blending surface approximation [J]. Engineering with Computers, 1993, 9: 49-62) constructed a fillet surface by fitting the G2 continuity information at the boundary of the base surface using non-uniform rational B-spline surfaces (NURBS). NURBS surfaces are widely used in modern CAD systems due to their good properties, so this method can be well supported. However, this generation method has two shortcomings: first, the free parameters it provides for controlling the shape of the fillet surface are not intuitive enough and difficult for users to understand; second, the control ability provided by its free parameters is limited. Based on this, Parasolid (SIEMENS.Parasolid[EB / OL].2018.https: / / www.plm.automation.siemens.com / global / en / products / plm-components / paras olid.html) introduces additional control points to enable users to intuitively control the shape of the fillet surface. However, this method relies on the tangent direction of the fillet boundary and cannot generate a sufficiently smooth fillet surface in some cases. Summary of the invention

[0006] In view of the shortcomings of the prior art, the present invention proposes a method for generating a G2-continuous rounded surface with easy-to-control shape. The present invention is based on Filkins' rounded surface fitting method, and uses a 5th-order B-spline curve with 8 control points to represent the cross-sectional curve of the rounded surface, wherein the first three pairs of control points are determined by the G0, G1, and G2 continuity information of the boundary, and have four additional degrees of freedom, and the fourth pair of control points is used to additionally control the shape of the rounded surface, and its position is determined according to the user input parameters, and two additional degrees of freedom are provided. Then, the surface shape is optimized by minimizing the variable acceleration energy of the curve (the integral of the square of the modulus length of the third-order derivative), thereby fixing 6 of the degrees of freedom, so that the user only needs to control 1 free parameter to obtain a rounded surface with a better shape. In addition, by limiting the range of control points of the B-spline curve, the present invention can still provide a more reasonable rounded surface under poor boundary conditions, and has strong robustness.

[0007] The technical solution of the present invention is as follows:

[0008] 1. A G2 continuous fillet surface generation method

[0009] Step 1: Determine the boundary curve and the reference curve;

[0010] Step 2: Generate a section plane after sampling the boundary curve and the reference curve;

[0011] Step 3: Determine the G2 continuity information of the cross-section curve according to the positional relationship between the current section plane and the boundary curve;

[0012] Step 4: Use a fifth-order B-spline curve to represent the cross-sectional curve. Based on the G2 continuity information of the cross-sectional curve, use the Newton iteration method to optimize and iterate the control points of the B-spline curve so that the variable acceleration energy of the generated cross-sectional curve is minimized, thereby obtaining the optimal cross-sectional curve of the current cutting plane.

[0013] Step 5: Repeat steps 2 to 4, sample the boundary curve and the reference curve again, and obtain the optimal cross-sectional curve of the corresponding cutting plane. Finally, generate the fillet surface according to all the optimal cross-sectional curves.

[0014] In the step 2, a point is sampled on each of the two boundary curves and the reference curve, and a section plane is determined by three points obtained by sampling.

[0015] In step 3, the positions, tangents, normals, and curvatures of the three sampling points in the section plane are calculated, and the intersection point P between a straight line starting from a sampling point on a boundary curve and extending tangentially along the sampling point and a straight line starting from a sampling point on another boundary curve and extending tangentially along the sampling point is calculated. A , the position, tangent, normal, curvature and intersection point P of the three sampling points AThe positions constitute the G2 continuity information of the cross-section curve.

[0016] The step 4 is specifically as follows:

[0017] 4.1) Using G2 continuity information, construct 8 control point vectors with six free parameters to be determined; set the initial values ​​of the six free parameters;

[0018] 4.2) Calculate the variable acceleration energy of the cross-sectional curve generated by the control under the current free parameters;

[0019] 4.3) Calculate the partial derivative matrix of the variable acceleration energy with respect to the control point vector, as well as the partial derivative matrix D and the second-order partial derivative matrix G of the control point vector with respect to the free parameter vector;

[0020] 4.4) Calculate the Hessian matrix of the variable acceleration energy with respect to the free parameters by calculating all matrices obtained in 4.3), and obtain the new free parameters by calculating the Hessian matrix;

[0021] 4.5) According to the new free parameters, repeat 4.2)-4.4) until the free parameter vector converges and the optimal free parameters are obtained, thereby generating the optimal cross-sectional curve of the current cutting plane.

[0022] In 4.1), the formulas for the positions of the first to eighth control points C0-C7 are as follows:

[0023] C0=P0

[0024] C7=P1

[0025]

[0026] V0=l0T0

[0027] V1=l1T1

[0028] When P A - The direction of P0 is opposite to the direction of the unit tangent vector T0 or P A -When the direction of P1 is opposite to the direction of the unit tangent vector T1:

[0029]

[0030] When P A -P0 has the same direction as the unit tangent vector P0 and T A -When the direction of P1 is the same as the direction of the unit tangent vector T1:

[0031]

[0032] Among them, α0, α1, β0, β1, γ0, γ1 are the first free parameter to the sixth free parameter, ρ represents the "height" of the fillet surface, P0 and P1 are the sampling point positions on the two boundary curves, T0 and T1 are the unit tangent vectors of the cross-section curve at the sampling point P0 and the sampling point P1, κ0 and κ1 are the curvatures of the cross-section curve at the sampling point P0 and the sampling point P1, V0 and V1 are the directions from the sampling point P0 and the sampling point P1 to the intersection point P A , l0 and l1 are the lengths of vector V0 and vector V1 respectively, N0 and N1 are the principal normal vectors of the cross-section curve at sampling point P0 and sampling point P1 respectively, || is the distance, and ER is the vector length adjustment ratio.

[0033] In 4.2), the calculation formula of the variable acceleration energy of the cross-sectional curve is as follows:

[0034] f=aC T AC

[0035] C=[C0,C1,C2,C3,C4,C5,C6,C7] T , a=480

[0036]

[0037] Wherein, f represents the variable acceleration energy of the cross-section curve, T represents the transpose operation, C represents the control point vector, C0, C1, C2, C3, C4, C5, C6, C7 represent the first control point position to the eighth control point position respectively, a represents the energy coefficient, and A represents the energy matrix.

[0038] In 4.3), the formula of the partial derivative matrix of the control point vector to the free parameter vector is as follows:

[0039]

[0040] Among them, α0, α1, are the first free parameter and the second free parameter, P0 and P1 are the sampling point positions on the two boundary curves, T0 and T1 are the unit tangent vectors of the cross-section curve at the sampling point P0 and the sampling point P1, κ0 and k1 are the curvatures of the cross-section curve at the sampling point P0 and the sampling point P1, V0 and V1 are the directions from the sampling point P0 and the sampling point P1 to the intersection point P A , l0 and l1 are the lengths of vector V0 and vector V1 respectively, N0 and N1 are the principal normal vectors of the cross-section curve at sampling point P0 and sampling point P1 respectively.

[0041] 2. A computer device

[0042] The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method when executing the computer program.

[0043] 3. A computer-readable storage medium

[0044] The storage medium stores a computer program, which implements the steps of the method when executed by a processor.

[0045] IV. A COMPUTER PROGRAM PRODUCT

[0046] The product comprises a computer program / instructions which, when executed by a processor, implement the steps of the method.

[0047] The beneficial effects of the present invention are:

[0048] The present invention uses a sextic non-uniform B-spline curve with four pairs of control points as the cross-sectional curve of the fillet surface. In addition to using the G2 continuity information at the endpoints, a new user control parameter is added to control the shape of the fillet surface, thereby enhancing the controllability of the fillet surface and enhancing the robustness of the fillet surface by limiting the data range. In addition, the use of variable acceleration energy to optimize the surface shape can complete the calculation of the fillet surface with higher efficiency. The method can be widely used in scenes with high smoothness requirements for transitions between surfaces in mechanical manufacturing modeling, such as automobile manufacturing. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a flow chart of the method of the present invention;

[0050] Figure 2 It is a schematic diagram of the cross-section curve and the user input parameters;

[0051] Figure 3 It is a result diagram of the G2 continuous fillet surface constructed by the present invention;

[0052] Figure 4 It is a schematic diagram of the robustness of the rounded curved surface of the present invention. DETAILED DESCRIPTION

[0053] The present invention will be described in detail below based on the accompanying drawings and preferred embodiments, and the purpose and effects of the present invention will become more clear. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0054] Since G2 continuous fillet surfaces are often used in the field of automobile manufacturing, the following example selects a local case in the automobile manufacturing process that can demonstrate the advantages of the present invention. In addition to the above example, the present invention can also be applied to various occasions that require high smoothness of curved surface connections. Figure 3(a) is a local structure of a car shell. A section of it is cut to explain the generation method. The structure consists of two surfaces and their common edges. The two surfaces are nearly parallel within a certain range from the edges.

[0055] like Figure 1 As shown, a method for generating a G2 continuous fillet surface according to an embodiment of the present invention comprises the following steps:

[0056] Step 1: According to the production or design requirements of the car, the designer determines the range of the fillet and inputs it in the form of a radius or distance parameter. Based on the parameter, a boundary curve is determined on each of the two base surfaces S0 (u0, v0) and S1 (u1, v1). The curve defines the position where the fillet surface is connected to the base surface, thereby determining the range of the fillet of the local shell of the car. The two boundary curves are parameterized in the same way and coincide with the parameter lines of the fillet surface u=0, u=1, etc. The reference curve is used to assist in determining the cross-sectional position of the fillet surface. It can be the intersection of the two base surfaces or the intersection of the boundary curve offset along the normal of the base surface. The reference curve is parameterized in the same way as the two boundary curves. In this case, it is the offset d of each of the two base surfaces. i ,i=0,1. For the base surface S i Offset distance d along the normal i , and two offset surfaces are obtained. The intersection of the two offset surfaces gives the reference curve R(t). R(t) is projected onto S0(u0,v0) and S1(u1,v1) to obtain the boundary curves B0(u0(t),v0(t)) and B1(u1(t),v1(t)).

[0057] Step 2: Generate a section plane after sampling the boundary curve and the reference curve; specifically, sample a point on each of the two boundary curves and the reference curve, the three samples are not collinear, and the section plane is determined by the three points obtained by sampling.

[0058] Step 3: Determine the G2 continuity information of the cross-section curve according to the positional relationship between the current cutting plane and the boundary curve; specifically, calculate the position, tangent, normal, and curvature of the three sampling points in the cutting plane, and calculate the intersection point P between a straight line starting from a sampling point on a boundary curve and extending tangentially along the sampling point and a straight line starting from a sampling point on another boundary curve and extending tangentially along the sampling point A . Figure 2 (a) is a cross-sectional view of the local structure of the car shell before the fillet operation. The two arcs in the figure represent the original car shell surface, and points P0 and P1 are sampling points on the boundary line. The positions, tangents, normals, curvatures and intersection points P of the three sampling points are A The positions constitute the G2 continuity information of the cross-section curve.

[0059] The cross-section curve is a sextic non-uniform B-spline curve with knot vectors {0,0,0,0,0,0,0.5,0.5,1,1,1,1,1,1} and 8 control points C. i ,i=0,1,...,7. The cross-sectional curve r(t) is expressed as: Among them B i,5 (t) is the B-spline basis function. Section normal N = (P0-P r )×(P1-P r );Base surface S i In P i Normal direction N i ; Base surface S i In P i Tangential T i =(-1) i N×N i ; Base surface S i In P i The curvature κ i .

[0060] Step 4: Use a fifth-order B-spline curve to represent the cross-sectional curve. Based on the G2 continuity information of the cross-sectional curve, use the Newton iteration method to optimize and iterate the control points of the B-spline curve so that the variable acceleration energy of the generated cross-sectional curve is minimized, thereby obtaining the optimal cross-sectional curve of the current cutting plane.

[0061] Figure 2 (b) shows the eight control points of the B-spline curve. The eight control points can completely control the shape of the current section curve, and the section curve further controls the shape of the generated fillet surface. Figure 3 (b) is a local image of the car shell after the rounding operation is finally completed. The light-colored lines in the figure represent the control points of each cross-sectional curve. The figure shows the influence of the control points on the local smooth transition of the car shell.

[0062] Figure 2 The h in (b) is given by Figure 2 The maximum height that the highest point of the transition fillet surface can reach after the partial shell of the car is smoothed, as determined by V0 and V1 (see step 5) in (a). This maximum height limits the sharpness of the shape of the partial shell of the car. ρ is a user input parameter that controls the ratio of the actual height of the highest point of the fillet surface to the maximum height, thereby controlling the shape of the partial shell of the car after the fillet operation. Specifically, the larger ρ is, the "sharper" the transition fillet is, and vice versa.

[0063] Step 4 is as follows:

[0064] 4.1) Using G2 continuity information, construct 8 control point vectors with six free parameters to be determined. The 8 control points form four control point pairs. The formulas for the positions of the first to eighth control points C0-C7 are as follows:

[0065] C0=P0

[0066] C7=P1

[0067]

[0068]

[0069] V0=l0T0

[0070] V1=l1T1

[0071] When P A - The direction of P0 is opposite to the direction of the unit tangent vector T0 or P A -When the direction of P1 is opposite to the direction of the unit tangent vector T1:

[0072] l0=0.1|P0-P1|

[0073] l1=0.1|P0-P1|

[0074] When P A - The direction of P0 is the same as the direction of the unit tangent vector T0 and P A -When the direction of P1 is the same as the direction of the unit tangent vector T1:

[0075]

[0076] Among them, α0, α1, β0, β1, γ0, γ1 are the first to sixth free parameters, and ρ is a user input parameter, representing the "height" of the fillet surface, such as Figure 2 As shown in (b), P0 and P1 are the sampling point positions on the two boundary curves, T0 and T1 are the unit tangent vectors of the cross-section curve at the sampling points P0 and P1, κ0 and κ1 are the curvatures of the cross-section curve at the sampling points P0 and P1, V0 and V1 are the directions from the sampling points P0 and P1 to the intersection point P A , l0 and l1 are the lengths of vector V0 and vector V1 respectively, N0 and N1 are the principal normal vectors of the cross-section curve at sampling point P0 and sampling point P1 respectively, || is the distance, and ER is the vector length adjustment ratio.

[0077] According to experience, the initial values ​​of the six free parameters are set as follows:

[0078] α i =3ρl i

[0079]

[0080] γ i =0.3(1-ρ)

[0081] 4.2) Based on the G2 continuity information of the cross-sectional curve, the variable acceleration energy of the cross-sectional curve generated by the control under the current free parameters is calculated;

[0082] Among them, the variable acceleration energy of the cross-sectional curve is After expansion and sorting, the calculation formula for the variable acceleration energy of the cross-sectional curve is as follows:

[0083] f=aC T AC

[0084] C=[C0,C1,C2,C3,C4,C5,C6,C7] T , a=480

[0085]

[0086] Among them, f represents the variable acceleration energy of the cross-sectional curve, T represents the transposition operation, C represents the control point vector, C0, C1, C2, C3, C4, C5, C6, C7 represent the first control point position to the eighth control point position, a represents the energy coefficient, and A represents the energy matrix. aA is the matrix of the quadratic form f(C), and the common factor a of the matrix elements is moved outside the matrix for convenience.

[0087] 4.3) Calculate the partial derivative vector of the variable acceleration energy with respect to the control point vector With the second-order partial derivative matrix And calculate the partial derivative matrix D of the control point vector to the free parameter vector M and the second-order partial derivative matrix G;

[0088] 4.3), the formula of the partial derivative matrix of the control point vector with respect to the free parameter vector is as follows:

[0089]

[0090] Among them, α0, α1 are the first free parameter and the second free parameter.

[0091] The second-order partial derivative matrix G of the control point vector to the free parameter vector M satisfies the following formula:

[0092]

[0093] Among them, [] is a matrix, g ijk is the ijk-th matrix element, i=0…7, j=0…5, k=0…5.

[0094] The matrix G is a sparse three-dimensional matrix of 8*6*6, only and is not zero, and the rest of the matrix elements are zero.

[0095] 4.4) Calculate the Hessian matrix of the variable acceleration energy to the free parameters by obtaining all matrices calculated in 4.3), the formula is as follows:

[0096] H=2a(D T AD+C T AG)

[0097] Then obtain new free parameters through Hessian matrix calculation;

[0098] 4.5) According to the new free parameters, repeat 4.2)-4.4) until the free parameter vector converges (that is, the difference between the free parameter vectors obtained by two calculations is less than the preset value), and obtain the optimal free parameters, thereby generating the optimal cross-sectional curve of the current cutting plane.

[0099] Step 5: Repeat steps 2 to 4, sample the boundary curve and reference curve again, and obtain the optimal cross-sectional curve r(t i ), and finally generate fillet surfaces based on all the optimal section curves, such as Figure 3 As shown in (b). At this point, the fillet surface that meets the G2 continuity requirements in the automobile production process has been generated. In the subsequent modeling process, the fillet surface will replace the common edges of the two surfaces in the partial shell of the automobile, as well as part of the surface, so that the two surfaces maintain a high smoothness transition at the connection.

[0100] When max(|P A -P0|,|P A -P1|)>|P0-P1|, the present invention imposes restrictions on l0 and l1. This restriction is to prevent the fillet surface from producing an undesirable shape that does not meet the actual design requirements of the car under undesirable boundary conditions. Figure 4 (a) is a bad case where l0 and l1 are not restricted. Figure 4 (b) is the generated result after restricting l0 and l1.

[0101] So far, an embodiment method step of the present invention has been given. Taking the smoothing operation of local surface connection in the automobile design process as an example, the present invention uses a sextic non-uniform B-spline curve with four pairs of control points as the cross-sectional curve of the fillet surface. In addition to using the G2 continuity information at the endpoints, new user control parameters are added to control the shape of the fillet surface, enhance the controllability of the fillet surface, and enhance the robustness of the fillet surface by limiting the data range. In addition, the use of variable acceleration energy to optimize the surface shape can complete the calculation of the fillet surface with higher efficiency.

[0102] On the one hand, the present invention also proposes a computer device, which includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the steps of a G2 continuous fillet surface generation method.

[0103] On the one hand, the present invention further proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for generating a G2 continuous fillet surface are implemented.

[0104] On the one hand, the present invention also proposes a computer program product, which includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of a method for generating a G2 continuous fillet surface are implemented.

[0105] Finally, it should be noted that the above embodiments and explanations are only used to illustrate the technical solution of the present invention rather than to limit it. Those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope disclosed in the technical solution of the present invention, which should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for generating a G2 continuous fillet surface, characterized in that: The following steps are involved: Step 1: Determine the boundary curve and the reference curve; Step 2: Generate a section plane after sampling the boundary curve and the reference curve; Step 3: Determine the G2 continuity information of the cross-section curve according to the positional relationship between the current section plane and the boundary curve; Step 4: Use a fifth-order B-spline curve to represent the cross-sectional curve. Based on the G2 continuity information of the cross-sectional curve, use the Newton iteration method to optimize and iterate the control points of the B-spline curve so that the variable acceleration energy of the generated cross-sectional curve is minimized, thereby obtaining the optimal cross-sectional curve of the current cutting plane. Step 5: Repeat steps 2 to 4, sample the boundary curve and the reference curve again, and obtain the optimal cross-sectional curve of the corresponding cutting plane. Finally, generate the fillet surface according to all the optimal cross-sectional curves.

2. A method for generating a G2 continuous fillet surface according to claim 1, characterized in that: In the step 2, a point is sampled on each of the two boundary curves and the reference curve, and a section plane is determined by three points obtained by sampling.

3. A method for generating a G2 continuous fillet surface according to claim 1, characterized in that: In step 3, the positions, tangents, normals, and curvatures of the three sampling points in the section plane are calculated, and the intersection point P between a straight line starting from a sampling point on a boundary curve and extending tangentially along the sampling point and a straight line starting from a sampling point on another boundary curve and extending tangentially along the sampling point is calculated. A , the position, tangent, normal, curvature and intersection point P of the three sampling points A The positions constitute the G2 continuity information of the cross-section curve.

4. A method for generating a G2 continuous fillet surface according to claim 1, characterized in that: The step 4 is specifically as follows: 4.1) Using G2 continuity information, construct 8 control point vectors with six free parameters to be determined; set the initial values ​​of the six free parameters; 4.2) Calculate the variable acceleration energy of the cross-sectional curve generated by the control under the current free parameters; 4.3) Calculate the partial derivative matrix of the variable acceleration energy with respect to the control point vector, as well as the partial derivative matrix D and the second-order partial derivative matrix G of the control point vector with respect to the free parameter vector; 4.4) Calculate the Hessian matrix of the variable acceleration energy with respect to the free parameters by calculating all matrices obtained in 4.3), and obtain the new free parameters by calculating the Hessian matrix; 4.5) According to the new free parameters, repeat 4.2)-4.4) until the free parameter vector converges and the optimal free parameters are obtained, thereby generating the optimal cross-sectional curve of the current cutting plane.

5. A method for generating a G2 continuous fillet surface according to claim 4, characterized in that: In 4.1), the formulas for the positions of the first to eighth control points C0-C7 are as follows: C0=P0 C7=P1 V0=l0T0 V1=l1T1 When P A - The direction of P0 is opposite to the direction of the unit tangent vector T0 or P A -When the direction of P1 is opposite to the direction of the unit tangent vector T1: l0=0.1|P0-P1| l1=0.1|P0-P1| When P A - The direction of P0 is the same as the direction of the unit tangent vector T0 and P A -When the direction of P1 is the same as the direction of the unit tangent vector T1: Among them, α0, α1, β0, β1, γ0, γ1 are the first free parameter to the sixth free parameter, ρ represents the "height" of the fillet surface, P0 and P1 are the sampling point positions on the two boundary curves, T0 and T1 are the unit tangent vectors of the cross-section curve at the sampling point P0 and the sampling point P1, κ0 and κ1 are the curvatures of the cross-section curve at the sampling point P0 and the sampling point P1, V0 and V1 are the directions from the sampling point P0 and the sampling point P1 to the intersection point P A , l0 and l1 are the lengths of vector V0 and vector V1 respectively, N0 and N1 are the principal normal vectors of the cross-section curve at sampling point P0 and sampling point P1 respectively, || is the distance, and ER is the vector length adjustment ratio.

6. A method for generating a G2 continuous fillet surface according to claim 4, characterized in that: In 4.2), the calculation formula of the variable acceleration energy of the cross-sectional curve is as follows: f=aC T AC C=[C0,C1,C2,C3,C4,C5,C6,C7] T ,a=480 Wherein, f represents the variable acceleration energy of the cross-section curve, T represents the transpose operation, C represents the control point vector, C0, C1, C2, C3, C4, C5, C6, C7 represent the first control point position to the eighth control point position respectively, a represents the energy coefficient, and A represents the energy matrix.

7. A method for generating a G2 continuous fillet surface according to claim 4, characterized in that: In 4.3), the formula of the partial derivative matrix of the control point vector to the free parameter vector is as follows: Among them, α0, α1, are the first free parameter and the second free parameter, P0 and P1 are the sampling point positions on the two boundary curves, T0 and T1 are the unit tangent vectors of the cross-section curve at the sampling point P0 and the sampling point P1, κ0 and κ1 are the curvatures of the cross-section curve at the sampling point P0 and the sampling point P1, V0 and V1 are the directions from the sampling point P0 and the sampling point P1 to the intersection point P A , l0 and l1 are the lengths of vector V0 and vector V1 respectively, N0 and N1 are the principal normal vectors of the cross-section curve at sampling point P0 and sampling point P1 respectively.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Novel method for modeling B spline surface

    CN101908235A

  • Approximately developable surface design method of interpolation given boundary curve

    CN108022298A

  • Construction method of smooth approximate developable surface

    CN110097633A

  • Method for generating variable-radius rounded corner curved surface of edge rounded corner

    CN117237531A

  • System and program for supporting design

    JP2011150530A