fix: fix a measure bug of ruler

This commit is contained in:
kradchen
2025-05-12 09:57:33 +08:00
parent 1762d36523
commit fb097fd692

View File

@@ -48,8 +48,8 @@ void RulerAnnotationActor::BuildShape() {
double p2[3] = {0, 0, 0}; double p2[3] = {0, 0, 0};
BaseDataPoints->GetPoint(0, p1); BaseDataPoints->GetPoint(0, p1);
BaseDataPoints->GetPoint(1, p2); BaseDataPoints->GetPoint(1, p2);
p1[2] = 0.0; // p1[2] = 0.0;
p2[2] = 0.0; // p2[2] = 0.0;
realDistance = std::sqrt(vtkMath::Distance2BetweenPoints(p1, p2)); realDistance = std::sqrt(vtkMath::Distance2BetweenPoints(p1, p2));
double dis; double dis;