CN111353990A - Method and device for acquiring theoretical value of circular groove, computer equipment and storage medium - Google Patents

Method and device for acquiring theoretical value of circular groove, computer equipment and storage medium Download PDF

Info

Publication number
CN111353990A
CN111353990A CN202010152375.5A CN202010152375A CN111353990A CN 111353990 A CN111353990 A CN 111353990A CN 202010152375 A CN202010152375 A CN 202010152375A CN 111353990 A CN111353990 A CN 111353990A
Authority
CN
China
Prior art keywords
plane
point
acquiring
cylindrical
circular groove
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
CN202010152375.5A
Other languages
Chinese (zh)
Other versions
CN111353990B (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.)
Shenzhen Lihe Precision Equipment Technology Co ltd
Original Assignee
Shenzhen Lihe Precision Equipment Technology Co ltd
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 Shenzhen Lihe Precision Equipment Technology Co ltd filed Critical Shenzhen Lihe Precision Equipment Technology Co ltd
Priority to CN202010152375.5A priority Critical patent/CN111353990B/en
Publication of CN111353990A publication Critical patent/CN111353990A/en
Application granted granted Critical
Publication of CN111353990B publication Critical patent/CN111353990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)

Abstract

The invention discloses a method, a device, computer equipment and a storage medium for acquiring a circular groove theoretical value, wherein the method comprises the following steps: obtaining the type of an original surface A of a tested workpiece model, and executing a plane measurement process when the original surface A is a plane; when the original surface A is a spline surface, fitting the spline surface into a plane, and if the fitting is successful, executing a plane measurement process; and when the original surface A is a cylindrical surface, executing a cylindrical surface measuring process. The invention can randomly select one surface of the circular groove, then directly obtain the theoretical value of the circular groove, and simultaneously can eliminate the interference of error factors such as bulges or grooves in the plane of the circular groove.

Description

Method and device for acquiring theoretical value of circular groove, computer equipment and storage medium
Technical Field
The invention relates to the field of coordinate measurement, in particular to a method and a device for acquiring a circular groove theoretical value, computer equipment and a storage medium.
Background
In the prior art, when coordinate measurement is performed, a theoretical value of a measurement characteristic is an important parameter for generating a measurement path and guiding a measuring machine to actually measure, and is also important data for performing error judgment on a measurement result.
For circular groove measurement, the following requirements are satisfied: and selecting any surface of the circular groove, automatically associating the characteristics of the whole circular groove, and automatically acquiring various measurement parameters. However, the above-mentioned measurement effect cannot be achieved in the prior art.
In view of the above problems with the prior art, there is a need for optimization and improvement of the prior art.
Disclosure of Invention
The embodiment of the invention provides a method, a device, computer equipment and a storage medium for obtaining a theoretical value of a circular groove, and aims to solve the problem that the prior art cannot automatically measure any surface of the circular groove.
The embodiment of the invention provides a method for acquiring a circular groove theoretical value in a measurement process, which comprises the following steps:
obtaining the type of an original surface A of a tested workpiece model, and executing a plane measurement process when the original surface A is a plane; when the original surface A is a spline surface, fitting the spline surface into a plane, and if the fitting is successful, executing a plane measurement process; when the original surface A is a cylindrical surface, executing a cylindrical surface measuring process;
the steps of the plane measurement process include:
s1, acquiring a normal vector Va and a central point Pa of the original surface A;
s2, taking the central point Pa as a starting point, emitting along the direction of the normal vector Va to form a ray lin, solving a first intersection point of the ray lin and the measured workpiece model in the direction of the normal vector Va, and setting the intersection point as a point Pc;
s3, taking the original surface A as a starting surface and executing the flow of creating a set of adjacent surfaces to obtain a set of surfaces PlaneAs and removing the surfaces of non-cylindrical types;
wherein the process of creating a set of adjacent surfaces comprises: acquiring all straight edges of the outermost ring of the starting surface and forming an edge set; acquiring surfaces which are adjacent to the initial surface and share the same edge, and adding all the surfaces into a surface set;
s4, executing the flow of creating the set of adjacent surfaces by taking each surface in the set PlaneAs as a starting surface, obtaining a plurality of sets TPS, putting elements in all the sets TPS into the sets PlaneBs of the surfaces, and removing repeated items, the original surface A and the non-planar surface;
s5, finding the surface where the Pc point is located in the set PlaneBs, setting the surface as a plane C, executing the process of creating the set of adjacent surfaces by taking the plane C as a starting surface, acquiring a set PlaneCs of the surfaces, and removing the non-cylindrical surfaces;
s6, acquiring intersection PlaneBDs of the set PlaneAs and the set PlaneCs; in the set PlaneBDs, 2 cylindrical surfaces with parallel and non-coincident axes are obtained and respectively used as a cylindrical surface B and a cylindrical surface D;
s7, calculating the distance from the center point Pa to the point Pc as the length of the circular groove, and obtaining the center B and the center D on the axis of the cylindrical surface B and the cylindrical surface D, respectively, and obtaining the radius R of the cylindrical surface B.
Preferably, the cylindrical surface measuring process includes the steps of:
t1, taking the original surface A as a starting surface and executing the flow of creating a set of adjacent surfaces to obtain a set of surfaces Planeas, and removing surfaces of non-planar types in the Planeas;
t2, circularly traversing the planes in the PlaneAs to obtain 2 planes with reverse normal vectors, namely a plane B and a plane D;
t3, using the plane B as a starting plane to execute the flow of creating the set of adjacent planes, acquiring a set of planes, and removing the non-cylindrical planes in the planes; executing the flow of creating the set of adjacent surfaces by taking the plane D as a starting surface, acquiring a set of surfaces PlaneDs, and removing the surfaces of non-cylindrical types in the PlaneDs;
t4, acquiring intersection PlaneBDs of the set PlaneBs and the set PlaneDs, and obtaining a cylindrical surface C except the original surface A from the intersection PlaneBDs;
t5, taking a central point Pb on the plane B as a starting point, emitting along the direction of a normal vector Vb of the plane B to form a ray lin, solving a first intersection point of the ray lin and the measured workpiece model in the direction of the normal vector Vb, and setting the intersection point as a point Pd;
t6, calculating the center point Pb to the point Pd as the length of the circular groove, and acquiring the points centerA and centercc on the axes of the original plane a and the cylindrical plane C, respectively, and acquiring the radius R of the cylindrical plane a.
Preferably, when the original surface a is a spline surface, fitting the spline surface to a plane, and if the fitting is successful, executing a plane measurement process, including:
if the original surface A is a spline surface, dispersing the original surface A into a point set Pas according to an equal area method, fitting the point set Pas into a plane by using a least square method within a tolerance Tol range, and acquiring a normal vector Va and a central point Pa of the plane.
Preferably, the forming a ray lin along the direction of the normal vector Va with the central point Pa as a starting point includes:
firstly, a central point Pa is translated along the direction of a normal vector Va to obtain a point Pa1, and then a ray lin is formed by the point Pa1 along the direction of the normal vector Va.
Preferably, the acquiring all the straight edges of the outermost ring of the start surface and forming a set of edges includes:
internal pores or interference lines of the filtration starting face.
Preferably, after step S7, the method further includes:
and S8, recording a space geometric plane according to the central point Pa and the normal vector Va, taking the space geometric plane as one plane of the circular groove, and recording the plane where the point Pc is located as the other plane of the circular groove.
Preferably, after the step T6, the method further includes:
and T7, recording a space geometric plane according to the central point Pb and the normal vector Vb, taking the space geometric plane as one plane of the circular groove, and recording the plane where the point Pd is located as the other plane of the circular groove.
The embodiment of the invention also provides a device for acquiring the theoretical value of the circular groove in the measuring process, which comprises the following steps:
the plane execution unit is used for acquiring the type of an original plane A of the tested workpiece model, and executing a plane measurement process when the original plane A is a plane; when the original surface A is a spline surface, fitting the spline surface into a plane, and if the fitting is successful, executing a plane measurement process;
the cylindrical surface execution unit is used for executing a cylindrical surface measurement process when the original surface A is a cylindrical surface;
the plane execution unit includes:
the acquisition unit is used for acquiring a normal vector Va and a central point Pa of an original surface A;
the ray unit is used for emitting rays along the direction of the normal vector Va by taking the central point Pa as a starting point to form a ray lin, solving a first intersection point of the ray lin and a measured workpiece model in the direction of the normal vector Va, and setting the intersection point as a point Pc;
a first plane set creating unit, configured to use the original plane a as a starting plane and execute a process of creating a set of adjacent planes, obtain a set of planes of the planes, and remove a non-cylindrical plane from the set of planes;
wherein the process of creating a set of adjacent surfaces comprises: acquiring all straight edges of the outermost ring of the starting surface and forming an edge set; acquiring surfaces which are adjacent to the initial surface and share the same edge, and adding all the surfaces into a surface set;
a cylindrical surface set creating unit, configured to execute the process of creating a set of adjacent surfaces with each surface in the set PlaneAs as a starting surface, obtain multiple sets TPS, put elements in all sets TPS into a set PlaneBs of surfaces, and remove duplicate items, an original surface a, and a non-planar surface;
a second plane set creating unit, configured to find a plane where the Pc point is located in the set PlaneBs, set the plane as a plane C, execute the process of creating a set of adjacent planes by using the plane C as a starting plane, obtain a set PlaneCs of planes, and remove a non-cylindrical plane from the set PlaneCs;
an intersection unit, configured to obtain intersection PlaneBDs of the set PlaneAs and the set PlaneCs; in the set PlaneBDs, 2 cylindrical surfaces with parallel and non-coincident axes are obtained and respectively used as a cylindrical surface B and a cylindrical surface D;
and the calculating unit is used for calculating the distance from the central point Pa to the point Pc as the length of the circular groove, respectively acquiring a point centrB and a point centrD on the axis of the cylindrical surface B and the cylindrical surface D, and acquiring the radius R of the cylindrical surface B.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the method for obtaining the theoretical value of the circular groove in the measurement process as described above is implemented.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the method for obtaining the circular groove theoretical value in the measurement process.
The embodiment of the invention provides a method, a device, computer equipment and a storage medium for acquiring a circular groove theoretical value, wherein the method comprises the following steps: obtaining the type of an original surface A of a tested workpiece model, and executing a plane measurement process when the original surface A is a plane; when the original surface A is a spline surface, fitting the spline surface into a plane, and if the fitting is successful, executing a plane measurement process; and when the original surface A is a cylindrical surface, executing a cylindrical surface measuring process. The invention can randomly select one surface of the circular groove, then directly obtain the theoretical value of the circular groove, and simultaneously can eliminate the interference of error factors such as bulges or grooves in the plane of the circular groove. The method is mainly applied to circular groove characteristic measurement in the field of coordinate measurement, and when a workpiece to be measured has a three-dimensional geometric model, the method of the embodiment of the invention can be used for automatically acquiring the theoretical value parameters of the selected circular groove and is applied to actual measurement.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a plane measurement process according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a cylindrical surface measurement process according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a plane execution unit according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the invention provides a method for acquiring a circular groove theoretical value in a measurement process, which comprises the following steps:
obtaining the type of an original surface A of a tested workpiece model, and executing a plane measurement process when the original surface A is a plane; when the original surface A is a spline surface, fitting the spline surface into a plane, and if the fitting is successful, executing a plane measurement process; and when the original surface A is a cylindrical surface, executing a cylindrical surface measuring process.
If the original plane a is a plane, the normal vector Va of the original plane a and the central point Pa of the original plane a can be obtained. If the original surface a is a cylindrical surface, the axis of the original surface a can be obtained, the point centra on the axis is obtained, and the radius Ra of the cylindrical surface is obtained according to the point centra.
In an embodiment, when the original surface a is a spline surface, fitting the spline surface to a plane, and if the fitting is successful, executing a plane measurement procedure, including:
if the original surface A is a spline surface, dispersing the original surface A into a point set Pas according to an equal area method, fitting the point set Pas into a plane by using a least square method within a tolerance Tol range, and acquiring a normal vector Va and a central point Pa of the plane.
Of course, in the embodiment of the present invention, if the original surface a is a spline surface, the original surface a may also be discretized into a set Pas of points according to an equal area method, and the set Pas is fitted into a cylindrical surface within the tolerance Tol range. If the fitting is successful, taking a point CenterA of the axis of the cylindrical surface, and obtaining the radius R of the cylindrical surface according to the point CenterA.
As shown in fig. 1, the steps of the plane measurement process include:
s101, acquiring a normal vector Va and a central point Pa of an original surface A;
s102, with the central point Pa as a starting point, emitting along the direction of the normal vector Va to form a ray lin, solving a first intersection point of the ray lin and a workpiece model to be measured in the direction of the normal vector Va, and setting the intersection point as a point Pc;
in an embodiment, the forming a ray lin along the direction of the normal vector Va with the central point Pa as a starting point includes:
firstly, a central point Pa is translated along the direction of a normal vector Va to obtain a point Pa1, and then a ray lin is formed by the point Pa1 along the direction of the normal vector Va.
Specifically, the point Pa1 is obtained by translating the central point Pa in the direction of the vector Va by a minimum distance (0.001), so that the intersection point with the workpiece model to be measured in the next step can be reduced, and the calculation speed is improved. Ray lin is thus formed with point Pa1 and vector Va.
S103, taking the original surface A as a starting surface and executing a process of creating a set of adjacent surfaces to obtain a set of surfaces PlaneAs and removing non-cylindrical surfaces;
wherein the process of creating a set of adjacent surfaces comprises: acquiring all straight edges of the outermost ring of the starting surface and forming an edge set; acquiring surfaces which are adjacent to the initial surface and share the same edge, and adding all the surfaces into a surface set;
in one embodiment, the obtaining all the straight edges of the outermost ring of the start surface and forming a set of edges includes:
internal pores or interference lines of the filtration starting face.
That is, the original plane a is used as a starting plane, the internal holes or other interference lines of the starting plane are filtered to obtain all the edges of the outermost ring of the starting plane a, and then the edges of the nonlinear segment and the edges which cannot be fitted into the linear segment in the tolerance Tol range by the least square method are removed, so that all the straight edges of the outermost ring of the starting plane are obtained, and the set EdgesA of the edges is formed. Then, in the tested workpiece model, adding the surfaces which have shared edges with the original surface A and the shared edges are contained in the EdgesA into a set of Planeas, and removing the surfaces of non-cylindrical types in the Planeas. That is to say, in the embodiment of the present invention, a surface that is adjacent to the start surface and shares the same edge is obtained, where the sharing of the same edge means that the same edge in the set EdgesA belonging to the edge is shared, and thus the shared edge must be an edge of a straight line segment.
S104, executing the process of creating the set of adjacent surfaces by taking each surface in the set PlaneAs as a starting surface, obtaining a plurality of sets TPS, putting elements in all the sets TPS into the sets PlaneBs of the surfaces, and removing repeated items, the original surface A and the non-planar surface;
in the step, each surface T in the set PlaneAs is used as an original surface, the process of creating a set of adjacent surfaces is repeated, so that a set TPS of the surfaces sharing edges with the surface T is obtained, a plurality of sets TPS can be obtained due to the fact that the planeAs has a plurality of surfaces, then elements in all the sets TPS are placed in the sets planeBs of the surfaces, and repeated items, the original surfaces A and the surfaces of non-planar types in the TPs are removed.
S105, finding a surface where the Pc point is located in the set PlaneBs, setting the surface as a plane C, executing the process of creating the set of adjacent surfaces by taking the plane C as a starting surface, obtaining a set PlaneCs of the surfaces, and removing the non-cylindrical surfaces;
in this step, PlaneBs is circularly gathered, the plane where the point Pc is located is obtained, and the plane is set as the plane C. Then, the plane C is taken as a starting surface, the process of creating the set of the adjacent surfaces is executed, the set PlaneCs of the surfaces sharing edges with the plane C are obtained, and the surfaces of non-cylindrical types in the PlaneCs are removed.
S106, acquiring intersection PlaneBDs of the set PlaneAs and the set PlaneCs; in the set PlaneBDs, 2 cylindrical surfaces with parallel and non-coincident axes are obtained and respectively used as a cylindrical surface B and a cylindrical surface D;
in this step, the intersection PlaneBDs of the sets of PlaneAs and PlaneCs is determined. PlaneBDs were then cycled to obtain 2 cylinders with radii within tolerance Tol, parallel and misaligned axes: cylindrical surface B and cylindrical surface D.
S107, calculating the distance from the central point Pa to the point Pc as the length of the circular groove, respectively acquiring a point centrB and a point centrD on the axis of the cylindrical surface B and the cylindrical surface D, and acquiring the radius R of the cylindrical surface B.
In this step, the distance D1 between the center point Pa and the center point Pc is obtained, and D1 is the length of the circular groove. Finding a point on the axis of the cylindrical surface B as centerB and obtaining the radius R of the cylindrical surface B.
In an embodiment, after step S107, the method further includes:
and S108, recording a space geometric plane according to the central point Pa and the normal vector Va, taking the space geometric plane as one plane of the circular groove, and recording the plane where the point Pc is located as the other plane of the circular groove.
In this embodiment, Pa is used as an origin, Va is used as a normal vector to record a space geometric plane, the space geometric plane is used as a plane of a circular groove, and centerB, centerD and R are respectively recorded as a circular groove cylindrical surface, and a plane where a point Pc is located is another plane of the circular groove.
In one embodiment, as shown in fig. 2, the cylinder surface measuring process includes the steps of:
s201, taking the original surface A as a starting surface, executing a process of creating a set of adjacent surfaces to obtain a set of surfaces Planeas, and removing surfaces of non-planar types in the Planeas;
in this step, the original surface a is used as a starting surface, the internal holes or other interference lines of the starting surface are filtered to obtain all the edges of the outermost ring of the starting surface, and then the edges of the nonlinear segment and the edges which cannot be fitted into the linear segment in the tolerance Tol range by the least square method are removed, so that all the straight edges of the outermost ring of the starting surface are obtained, and an edge set EdgesA is formed. And then adding the surfaces which have shared edges with the starting surface and the shared edges are contained in the EdgesA into a set of Planeas in the tested workpiece model, and removing the surfaces of non-planar types in the Planeas. That is to say, in the embodiment of the present invention, a surface that is adjacent to the start surface and shares the same edge is obtained, where the sharing of the same edge means that the same edge in the set EdgesA belonging to the edge is shared, and thus the shared edge must be an edge of a straight line segment.
S202, circularly traversing surfaces in planeAs to obtain 2 planes with reverse normal vectors, namely a plane B and a plane D;
the set PlaneAs has at least two planes with opposite normal vectors, which are plane B and plane D, respectively.
S203, executing the flow for creating the set of adjacent surfaces by taking the plane B as a starting surface, acquiring a set of planar bs of the surfaces, and removing the surfaces of non-cylindrical types in the planar bs; executing the flow of creating the set of adjacent surfaces by taking the plane D as a starting surface, acquiring a set of surfaces PlaneDs, and removing the surfaces of non-cylindrical types in the PlaneDs;
in this step, the plane B is used as a starting surface, the internal holes or other interference lines of the starting surface are filtered to obtain all the edges of the outermost ring of the starting surface, and then the edges of the nonlinear segment and the edges which cannot be fitted into the linear segment in the tolerance Tol range by the least square method are removed, so that all the straight edges of the outermost ring of the starting surface are obtained, and an edge set EdgesB is formed. And then adding the surfaces which have shared edges with the starting surface and the shared edges are contained in the EdgesB into the PlaneBs in the tested workpiece model, and removing the surfaces which are not in the cylindrical type in the PlaneBs. That is to say, in the embodiment of the present invention, a surface that is adjacent to the start surface and shares the same edge is obtained, where the sharing of the same edge means that the same edge in the set EdgesB belonging to the edge is shared, and thus the shared edge must be an edge of a straight line segment.
Similarly, collections of facets Planeds can be obtained in the same manner as described above.
S204, acquiring intersection PlaneBDs of the set PlaneBs and the set PlaneDs, and obtaining a cylindrical surface C except the original surface A from the intersection PlaneBDs;
since the planar bs of the surface set and the planar ds of the surface set are both cylindrical surfaces, the element in the planar bds where the two intersect is also a cylindrical surface, from which the cylindrical surface C can be obtained in addition to the original surface a.
S205, taking a central point Pb on a plane B as a starting point, emitting along the direction of a normal vector Vb of the plane B to form a ray lin, solving a first intersection point of the ray lin and the measured workpiece model in the direction of the normal vector Vb, and setting the intersection point as a point Pd;
here, the point Pb1 is obtained by translating the center point Pb by a very small distance (0.001) in the direction of the vector Vb, so that the number of intersections with the workpiece model to be measured in the next step can be reduced, and the calculation speed can be increased. Thus forming a ray lin with the point Pb1 and the vector Vb. Then, the first intersection point of the ray lin and the measured workpiece model in the normal vector Vb direction is obtained, and the intersection point is set as a point Pd.
S206, calculating the center point Pb to the point Pd as the length of the circular groove, and acquiring the points centerA and centercc on the axes of the original plane a and the cylindrical surface C, respectively, and acquiring the radius R of the cylindrical surface a.
In this step, the distance D1 between the center point Pb and Pd, D1 is the length of the circular groove. And obtaining the distance from the point centerA to the cylindrical surface A, wherein the distance is the radius R of the cylindrical surface A. Of course, the distance from the point centrc to the cylindrical surface C, i.e. the radius R of the cylindrical surface D, can also be obtained. Of course, in the embodiment of the present invention, the radius R of the default cylindrical surface a is equal to the radius R of the default cylindrical surface C.
In an embodiment, after the step S206, the method further includes:
and S207, recording a space geometric plane according to the central point Pb and the normal vector Vb, taking the space geometric plane as one plane of the circular groove, and recording a plane where the point Pd is located as the other plane of the circular groove.
In this embodiment, Pb is used as an origin, Vb is used as a normal vector to record a space geometric plane, the space geometric plane is used as a plane of a circular groove, and centerA, centercc and R are respectively recorded as a circular groove cylindrical surface, and a plane where a point Pd is located is used as another plane of the circular groove.
The embodiment of the invention also provides a device for acquiring the theoretical value of the circular groove in the measuring process, which comprises the following steps:
the plane execution unit is used for acquiring the type of an original plane A of the tested workpiece model, and executing a plane measurement process when the original plane A is a plane; when the original surface A is a spline surface, fitting the spline surface into a plane, and if the fitting is successful, executing a plane measurement process;
the cylindrical surface execution unit is used for executing a cylindrical surface measurement process when the original surface A is a cylindrical surface;
as shown in fig. 3, the plane execution unit 300 includes:
an obtaining unit 301, configured to obtain a normal vector Va and a central point Pa of an original plane a;
the ray unit 302 is used for emitting rays along the direction of the normal vector Va by taking the central point Pa as a starting point to form a ray lin, solving a first intersection point of the ray lin and a measured workpiece model in the direction of the normal vector Va, and setting the intersection point as a point Pc;
a first plane set creating unit 303, configured to use the original plane a as a starting plane and perform a process of creating a set of adjacent planes, obtain a set of planes, and remove a non-cylindrical plane from the set of planes;
wherein the process of creating a set of adjacent surfaces comprises: acquiring all straight edges of the outermost ring of the starting surface and forming an edge set; acquiring surfaces which are adjacent to the initial surface and share the same edge, and adding all the surfaces into a surface set;
a cylindrical surface set creating unit 304, configured to execute the process of creating a set of adjacent surfaces with each surface in the set of PlaneAs as a starting surface, obtain multiple sets of TPS, put elements in all sets of TPS into a set of PlaneBs of a surface, and remove a duplicate item, an original surface a, and a non-planar surface;
a second plane set creating unit 305, configured to find a plane where the Pc point is located in the set PlaneBs, set the plane as a plane C, execute the process of creating a set of adjacent planes by using the plane C as a starting plane, obtain a set PlaneCs of planes, and remove a non-cylindrical plane from the set PlaneCs;
an intersection unit 306, configured to obtain intersection PlaneBDs of the set PlaneAs and the set PlaneCs; in the set PlaneBDs, 2 cylindrical surfaces with parallel and non-coincident axes are obtained and respectively used as a cylindrical surface B and a cylindrical surface D;
a calculating unit 307 for calculating the distance from the center point Pa to the point Pc as the length of the circular groove, and acquiring the points centerB and centerD on the axes of the cylindrical surface B and the cylindrical surface D, respectively, and acquiring the radius R of the cylindrical surface B.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The invention also provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, is adapted to implement the method provided by the above-mentioned embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The invention also provides a computer device, which may include a memory and a processor, wherein the memory stores a computer program, and the processor may implement the method provided by the above embodiment when calling the computer program in the memory. Of course, the computer device may also include various network interfaces, power supplies, and the like.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for obtaining a theoretical value of a circular groove in a measuring process is characterized by comprising the following steps:
obtaining the type of an original surface A of a tested workpiece model, and executing a plane measurement process when the original surface A is a plane; when the original surface A is a spline surface, fitting the spline surface into a plane, and if the fitting is successful, executing a plane measurement process; when the original surface A is a cylindrical surface, executing a cylindrical surface measuring process;
the steps of the plane measurement process include:
s1, acquiring a normal vector Va and a central point Pa of the original surface A;
s2, taking the central point Pa as a starting point, emitting along the direction of the normal vector Va to form a ray lin, solving a first intersection point of the ray lin and the measured workpiece model in the direction of the normal vector Va, and setting the intersection point as a point Pc;
s3, taking the original surface A as a starting surface and executing the flow of creating a set of adjacent surfaces to obtain a set of surfaces PlaneAs and removing the surfaces of non-cylindrical types;
wherein the process of creating a set of adjacent surfaces comprises: acquiring all straight edges of the outermost ring of the starting surface and forming an edge set; acquiring surfaces which are adjacent to the initial surface and share the same edge, and adding all the surfaces into a surface set;
s4, executing the flow of creating the set of adjacent surfaces by taking each surface in the set PlaneAs as a starting surface, obtaining a plurality of sets TPS, putting elements in all the sets TPS into the sets PlaneBs of the surfaces, and removing repeated items, the original surface A and the non-planar surface;
s5, finding the surface where the Pc point is located in the set PlaneBs, setting the surface as a plane C, executing the process of creating the set of adjacent surfaces by taking the plane C as a starting surface, acquiring a set PlaneCs of the surfaces, and removing the non-cylindrical surfaces;
s6, acquiring intersection PlaneBDs of the set PlaneAs and the set PlaneCs; in the set PlaneBDs, 2 cylindrical surfaces with parallel and non-coincident axes are obtained and respectively used as a cylindrical surface B and a cylindrical surface D;
s7, calculating the distance from the center point Pa to the point Pc as the length of the circular groove, and obtaining the center B and the center D on the axis of the cylindrical surface B and the cylindrical surface D, respectively, and obtaining the radius R of the cylindrical surface B.
2. The method for obtaining the theoretical value of the circular groove in the measuring process according to claim 1, wherein the step of the cylindrical surface measuring process comprises:
t1, taking the original surface A as a starting surface and executing the flow of creating a set of adjacent surfaces to obtain a set of surfaces Planeas, and removing surfaces of non-planar types in the Planeas;
t2, circularly traversing the planes in the PlaneAs to obtain 2 planes with reverse normal vectors, namely a plane B and a plane D;
t3, using the plane B as a starting plane to execute the flow of creating the set of adjacent planes, acquiring a set of planes, and removing the non-cylindrical planes in the planes; executing the flow of creating the set of adjacent surfaces by taking the plane D as a starting surface, acquiring a set of surfaces PlaneDs, and removing the surfaces of non-cylindrical types in the PlaneDs;
t4, acquiring intersection PlaneBDs of the set PlaneBs and the set PlaneDs, and obtaining a cylindrical surface C except the original surface A from the intersection PlaneBDs;
t5, taking a central point Pb on the plane B as a starting point, emitting along the direction of a normal vector Vb of the plane B to form a ray lin, solving a first intersection point of the ray lin and the measured workpiece model in the direction of the normal vector Vb, and setting the intersection point as a point Pd;
t6, calculating the center point Pb to the point Pd as the length of the circular groove, and acquiring the points centerA and centercc on the axes of the original plane a and the cylindrical plane C, respectively, and acquiring the radius R of the cylindrical plane a.
3. The method for obtaining the theoretical value of the circular groove in the measurement process according to claim 1, wherein when the original surface a is a spline surface, the spline surface is fitted to a plane, and if the fitting is successful, a plane measurement process is performed, including:
if the original surface A is a spline surface, dispersing the original surface A into a point set Pas according to an equal area method, fitting the point set Pas into a plane by using a least square method within a tolerance Tol range, and acquiring a normal vector Va and a central point Pa of the plane.
4. The method for obtaining the theoretical value of the circular groove during the measurement process according to claim 1 or 3, wherein the forming a ray lin along the direction of the normal vector Va with the central point Pa as the starting point comprises:
firstly, a central point Pa is translated along the direction of a normal vector Va to obtain a point Pa1, and then a ray lin is formed by the point Pa1 along the direction of the normal vector Va.
5. The method for obtaining the theoretical value of the circular groove in the measuring process according to claim 1, wherein the obtaining all the straight edges of the outermost ring of the starting surface and the grouping of the straight edges comprises:
internal pores or interference lines of the filtration starting face.
6. The method for obtaining the theoretical value of the circular groove during the measurement process according to claim 1, wherein after the step S7, the method further comprises:
and S8, recording a space geometric plane according to the central point Pa and the normal vector Va, taking the space geometric plane as one plane of the circular groove, and recording the plane where the point Pc is located as the other plane of the circular groove.
7. The method for obtaining the theoretical value of the circular groove in the measurement process according to claim 2, wherein the step T6 is followed by further comprising:
and T7, recording a space geometric plane according to the central point Pb and the normal vector Vb, taking the space geometric plane as one plane of the circular groove, and recording the plane where the point Pd is located as the other plane of the circular groove.
8. An apparatus for obtaining a theoretical value of a circular groove in a measurement process, comprising:
the plane execution unit is used for acquiring the type of an original plane A of the tested workpiece model, and executing a plane measurement process when the original plane A is a plane; when the original surface A is a spline surface, fitting the spline surface into a plane, and if the fitting is successful, executing a plane measurement process;
the cylindrical surface execution unit is used for executing a cylindrical surface measurement process when the original surface A is a cylindrical surface;
the plane execution unit includes:
the acquisition unit is used for acquiring a normal vector Va and a central point Pa of an original surface A;
the ray unit is used for emitting rays along the direction of the normal vector Va by taking the central point Pa as a starting point to form a ray lin, solving a first intersection point of the ray lin and a measured workpiece model in the direction of the normal vector Va, and setting the intersection point as a point Pc;
a first plane set creating unit, configured to use the original plane a as a starting plane and execute a process of creating a set of adjacent planes, obtain a set of planes of the planes, and remove a non-cylindrical plane from the set of planes;
wherein the process of creating a set of adjacent surfaces comprises: acquiring all straight edges of the outermost ring of the starting surface and forming an edge set; acquiring surfaces which are adjacent to the initial surface and share the same edge, and adding all the surfaces into a surface set;
a cylindrical surface set creating unit, configured to execute the process of creating a set of adjacent surfaces with each surface in the set PlaneAs as a starting surface, obtain multiple sets TPS, put elements in all sets TPS into a set PlaneBs of surfaces, and remove duplicate items, an original surface a, and a non-planar surface;
a second plane set creating unit, configured to find a plane where the Pc point is located in the set PlaneBs, set the plane as a plane C, execute the process of creating a set of adjacent planes by using the plane C as a starting plane, obtain a set PlaneCs of planes, and remove a non-cylindrical plane from the set PlaneCs;
an intersection unit, configured to obtain intersection PlaneBDs of the set PlaneAs and the set PlaneCs; in the set PlaneBDs, 2 cylindrical surfaces with parallel and non-coincident axes are obtained and respectively used as a cylindrical surface B and a cylindrical surface D;
and the calculating unit is used for calculating the distance from the central point Pa to the point Pc as the length of the circular groove, respectively acquiring a point centrB and a point centrD on the axis of the cylindrical surface B and the cylindrical surface D, and acquiring the radius R of the cylindrical surface B.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of acquiring a theoretical value of a circular groove during a measurement process according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of acquiring a theoretical value of a circular groove in a measurement process according to any one of claims 1 to 7.
CN202010152375.5A 2020-03-06 2020-03-06 Method and device for acquiring circular groove theoretical value, computer equipment and storage medium Active CN111353990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010152375.5A CN111353990B (en) 2020-03-06 2020-03-06 Method and device for acquiring circular groove theoretical value, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010152375.5A CN111353990B (en) 2020-03-06 2020-03-06 Method and device for acquiring circular groove theoretical value, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111353990A true CN111353990A (en) 2020-06-30
CN111353990B CN111353990B (en) 2023-03-28

Family

ID=71197375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010152375.5A Active CN111353990B (en) 2020-03-06 2020-03-06 Method and device for acquiring circular groove theoretical value, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111353990B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2013202402A1 (en) * 2005-03-10 2013-05-02 Gen-Probe Incorporated Systems and methods to perform assays for detecting or quantifying analytes within samples
CN106484991A (en) * 2016-09-30 2017-03-08 中国科学院合肥物质科学研究院 A kind of Monte Carlo geometric manipulations method of coupling spline surface and analytic surface in nuclear mockup analysis
US20170248409A1 (en) * 2016-02-25 2017-08-31 Mitutoyo Corporation Measurement method and measurement program
CN109443268A (en) * 2018-12-27 2019-03-08 金马工业集团股份有限公司 The bounce of inside spin raceway and timing measuring device
CN109900229A (en) * 2019-04-22 2019-06-18 浙江科技学院 For measuring the resistance trigger-type telescopic movable device of tunnel duct piece faulting of slab ends

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2013202402A1 (en) * 2005-03-10 2013-05-02 Gen-Probe Incorporated Systems and methods to perform assays for detecting or quantifying analytes within samples
US20170248409A1 (en) * 2016-02-25 2017-08-31 Mitutoyo Corporation Measurement method and measurement program
CN106484991A (en) * 2016-09-30 2017-03-08 中国科学院合肥物质科学研究院 A kind of Monte Carlo geometric manipulations method of coupling spline surface and analytic surface in nuclear mockup analysis
CN109443268A (en) * 2018-12-27 2019-03-08 金马工业集团股份有限公司 The bounce of inside spin raceway and timing measuring device
CN109900229A (en) * 2019-04-22 2019-06-18 浙江科技学院 For measuring the resistance trigger-type telescopic movable device of tunnel duct piece faulting of slab ends

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭娟等: "获取圆柱面轴线要素的操作算子研究", 《微电子学与计算机》 *

Also Published As

Publication number Publication date
CN111353990B (en) 2023-03-28

Similar Documents

Publication Publication Date Title
ATE259981T1 (en) SYSTEM, METHOD AND COMPUTER PROGRAM PRODUCT FOR REPRESENTING PROXIMITY DATA IN A MULTI-DIMENSIONAL SPACE
CN103995879A (en) Data query method, device and system based on OLAP system
CN109035363B (en) Line-circle optimal fitting method for rapid iteration
CN111353990B (en) Method and device for acquiring circular groove theoretical value, computer equipment and storage medium
CN113704577A (en) Data query method and device based on multithreading concurrent processing
CN113065036B (en) Method and device for measuring performance of space supporting point and related components
CN110390111A (en) Pipe deforming parameter determination method and device
CN114863195B (en) Point cloud data processing method and system, storage medium and electronic equipment
US20170322186A1 (en) Processing Apparatus
CN107506572B (en) Method and device for acquiring height of target point
CN110019357B (en) Database query script generation method and device
Breuel A comparison of search strategies for geometric branch and bound algorithms
CN115905373A (en) Data query and analysis method, device, equipment and storage medium
CN106997355B (en) Method and device for obtaining distance and determining shortest distance line segment based on Mongodb
CN112907079A (en) Recognizable performance evaluation method and system suitable for 3D printing and storage medium
CN111397560B (en) Method and device for acquiring theoretical value of square groove, computer equipment and storage medium
Foteinos et al. Fully generalized two-dimensional constrained Delaunay mesh refinement
CN108984780B (en) Method and device for managing disk data based on data structure supporting repeated key value tree
CN114003034A (en) Method, equipment and storage medium for making routing inspection plan of routing inspection robot
CN109739996B (en) Construction method and device of industrial knowledge map
CN109446572B (en) Quantum measurement and control data processing method and device
CN112162981A (en) Self-adaptive routing, database and table dividing method and system
CN114897907B (en) Cigarette appearance defect detection method and device and electronic equipment
CN109858370B (en) Method and device for identifying part of machining surface in three-dimensional model of part
CN112241343A (en) Slow disk detection method and device, electronic equipment and readable storage medium

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