fix: fix a measure bug of ruler
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user