fix: fix polygon Perimeter calculate bug( without sqrt pos distance2)

This commit is contained in:
kradchen
2025-07-24 16:29:23 +08:00
parent 4ac9aa6fd9
commit 0048d6e3b2

View File

@@ -196,7 +196,7 @@ void OpenPolyAnnotationActor::UpdatePerimeterAndAreaText()
BaseDataPoints->GetPoint(i, p1);
BaseDataPoints->GetPoint(i - 1, p2);
distance += vtkMath::Distance2BetweenPoints(p1, p2);
distance += std::sqrt(vtkMath::Distance2BetweenPoints(p1, p2));
}
if(!Closed)