CN108763668B - Gear model region parameterization method based on subdivision technology and boundary replacement - Google Patents

Gear model region parameterization method based on subdivision technology and boundary replacement Download PDF

Info

Publication number
CN108763668B
CN108763668B CN201810463056.9A CN201810463056A CN108763668B CN 108763668 B CN108763668 B CN 108763668B CN 201810463056 A CN201810463056 A CN 201810463056A CN 108763668 B CN108763668 B CN 108763668B
Authority
CN
China
Prior art keywords
curve
boundary
point
points
model
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.)
Active
Application number
CN201810463056.9A
Other languages
Chinese (zh)
Other versions
CN108763668A (en
Inventor
徐岗
李博剑
许金兰
肖周芳
吴卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN201810463056.9A priority Critical patent/CN108763668B/en
Publication of CN108763668A publication Critical patent/CN108763668A/en
Application granted granted Critical
Publication of CN108763668B publication Critical patent/CN108763668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design

Abstract

The invention discloses a gear model region parameterization method based on subdivision technology and boundary replacement. High quality parameterization of graphical models with complex regions is difficult to achieve. The invention reduces the concave-convex degree of each section of curve by a curve segmentation method, ensures that a turnover quadrilateral mesh model cannot be generated, thereby optimizing the parameterization quality of the gear model and meeting the validity requirement of the gear model on isogeometric analysis in engineering application; then, the distances between the vertexes of the boundaries are homogenized by modifying the average distance value of the polygonal boundaries of the gear model, so that the generation rate of the quadrilateral meshes is improved; the shape of the gear model is ensured not to be changed by using a boundary replacement method, and the gear model is optimized on the aspects of smoothness and continuity by using a fairing method and a C-C subdivision method, so that the requirements of engineering application on the smoothness and robustness of isogeometric analysis are met.

Description

Gear model region parameterization method based on subdivision technology and boundary replacement
Technical Field
The invention belongs to the field of computer aided design and engineering application, and particularly relates to a gear model region parameterization method based on subdivision technology and boundary replacement.
Background
Computer Aided Design (CAD) technology and Computer Aided Engineering (CAE) technology have a profound impact in today's computer applications and development, and they are widely used in aerospace, automotive manufacturing, architectural design, mechatronics, and other fields. In CAD techniques, the shape of an object is represented by a boundary model, which contains information about the internal surface of the geometric model. Isogeometric analysis often requires parameterization within the geometric model region, and therefore, in order to make a CAD model more suitable for isogeometric analysis, it is necessary to study the technique of constructing a parameterization of the region from given boundary data.
The isogeometric analysis is a novel technology for carrying out analog simulation based on the accurate geometric representation of a CAD model, opens up a new way for realizing the seamless fusion of CAD/CAE, and simultaneously injects new vitality into the mature geometric modeling field. In isogeometric analysis, parameterization of a computational domain is still one of the current research hotspots, and a high-precision and efficient parameterized model is often required in finite element analysis so as to be applied to research design of a high-level CAD or CAE model. To meet these requirements, the mesh used for parameterization and some special areas need to be optimized, and for a certain method, the complexity of the area greatly influences the effectiveness and quality of parameterization.
Parameterization of a region in isogeometric analysis needs to satisfy three requirements: 1) it does not self-cross, i.e. the mapping from the parameter domain to the physical domain is injective; 2) the isoparametric should be as homogeneous as possible; 3) the isoparametric elements should be as orthogonal as possible. Currently, there are many methods that can process boundary information represented by B-spline curves, including a variation harmonic method, a divide and conquer technique, a mapping method, a contour-based decomposition method, a multi-surface piece parameterization method, and a non-standard B-spline parameterization method. However, most of the existing methods can only process parameterization of some simple regions, and for some graphic models with complex regions, high-quality parameterization is difficult to achieve. For example, when some grid regions with large unevenness are processed, an inverted grid is easily formed at the grid regions, and the quality of regional parameterization is seriously affected.
Disclosure of Invention
The invention aims to provide a gear model region parameterization method based on a subdivision technology and boundary replacement aiming at the defects of the existing method.
The invention specifically comprises the following steps:
step 1, sampling an inner boundary and an outer boundary of a gear model, wherein the inner boundary and the outer boundary are sequentially provided with 4 sampling points from a first sampling point each time to be fitted into a cubic uniform B spline curve, and in two adjacent cubic uniform B spline curves, the first sampling point adopted in the fitting of the next cubic uniform B spline curve is the last sampling point adopted in the fitting of the previous cubic uniform B spline curve; after fitting, the inner boundary consists of 4 cubic uniform B spline curves, and the outer boundary consists of 24 cubic uniform B spline curves; the cubic uniform B-spline curve expression is:
Figure BDA0001661351420000021
wherein, PiFor the control point positions for constructing cubic uniform B-spline curves, i is 0,1,2 or 3, Ni,3(t) is a B spline basis function, P (t) is the position of a fitting point on a formed cubic uniform B spline curve, and a parameter t belongs to a node interval [0,1 ∈]。
Step 2, performing curve segmentation on the inner boundary and the outer boundary of the gear model processed in the step 1 through curve characteristic points, and then converting the inner boundary and the outer boundary of the gear model into a polygonal boundary geometric model, which is concretely as follows:
step a, detecting curve characteristic points on the inner boundary and the outer boundary of the gear model by a parabolic interpolation method, wherein the curve characteristic points comprise curvature extreme points and inflection points of a curve, and performing curve segmentation at the curve characteristic points.
The process of detecting curvature extreme points by parabolic interpolation is specifically as follows: the node interval [0,1 ] of each cubic uniform B-spline curve on the inner boundary and the outer boundary of the gear model is divided into three]Are equally divided into 20 equal intervals [ t ]n-1,tn]N is 1,2, …, 20, and then sequentially traversed [ t ═ tn-1,tn+1]Calculating the interval [ tn-1,tn+1]Inner three fitting point curvatures k (t)n-1)、k(tn) And k (t)n+1) If the condition k is satisfied (tn)>k(tn-1) And k (t)n)>k(tn+1) The current interval is the interval where the curvature maximum point of the curve is located, and if the condition k (t) is satisfiedn)<k(tn-1) And k (t)n)<k(tn+1) And if so, the current interval is the interval where the curvature minimum value point is located. The interval of the curvature maximum value point or the interval of the curvature minimum value point passes through three interpolation points (t)n-1,k(tn-1)),(tn,k(tn) Are a and (t)n+1,k(tn+1) A parabola f (m) ═ a) is obtained2m2+a1m+a0Wherein a is0,a1,a2For the coefficients, then by setting the derivative f '(m) of f (m) to 0, the value of m, denoted t', for the point on the axis of symmetry in the parabola is found:
Figure BDA0001661351420000022
taking the limit curvature point t' of the highest point or the lowest point of the parabola as a cubic uniform B-spline curve in the interval [ tn-1,tn]An inner curvature maxima point or a curvature minima point.
The process of detecting the curve inflection point by parabolic interpolation specifically comprises the following steps: the node interval [0,1 ] of each cubic uniform B-spline curve on the inner boundary and the outer boundary of the gear model is divided into three]Are equally divided into 20 equal intervals [ t ]n-1,tn]Then sequentially traverse [ tn-1,tn]Calculating the interval [ tn-1,tn]Curvature values of both end points, satisfy k (t)n-1)*k(tn)<At 0, there is an inflection point in the curve in this interval. Then, the midpoint (t) of the parameter interval is calculatedn-0.5,k(tn-0.5) In which t) isn-0.5=1/2*(tn-1+tn). If | k (t)n-0.5)-0|<0.0001, directly adding tn-0.5As an inflection point of the curve, otherwise, still passes (t)n-1,k(tn-1)),(tn-0.5,k(tn-0.5) Are a and (t)n,k(tn) A parabola f (m) ═ b of three-point interpolation2m2+b1m+b0Wherein b is0,b1,b2For the coefficient, find f (m) 0 in the interval [ t-n-1,tn]The only root value in the interval [ t ] is used as a cubic uniform B spline curven-1,tn]An inner inflection point.
Step B, taking the curve characteristic points of the cubic uniform B-spline curve in the step a as segmentation points, and redistributing control points to the segmented curve; will node interval ta,tb]Two end points taAnd tbSubstituting t in formula (1) to obtain control vertexes P at two end points of the division curveaAnd Pb. The corresponding relation of the fitting point positions of the segmented curve and the cubic uniform B-spline curve is as follows:
Figure BDA0001661351420000031
in the formula, Pab(t ') is the fitting point position of the segmentation curve, and the parameter t' belongs to the node interval [ ta,tb](ii) a Calculating the positions of the remaining intermediate control points of the segmented curve according to the corresponding relation of the fitting point positions of the segmented curve and the cubic uniform B-spline curve as follows:
Figure BDA0001661351420000032
Figure BDA0001661351420000033
wherein, P0And P1Is the control point position, P, of the original cubic uniform B-spline curvea1And Pa2Two control point positions in the middle of the segmentation curve are allocated, so that new control point positions are allocated to the segmentation curve according to the original cubic uniform B spline curve, and the new control point positions are respectively Pa,Pa1,Pa2,Pb
Step 3, firstly traversing the obtained segmentation point sequence, calculating the distance between adjacent segmentation points, and calculating the average of the distances between the adjacent segmentation pointsThe mean value h. When the distance between the adjacent segmentation points is less than 0.5 lambdah, wherein 0 is more than lambdah and less than 1, deleting the next segmentation point in the adjacent segmentation points; when the distance between adjacent division points is greater than 1.5 lambdah, the distance between adjacent division points is added with 0.5 lambdah, the result of dividing the result by lambdah is rounded and then is subtracted by one to obtain the number of inserted division points, thereby the interval [ t ] of the adjacent division points isn-1,tn]And (c) carrying out equipartition so as to realize the segmentation of the corresponding cubic B-spline curve, and then reallocating the control points to the segmented curve according to the method for reallocating the control points in the step (B) in the step (2). Finally, the control points at the two ends of each segmentation curve are connected in sequence, so that the curve boundary is converted to obtain a polygonal boundary geometric model of the gear model; and generating a quadrilateral mesh model of the gear model by using a quadrilateral subdivision algorithm, and carrying out smooth treatment on the mesh by using an iterative smooth treatment method.
And 4, constructing a control grid model for the quadrilateral grid model of the gear model, performing C-C subdivision operation, and simultaneously keeping the curve boundary shape of the gear model subjected to cubic uniform B-spline curve fitting and processed in the step 1 by replacing boundary control points and inserting curve nodes.
Step a, calculating each quadrilateral patch boundary and internal control points of the quadrilateral mesh model by using linear interpolation, wherein the control points comprise four vertexes of the quadrilateral patch, generating a 4 x 4 control point sequence on each quadrilateral patch, and then replacing the control points on the segmentation curve boundary divided by the curve in the step 3 to the control points obtained by linear interpolation of the corresponding quadrilateral mesh model boundary, thereby constructing the control mesh model for parameterization.
And b, processing the internal vertex of the control mesh model by using a C-C subdivision method to generate a C-C subdivision mesh model.
Step C, using a method of inserting nodes and control points by using a B spline curve, increasing the number of the control points of each boundary curve after curve segmentation in the step 3 to match the number of the boundary vertexes of the C-C subdivision grid model, and specifically as follows:
after a C-C subdivision grid model is generated, the number of vertexes corresponding to the boundary of each quadrilateral surface patch is increased to 7, 3 nodes are added to each cubic uniform B spline curve in the boundary curve obtained after curve segmentation in the step 3 under the condition that the node vectors are still ensured to be uniform, meanwhile, the positions of two control points in the middle of each cubic uniform B spline curve in the boundary curve obtained after curve segmentation in the step 3 are changed, 3 control points are added, and the positions of 7 new control points are respectively calculated as:
P′0=P0
Figure BDA0001661351420000041
Figure BDA0001661351420000042
Figure BDA0001661351420000043
Figure BDA0001661351420000044
Figure BDA0001661351420000051
P′6=P3
wherein, Pr' r is 0,1, …,6 is the position of the new control point, PsAnd s is 0,1,2 and 3, which are the original 4 control point positions of each cubic uniform B-spline in the boundary curve after curve segmentation in the step 3.
And after the nodes are inserted, sequentially replacing the new control points of each boundary curve to the control points of the corresponding quadrilateral mesh model boundary after C-C subdivision.
And 5, taking the C-C subdivision mesh model obtained in the step 4 as a control mesh for drawing the B-spline surface, and drawing a cubic uniform B-spline surface with 7 rows and 7 columns of control points corresponding to each quadrilateral surface patch to complete parameterization of the plane area by contrasting the quadrilateral mesh model generated in the step 3.
Further, the formula for calculating the curvature is:
Figure BDA0001661351420000052
where det is the determinant operation, P '(t) is the first derivative of P (t), and P' (t) is the second derivative of P (t); x (t), y (t) is the coordinate value at point P (t), x '(t), x "(t) is the first derivative and the second derivative of x (t), y' (t), y" (t) is the first derivative and the second derivative of y (t), and | P '(t) | | is the modulo operation of P' (t).
The invention has the following beneficial effects:
the invention provides a high-quality complex region parameterization method, which reduces the concave-convex degree of each section of curve after curve segmentation by a curve segmentation method so as to ensure that a turnover quadrilateral mesh model cannot be generated, thereby optimizing the parameterization quality of a gear model and meeting the requirement of the parameterization on isogeometric analysis in engineering application. And then, the distances between the vertexes of the boundaries are uniformed by modifying the average distance value of the polygon boundaries of the gear model, so that the generation rate of the quadrilateral meshes is improved. In addition, the shape of the gear model is guaranteed not to be changed by using a boundary replacement method, and the gear model is optimized on the aspects of smoothness and continuity by using a fairing method and a C-C subdivision method, so that the requirements of engineering application on the smoothness and robustness of isogeometric analysis are met.
Drawings
FIG. 1 is a gear model employed in embodiments of the present invention;
FIG. 2 is a polygonal boundary geometry model of the gear model after curve boundary translation;
FIG. 3 is a schematic diagram of the extreme curvature points and inflection points of a B-spline curve;
FIG. 4 is a schematic diagram of segmentation and control point redistribution of a B-spline curve;
FIG. 5 is a diagram of a quadrilateral mesh model after quadrilateral subdivision in FIG. 2;
FIG. 6 is a schematic diagram of deletion and insertion of curve split points;
FIG. 7 is a schematic diagram of replacement of control points on a segmented curve boundary after curve segmentation onto control points obtained by linear interpolation of a corresponding quadrilateral mesh model boundary;
fig. 8 is a final parameterized model of the gear model of fig. 1.
Detailed Description
A curve boundary model of a gear shape is given by combining practical application, and the gear shape is subjected to regional parameterization by using the method, so that a parameterized model required in engineering application is obtained, and the gear model is more suitable for isogeometric analysis.
A gear model region parameterization method based on subdivision technology and boundary replacement specifically comprises the following steps:
step 1, as shown in fig. 1, a gear model is adopted, an inner boundary and an outer boundary of the gear model are sampled, the inner boundary and the outer boundary are respectively provided with a first sampling point, 4 sampling points are sequentially taken each time to be fitted into a cubic uniform B spline curve, and in two adjacent cubic uniform B spline curves, the first sampling point adopted in the fitting of the latter cubic uniform B spline curve is the last sampling point adopted in the fitting of the former cubic uniform B spline curve; adjusting the control points to enable the cubic uniform B-spline curve to fit the curve boundary of the gear model; after fitting, the inner boundary consists of 4 cubic uniform B spline curves, the outer boundary consists of 24 cubic uniform B spline curves, and each cubic uniform B spline curve contains four control points; the cubic uniform B-spline curve expression is:
Figure BDA0001661351420000061
wherein, PiFor the control point positions for constructing cubic uniform B-spline curves, i is 0,1,2 or 3, Ni,3(t) is a B spline basis function, P (t) is the position of a fitting point on a formed cubic uniform B spline curve, and a parameter t belongs to a node interval [0,1 ∈]。
Step 2, performing curve segmentation on the inner boundary and the outer boundary of the gear model processed in the step 1 through curve characteristic points, and then converting the inner boundary and the outer boundary of the gear model into a polygonal boundary geometric model, which is concretely as follows:
step a, detecting curve characteristic points on the inner boundary and the outer boundary of the gear model by a parabolic interpolation method, wherein the curve characteristic points comprise curvature extreme points and inflection points (shown in figure 3) of a curve, and performing curve segmentation at the curve characteristic points. The curvature extreme point of the curve is a place where the concave-convex degree of the curve is obvious, the concave-convex degree of each section of the curve is reduced after the curve is divided, and therefore the situation that the turnover grids do not exist in a subsequently generated quadrilateral grid model is guaranteed (as shown in fig. 5).
The process of detecting curvature extreme points by parabolic interpolation is specifically as follows: the node interval [0,1 ] of each cubic uniform B-spline curve on the inner boundary and the outer boundary of the gear model is divided into three]Are equally divided into 20 equal intervals [ t ]n-1,tn]N is 1,2, …, 20, and then sequentially traversed [ t ═ tn-1,tn+1]Calculating the interval [ tn-1,tn+1]Inner three fitting point curvatures k (t)n-1)、k(tn) And k (t)n+1) If the condition k (t) is satisfiedn)>k(tn-1) And k (t)n)>k(tn+1) The current interval is the interval where the curvature maximum point of the curve is located, and if the condition k (t) is satisfiedn)<k(tn-1) And k (t)n)<k(tn+1) And if so, the current interval is the interval where the curvature minimum value point is located. The interval of the curvature maximum value point or the interval of the curvature minimum value point passes through three interpolation points (t)n-1,k(tn-1)),(tn,k(tn) Are a and (t)n+1,k(tn+1) A parabola f (m) ═ a) is obtained2m2+a1m+a0Wherein a is0,a1,a2For the coefficients, then by setting the derivative f '(m) of f (m) to 0, the value of m, denoted t', for the point on the axis of symmetry in the parabola is found:
Figure BDA0001661351420000071
taking the limit curvature point t' of the highest point or the lowest point of the parabola as a cubic uniform B-spline curve in the interval [ tn-1,tn]An inner curvature maxima point or a curvature minima point.
The process of detecting the curve inflection point by parabolic interpolation specifically comprises the following steps: the node interval [0,1 ] of each cubic uniform B-spline curve on the inner boundary and the outer boundary of the gear model is divided into three]Are equally divided into 20 equal intervals [ t ]n-1,tn]Then sequentially traverse [ tn-1,tn]Calculating the interval [ tn-1,tn]Curvature values of both end points, satisfy k (t)n-1)*k(tn)<When 0, it indicates that there is an inflection point in the curve in this interval. Then, the midpoint (t) of the parameter interval is calculatedn-0.5,k(tn-0.5) In which t) isn-0.5=1/2*(tn-1+tn). If | k (t)n-0.5)-0|<0.0001, directly adding tn-0.5As an inflection point of the curve, otherwise, still passes (t)n-1,k(tn-1)),(tn-0.5,k(tn-0.5) Are a and (t)n,k(tn) A parabola f (m) ═ b of three-point interpolation2m2+b1m+b0Wherein b is0,b1,b2For the coefficient, find f (m) 0 in the interval [ t-n-1,tn]The only root value in the interval [ t ] is used as a cubic uniform B spline curven-1,tn]An inner inflection point.
The formula for calculating the curvature is:
Figure BDA0001661351420000072
where det is the determinant operation, P '(t) is the first derivative of P (t), and P' (t) is the second derivative of P (t); x (t), y (t) is the coordinate value at point P (t), x '(t), x "(t) is the first derivative and the second derivative of x (t), y' (t), y" (t) is the first derivative and the second derivative of y (t), and | P '(t) | | is the modulo operation of P' (t).
Step b, as shown in FIG. 4, the three times of the step a are averagedTaking curve characteristic points of the uniform B spline curve as dividing points, and redistributing control points to the divided curves; will node interval ta,tb]Two end points taAnd tbSubstituting t in formula (1) to obtain control vertexes P at two end points of the division curveaAnd Pb. The corresponding relation of the fitting point positions of the segmented curve and the cubic uniform B-spline curve is as follows:
Figure BDA0001661351420000073
in the formula, Pab(t ') is the fitting point position of the segmentation curve, and the parameter t' belongs to the node interval [ ta,tb](ii) a Calculating the positions of the remaining intermediate control points of the segmented curve according to the corresponding relation of the fitting point positions of the segmented curve and the cubic uniform B-spline curve as follows:
Figure BDA0001661351420000081
Figure BDA0001661351420000082
wherein, P0And P1Is the control point position, P, of the original cubic uniform B-spline curvea1And Pa2Two control point positions in the middle of the segmentation curve are allocated, so that new control point positions are allocated to the segmentation curve according to the original cubic uniform B spline curve, and are respectively Pa,Pa1,Pa2,Pb
And step 3, as shown in fig. 6, traversing the obtained segmentation point sequence, calculating the distance between adjacent segmentation points, and calculating the average value h of the distances between the adjacent segmentation points. Deleting the next division point (such as the point P in the figure 6) in the adjacent division points when the distance between the adjacent division points is less than 0.5 lambdah (the value of the lambda is taken from 0 < lambada < 1); when the distance between adjacent division points is greater than 1.5 lambdoh, the value obtained by adding 0.5 lambdoh to the distance between adjacent division points is divided by lambdoh, and the result is rounded and then is reduced by oneAs the number of inserted division points, the interval [ t ] to which the adjacent division point belongsn-1,tn]And (c) carrying out equipartition so as to realize the segmentation of the corresponding cubic B-spline curve, and then reallocating control points (such as points Q in figure 6) to the segmented curve according to the method of reallocating control points in the step B in the step 2. Finally, the control points at the two ends of each segmentation curve are connected in sequence, so that the curve boundary is converted to obtain a polygonal boundary geometric model of the gear model, wherein the polygonal boundary geometric model is composed of 110 vertexes, as shown in fig. 2, the vertex distances of the polygonal geometric model are relatively uniformly distributed, and the number of the original boundary curves is increased from 28 to 110.
And generating a quadrilateral mesh model of the gear model by using a quadrilateral subdivision algorithm, and performing smooth treatment on the mesh by using an iterative smooth method, thereby obtaining a uniform and smooth quadrilateral mesh model with better robustness. The result of the quadrilateral mesh model generated for the gear model is shown in fig. 5, in which the number of quadrilateral meshes is 196.
And 4, constructing a control grid model for the quadrilateral grid model of the gear model, performing C-C subdivision operation, and simultaneously keeping the curve boundary shape of the gear model subjected to cubic uniform B-spline curve fitting and processed in the step 1 by replacing boundary control points and inserting curve nodes.
Step a, as shown in fig. 7, calculating the control points at the boundary and inside of each quadrilateral patch of the quadrilateral mesh model by using linear interpolation, including four vertices (d) of the quadrilateral patch0,0、d0,3、d3,0And d3,3Wherein d is0,0Is namely P0,d0,3Is namely P3) In the method, a 4 x 4 control point sequence (namely 4 rows and 4 columns of control points) is generated on each quadrilateral surface, and then the control points on the boundary of the segmentation curve segmented by the curve in the step 3 are replaced to the control points d obtained by linear interpolation of the boundary of the corresponding quadrilateral mesh model0,1、d0,2And constructing a control mesh model for parameterization.
And b, processing the internal vertex of the control grid model by using a C-C subdivision method to generate a C-C subdivision grid model, wherein the C-C subdivision has the function of refining the grid and improving the continuity and smoothness of the grid.
And step C, increasing the number of the control points of each boundary curve after the curve is segmented in the step 3 by using a method of inserting the nodes and the control points by using the B spline curve so as to match the number of the boundary top points of the C-C subdivision grid model.
After a C-C subdivision grid model is generated, the number of vertexes corresponding to the boundary of each quadrilateral surface patch is increased to 7, 3 nodes are added to each cubic uniform B spline curve in the boundary curve obtained after curve segmentation in the step 3 under the condition that the node vectors are still ensured to be uniform, meanwhile, the positions of two control points in the middle of each cubic uniform B spline curve in the boundary curve obtained after curve segmentation in the step 3 are changed, 3 control points are added, and the positions of 7 new control points are respectively calculated as:
P′0=P0
Figure BDA0001661351420000091
Figure BDA0001661351420000092
Figure BDA0001661351420000093
Figure BDA0001661351420000094
Figure BDA0001661351420000095
P′6=P3
wherein, Pr' r is 0,1, …,6 is the position of the new control point, PsAnd s is 0,1,2 and 3 which are the original 4 control point positions of each cubic uniform B spline curve in the boundary curve after the curve segmentation in the step 3And (4) placing.
And after the nodes are inserted, sequentially replacing the new control points of each boundary curve to the control points of the corresponding quadrilateral mesh model boundary after C-C subdivision. Therefore, the effect that the shape of the gear model curve boundary subjected to the cubic uniform B-spline curve fitting and processed in the step 1 is unchanged can be achieved, and the shape of the gear model curve boundary subjected to the cubic uniform B-spline curve fitting can be retained on the parameterized model.
And 5, as shown in fig. 8, taking the C-C subdivision grid model obtained in the step 4 as a control grid for drawing the B-spline surface, and drawing a cubic uniform B-spline surface with 7 rows and 7 columns of control points corresponding to each quadrilateral surface patch to complete parameterization of the plane area by contrasting the quadrilateral grid model generated in the step 3, thereby obtaining a final high-quality parameterization result. Fig. 8 is the final parameterized model of the gear model of fig. 1.
In this way we have a high quality parameterized model of the gear that substantially meets the requirements for smoothness and robustness of the parameterized model in CAD or CAE applications.
The invention reduces the concave-convex degree of each section of curve after curve segmentation by a curve segmentation method so as to ensure that a turnover quadrilateral mesh model cannot be generated, thereby optimizing the quality of gear model parameterization and meeting the requirement of the gear model on effectiveness of isogeometric analysis in engineering application. And then, the distances between the vertexes of the boundaries are uniformed by modifying the average distance value of the polygon boundaries of the gear model, so that the generation rate of the quadrilateral meshes is improved. In addition, the shape of the gear model is guaranteed not to be changed by using a boundary replacement method, and the gear model is optimized on the aspects of smoothness and continuity by using a fairing method and a C-C subdivision method, so that the requirements of engineering application on the smoothness and robustness of isogeometric analysis are met.
In conclusion, the gear parameterization model meeting the requirements of high precision and effectiveness is obtained by combining the subdivision technology and the boundary replacement method, and the gear parameterization model can adapt to parameterization of a complex region, so that the gear parameterization model can be applied to research and design of a high-level CAD (computer-aided design) or CAE (computer aided engineering) model.

Claims (2)

1. A gear model region parameterization method based on subdivision technology and boundary replacement is characterized by comprising the following steps: the method comprises the following specific steps:
step 1, sampling an inner boundary and an outer boundary of a gear model, wherein the inner boundary and the outer boundary are sequentially provided with 4 sampling points from a first sampling point each time to be fitted into a cubic uniform B spline curve, and in two adjacent cubic uniform B spline curves, the first sampling point adopted in the fitting of the next cubic uniform B spline curve is the last sampling point adopted in the fitting of the previous cubic uniform B spline curve; after fitting, the inner boundary consists of 4 cubic uniform B spline curves, and the outer boundary consists of 24 cubic uniform B spline curves; the cubic uniform B-spline curve expression is:
Figure FDA0001661351410000011
wherein, PiFor the control point positions for constructing cubic uniform B-spline curves, i is 0,1,2 or 3, Ni,3(t) is a B spline basis function, P (t) is the position of a fitting point on a formed cubic uniform B spline curve, and a parameter t belongs to a node interval [0,1 ∈];
Step 2, performing curve segmentation on the inner boundary and the outer boundary of the gear model processed in the step 1 through curve characteristic points, and then converting the inner boundary and the outer boundary of the gear model into a polygonal boundary geometric model, which is concretely as follows:
step a, detecting curve characteristic points on the inner boundary and the outer boundary of the gear model by a parabolic interpolation method, wherein the curve characteristic points comprise curvature extreme points and inflection points of a curve, and performing curve segmentation at the curve characteristic points;
the process of detecting curvature extreme points by parabolic interpolation is specifically as follows: the node interval [0,1 ] of each cubic uniform B-spline curve on the inner boundary and the outer boundary of the gear model is divided into three]Are equally divided into 20 equal intervals [ t ]n-1,tn]N is 1,2, …, 20, and then sequentially traversed [ t ═ tn-1,tn+1]Calculating the interval [ tn-1,tn+1]Inner three fitting point curvatures k (t)n-1)、k(tn) And k (t)n+1) If the condition k (t) is satisfiedn)>k(tn-1) And k (t)n)>k(tn+1) The current interval is the interval where the curvature maximum point of the curve is located, and if the condition k (t) is satisfiedn)<k(tn-1) And k (t)n)<k(tn+1) If the current interval is the interval where the curvature minimum value point is located; the interval of the curvature maximum value point or the interval of the curvature minimum value point passes through three interpolation points (t)n-1,k(tn-1)),(tn,k(tn) Are a and (t)n+1,k(tn+1) A parabola f (m) ═ a) is obtained2m2+a1m+a0Wherein a is0,a1,a2For the coefficients, then by setting the derivative f '(m) of f (m) to 0, the value of m, denoted t', for the point on the axis of symmetry in the parabola is found:
Figure FDA0001661351410000012
taking the limit curvature point t' of the highest point or the lowest point of the parabola as a cubic uniform B-spline curve in the interval [ tn-1,tn]An inner curvature maximum point or curvature minimum point;
the process of detecting the curve inflection point by parabolic interpolation specifically comprises the following steps: the node interval [0,1 ] of each cubic uniform B-spline curve on the inner boundary and the outer boundary of the gear model is divided into three]Are equally divided into 20 equal intervals [ t ]n-1,tn]Then sequentially traverse [ tn-1,tn]Calculating the interval [ tn-1,tn]Curvature values of both end points, satisfy k (t)n-1)*k(tn)<When 0, the inflection point of the curve exists in the interval; then, the midpoint (t) of the parameter interval is calculatedn-0.5,k(tn-0.5) In which t) isn-0.5=1/2*(tn-1+tn) (ii) a If | k (t)n-0.5)-0|<0.0001, directly adding tn-0.5As an inflection point of the curve, otherwise, still passes (t)n-1,k(tn-1)),(tn-0.5,k(tn-0.5) Are a and (t)n,k(tn) A parabola f (m) ═ b of three-point interpolation2m2+b1m+b0Wherein b is0,b1,b2For the coefficient, find f (m) 0 in the interval [ t-n-1,tn]The only root value in the interval [ t ] is used as a cubic uniform B spline curven-1,tn]An inner inflection point;
step B, taking the curve characteristic points of the cubic uniform B-spline curve in the step a as segmentation points, and redistributing control points to the segmented curve; will node interval ta,tb]Two end points taAnd tbSubstituting t in formula (1) to obtain control vertexes P at two end points of the division curveaAnd Pb(ii) a The corresponding relation of the fitting point positions of the segmented curve and the cubic uniform B-spline curve is as follows:
Figure FDA0001661351410000021
in the formula, Pab(t ') is the fitting point position of the segmentation curve, and the parameter t' belongs to the node interval [ ta,tb](ii) a Calculating the positions of the remaining intermediate control points of the segmented curve according to the corresponding relation of the fitting point positions of the segmented curve and the cubic uniform B-spline curve as follows:
Figure FDA0001661351410000022
Figure FDA0001661351410000023
wherein, P0And P1Is the control point position, P, of the original cubic uniform B-spline curvea1And Pa2Two control point positions in the middle of the segmentation curve are allocated, so that new control point positions are allocated to the segmentation curve according to the original cubic uniform B spline curve, and the new control point positions are respectively Pa,Pa1,Pa2,Pb
Step 3, firstly traversing the obtained segmentation point sequence, calculating the distance between adjacent segmentation points, and calculating the average value h of the distance between each adjacent segmentation point; when the distance between the adjacent segmentation points is less than 0.5 lambdah, wherein 0 is more than lambdah and less than 1, deleting the next segmentation point in the adjacent segmentation points; when the distance between adjacent division points is greater than 1.5 lambdah, the distance between adjacent division points is added with 0.5 lambdah, the result of dividing the result by lambdah is rounded and then is subtracted by one to obtain the number of inserted division points, thereby the interval [ t ] of the adjacent division points isn-1,tn]Carrying out equipartition so as to realize the segmentation of the corresponding cubic B-spline curve, and then reallocating control points to the segmented curve according to the method of reallocating control points in the step B in the step 2; finally, the control points at the two ends of each segmentation curve are connected in sequence, so that the curve boundary is converted to obtain a polygonal boundary geometric model of the gear model; generating a quadrilateral mesh model of the gear model by using a quadrilateral subdivision algorithm, and carrying out smooth treatment on the mesh by using an iterative smooth treatment method;
step 4, constructing a control grid model for the quadrilateral grid model of the gear model, performing C-C subdivision operation, and simultaneously keeping the curve boundary shape of the gear model which is processed in the step 1 and is subjected to cubic uniform B-spline curve fitting through replacing boundary control points and curve node insertion;
step a, calculating each quadrilateral patch boundary and internal control points of the quadrilateral mesh model by using linear interpolation, wherein the control points comprise four vertexes of the quadrilateral patch, generating a 4 x 4 control point sequence on each quadrilateral patch, and then replacing the control points on the segmentation curve boundary divided by the curve in the step 3 to the control points obtained by linear interpolation of the corresponding quadrilateral mesh model boundary, thereby constructing a control mesh model for parameterization;
b, processing the internal vertex of the control mesh model by using a C-C subdivision method to generate a C-C subdivision mesh model;
step C, using a method of inserting nodes and control points by using a B spline curve, increasing the number of the control points of each boundary curve after curve segmentation in the step 3 to match the number of the boundary vertexes of the C-C subdivision grid model, and specifically as follows:
after a C-C subdivision grid model is generated, the number of vertexes corresponding to the boundary of each quadrilateral surface patch is increased to 7, 3 nodes are added to each cubic uniform B spline curve in the boundary curve obtained after curve segmentation in the step 3 under the condition that the node vectors are still ensured to be uniform, meanwhile, the positions of two control points in the middle of each cubic uniform B spline curve in the boundary curve obtained after curve segmentation in the step 3 are changed, 3 control points are added, and the positions of 7 new control points are respectively calculated as:
P′0=P0
Figure FDA0001661351410000031
Figure FDA0001661351410000032
Figure FDA0001661351410000033
Figure FDA0001661351410000041
Figure FDA0001661351410000042
P′6=P3
wherein, Pr' r is 0,1, …,6 is the position of the new control point, PsS is 0,1,2,3, which is the original 4 control point positions of each cubic uniform B-spline curve in the boundary curve after curve segmentation in step 3;
after inserting the nodes, sequentially replacing the new control points of each boundary curve to the control points of the corresponding quadrilateral mesh model boundary after C-C subdivision;
and 5, taking the C-C subdivision mesh model obtained in the step 4 as a control mesh for drawing the B-spline surface, and drawing a cubic uniform B-spline surface with 7 rows and 7 columns of control points corresponding to each quadrilateral surface patch to complete parameterization of the plane area by contrasting the quadrilateral mesh model generated in the step 3.
2. The subdivision technique and boundary replacement based gear model region parameterization method according to claim 1, characterized in that: the formula for calculating the curvature is:
Figure FDA0001661351410000043
where det is the determinant operation, P '(t) is the first derivative of P (t), and P' (t) is the second derivative of P (t); x (t), y (t) is the coordinate value at point P (t), x '(t), x "(t) is the first derivative and the second derivative of x (t), y' (t), y" (t) is the first derivative and the second derivative of y (t), and | P '(t) | | is the modulo operation of P' (t).
CN201810463056.9A 2018-05-15 2018-05-15 Gear model region parameterization method based on subdivision technology and boundary replacement Active CN108763668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810463056.9A CN108763668B (en) 2018-05-15 2018-05-15 Gear model region parameterization method based on subdivision technology and boundary replacement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810463056.9A CN108763668B (en) 2018-05-15 2018-05-15 Gear model region parameterization method based on subdivision technology and boundary replacement

Publications (2)

Publication Number Publication Date
CN108763668A CN108763668A (en) 2018-11-06
CN108763668B true CN108763668B (en) 2022-03-01

Family

ID=64007746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810463056.9A Active CN108763668B (en) 2018-05-15 2018-05-15 Gear model region parameterization method based on subdivision technology and boundary replacement

Country Status (1)

Country Link
CN (1) CN108763668B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110890074B (en) * 2019-10-30 2022-10-28 华显光电技术(惠州)有限公司 Display screen public voltage adjusting method and display screen
CN111784796A (en) * 2020-06-22 2020-10-16 上海米哈游天命科技有限公司 Terrain grid generation method, device, equipment and medium
CN113658133B (en) * 2021-08-16 2022-06-21 江苏鑫丰源机电有限公司 Gear surface defect detection method and system based on image processing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499447A (en) * 2002-11-12 2004-05-26 松下电器产业株式会社 Curve image processor and its processing method
CN101714259A (en) * 2008-10-06 2010-05-26 Arm有限公司 Graphics processing systems
EP2660782A1 (en) * 2012-05-02 2013-11-06 Dassault Systèmes Designing a 3D modeled object
CN103903018A (en) * 2014-04-02 2014-07-02 浙江师范大学 Method and system for positioning license plate in complex scene
CN107085865A (en) * 2017-05-12 2017-08-22 杭州电子科技大学 Quadrangle dividing method applied to finite element analysis

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2600315B1 (en) * 2011-11-29 2019-04-10 Dassault Systèmes Creating a surface from a plurality of 3D curves

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499447A (en) * 2002-11-12 2004-05-26 松下电器产业株式会社 Curve image processor and its processing method
CN101714259A (en) * 2008-10-06 2010-05-26 Arm有限公司 Graphics processing systems
EP2660782A1 (en) * 2012-05-02 2013-11-06 Dassault Systèmes Designing a 3D modeled object
CN103903018A (en) * 2014-04-02 2014-07-02 浙江师范大学 Method and system for positioning license plate in complex scene
CN107085865A (en) * 2017-05-12 2017-08-22 杭州电子科技大学 Quadrangle dividing method applied to finite element analysis

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Isogeometric analysis based on extended Loop’s subdivision;Qing Pan等;《Journal of Computational Physics 299》;20150721;全文 *
Iso-geometric Finite Element Analysis Based on Catmull-Clark Subdivision Solids;D. Burkhart等;《Eurographics Symposium on Geometry Processing 2010》;20101231;第29卷(第5期);全文 *
面向数控加工的网格曲面规范化方法研究;杨雨;《中国优秀博硕士学位论文全文数据库(硕士) 工程科技Ⅰ辑》;20150415(第4期);全文 *

Also Published As

Publication number Publication date
CN108763668A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108763668B (en) Gear model region parameterization method based on subdivision technology and boundary replacement
CN109584357B (en) Three-dimensional modeling method, device and system based on multiple contour lines and storage medium
CN108389243B (en) Vector line element multi-scale Bezier curve segment fitting method
JP4934789B2 (en) Interpolation processing method and interpolation processing apparatus
CN112396690B (en) Curved surface high-precision reconstruction method based on improved centripetal parameterization method
Zhao et al. IGA-based point cloud fitting using B-spline surfaces for reverse engineering
CN111062166B (en) Three-period minimum curved surface porous structure topology optimization method based on variable density method
CN104268934A (en) Method for reconstructing three-dimensional curve face through point cloud
KR20150051908A (en) Updating a cad model to reflect global or local shape changes
CN115994410B (en) Aircraft simulation driving design method based on octree refinement tetrahedral mesh
CN105844067A (en) Method for obtaining automatic processing data of welding variable groove of hull curve plate
CN111553034A (en) Free deformation parameterization method based on interpolation method
CN115688276A (en) Aircraft appearance automatic optimization method, system, equipment and medium based on discrete companion method
CN115455588A (en) Turbine blade precision casting mold surface reversible deformation design method
CN115203997A (en) Dot matrix-entity composite structure topology optimization method based on multivariate design
CN110689620B (en) Multi-level optimized grid surface discrete spline curve design method
Munira et al. Review on non uniform rational B-spline (NURBS): Concept and Optimization
CN115130340A (en) Pipeline modeling method based on fractional Brownian motion
Shang et al. Effective re-parameterization and GA based knot structure optimization for high quality T-spline surface fitting
CN115170734A (en) Three-dimensional revolution structure reconstruction method and system based on section slices
CN111047687B (en) Three-dimensional T-spline-based heterogeneous material solid modeling method
CN108876922A (en) A kind of mesh amending method based on the regularization of interior dihedral angle supplementary angle
CN113591206A (en) Ship type optimization design method and system based on geometric deformation spatial characteristics
CN109308382B (en) Analysis method for contact stress near singular point
Liao et al. Subdivision Surface Modeling Technology

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