CN117371222A - Curve fairing optimization method based on discrete curvature and multistage optimization points - Google Patents
Curve fairing optimization method based on discrete curvature and multistage optimization points Download PDFInfo
- Publication number
- CN117371222A CN117371222A CN202311375312.6A CN202311375312A CN117371222A CN 117371222 A CN117371222 A CN 117371222A CN 202311375312 A CN202311375312 A CN 202311375312A CN 117371222 A CN117371222 A CN 117371222A
- Authority
- CN
- China
- Prior art keywords
- curve
- optimization
- fairing
- point
- discrete
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000005457 optimization Methods 0.000 title claims abstract description 206
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000007547 defect Effects 0.000 claims abstract description 67
- 239000013598 vector Substances 0.000 claims description 22
- 230000008859 change Effects 0.000 claims description 20
- 230000002950 deficient Effects 0.000 claims description 3
- 238000005452 bending Methods 0.000 claims description 2
- 238000012937 correction Methods 0.000 abstract description 12
- 238000013461 design Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 12
- 230000003247 decreasing effect Effects 0.000 description 4
- 238000007781 pre-processing Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000003672 processing method Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 239000002131 composite material Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012804 iterative process Methods 0.000 description 1
- 238000003754 machining Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/11—Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
- G06F17/13—Differential equations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Analysis (AREA)
- Mathematical Physics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Computational Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Geometry (AREA)
- Evolutionary Computation (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- Operations Research (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)
- Control Of Metal Rolling (AREA)
Abstract
The invention provides a curve fairing optimization method based on discrete curvature and multistage optimization points, which uses interpolation points on a curve as an optimization object, obtains defect points on the curve based on the discrete curvature of each interpolation point and uses curvature constraint values as judgment references, and replaces the defect points of the curve with multistage optimization points to realize correction optimization of the curve. And establishing a fairing criterion applicable to any curve from three dimensions of the fairing degree, the discrete curvature and the discrete deflection rate, and finally forming a fairing optimization method applicable to any curve. According to the method, interpolation points on the curve are used as optimization objects, so that the curve is subjected to finer fairing optimization; the multistage optimization point correction method is provided, and the regulation and control of the curve fairing optimization speed are realized through stage selection. And a fairing criterion for analyzing the curve fairing is established from three dimensions, so that the curve fairing connotation is enriched. The method has universality for the fairing optimization of any curve in space, and has important theoretical significance and use value for engineering practical application and computer graphic design.
Description
Technical Field
The invention relates to the technical field of curve fairing optimization, in particular to a curve fairing optimization method based on discrete curvature and multistage optimization points.
Background
The fields of computer graphic design, industrial design and manufacture and the like have certain requirements on the smoothness of curves. For example, during machine tool machining, the smoothness of the feed path profile affects the precision and surface finish of the formed workpiece and is related to the useful life of the tool; in the planning of a composite material fiber curve laying path, the influence of the smoothness of the laying path on a forming member is large, the poor smoothness of the laying path can cause overlarge local curvature of a laying filament bundle, and the fiber is easy to generate buckling deformation to influence the quality of the composite material member. Therefore, curve fairing optimization is widely used in a plurality of fields as an important technical means. With the progress of technology, the requirements of various fields on curve smoothness are higher and higher, and the types of the faced curves are more complex and various, so that a fairing optimization technology suitable for any curve is urgently needed. Curve fairing optimization currently has a technical bottleneck mainly in two aspects: a curve fairing criterion and a curve fairing processing method. The curve fairing criteria in the prior art are numerous in the aspect of the fairing criteria, but the fairing criteria applicable to any curve are not proposed, and the analysis dimension for curve fairing is too single. Most of the existing processing methods in the aspect of the fairing processing method focus on correcting curve control points, and the method is easy to cause the curve to generate larger deformation in the fairing optimization process so as to deviate from the change track of the original curve.
Disclosure of Invention
The invention aims to provide a curve fairing optimization method based on discrete curvature and multistage optimization points, which aims to solve the technical problems that the existing curve fairing optimization is poor in universality, the analysis dimension of the curve fairing is too single, and the deformation of a curve in the fairing optimization process is too large.
The technical problems solved by the invention can be realized by adopting the following scheme:
the curve fairing optimization method based on the discrete curvature and the multistage optimization points is characterized by comprising the following steps of: the method comprises the following steps:
s101, establishing a curve model before optimization, generating a curve before optimization, and solving an interpolation point set P on the curve 0 ={Q i }(i=1,2,…,n);
S102, calculating curve light smoothness E before optimization, setting a discrete curvature constraint value [ K ], and selecting an optimization point level N;
s103, solving interpolation point { Q } on curve i Discrete curvature K of } (i=1, 2, …, n) i Using defect point discrimination K i -[K]Obtaining a defect point set PQ and a defect point number set BH according to the rule that the number is more than or equal to 0;
s104, solving N-level optimization points to obtain optimization points to replace defect pointsGenerating an optimized curve interpolation point set P 1 ;
S105, solving an optimized curve interpolation point set P 1 Discrete curvature of each point in the graph, and defect point discrimination type K is utilized i -[K]Obtaining a defect point set and a defect point number set of an optimized curve according to the rule that the number is more than or equal to 0;
s106, judging whether the optimized finishing condition is met after the fairing optimization: the defect point number set is smaller than a set value; if not, repeating the steps S104 and S105 until the curve interpolation point set PUP is satisfied, and generating an optimized curve;
s107, solving the smooth degree and the discrete curvature of the optimized curve, and when the curve is a space curve, further requiring the discrete flexibility rate of the solution curve before and after optimization; and analyzing the light compliance before and after the curve optimization according to the light compliance before and after the light compliance optimization, the discrete curvature and the discrete flexibility rate.
Further: the solution formula of the curve light smoothness E is as follows:
wherein l i =||Q i+1 -Q i And I is two adjacent points Q on the curve i ,Q i+1 Is the vector modulo length, e i Is the adjacent two points Q on the curve i ,Q i+1 Is a unit polyline vector, ||e i+1 -e i The I is the variation modular length of the two adjacent unit polyline vectors, e i Solving the formula as:
Further:indicating that the interpolation point at the ith is the jth defect point, which is adjacent to two points Q i-1 And Q i+1 Triangle formed +.>Mid-point +.>Is a defective point->Is parallel to the bottom line Q i- 1 Q i+1 The method comprises the steps of carrying out a first treatment on the surface of the The N-level optimization point is N-1 level optimization point as defect point, and the midpoint of the median is calculated again>The original defect point is directly cross-level replaced by the optimized point>
Further: when the curve is a plane curve, the interpolation point Q on the curve is shown in step S103 i Is of discrete curvature K i The solving formula is as follows:
wherein alpha is i ,β i At point Q for the curve i The specific solving formulas of the first-order vector and the second-order vector are as follows:
where h is the defined step size.
Further: when the curve is a space curve, the interpolation point Q on the curve is shown in step S103 i Is of discrete curvature K i The solving formula is as follows:
wherein alpha is i ,β i At point Q for the curve i The specific solving formulas of the first-order vector and the second-order vector are as follows:
where h is the defined step size.
Further: in step S106, the termination condition is optimized: the defect point number set is smaller than a set value, which is at least 3.
Further: discrete bending rate tau of space curve i The expression is:
wherein ρ is i At point Q for the curve i A third order director at.
Further: in step S107, according to the discrete curvature and the discrete flexibility rate of the curve, a discrete curvature and a discrete flexibility rate change curve before and after the curve fairing optimization are obtained, the uniformity of the discrete curvature and the discrete flexibility rate change before and after the curve optimization is compared and analyzed, and the fairing before and after the curve optimization is qualitatively analyzed; and quantitatively analyzing the forward and backward light compliance of the curve optimization according to the light compliance value.
Further: in step S107, a solution curve fairing optimization rate η is also required, and the curve optimization degree is determined, where the expression is:
where E is the smoothness of the curve before optimization and EUP is the smoothness of the curve after optimization.
The curve fairing optimization method based on discrete curvature and multistage optimization points uses interpolation points on any curve in space as an optimization object, acquires defect points on the curve based on the discrete curvature of each interpolation point and uses curvature constraint values as judgment references, and realizes correction optimization of the curve by replacing the defect points of the curve with the optimized points. And establishing a fairing criterion for evaluating the smoothness of the curve from three dimensions of the smoothness, the discrete curvature and the discrete flexibility rate, and finally forming a fairing optimization method suitable for any curve. According to the invention, interpolation points on the curve instead of control points are used as specific research objects, so that the curve is subjected to finer fairing optimization, and larger deformation of the curve after the curve is optimized by a curve optimization method based on the control points is avoided; and a multistage optimization point correction method is provided, and the regulation and control of the curve fairing optimization speed are realized through stage selection. In addition, a fairing criterion for analyzing the curve fairing is established from three dimensions, so that the curve fairing connotation is enriched. The method has universality and high efficiency for fairing optimization of any curve, and has important theoretical significance and use value for engineering practical application and computer graphic design.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a first embodiment and a second embodiment of a method for optimizing the fairing of a curve;
FIG. 2 is a flow chart of a planar curve model preprocessing in accordance with an embodiment of the present invention;
FIG. 3 is a graph showing a plane before a fairing optimization according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a solution principle of N-level optimization points according to the first and second embodiments of the present invention;
FIG. 5 is a graph of a planar curve fairing optimization iterative process in accordance with an embodiment of the invention;
FIG. 6 is a graph of the discrete curvature change before smoothing optimization of a planar curve in accordance with an embodiment of the present invention;
FIG. 7 is a graph of the variation of discrete curvature after smoothing optimization of a planar curve in accordance with an embodiment of the present invention;
FIG. 8 is a graph of a plane after a fairing optimization in accordance with an embodiment of the invention;
FIG. 9 is a flow chart of a second space curve model preprocessing in accordance with an embodiment of the present invention;
FIG. 10 is a graph of space before fairing optimization in accordance with embodiments of the invention;
FIG. 11 is a diagram of a second space curve fairing optimization iteration process according to an embodiment of the invention;
FIG. 12 is a graph of the discrete curvature change before a second space curve fairing optimization in accordance with an embodiment of the invention;
FIG. 13 is a graph of discrete flex rate variation before fairing optimization of a second space curve in accordance with an embodiment of the invention;
FIG. 14 is a graph of the discrete curvature change after a second space curve fairing optimization in accordance with an embodiment of the invention;
FIG. 15 is a graph of discrete flex rate change after a two-dimensional curve fairing optimization in accordance with an embodiment of the invention;
FIG. 16 is a graph showing the space after the fairing optimization according to the second embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
Example 1
Fig. 1 to 8 show a curve fairing optimization method based on discrete curvature and multistage optimization points according to the present embodiment, where the curve fairing optimization method is used for optimizing a plane curve, as shown in fig. 1, and specifically includes the following steps:
s101, preprocessing an optimized curve model, establishing a curve model before optimization, generating a curve before optimization, and solving an interpolation point set P on the curve 0 ={Q i }(i=1,2,…,n)。
Specifically, as shown in fig. 2, a plane curve model is built in CAD software, key node coordinate information on the curve is extracted, and the coordinate point information is used to generate an optimized front plane curve shown in fig. 3 in MATLAB.
Specifically, the interpolation point in step S101 is a specific study object of the fairing optimization in this embodiment, and is different from the conventional fairing algorithm in that the fairing optimization of the curve is implemented by modifying the control point on the curve. The control point is used for regulating and controlling the whole contour of the curve, the interpolation point not only can determine the contour of the local area of the curve, but also has a mesoscopic characteristic, and the local property of the curve can be reflected to the greatest extent, so that the mesoscopic correction and optimization of the defect part of the interpolation point on the curve can realize the improvement of the smoothness on the macro of the curve.
S102, calculating the light smoothness E of the curve of the plane before optimization, setting a discrete curvature constraint value [ K ], and selecting a proper optimization point level N according to the profile characteristics and the light smoothness of the curve.
Specifically, the solution formula of the curve light smoothness E is as follows:
wherein l i =||Q i+1 -Q i And I is two adjacent points Q on the curve i ,Q i+1 Is the vector modulo length, e i Is the adjacent two points Q on the curve i ,Q i+1 Is a unit polyline vector, ||e i+1 -e i The I is the variation modular length of the two adjacent unit polyline vectors, e i The solving formula is as follows:
the discrete curvature constraint value [ K ] is a judging standard of defect points on a curve, the value of [ K ] determines the height of a curve fairing optimization standard, and the smaller the discrete curvature constraint value [ K ] is selected, the number of marked defect points is increased, and the requirement on curve fairing is also improved. On the contrary, the value of [ K ] is larger, the number of marked defect points is also reduced, and the requirement on curve smoothness is also reduced.
Specifically, in this embodiment, a plane curve discrete curvature constraint value [ K ] =0.015 is set, and the selected optimization point level N is equal to 5.
S103, solving interpolation point { Q } on curve i Discrete curvature K of } (i=1, 2, …, n) i Using defect point discrimination K i -[K]And (3) obtaining a defect point set PQ and a defect point number set BH according to the rule that the number is more than or equal to 0.
Specifically, the interpolation point Q on the plane curve i Is of discrete curvature K i The solving formula is as follows:
wherein alpha is i ,β i At point Q for a plane curve i One of the upper partA first order director and a second order director, which respectively represent the plane curve at point Q i Tangential vector and normal vector at α i ×β i The method has no special meaning in the plane curve, the curvature of the plane curve obtained by solving has positive value and negative value, the positive and negative properties have no influence on the curve smoothness, therefore, the discrete curvature takes positive value during solving, and alpha in the plane curve i ,β i The specific solving formula is as follows:
wherein the method comprises the steps of
Wherein h is a defined step length, the smaller h is, the more accurate the solution of discrete curvature is, in this embodiment, the step length h=0.001 is set, and the point Q on the curve is obtained by a calculation method of forward difference quotient i Is a first order director and a second order director of the model.
S104, from the defect point that i is more than or equal to 2Starting correction optimization, determining defect point +.>Adjacent point Q of (2) i-1 And Q i+1 Obtaining an optimization point +.>Is replaced by the determined optimized point for the defect point +.>Generating a primary optimization curve interpolation point set P 1 Completing one-time fairing optimization and solving curve smoothness E 1 。
Specifically, the embodiment gives a multistage optimization point correction method by utilizing the geometric characteristics of the defect points on the curve, the optimization point level in the embodiment is the correction point type adopted in the curve fairing optimization process,indicating that the interpolation point at the ith is the jth defect point, which is adjacent to two points Q i-1 And Q i+1 The resultant->Too small, curve at point ∈ ->The curvature at that point will be too great. As shown in FIG. 4, the three points are +.>Mid-point +.>As defective spot->Is parallel to the bottom line Q i-1 Q i+1 The i-th interpolation point on the curve is +.>Will increase significantly, effecting a reduction in curvature at that point. The second level optimizing point is to make the first levelThe optimized point is also regarded as a defect point, and the midpoint of the median is calculated again to directly cross-grade replace the original defect point +.>The N-level optimization point is regarded as a defect point, and the midpoint of the median is calculated again>The original defect point is replaced by the direct trans-grade>(the principle of geometric solution of the first to third order optimization points is shown from left to right in fig. 4).
The N-level optimizing point is obtained by setting the optimizing point level N, the dropping speed of the curve curvature is greatly improved in a mode that the N-level optimizing point directly replaces the original curve defect point, and the N-level optimizing point is used by selecting and adjusting the optimizing point levelThe defect points are directly replaced, and the selective regulation and control of the curve fairing optimization speed can be realized.
Specifically, in this embodiment, the plane curve is first-order optimized pointAnd N-level optimization Point->The solving formula is as follows:
specifically, in this embodiment, five-stage optimization point replacement curve defect points are solved according to an optimization point solving method and a formula.
S105, solving an optimized curve interpolation point set P 1 Discrete curvature of each point in the graph and utilizing defect point discrimination type K i -[K]Not less than 0, obtaining a defect point set PQ of a primary optimization curve 1 And defect point number set BH 1
S106, judging whether the optimized termination condition is met after the fairing optimization, wherein the termination condition is as follows: the defect point number set is smaller than a set value; if not, repeating the steps S104 and S105 until the optimization is satisfied, and if the optimization is satisfied, obtaining an optimized curve interpolation point set PUP so as to generate an optimized curve;
specifically, the set value of the optimized termination condition in this embodiment is at least three.
The condition is not only the termination condition of the fairing optimization, but also the precondition of the optimization point solution. When the head end and the tail end of the curve are defect points, the left adjacent point or the right adjacent point is not corrected and optimized through the optimized point, and the curvature value of the curve is gradually reduced by the correction of the defect points in the neighborhood.
In the embodiment, the planar curve is subjected to loop optimization correction until the optimization termination condition is met, the smoothness of the curve is solved in the loop iteration process, and the smoothness in the loop optimization process is used for drawing the curve of the fairing optimization iteration process in the embodiment as shown in fig. 5.
And S107, solving the smoothness and the discrete curvature of the optimized curve, and evaluating the smoothness of the curve before and after optimization according to the smoothness and the discrete curvature before and after optimization.
Specifically, according to the discrete curvature of the plane curve, a discrete curvature change curve before the plane curve fairing optimization shown in fig. 6 and a discrete curvature change curve after the plane curve fairing optimization shown in fig. 7 are obtained, the uniformity of the discrete curvature change before and after the optimization is compared and analyzed, and the smoothness before and after the curve optimization is qualitatively analyzed; and quantitatively analyzing the forward and backward light smoothness of the curve according to the forward and backward light smoothness value of the curve.
The more uniform the discrete curvature and discrete flex rate change of the curve, the better the curve's smoothness can be assessed qualitatively, the less the curve's smoothness, and the better the curve's smoothness can be assessed quantitatively.
Further, in step S107, a solution curve fairing optimization rate η is also required, which indicates the degree of curve fairing optimization, and the larger η, the higher the degree of improving the fairing of the optimized curve, the expression is as follows:
where E is the smoothness of the curve before optimization and EUP is the smoothness of the curve after optimization.
Comparing fig. 6 and fig. 7, it is obvious that the uniformity of the plane curve discrete curvature change curve of the present embodiment is greatly improved, and the smoothness of the curve in the present embodiment can be qualitatively evaluated to be optimized. As can be seen from fig. 5, the light smoothness of the curve in the fairing optimization process is in a decreasing trend, the light smoothness of the plane curve is decreased from e= 0.4736 to eup=0.0326, the curve fairing optimization rate is as high as η=93%, and the curve fairing in the embodiment can be quantitatively evaluated to be optimized.
In the embodiment, a curve fairing criterion is established from two dimensions of discrete curvature and fairing, and the curve fairing is rated from two layers of qualitative and quantitative mutually, so that the feasibility and the high efficiency of the curve fairing optimization method are verified.
Fig. 8 shows a schematic plan view of a fairing-optimized planar curve in this embodiment, and a curve is generated in MATLAB by using the interpolation point set PUP after the fairing optimization, so that it is obvious that the geometric appearance of the curve is greatly optimized, and the line is smoother.
According to the planar curve fairing optimization method based on the discrete curvature and the multistage optimization points, interpolation points on the curve are used as specific research objects, so that the curve is subjected to finer fairing optimization, the defect that the curve is excessively deformed after the optimization of the existing method is avoided, the geometric characteristics of the defect points on the curve are utilized to provide a solving and correcting method of the multistage optimization points, and the adjustment and control of the fairing optimization speed of the curve are realized through the stage selection of the optimization points. In the embodiment, a fairing criterion for evaluating the smoothness of the curve is established from two dimensions of the smoothness and the discrete curvature, and the smoothness of the optimized curve is evaluated in a complementary manner from a qualitative layer and a quantitative layer, so that a fairing optimization method for a plane curve is finally formed.
Example two
Fig. 1, fig. 4, and fig. 9-16 show a curve fairing optimization method based on discrete curvature and multistage optimization points according to the present embodiment, where the curve fairing optimization method is used for optimizing a space curve on a half cylinder, as shown in fig. 1, and specifically includes the following steps:
s101, preprocessing an optimized curve model, establishing a curve model before optimization, generating a curve before optimization, and solving an interpolation point set P on the curve 0 ={Q i }(i=1,2,…,n);
Specifically, as shown in fig. 9, a space curve model is built in CAD software, key node coordinate information on a curve and curve key node information are extracted, and a space curve shown in fig. 10 is generated in MATLAB by using the coordinate point information. Aiming at the geometric characteristics of a space curve, a curve model arranged on the space curve is required to be selected to obtain the coordinate information of all key nodes of the curve, the curve is generated in MATLAB by a fitting method, and the curve are combined together.
S102, calculating the light smoothness E of the space curve before optimization, setting a discrete curvature constraint value [ K ], and selecting a proper optimization point level N according to the profile characteristics and the light smoothness of the curve;
specifically, the solution formula of the curve smoothness E is the same as that of the planar curve.
Specifically, in this embodiment, a space curve discrete curvature constraint value [ K ] =0.18 is set, and the selected optimization point level N is equal to 5.
S103, solving interpolation point { Q } on curve i Discrete curvature K of } (i=1, 2, …, n) i Using defect point discrimination K i -[K]And (3) obtaining a defect point set PQ and a defect point number set BH according to the rule that the number is more than or equal to 0.
Specifically, the interpolation point Q on the spatial curve i Is of discrete curvature K i The solving formula is as follows:
wherein alpha is i ,β i At point Q for space curve i First and second order directors, alpha i ,β i At point Q for space curve i Tangential vector and principal normal vector at a i ×β i =γ i Representation point Q i The specific solving formula of the unit auxiliary normal vector is as follows:
where h is a defined step size, and in this embodiment, the step size h=0.001 is set.
S104, from the defect point that i is more than or equal to 2Starting correction optimization, determining defect point +.>Adjacent point Q of (2) i-1 And Q i+1 Obtaining an optimization point +.>Is replaced by the coordinates of the calculated optimization pointsDefective point exchange->Generating a primary optimization curve interpolation point set P 1 Completing one-time fairing optimization and solving curve smoothness E 1 。
Specifically, as shown in fig. 4, the solution principle of the N-level optimization point in this embodiment is the same as that of the planar curve.
First order optimization point of space curve in this embodimentThe solving formula is as follows:
by recursion, the N-level optimization points of the space curveThe coordinate solving formula is
Wherein (x) i ,y i ,z i ) Is the defect pointCoordinates (x) i-1 ,y i-1 ,z i-1 ) Is Q i-1 Coordinates (x) i+1 ,y i+1 ,z i+1 ) Is Q i+1 Coordinates of->Is->Is defined by the coordinates of (a).
Specifically, in this embodiment, five-stage optimization point replacement curve defect points are solved according to an optimization point solving method and a formula.
S105, solving an optimized curve interpolation point set P 1 Discrete curvature of each point in the graph and utilizing defect point discrimination type K i -[K]Not less than 0, obtaining a defect point set PQ of a primary optimization curve 1 And defect point number set BH 1
S106, judging whether the optimized termination condition is met after the fairing optimization, wherein the termination condition is as follows: the defect point number set is smaller than a set value; if not, repeating the steps S104 and S105 until the optimization is satisfied, and if the optimization is satisfied, obtaining an optimized curve interpolation point set PUP so as to generate an optimized curve;
specifically, the set value of the optimized termination condition in this embodiment is at least three.
In the embodiment, the space curve is subjected to loop optimization correction until the optimization termination condition is met, the smoothness of the curve is solved in the loop iteration process, and the smoothness in the loop optimization process is used for drawing the curve of the fairing optimization iteration process in the embodiment as shown in fig. 11.
S107, solving the smooth degree and the discrete curvature of the optimized curve, and solving the discrete flexibility rate of the space curve before and after optimization; and evaluating the smoothness of the curve before and after the optimization according to the smoothness, the discrete curvature and the discrete flexibility rate of the curve before and after the optimization.
Further, the discrete flexibility ratio is an amount characterizing the degree of torsion of the space curve, and the discrete flexibility ratio τ i The expression is:
wherein alpha is i And beta i Similar to the meaning and solving method described in step S103, ρ i At point Q for the curve i A third order director at.
Specifically, according to the discrete curvature and the discrete flexibility ratio of the space curve, a discrete curvature change curve before the space curve fairing optimization shown in fig. 12, a discrete curvature change curve after the space curve fairing optimization shown in fig. 14, a discrete flexibility ratio change curve before the space curve fairing optimization shown in fig. 13 and a discrete flexibility ratio after the space curve fairing optimization shown in fig. 15 are obtained, the discrete curvature and the uniformity of the discrete flexibility ratio change before and after the space curve fairing optimization are compared and analyzed, and the fairing before and after the space curve fairing optimization is qualitatively analyzed; and quantitatively analyzing the forward and backward fairing of the curve according to the forward and backward fairing value of the curve.
The more uniform the discrete curvature and discrete flex rate change of the curve, the better the curve's smoothness can be assessed qualitatively, the less the curve's smoothness, and the better the curve's smoothness can be assessed quantitatively.
The calculation method of the curve fairing optimization rate η in this embodiment is the same as that of the first embodiment.
Comparing fig. 12, 14 and fig. 13 and 15, it is apparent that the uniformity of the space curve discrete curvature and the discrete flexibility rate change curve in this embodiment is greatly improved, and the smoothness of the curve in this embodiment can be qualitatively evaluated to be optimized. As can be seen from fig. 11, the light compliance of the curve in the fairing optimization process is in a decreasing trend, the light compliance of the spatial curve is decreased from e= 21.4118 to eup= 1.5954, the fairing optimization rate of the curve is as high as η=92.5%, and the curve fairing in the embodiment can be quantitatively evaluated to be optimized.
In the embodiment, a curve fairing criterion is established from three dimensions of discrete curvature, discrete deflection and fairing, and the curve fairing is rated from two layers of qualitative and quantitative mutually to supplement, so that the feasibility and the high efficiency of the curve fairing optimization method are verified.
Fig. 16 shows a schematic diagram of a space curve after the fairing optimization in this embodiment, and a curve is generated in MATLAB by using the interpolation point set PUP after the fairing optimization, so that it is obvious that the geometric appearance of the curve is greatly optimized, and the line is smoother.
According to the space curve fairing optimization method based on the discrete curvature and the multistage optimization points, interpolation points on the curve are used as specific research objects, so that the curve is subjected to finer fairing optimization, the defect that the curve is excessively deformed due to processing of the existing method is avoided, the geometric characteristics of the defect positions on the curve are utilized, the method for correcting the fairing by the multistage optimization points is provided, and the adjustment and control of the fairing optimization speed of the curve are realized through the selection of the optimization points. In the embodiment, a curve fairing criterion is established from three dimensions of the fairing degree, the discrete curvature and the discrete flexibility, and the smoothness of the optimized curve is evaluated in a complementary mode from a qualitative layer and a quantitative layer, so that a fairing optimization method applicable to any curve is finally formed.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (9)
1. The curve fairing optimization method based on the discrete curvature and the multistage optimization points is characterized by comprising the following steps of: the method comprises the following steps:
s101, establishing a curve model before optimization, generating a curve before optimization, and solving an interpolation point set P on the curve 0 ={Q i }(i=1,2,…,n);
S102, calculating curve light smoothness E before optimization, setting a discrete curvature constraint value [ K ], and selecting an optimization point level N;
s103, solving interpolation point { Q } on curve i Discrete curvature K of } (i=1, 2, …, n) i Using defect point discrimination K i -[K]Obtaining a defect point set PQ and a defect point number set BH according to the rule that the number is more than or equal to 0;
s104, solving N-level optimization points to obtain optimization points to replace defect pointsGenerating an optimized curve interpolation point set P 1 ;
S105, solving an optimized curve interpolation point set P 1 Discrete curvature of each point in the graph, and defect point discrimination type K is utilized i -[K]Lack of optimized curve not less than 0A set of trap points and a set of defect point numbers;
s106, judging whether the optimized finishing condition is met after the fairing optimization: the defect point number set is smaller than a set value; if not, repeating the steps S104 and S105 until the curve interpolation point set PUP is satisfied, and generating an optimized curve;
s107, solving the smooth degree and the discrete curvature of the optimized curve, and when the curve is a space curve, further requiring the discrete flexibility rate of the solution curve before and after optimization; and analyzing the light compliance before and after the curve optimization according to the light compliance before and after the light compliance optimization, the discrete curvature and the discrete flexibility rate.
2. The method for optimizing curve fairing based on discrete curvature and multi-stage optimization points according to claim 1, wherein: the solution formula of the curve light smoothness E is as follows:
wherein l i =||Q i+1 -Q i And I is two adjacent points Q on the curve i ,Q i+1 Is the vector modulo length, e i Is the adjacent two points Q on the curve i ,Q i+1 Is a unit polyline vector, ||e i+1 -e i The I is the variation modular length of the two adjacent unit polyline vectors, e i The solving formula is as follows:
3. the method for optimizing curve fairing based on discrete curvature and multi-stage optimization points according to claim 1, wherein:indicating that the interpolation point at the ith is the jth defect point, which is adjacent to two points Q i-1 And Q i+1 Triangle formedShape of a Chinese characterMid-point +.>Is a defective point->Is parallel to the bottom line Q i-1 Q i+1 The method comprises the steps of carrying out a first treatment on the surface of the The N-level optimization point is N-1 level optimization point as defect point, and the midpoint of the median is calculated again>The original defect point is directly replaced by the cross-stage
4. The method for optimizing curve fairing based on discrete curvature and multi-stage optimization points according to claim 1, wherein: when the curve is a plane curve, the interpolation point Q on the curve is shown in step S103 i Is of discrete curvature K i The solving formula is as follows:
wherein alpha is i ,β i At point Q for the curve i The specific solving formulas of the first-order vector and the second-order vector are as follows:
where h is the defined step size.
5. The method for optimizing curve fairing based on discrete curvature and multi-stage optimization points according to claim 1, wherein: when the curve is a space curve, the interpolation point Q on the curve is shown in step S103 i Is of discrete curvature K i The solving formula is as follows:
wherein alpha is i ,β i At point Q for the curve i The specific solving formulas of the first-order vector and the second-order vector are as follows:
where h is the defined step size.
6. The method for optimizing curve fairing based on discrete curvature and multi-stage optimization points according to claim 1, wherein: in step S106, the termination condition is optimized: the defect point number set is smaller than a set value, which is at least 3.
7. The method for optimizing curve fairing based on discrete curvature and multi-stage optimization points as recited in claim 5, further comprising: discrete bending rate tau of space curve i The expression is:
wherein ρ is i At point Q for the curve i A third order director at.
8. The method for optimizing curve fairing based on discrete curvature and multi-stage optimization points as recited in claim 7, further comprising: in step S107, according to the discrete curvature and the discrete flexibility rate of the curve, a discrete curvature and a discrete flexibility rate change curve before and after the curve fairing optimization are obtained, the uniformity of the discrete curvature and the discrete flexibility rate change before and after the curve optimization is compared and analyzed, and the fairing before and after the curve optimization is qualitatively analyzed; and quantitatively analyzing the forward and backward light compliance of the curve optimization according to the light compliance value.
9. The method for optimizing curve fairing based on discrete curvature and multi-stage optimization points according to claim 1, wherein: in step S107, a solution curve fairing optimization rate η is also required, and the curve optimization degree is determined, where the expression is:
where E is the smoothness of the curve before optimization and EUP is the smoothness of the curve after optimization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311375312.6A CN117371222B (en) | 2023-10-23 | 2023-10-23 | Curve fairing optimization method based on discrete curvature and multistage optimization points |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311375312.6A CN117371222B (en) | 2023-10-23 | 2023-10-23 | Curve fairing optimization method based on discrete curvature and multistage optimization points |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117371222A true CN117371222A (en) | 2024-01-09 |
CN117371222B CN117371222B (en) | 2024-04-26 |
Family
ID=89390626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311375312.6A Active CN117371222B (en) | 2023-10-23 | 2023-10-23 | Curve fairing optimization method based on discrete curvature and multistage optimization points |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117371222B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040170302A1 (en) * | 2003-02-19 | 2004-09-02 | Ken Museth | Level set surface editing operators |
US20050243102A1 (en) * | 2004-04-30 | 2005-11-03 | Alias Systems Corp. | System and method for diffusing curvature |
JP2013178616A (en) * | 2012-02-28 | 2013-09-09 | Mitsubishi Heavy Ind Ltd | Fairing method |
CN104915511A (en) * | 2015-06-23 | 2015-09-16 | 广船国际有限公司 | Fairing method for asymmetric ship type |
CN105425725A (en) * | 2015-12-09 | 2016-03-23 | 华中科技大学 | Curve fitting method for discrete cutter path |
JP2019040045A (en) * | 2017-08-24 | 2019-03-14 | 株式会社コアコンセプト・テクノロジー | Method for processing information, information processor, program, and recording medium |
CN109918807A (en) * | 2019-03-13 | 2019-06-21 | 西北工业大学 | A kind of local knife rail method for fairing optimizing curvature |
CN111506988A (en) * | 2020-04-01 | 2020-08-07 | 浙江理工大学 | Micro line segment tool path C2Continuous compression smoothing method |
CN114004043A (en) * | 2021-11-11 | 2022-02-01 | 江苏苏鑫装饰(集团)公司 | Method for generating high-end aluminum alloy decorative section mould surface numerical control machining smooth tool path |
CN115358009A (en) * | 2022-08-30 | 2022-11-18 | 浙江大学 | Method for generating NURBS curve surface fairing in shell molding of vehicle |
CN115857432A (en) * | 2022-11-23 | 2023-03-28 | 上海交通大学 | Cutter track smoothing method and system based on curvature maximum optimization |
CN115857429A (en) * | 2022-11-07 | 2023-03-28 | 广东工业大学 | Method for generating smooth path of cutter of five-axis machine tool |
CN116228652A (en) * | 2022-12-23 | 2023-06-06 | 湖北文理学院 | Pipeline weld joint surface defect detection method based on three-dimensional point cloud curvature |
CN116720268A (en) * | 2023-03-27 | 2023-09-08 | 浙江大学 | Periodically described global fairing reconstruction method for blade profile |
-
2023
- 2023-10-23 CN CN202311375312.6A patent/CN117371222B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040170302A1 (en) * | 2003-02-19 | 2004-09-02 | Ken Museth | Level set surface editing operators |
US20050243102A1 (en) * | 2004-04-30 | 2005-11-03 | Alias Systems Corp. | System and method for diffusing curvature |
JP2013178616A (en) * | 2012-02-28 | 2013-09-09 | Mitsubishi Heavy Ind Ltd | Fairing method |
CN104915511A (en) * | 2015-06-23 | 2015-09-16 | 广船国际有限公司 | Fairing method for asymmetric ship type |
CN105425725A (en) * | 2015-12-09 | 2016-03-23 | 华中科技大学 | Curve fitting method for discrete cutter path |
JP2019040045A (en) * | 2017-08-24 | 2019-03-14 | 株式会社コアコンセプト・テクノロジー | Method for processing information, information processor, program, and recording medium |
CN109918807A (en) * | 2019-03-13 | 2019-06-21 | 西北工业大学 | A kind of local knife rail method for fairing optimizing curvature |
CN111506988A (en) * | 2020-04-01 | 2020-08-07 | 浙江理工大学 | Micro line segment tool path C2Continuous compression smoothing method |
CN114004043A (en) * | 2021-11-11 | 2022-02-01 | 江苏苏鑫装饰(集团)公司 | Method for generating high-end aluminum alloy decorative section mould surface numerical control machining smooth tool path |
CN115358009A (en) * | 2022-08-30 | 2022-11-18 | 浙江大学 | Method for generating NURBS curve surface fairing in shell molding of vehicle |
CN115857429A (en) * | 2022-11-07 | 2023-03-28 | 广东工业大学 | Method for generating smooth path of cutter of five-axis machine tool |
CN115857432A (en) * | 2022-11-23 | 2023-03-28 | 上海交通大学 | Cutter track smoothing method and system based on curvature maximum optimization |
CN116228652A (en) * | 2022-12-23 | 2023-06-06 | 湖北文理学院 | Pipeline weld joint surface defect detection method based on three-dimensional point cloud curvature |
CN116720268A (en) * | 2023-03-27 | 2023-09-08 | 浙江大学 | Periodically described global fairing reconstruction method for blade profile |
Non-Patent Citations (5)
Title |
---|
MATTHIAS NIEUWENHUISEN: "Local multiresolution trajectory optimization for micro aerial vehicles employing continuous curvature transitions", 《2016 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS (IROS)》, 1 December 2016 (2016-12-01) * |
刘保嘉, 徐宗俊, 王巍, 王诗杨: "曲线及曲面的光顺性研究", 机械与电子, no. 05, 25 May 2001 (2001-05-25) * |
张威;王国瑾;: "以离散曲线为曲率线构造拟可展离散曲面", 计算机辅助设计与图形学学报, no. 10, 15 October 2015 (2015-10-15) * |
王可;唐忠辉;孙兴伟;: "一种点云数据曲线光顺处理算法", 组合机床与自动化加工技术, no. 02, 20 February 2013 (2013-02-20) * |
赵卫国: "基于能量法的曲线曲面优化设计方法研究", 《机械设计与制造》, 31 December 2009 (2009-12-31) * |
Also Published As
Publication number | Publication date |
---|---|
CN117371222B (en) | 2024-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Feng et al. | Constant scallop-height tool path generation for three-axis sculptured surface machining | |
CN108062073B (en) | Circular arc smooth compression interpolation method for high-quality machining | |
CN102785166B (en) | Kinematic transformation based grinding machining method for numerically controlled grinding wheel | |
CN111310106B (en) | Cutting contour fitting optimization method based on successive approximation of original contour | |
CN113909630B (en) | Electric arc additive manufacturing method for printing and filling reinforcing rib metal structural part in subareas | |
CN112255966B (en) | Adaptive generation method for machining track of narrow and long free-form surface part | |
CN109597359B (en) | Numerical controller | |
CN107944098A (en) | A kind of double-parabolic slab automatic optimization method and system based on BIM technology | |
CN111506988A (en) | Micro line segment tool path C2Continuous compression smoothing method | |
CN108415367B (en) | Automatic wire laying track global curvature fairing algorithm | |
CN111745653B (en) | Planning method for hull plate curved surface forming cooperative processing based on double mechanical arms | |
CN111538291A (en) | NURBS curve interpolation method capable of partially removing tool location data points | |
CN114819355A (en) | Multi-target flexible job shop energy-saving scheduling method based on improved wolf algorithm | |
CN117371222B (en) | Curve fairing optimization method based on discrete curvature and multistage optimization points | |
CN115796510A (en) | Multi-target flexible job shop scheduling method based on improved variable neighborhood genetic algorithm | |
CN114815743A (en) | Curve interpolation method and system of numerical control machine tool and storage medium | |
CN112942837B (en) | Cantilever structure concrete 3D printing method and system | |
CN111610751B (en) | Interpolation error multi-subdivision iterative calculation method for cross point set NURBS interpolation curve | |
CN114818175A (en) | Offset track curvature correction method for complex curved surface | |
CN111814359A (en) | Discrete manufacturing-oriented integrated workshop scheduling and assembly sequence planning method | |
CN109991921B (en) | Smooth B spline track direct generation method | |
CN113742835B (en) | Novel optimization design method of hyperboloid curtain wall | |
CN111880480B (en) | Milling cutter cutting path generation method and system based on CNC milling machine | |
CN112632777B (en) | II-type bilateral assembly line balancing method and system for household appliance assembly line | |
CN115056213A (en) | Robot track self-adaptive correction method for large complex component |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |