|
楼主 |
发表于 2009-1-5 20:33:44
|
显示全部楼层
回复: PR 243249 True Position dimension with Plane as secondary datum shifts
else
{
//I get the last fet's meas vector. Any fet can be however used.
temp_vec = GETXYZ(input_vectors, num_inputs - 1);
}
//If the dot of the hit vector obained above & best fit vector is negative, the vectors are pointing
//in the opposite directions.So reverse directions.
if (dot(temp_vec, vector) < 0.0)
for (i = 0; i < 3; i++)
vector = - vector;
//The vector points away from part. So when compensating we need to go the opposite direction.
for (i = 0; i < 3; i++)
centroid -= m_probeRad[0] * vector; |
|