fix: fix polygon Perimeter calculate bug( without sqrt pos distance2)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user