mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 06:38:58 +08:00
SPE-2728 - Fixed measurement of distance between parallel-aligned circles (#14360)
This commit is contained in:
parent
9359921c7e
commit
f46999b9f4
@ -1133,7 +1133,7 @@ MeasurementResult get_measurement(const SurfaceFeature& a, const SurfaceFeature&
|
|||||||
else {
|
else {
|
||||||
ClosestInfo& info = candidates[0];
|
ClosestInfo& info = candidates[0];
|
||||||
|
|
||||||
const double N0dD = n0.dot(D);
|
double N0dD = n0.dot(D);
|
||||||
const Vec3d normProj = N0dD * n0;
|
const Vec3d normProj = N0dD * n0;
|
||||||
const Vec3d compProj = D - normProj;
|
const Vec3d compProj = D - normProj;
|
||||||
Vec3d U = compProj;
|
Vec3d U = compProj;
|
||||||
@ -1194,6 +1194,7 @@ MeasurementResult get_measurement(const SurfaceFeature& a, const SurfaceFeature&
|
|||||||
distance = (c1 - c0).norm();
|
distance = (c1 - c0).norm();
|
||||||
info.circle0Closest = c0;
|
info.circle0Closest = c0;
|
||||||
info.circle1Closest = c1;
|
info.circle1Closest = c1;
|
||||||
|
N0dD = 0.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user