I am an engineer working on a machine designed to measure the diameters of cylindrical bores. To provide a clear and engaging context for my question, I'll describe the physical scenario in detail.
Ideal Senario:
Imagine a round measuring tool, represented as a dark blue circle with diameter $d$, with three probes labeled as $Pa$, $Pb$, and $Pc$. These probes are evenly spaced at angles of $62$ degrees ($\theta$) from each other. The measuring tool is inserted into a round bore, represented as the red circle, to measure its diameter ($D$). The goal is to find $D$ in all senarios.
In this ideal scenario, calculating the bore diameter is straightforward since the measuring tool parallel to the part bore and we have 3 points!
$Pa=[Pa_x,Pa_y,Pa_z]=[-(9.322+25)Sin(62^{\circ}), -(9.322+25)Cos(62^{\circ}), 0]$
$Pb=[Pb_x,Pb_y,Pb_z]=[0, -(9.988+25), 0]$
$Pc=[Pc_x,Pc_y,Pc_z]=[(15.603+25)Sin(62^{\circ}), -(15.603+25)Cos(62^{\circ}), 0]$
If you're interested in the solution for this ideal case, it can be found below.
$x_1 = -(a + r) Sin(\theta)=-(9.322+25)Sin(62^{\circ})$
$y_1 = -(a + r) Cos(\theta)=-(9.322+25)Cos(62^{\circ})$
$x_2 = 0$
$y_2 = -(b + r)=-(9.988+25)$
$x_3 = (c + r) Sin(\theta)=(15.603+25)Sin(62^{\circ})$
$y_3 = -(c + r) Cos(\theta)=-(15.603+25)Cos(62^{\circ})$
$A1 = x_1 (y_2 - y_3) - y_1 (x_2 - x_3) + x_2 y_3 - x_3 y_2$
$B1 = (x_1^2 + y_1^2) (y_3 - y_2) + (x_2^2 + y_2^2) (y_1 - y_3) + (x_3^2 + y_3^2) (y_2 - y_1)$
$C1 = (x_1^2 + y_1^2) (x_2 - x_3) + (x_2^2 + y_2^2) (x_3 - x_1) + (x_3^2 + y_3^2) (x_1 - x_2)$
$D1 = (x_1^2 + y_1^2) (x_3 y_2 - x_2 y_3) + (x_2^2 + y_2^2) (x_1 y_3 - x_3 y_1) + (x_3^2 + y_3^2) (x_2 y_1 - x_1 y_2)$
$Diameter = 2\sqrt{\frac{B1^2 + C1^2 - 4 A1 D1}{4 A1^2}}=80.0002$
This agrees with the CAD!
Actual Senario:
However, in practical situations, we encounter both lack of measurement accuracy and repeatibility. This is because the measuring tool is not perfectly aligned parallel to the bore. Instead, the bore is at some angle relative to the measuring tool, which we'll refer to as the "runout angle" ($\alpha$).
Consider the 3d Model of this below:
From the perspective of the measuring tool, the measuring tool is now measuring an oval shape. In this case the ideal senario diameter calculation does not hold!
See 2D drawing below:
We therefore have the following points on the part bore:
$Pa=[Pa_x,Pa_y,Pa_z]=[-(9.51+25)Sin(62^{\circ}), -(9.51+25)Cos(62^{\circ}), 0]$
$Pb=[Pb_x,Pb_y,Pb_z]=[0, -(8.71+25), 0]$
$Pc=[Pc_x,Pc_y,Pc_z]=[(15.273+25)Sin(62^{\circ}), -(15.273+25)Cos(62^{\circ}), 0]$
Adding 3 additional probes (which can determine α)
Our goal is to determine the actual bore diameter.
To achieve this we add three additional probes, labeled as $P1$, $P2$, and $P3$, which are mounted perpendicular to the measuring tool.
These probes measure the plane that the part bore is "mounted" to!
This plane is perpendicular to axis of the bore!
Using these probes we are able to determine the runout angle ($\alpha$).
Consider the 3D and 2D represntations of this below:
Calculating the runout angle is straightforward because it involves three points.
$P1 = [P1_x, P1_y, P1_z] = [-25,0,25]$
$P2 = [P2_x, P2_y, P2_z] = [0,-25,15]$
$P3 = [P3_x, P3_y, P3_z] = [25,0,13]$
If you're interested in the solution for finding the runout angle ($\alpha$) from these 3 points, it's available below:
We find two vectors on the plane by subtracting one point from another:
$\overrightarrow{a}=P2-P1=[25,-25,-10]$
$\overrightarrow{b}=P3-P1=[50,0,-12]$Now we compute the cross product of these two vectors. This is the vector normal to the part bore. $\overrightarrow{v}=\overrightarrow{a}×\overrightarrow{b}=[v_x,v_y,v_z]=[300,-200,1250]$
We can also define the vector normal to the measuring tool. This is the vector normal to the plane $z=0$, which is simply $\overrightarrow{n}=[0,0,1]$.
With both vectors $\overrightarrow{n}$ and $\overrightarrow{v}$ established, we can now calculate the total angle $\alpha$ between them.
First, let's calculate the magnitude of $\overrightarrow{v}$: $M = \sqrt{v_x^2+ v_y^2+ v_z^2}=\sqrt{(300)^2+(-200)^2+(1250)^2}=1300.961$
Next we need to determine the dot product $d$ of the two vectors $\overrightarrow{n}$ and $\overrightarrow{v}$. $d=v_x×0 + v_y×0+ v_z×1= v_z = 1250 $
Finally we can compute the total runout angle $\alpha$
$\alpha=Cos^{-1}(\frac{d}{M})=Cos^{-1}(\frac{1250}{1300.961})=16.09^{\circ}$
This agrees with the CAD!
Now the question arises:
Is it possible to obtain the true diameter of the bore from the points $Pa,Pb,Pc,P1,P2,P3$?





