CN113343328A - Efficient closest point projection method based on improved Newton iteration - Google Patents

Efficient closest point projection method based on improved Newton iteration Download PDF

Info

Publication number
CN113343328A
CN113343328A CN202110634535.4A CN202110634535A CN113343328A CN 113343328 A CN113343328 A CN 113343328A CN 202110634535 A CN202110634535 A CN 202110634535A CN 113343328 A CN113343328 A CN 113343328A
Authority
CN
China
Prior art keywords
point
curved surface
value
calculating
closest
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
Application number
CN202110634535.4A
Other languages
Chinese (zh)
Other versions
CN113343328B (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.)
Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
Original Assignee
Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
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 Computational Aerodynamics Institute of China Aerodynamics Research and Development Center filed Critical Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
Priority to CN202110634535.4A priority Critical patent/CN113343328B/en
Publication of CN113343328A publication Critical patent/CN113343328A/en
Application granted granted Critical
Publication of CN113343328B publication Critical patent/CN113343328B/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/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention particularly relates to an efficient closest point projection method based on improved Newton iteration. Comprises the following steps of 1: applying an overrun interpolation method to the original CAD digital-analog curved surface to obtain three-dimensional space points, and connecting to obtain a three-dimensional grid; step 2: dispersing the original CAD digital-analog curved surface, normalizing the parameters of the original CAD digital-analog curved surface, and establishing a search tree; and step 3: searching a discrete point closest to the point to be projected by using the search tree, and obtaining a cutting ball by taking the distance between the point to be projected and the closest discrete point as a radius to obtain a screening surface and the discrete point searched on the corresponding surface; and 4, step 4: and taking the closest point of each surface after screening as an initial iteration value, and taking the closest distance point as a final projection point after circularly alternating iteration. And 5: and replacing the three-dimensional space points with the obtained projection points to obtain a grid tightly attached to the surface of the digital-analog. The method has the advantages of good grid quality, higher calculation efficiency of a real geometric model, better robustness and capability of processing discontinuous curved surfaces, and can more accurately approximate the surface of a digital-analog model.

Description

Efficient closest point projection method based on improved Newton iteration
Technical Field
The invention belongs to the technical field of simulation grid generation, and particularly relates to an efficient closest point projection method based on improved Newton iteration.
Background
In the early stages of CFD computation, a drawn mesh is required. When the surface grid is drawn, the initial grid obtained by performing the overrun interpolation on the closed boundary line is not close to the CAD model, so that the subsequent CFD calculation is inaccurate, and the grid surface can be regarded as being formed by connecting a series of ordered points, so that the problem is converted into the closest point from the solved point to the CAD model. The calculation of the closest point to any curve/surface and its corresponding parameters have numerous applications in CAD and related projects. The process of finding the optimal solution is numerical iteration based on the principle of finding the closest point, and different algorithms and numerous documents emerge in recent years aiming at the problems. Ma et al, by subdividing the NURBS surface into a number of small patches and then finding the projection results to each patch. The projection problem is processed by the aid of a recursion method by the aid of the Serimovic, and an improved algorithm for performing point projection on NURBS curves and curved surfaces is provided. Xu et al propose texture feature-based tessellation algorithms. Zhujianning and the like search for a vertex closest to a spatial point in a subdivision surface patch by using a multi-resolution sampling technology. Moon et al propose a point projection method that improves the accuracy of multistage B-spline approximation. The core idea of the above methods is based on a curve/surface subdivision algorithm.
Li et al propose a point to calculate the minimum distance on a parametric surface. Simplex et al propose a bezier curve point projection algorithm incorporating quadratic surface approximation. Xuhaiyin et al propose orthogonal projection calculations from points to implicit surfaces. Chen et al presents a problem of calculating the minimum distance between a point and a curved surface. Most of them are based on studies performed on a parametric surface. Few people also propose a method for performing nearest point projection on a model, for example, Oh and the like propose a point projection method on a free curve and a curved surface based on an efficient elimination technology. Majid et al also propose an orthogonal projection method based on heuristic random search.
Disclosure of Invention
Aiming at the existing problems, the invention provides an efficient closest point projection method based on improved Newton iteration, which does not need to subdivide a curve/curved surface, utilizes an initial value rapid positioning technology, screens the curve/curved surface by cutting circles/spheres, searches based on an improved one-way Newton iteration algorithm, finally calculates corresponding points to obtain projection points, and then replaces discrete points of a three-dimensional grid obtained by an overrun interpolation method with the projection points to finally obtain a grid attached to the surface of a digital model.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
an efficient closest point projection method based on improved Newton iteration comprises the following steps:
step 1: extracting and combining boundary lines of an original CAD digital-analog curved surface, or constructing a curve on the digital-analog surface to obtain closed grid lines, taking discrete points from the grid lines in sequence and at intervals, then applying an overrun interpolation method to the closed grid lines with the discrete points to obtain three-dimensional space points in a closed grid line area, and orderly connecting the three-dimensional space points to obtain a three-dimensional grid; the points are obtained by interpolation, are not close to a CAD digital-analog curved surface, and take three-dimensional space points as points to be projected;
step 2: preprocessing an original CAD digital-analog curved surface, performing normalization processing on the original CAD digital-analog curved surface, obtaining discrete points after the parameters of the original CAD digital-analog curved surface are dispersed, and establishing a search tree;
and step 3: searching for the discrete point closest to the point to be projected of the three-dimensional grid on the original CAD digital-analog curved surface after normalization processing by using the search tree in the step 2, obtaining a cutting ball by taking the distance between the point to be projected and the closest discrete point as a radius, and excluding the curved surface where the discrete point is searched by using the cutting ball to obtain the discrete point searched on the screening surface and the corresponding surface;
and 4, step 4: taking the closest point of each surface screened in the step 3 as an initial iteration value, wherein the curved surface is a vector function of two parameters u and v, the curved surface can be represented as the mapping from a two-dimensional area on a plane to a three-dimensional space, and u and v represent the two-dimensional parameter change directions of the curved surface, so that the curved surface is regarded as being formed by infinite u-direction and v-direction parameter curves, iteration is carried out in each direction by adopting a circular alternate iteration mode of firstly carrying out the u-direction and then carrying out the v-direction, and the closest distance point is taken as a final projection point;
and 5: and (4) replacing the three-dimensional space points in the step (1) with the projection points obtained in the step (4) to finally obtain a grid attached to the surface of the digital-analog.
Preferably, the specific operation steps of step 2 include:
step 21: acquiring all bounded curved surfaces, and calculating the maximum and minimum geometric dimensions of the curved surfaces:
Figure 807558DEST_PATH_IMAGE001
wherein:
n +1 is the number of curved surfaces;
Figure 899755DEST_PATH_IMAGE002
is the approximate length of each facet in the u-direction;
Figure 414044DEST_PATH_IMAGE003
is the approximate length of each facet in the v-direction;
step 22: calculating the dispersion Nu and Nv of the u direction and the v direction of each curved surface:
Figure 933493DEST_PATH_IMAGE004
step 23: and (5) carrying out boundary value control on the discrete degree value in the step (22):
Figure 166023DEST_PATH_IMAGE005
wherein: minV is the minimum dispersion value and maxV is the maximum dispersion value;
step 24: solving the maximum discrete side length of each curved surface:
Figure 812643DEST_PATH_IMAGE006
step 25: dispersing each curved surface according to the discrete side length in the step 24 to obtain the point of the dispersed triangle and the surface information to which the point belongs, and storing the point information and the surface information in sequence;
step 26: calculating the bounding box of each surface by using the coordinate values of the discrete points in the step 25, then obtaining the periodic information of the surface through the u and v parameter values of the curved surface, and storing the periodic information as the attribute of the surface;
step 27: and establishing the AABB search tree according to the discrete points.
Preferably, the specific operation steps of step 4 are as follows:
step 41: obtaining the closest point on the curved surface S (u, v) according to the step 2
Figure 936367DEST_PATH_IMAGE007
Taking the value of v constant
Figure 895227DEST_PATH_IMAGE008
To obtain an approximate curve
Figure 346543DEST_PATH_IMAGE009
The curved surface can be approximated as a free curve in the u direction, and a vector between the curved surface and an arbitrary point P in space is expressed as a function R (u, v) in a parametric form0):
Figure 783472DEST_PATH_IMAGE010
Step 42: calculating an approximation curve
Figure 535003DEST_PATH_IMAGE009
And any point in space
Figure 664764DEST_PATH_IMAGE011
Assuming the objective function is F (u, v)0) The following formula is obtained:
Figure 603376DEST_PATH_IMAGE012
wherein:
Figure 594728DEST_PATH_IMAGE013
is that
Figure 404028DEST_PATH_IMAGE009
Partial differential of (a);
step 43: and (5) sequentially and alternately searching the u direction and the v direction of the curved surface by adopting a Newton iteration method to obtain the closest point of the curved surface.
Preferably, the specific operation steps of step 43 include:
step 431: setting the number of circulation steps;
step 432: searching the u direction of the curved surface by adopting a one-way Newton iterative algorithm with correction, calculating the square of the distance between the discrete point searched in the step 3 and any point P, and taking the closest point S (u) as0,v0) As an initial estimate, a newton's iterative formula is obtained as follows:
Figure 439111DEST_PATH_IMAGE014
wherein:
Figure 583129DEST_PATH_IMAGE015
is an iteratively varied value;
Figure 361861DEST_PATH_IMAGE016
is the second derivative;
step 433: calculating a v-direction error, and terminating the search when the error reaches a threshold value;
step 434: adopting a one-way Newton iteration algorithm with correction to search the v direction of the curved surface, wherein the method is the same as the step 432;
step 435: calculating a u-direction error, and terminating the search when the error reaches a threshold value;
step 436: and storing the result of each iteration, and taking the closest point as the final projection point.
Preferably, the specific steps of step 432 include:
step 43201: inputting initial u-direction iteration step size varyU, periodicity isuPeriod and parameter value u0、v0
Step 43202: setting the number of circulation steps;
step 43203: calculating the point S (u) on the surface0,v0) Distance to the proxel;
step 43204: judging the distance and the error value, and ending the circulation when the distance is smaller than the error value;
step 43205: calculating the first derivative Su(u,v0);
Step 43206: calculating the second directional derivative Suu(u,v0);
Step 43207: calculating the point S (u) on the surface0,v0) Directions R (u, v) to the projection point0);
Step 43208: when R (u, v)0) * Su(u,v0) When the error value is smaller than the error value, calculating an adjustment parameter;
step 43209: calculating an angle value;
step 43210: if the angle value is less than the error value, ending the loop;
step 43211: calculating the change of the u-direction parameters;
step 43212: if the angle value is less than the error value, ending the loop;
step 43213: initializing a direction variable isReverse = false, and an initial correction value ratio = 1.0;
step 43214: performing parameter correction algorithm circularly, and correcting the direction R (u, v) of the projection point0) Greater than the projection point direction R (u, v) before correction0) And ending the loop when the direction variable isReverse = true;
step 43215: calculating the change of the u-direction parameters;
step 43216: if the angle value is less than the error value, ending the loop;
step 43217: updating parameter value u0
Preferably, the specific steps of the parameter correction algorithm of step 43208 include:
step 432081: an initial correction value ratio and an initialization direction variable isReverse;
step 432082: if the initial correction value ratio is less than the threshold value t0When the ratio is greater than 0, setting the ratio to be-1 and marking the direction isReverse to be true;
step 432083: if the initial correction value ratio is greater than the threshold value t0And when ratio is less than 0, update the value, correct the boundary and end the loop.
Compared with the prior art, the invention has the beneficial effects that:
compared with the classic Newton bilateral iteration, the effect of the one-way Newton iteration is more ideal in solving the nearest point, the projection of the classic Newton bilateral iteration is trapped in the local minimum value at the crease, the iterative algorithm of the invention well solves the problem, the projected grid of the invention has good overall quality, and can approach the surface of a digital model more accurately. Moreover, the method provided by the invention has higher calculation efficiency on the real geometric model, better robustness, capability of well processing the problems of discontinuous curved surface and the like, and can meet the engineering requirements.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
In the drawings:
FIG. 1 is a schematic flow chart of an efficient closest point projection method based on improved Newton iteration according to the present invention;
FIG. 2 is a surface diagram of the efficient closest point projection method based on improved Newton iteration;
FIGS. 3(a) - (c) are respectively a mesh surface generation front surface graph, a classic Newton bilateral iteration method projection effect graph and an improved Newton iteration based efficient closest point projection method projection effect graph of the efficient closest point projection method based on the improved Newton iteration;
FIGS. 4(a) - (b) are respectively a Layer model before-projection effect graph and a Layer model after-projection effect graph of the efficient closest point projection method based on improved Newton iteration;
FIGS. 5(a) - (b) are respectively a pre-projection effect diagram and a post-projection effect diagram of the f6 standard model pod based on the efficient closest point projection method for improving Newton iteration;
FIGS. 6(a) - (b) are respectively a submarine model tail projection front effect diagram and a submarine model tail projection rear effect diagram based on the high-efficiency closest point projection method for improving Newton iteration;
FIGS. 7(a) - (b) are a pre-projection effect diagram and a post-projection effect diagram of an aircraft model based on the efficient closest point projection method for improving Newton iteration according to the present invention, respectively;
FIGS. 8(a) - (b) are a pre-projection effect diagram and a post-projection effect diagram of the head of the Hb-2 model based on the efficient closest point projection method for improving Newton iteration;
FIGS. 9(a) - (b) are respectively a pre-projection effect graph and a post-projection effect graph of the external surface of the screen model based on the efficient closest point projection method for improving Newton iteration;
FIG. 10 is a boundary line of an original CAD digital-to-analog curved surface of the model denoted by F6;
FIG. 11 is a closed boundary line with discrete points of an original CAD digital-analog curved surface of the model denoted by F6;
FIG. 12 is a grid obtained by applying an overrun interpolation method to an original CAD digital-to-analog curved surface of the F6 model;
FIG. 13 shows a mesh obtained by applying the method of the present invention to an original CAD digital-to-analog curved surface of a model denoted by F6.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
With reference to fig. 1-13, an efficient closest point projection method based on modified newton iteration can be implemented to generate a grid, including the following steps:
step 1: extracting and combining boundary lines of an original CAD digital-analog curved surface, or constructing a curve on the digital-analog surface to obtain closed grid lines, taking discrete points from the grid lines in sequence and at intervals, then applying an overrun interpolation method to the closed grid lines with the discrete points to obtain three-dimensional space points in a closed grid line area, and orderly connecting the three-dimensional space points to obtain a three-dimensional grid; the points are obtained by interpolation, are not close to the CAD digital-analog curved surface, and take three-dimensional space points as points to be projected.
Step 2: and (3) preprocessing the original CAD digital-analog curved surface, performing normalization processing on the original CAD digital-analog curved surface, obtaining discrete points after the parameters are dispersed, and establishing a search tree. The method comprises the following specific steps:
step 21: acquiring all bounded curved surfaces and calculating the maximum and minimum geometric dimensions of the curved surfaces:
Figure 291246DEST_PATH_IMAGE001
wherein:
n +1 is the number of curved surfaces;
Figure 231651DEST_PATH_IMAGE002
is the approximate length of each facet in the u-direction;
Figure 879277DEST_PATH_IMAGE003
is the approximate length of each facet in the v-direction.
Step 22: calculating the discrete degree Nu and Nv of each surface u and v direction:
Figure 196120DEST_PATH_IMAGE004
step 23: and (5) carrying out boundary value control on the discrete degree value in the step (22):
Figure 269028DEST_PATH_IMAGE005
wherein: minV is the minimum discrete value, and min is taken as 3; maxV is the maximum dispersion value, taking max to be 100.
Step 24: calculating the maximum discrete side length:
Figure 380335DEST_PATH_IMAGE006
step 25: and (4) dispersing each curved surface according to the discrete side length in the step (24) to obtain the point of the dispersed triangle and the surface information to which the point belongs, and storing the point information and the surface information in sequence.
Step 26: and calculating the bounding box of each surface by using the coordinate values of the discrete points in the step 25, then obtaining the periodicity information of the surface through the u and v parameter values of the curved surface, and storing the periodicity information as the attribute of the surface.
Step 27: and establishing the AABB search tree according to the discrete points.
And step 3: searching for the discrete point closest to the point to be projected of the three-dimensional grid on the original CAD digital-analog curved surface after normalization processing by using the search tree in the step 2, obtaining a cutting ball by taking the distance between the point to be projected and the closest discrete point as a radius, and excluding the curved surface where the discrete point is searched by using the cutting ball to obtain the discrete point searched on the screening surface and the corresponding surface;
and 4, step 4: and 3, taking the closest point of each surface screened in the step 3 as an initial iteration value, wherein the curved surface is a vector function of two parameters u and v, the curved surface can be represented as the mapping from a two-dimensional area on a plane to a three-dimensional space, and u and v represent the two-dimensional parameter change directions of the curved surface, so that the curved surface is regarded as being formed by infinite u-direction and v-direction parameter curves, iteration is carried out in each direction by adopting a mode of circularly and alternately iterating the u direction and the v direction, and the closest distance point is taken as a final projection point. The method comprises the following specific steps:
step 41: obtaining the closest point on the curved surface S (u, v) according to the step 2
Figure 515257DEST_PATH_IMAGE007
Taking the value of v constant
Figure 635791DEST_PATH_IMAGE008
To obtain an approximate curve
Figure 290501DEST_PATH_IMAGE009
The curved surface can be approximated as a free curve in the u direction, and a vector between the curved surface and an arbitrary point P in space is expressed as a function R (u, v) in a parametric form0):
Figure 838288DEST_PATH_IMAGE010
Step 42: calculating an approximation curve
Figure 178615DEST_PATH_IMAGE009
And any point in space
Figure 102839DEST_PATH_IMAGE011
Assuming the objective function is F (u, v)0) The following formula is obtained:
Figure 877635DEST_PATH_IMAGE012
wherein:
Figure 596324DEST_PATH_IMAGE013
is that
Figure 440258DEST_PATH_IMAGE009
Partial differential of (a);
step 43: the method for finding the closest point of the curved surface by sequentially and alternately searching the u direction and the v direction of the curved surface by adopting a Newton iteration method specifically comprises the following steps:
step 431: the number of cycle steps is set.
Step 432: searching the direction of the curved surface u by adopting a one-way Newton iterative algorithm with correction, calculating the square of the distance between the discrete point searched in the step 3 and any point P, and taking the closest point S (u) as0,v0) As an initial estimate, a newton's iterative formula is obtained as follows:
Figure 902595DEST_PATH_IMAGE014
wherein:
Figure 515585DEST_PATH_IMAGE015
is an iteratively varied value;
Figure 405175DEST_PATH_IMAGE016
is the second derivative.
The method comprises the following specific steps:
step 43201: inputting initial u-direction iteration step size varyU, periodicity isuPeriod and parameter value u0、vi
Step 43202: setting the number of circulation steps;
step 43203: calculating the point S (u) on the surface0,v0) Distance to the proxel;
step 43204: judging the distance and the error value, and ending the circulation when the distance is smaller than the error value;
step 43205: calculating the first derivative Su(u,v0);
Step 43206: calculating the second directional derivative Suu(u,v0);
Step 43207: calculating the point S (u) on the surface0,v0) Directions R (u, v) to the projection point0);
Step 43208: when R (u, v)0) * Su(u,v0) When the error value is smaller than the error value, the calculation of the adjustment parameter specifically includes:
step 432081: an initial correction value ratio and an initialization direction variable isReverse;
step 432082: if the initial correction value ratio is less than the threshold value t0When the ratio is greater than 0, setting the ratio to be-1 and marking the direction isReverse to be true;
step 432083: if the initial correction value ratio is greater than the threshold value t0When the ratio is less than 0, updating a value, correcting the boundary and ending the cycle;
step 43209: calculating an angle value;
step 43210: if the angle value is less than the error value, ending the loop;
step 43211: calculating the change of the u-direction parameters;
step 43212: if the angle value is less than the error value, ending the loop;
step 43213: initializing a direction variable isReverse = false, and an initial correction value ratio = 1.0;
step 43214: performing parameter correction algorithm circularly, and correcting the direction R (u, v) of the projection point0) Greater than the projection point direction R (u, v) before correction0) And ending the loop when the direction variable isReverse = true;
step 43215: calculating the change of the u-direction parameters;
step 43216: if the angle value is less than the error value, ending the loop;
step 43217: updating parameter value u0
Step 433: calculating a v-direction error, and terminating the search when the error reaches a threshold value;
step 434: adopting a one-way Newton iteration algorithm with correction to search the direction of the curved surface v, wherein the method is the same as the step 432;
step 435: calculating a u-direction error, and terminating the search when the error reaches a threshold value;
step 436: and storing the result of each iteration, and taking the closest point as the final projection point.
Examples
Example demonstration and quality check
(1) Layer model
In order to verify the efficient closest point projection method based on the improved Newton iteration, a Layer model is used for projection, and the result is checked;
fig. 4(a) is a diagram of the effect of the Layer model before projection, and fig. 4(b) is a diagram of the effect of the Layer model after projection.
(2) f6 standard model nacelle
Using f6 standard model pod to project and check the result;
FIG. 5(a) is a diagram showing the effect of the model pod f6 before projection, and FIG. 5(b) is a diagram showing the effect of the model pod f6 after projection.
(3) Submarine model tail
Projecting by using the tail part of the submarine model, and checking the result;
FIG. 6(a) is an effect diagram before submarine model tail projection, and FIG. 6(b) is an effect diagram after submarine model tail projection.
(4) Model of an aircraft
Projecting by using a certain aircraft model, and checking the result;
fig. 7(a) is a projected front effect diagram of an aircraft model, and fig. 7(b) is a projected rear effect diagram of the aircraft model.
(5) Hb-2 model head
Using the head of the Hb-2 model to perform projection, and checking the result;
FIG. 8(a) is a diagram of the effect of the Hb-2 head model before projection, and FIG. 8(b) is a diagram of the effect of the Hb-2 head model after projection.
(6) Outer surface of screen model
Projecting by using the outer surface of the screen model, and checking the result;
fig. 9(a) is a diagram of an effect of the external surface of the screen model before projection, and fig. 9(b) is a diagram of an effect of the external surface of the screen model after projection.
(7) F6 Standard model outline surface
The boundary line of the original CAD digital-analog curved surface of the F6 standard model is shown in FIG. 10, four closed grid lines are obtained by extracting and combining the boundary line, and the same discrete points are taken from the four grid lines according to opposite sides, as shown in FIG. 11; then applying an overrun interpolation method to the closed grid lines with the discrete points to obtain three-dimensional space points in the closed grid line area, and orderly connecting the three-dimensional space points to obtain a three-dimensional grid, wherein the three-dimensional grid is not close to the CAD digital-analog curved surface, as shown in FIG. 12; then, preprocessing an original CAD digital-analog curved surface, carrying out normalization processing on the original CAD digital-analog curved surface, obtaining discrete points after the parameters are dispersed, and establishing a search tree; searching the discrete points closest to the point to be projected of the three-dimensional grid on the curved surface after normalization processing by using the obtained search tree, obtaining a cutting ball by taking the distance between the point to be projected and the closest discrete points as a radius, and eliminating the given curved surface by using the cutting ball to obtain the discrete points searched on the screening surface and the corresponding surface; taking the closest point of each surface after screening as an initial iteration value, regarding the curved surface as being formed by an infinite u-direction and v-direction parameter curve, performing iteration in each direction by adopting a circular alternate iteration mode of firstly performing u-direction iteration and then performing v-direction iteration, and taking the closest distance point as a final projection point; and (3) replacing the obtained projection points with three-dimensional space points to finally obtain a grid close to the surface of the digital-analog, as shown in fig. 13.
As can be seen from the drawings, for the actual engineering digital analogy, the grid projected by the method provided by the invention has good overall quality, can approach the surface of the digital analogy more accurately, can well solve the problems of discontinuous curved surface and the like, and meets the engineering requirements.
Conclusion of the experiment
According to the verification process, the high-efficiency closest point projection method based on the improved Newton iteration has good overall quality of the projected grid, and can approach the surface of a digital-analog more accurately. The method has higher calculation efficiency on the real geometric model, better robustness and can well process the problems of surface discontinuity and the like.
In addition, the method can also be used for generating the grid lines of the skin, and the principle is the same as the grid surface of the net.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (6)

1. An efficient closest point projection method based on improved Newton iteration is characterized in that: the method comprises the following steps:
step 1: extracting and combining boundary lines of an original CAD digital-analog curved surface, or constructing a curve on the digital-analog surface to obtain closed grid lines, taking discrete points from the grid lines in sequence and at intervals, then applying an overrun interpolation method to the closed grid lines with the discrete points to obtain three-dimensional space points in a closed grid line area, and orderly connecting the three-dimensional space points to obtain a three-dimensional grid; the points are obtained by interpolation, are not close to a CAD digital-analog curved surface, and take three-dimensional space points as points to be projected;
step 2: preprocessing an original CAD digital-analog curved surface, performing normalization processing on the original CAD digital-analog curved surface, obtaining discrete points after the parameters of the original CAD digital-analog curved surface are dispersed, and establishing a search tree;
and step 3: searching for the discrete point closest to the point to be projected of the three-dimensional grid on the original CAD digital-analog curved surface after normalization processing by using the search tree in the step 2, obtaining a cutting ball by taking the distance between the point to be projected and the closest discrete point as a radius, and excluding the curved surface where the discrete point is searched by using the cutting ball to obtain the discrete point searched on the screening surface and the corresponding surface;
and 4, step 4: taking the closest point of each surface screened in the step 3 as an initial iteration value, wherein the curved surface is a vector function of two parameters u and v, the curved surface can be represented as the mapping from a two-dimensional area on a plane to a three-dimensional space, and u and v represent the two-dimensional parameter change directions of the curved surface, so that the curved surface is regarded as being formed by infinite u-direction and v-direction parameter curves, iteration is carried out in each direction by adopting a circular alternate iteration mode of firstly carrying out the u-direction and then carrying out the v-direction, and the closest distance point is taken as a final projection point;
and 5: and (4) replacing the three-dimensional space points in the step (1) with the projection points obtained in the step (4) to finally obtain a grid attached to the surface of the digital-analog.
2. The efficient closest point projection method based on improved Newton iteration as claimed in claim 1, wherein: the specific operation steps of the step 2 comprise:
step 21: acquiring all bounded curved surfaces, and calculating the maximum and minimum geometric dimensions of the curved surfaces:
Figure 203701DEST_PATH_IMAGE001
wherein:
n +1 is the number of curved surfaces;
Figure 137153DEST_PATH_IMAGE002
is the approximate length of each facet in the u-direction;
Figure 664693DEST_PATH_IMAGE003
is the approximate length of each facet in the v-direction;
step 22: calculating the dispersion Nu and Nv of the u direction and the v direction of each curved surface:
Figure 810635DEST_PATH_IMAGE004
step 23: and (5) carrying out boundary value control on the discrete degree value in the step (22):
Figure 396247DEST_PATH_IMAGE005
wherein: minV is the minimum dispersion value and maxV is the maximum dispersion value;
step 24: solving the maximum discrete side length of each curved surface:
Figure 969442DEST_PATH_IMAGE006
step 25: dispersing each curved surface according to the discrete side length in the step 24 to obtain the point of the dispersed triangle and the surface information to which the point belongs, and storing the point information and the surface information in sequence;
step 26: calculating the bounding box of each surface by using the coordinate values of the discrete points in the step 25, then obtaining the periodic information of the surface through the u and v parameter values of the curved surface, and storing the periodic information as the attribute of the surface;
step 27: and establishing the AABB search tree according to the discrete points.
3. The efficient closest point projection method based on improved Newton iteration as claimed in claim 2, wherein: the specific operation steps of the step 4 are as follows:
step 41: obtaining the closest point on the curved surface S (u, v) according to the step 2
Figure 984278DEST_PATH_IMAGE007
Taking the value of v constant
Figure 933911DEST_PATH_IMAGE008
To obtain an approximate curve
Figure 350592DEST_PATH_IMAGE009
The curved surface can be approximated as a free curve in the u direction, and a vector between the curved surface and an arbitrary point P in space is expressed as a function R (u, v) in a parametric form0):
Figure 360268DEST_PATH_IMAGE010
Step 42: calculating an approximation curve
Figure 862400DEST_PATH_IMAGE009
And any point in space
Figure 350144DEST_PATH_IMAGE011
Assuming the objective function is F (u, v)0) The following formula is obtained:
Figure 886911DEST_PATH_IMAGE012
wherein:
Figure 67488DEST_PATH_IMAGE013
is that
Figure 322496DEST_PATH_IMAGE009
Partial differential of (a);
step 43: and (5) sequentially and alternately searching the u direction and the v direction of the curved surface by adopting a Newton iteration method to obtain the closest point of the curved surface.
4. The efficient closest point projection method based on improved Newton iteration as claimed in claim 3, wherein: the specific operation of step 43 includes:
step 431: setting the number of circulation steps;
step 432: searching the u direction of the curved surface by adopting a one-way Newton iterative algorithm with correction, calculating the square of the distance between the discrete point searched in the step 3 and any point P, and taking the closest point S (u) as0,v0) As an initial estimate, a newton's iterative formula is obtained as follows:
Figure 348351DEST_PATH_IMAGE014
wherein:
Figure 739625DEST_PATH_IMAGE015
is an iteratively varied value;
Figure 838906DEST_PATH_IMAGE016
is the second derivative;
step 433: calculating a v-direction error, and terminating the search when the error reaches a threshold value;
step 434: adopting a one-way Newton iteration algorithm with correction to search the v direction of the curved surface, wherein the method is the same as the step 432;
step 435: calculating a u-direction error, and terminating the search when the error reaches a threshold value;
step 436: and storing the result of each iteration, and taking the closest point as the final projection point.
5. The efficient closest point projection method based on improved Newton iteration as claimed in claim 4, wherein: the specific steps of step 432 include:
step 43201: input deviceInitial u-direction iteration step size varyU, periodic isuPeriod and parameter value u0、v0
Step 43202: setting the number of circulation steps;
step 43203: calculating the point S (u) on the surface0,v0) Distance to the proxel;
step 43204: judging the distance and the error value, and ending the circulation when the distance is smaller than the error value;
step 43205: calculating the first derivative Su(u,v0);
Step 43206: calculating the second directional derivative Suu(u,v0);
Step 43207: calculating the point S (u) on the surface0,v0) Directions R (u, v) to the projection point0);
Step 43208: when R (u, v)0) * Su(u,v0) When the error value is smaller than the error value, calculating an adjustment parameter;
step 43209: calculating an angle value;
step 43210: if the angle value is less than the error value, ending the loop;
step 43211: calculating the change of the u-direction parameters;
step 43212: if the angle value is less than the error value, ending the loop;
step 43213: initializing a direction variable isReverse = false, and an initial correction value ratio = 1.0;
step 43214: performing parameter correction algorithm circularly, and correcting the direction R (u, v) of the projection point0) Greater than the projection point direction R (u, v) before correction0) And ending the loop when the direction variable isReverse = true;
step 43215: calculating the change of the u-direction parameters;
step 43216: if the angle value is less than the error value, ending the loop;
step 43217: updating parameter value u0
6. The efficient closest point projection method based on modified Newton's iteration as claimed in claim 5, wherein: the specific steps of the parameter correction algorithm of step 43208 include:
step 432081: an initial correction value ratio and an initialization direction variable isReverse;
step 432082: if the initial correction value ratio is less than the threshold value t0When the ratio is greater than 0, setting the ratio to be-1 and marking the direction isReverse to be true;
step 432083: if the initial correction value ratio is greater than the threshold value t0And when ratio is less than 0, update the value, correct the boundary and end the loop.
CN202110634535.4A 2021-06-08 2021-06-08 Efficient closest point projection method based on improved Newton iteration Active CN113343328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110634535.4A CN113343328B (en) 2021-06-08 2021-06-08 Efficient closest point projection method based on improved Newton iteration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110634535.4A CN113343328B (en) 2021-06-08 2021-06-08 Efficient closest point projection method based on improved Newton iteration

Publications (2)

Publication Number Publication Date
CN113343328A true CN113343328A (en) 2021-09-03
CN113343328B CN113343328B (en) 2022-11-29

Family

ID=77474733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110634535.4A Active CN113343328B (en) 2021-06-08 2021-06-08 Efficient closest point projection method based on improved Newton iteration

Country Status (1)

Country Link
CN (1) CN113343328B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115600309A (en) * 2022-09-02 2023-01-13 南京天洑软件有限公司(Cn) Method and device for designing molded surface of automobile windshield mold based on curved surface reconstruction
CN115690361A (en) * 2022-11-09 2023-02-03 浙江大学 Quick robust free-form surface triangulation method and device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770531A (en) * 2008-12-30 2010-07-07 北京华大九天软件有限公司 Method for improving circuit emulation run speed
CN102831648A (en) * 2012-07-19 2012-12-19 邢学军 Fixed node discharge curve approximation and curved surface mesh generation optimizing technology
CN104063896A (en) * 2014-06-24 2014-09-24 南京大学 3D building model structure discovery method based on transformation space
CN104517032A (en) * 2014-12-02 2015-04-15 华中科技大学 Fitting method of data points based on B-spline curve and device
CN106483496A (en) * 2016-10-19 2017-03-08 河南城建学院 Based on CHAN algorithm with improve Newton iteration combine time difference positioning method
CN106908052A (en) * 2017-02-09 2017-06-30 北京光年无限科技有限公司 For the paths planning method and device of intelligent robot
CN108020172A (en) * 2016-11-01 2018-05-11 中国科学院沈阳自动化研究所 A kind of aircraft surface workmanship detection method based on 3D data
CN109087323A (en) * 2018-07-25 2018-12-25 武汉大学 A kind of image three-dimensional vehicle Attitude estimation method based on fine CAD model
CN109360272A (en) * 2018-09-21 2019-02-19 浙江理工大学 A kind of grid surface curve design method based on distance restraint
CN110057399A (en) * 2019-03-28 2019-07-26 东南大学 A kind of temperature field based on 3D-DIC and displacement field synchronized measurement system and measurement method
CN110807836A (en) * 2020-01-08 2020-02-18 腾讯科技(深圳)有限公司 Three-dimensional face model generation method, device, equipment and medium
CN111222271A (en) * 2020-01-03 2020-06-02 中国石油大学(华东) Numerical reservoir fracture simulation method and system based on matrix-fracture unsteady state channeling
CN111354033A (en) * 2020-02-28 2020-06-30 西安交通大学 Digital image measuring method based on feature matching
CN111707262A (en) * 2020-05-19 2020-09-25 上海有个机器人有限公司 Point cloud matching method, medium, terminal and device based on closest point vector projection

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770531A (en) * 2008-12-30 2010-07-07 北京华大九天软件有限公司 Method for improving circuit emulation run speed
CN102831648A (en) * 2012-07-19 2012-12-19 邢学军 Fixed node discharge curve approximation and curved surface mesh generation optimizing technology
CN104063896A (en) * 2014-06-24 2014-09-24 南京大学 3D building model structure discovery method based on transformation space
CN104517032A (en) * 2014-12-02 2015-04-15 华中科技大学 Fitting method of data points based on B-spline curve and device
CN106483496A (en) * 2016-10-19 2017-03-08 河南城建学院 Based on CHAN algorithm with improve Newton iteration combine time difference positioning method
CN108020172A (en) * 2016-11-01 2018-05-11 中国科学院沈阳自动化研究所 A kind of aircraft surface workmanship detection method based on 3D data
CN106908052A (en) * 2017-02-09 2017-06-30 北京光年无限科技有限公司 For the paths planning method and device of intelligent robot
CN109087323A (en) * 2018-07-25 2018-12-25 武汉大学 A kind of image three-dimensional vehicle Attitude estimation method based on fine CAD model
CN109360272A (en) * 2018-09-21 2019-02-19 浙江理工大学 A kind of grid surface curve design method based on distance restraint
CN110057399A (en) * 2019-03-28 2019-07-26 东南大学 A kind of temperature field based on 3D-DIC and displacement field synchronized measurement system and measurement method
CN111222271A (en) * 2020-01-03 2020-06-02 中国石油大学(华东) Numerical reservoir fracture simulation method and system based on matrix-fracture unsteady state channeling
CN110807836A (en) * 2020-01-08 2020-02-18 腾讯科技(深圳)有限公司 Three-dimensional face model generation method, device, equipment and medium
CN111354033A (en) * 2020-02-28 2020-06-30 西安交通大学 Digital image measuring method based on feature matching
CN111707262A (en) * 2020-05-19 2020-09-25 上海有个机器人有限公司 Point cloud matching method, medium, terminal and device based on closest point vector projection

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
KONYUKHOV A等: "On the solvability of closest point projection procedures in contact analysis: Analysis and solution strategy for surfaces of arbitrary geometry", 《COMPUTER METHODS IN APPLIED MECHANICS AND ENGINEERING》 *
OH Y T等: "Efficient point-projection to freeform curves and surfaces", 《COMPUTER AIDED GEOMETRIC DESIGN》 *
QI LONG等: "An Efficient Nearest Point Projection Method Based on Improved Newton Iteration", 《PROCEEDINGS OF 2021 CHINESE INTELLIGENT SYSTEMS CONFERENCE. SPRINGER, SINGAPORE> *
SONG H C等: "Parameter Estimation of Point Projection on NURBS Curves and Surfaces", 《2015 14TH INTERNATIONAL CONFERENCE ON COMPUTER-AIDED DESIGN AND COMPUTER GRAPHICS (CAD/GRAPHICS)》 *
宋海川: "点到自由曲线和曲面上法向投影问题的研究", 《中国博士学位论文全文数据库信息科技辑》 *
王龙权等: "点到NURBS曲线最近距离的快速计算方法", 《计算机辅助设计与图形学学报》 *
翟高鹏等: "基于Romberg积分与牛顿迭代的高斯投影坐标正反算算法", 《测绘地理信息》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115600309A (en) * 2022-09-02 2023-01-13 南京天洑软件有限公司(Cn) Method and device for designing molded surface of automobile windshield mold based on curved surface reconstruction
CN115600309B (en) * 2022-09-02 2023-11-07 南京天洑软件有限公司 Method and device for designing mold surface of automobile windshield based on curved surface reconstruction
CN115690361A (en) * 2022-11-09 2023-02-03 浙江大学 Quick robust free-form surface triangulation method and device
CN115690361B (en) * 2022-11-09 2024-01-30 浙江大学 Rapid and robust free-form surface triangulation method and device

Also Published As

Publication number Publication date
CN113343328B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN109740227B (en) Miniature complex part modeling method based on feature recognition
US10147217B2 (en) Audio-based caricature exaggeration
CN110688947B (en) Method for synchronously realizing human face three-dimensional point cloud feature point positioning and human face segmentation
CN113343328B (en) Efficient closest point projection method based on improved Newton iteration
US20100066760A1 (en) Systems and methods for enhancing symmetry in 2d and 3d objects
CN111581776B (en) Iso-geometric analysis method based on geometric reconstruction model
CN109377563A (en) A kind of method for reconstructing of face wire frame model, device, equipment and storage medium
CN112200915B (en) Front-back deformation detection method based on texture image of target three-dimensional model
Cheng et al. Fitting subdivision surfaces to unorganized point data using SDM
Wang et al. Arap++: an extension of the local/global approach to mesh parameterization
CN110689620A (en) Multi-level optimized mesh surface discrete spline curve design method
Loseille et al. On 3D anisotropic local remeshing for surface, volume and boundary layers
Zhao et al. NormalNet: Learning-based mesh normal denoising via local partition normalization
Wang et al. TCB-spline-based isogeometric analysis method with high-quality parameterizations
Cai et al. Surface approximation via asymptotic optimal geometric partition
Huang et al. Adaptive hexahedral mesh generation and regeneration using an improved grid-based method
US10282858B2 (en) Methods and systems for estimating three-dimensional information from two-dimensional concept drawings
CN107818578B (en) Rapid face model reconstruction algorithm and system based on registration method
CN115760954A (en) Method for rapidly calculating surface area of complex surface based on point cloud data
CN112767462B (en) Point cloud single-point alignment method based on ridge-valley characteristics and depth characteristic descriptors
Muraki et al. Curve Mesh Modeling Method of Trimmed Surfaces for Direct Modeling
CN112837420A (en) Method and system for completing shape of terracotta warriors point cloud based on multi-scale and folding structure
CN117437362B (en) Three-dimensional animation model generation method and system
CN112819961B (en) Simplified grid deformation method and device based on micro-computing
Morooka et al. Self-organizing deformable model: A new method for fitting mesh model to given object surface

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