[vtkusers] vtkImagePlaneWidget - How to get the plane dimensions???
dean.inglis at camris.ca
dean.inglis at camris.ca
Wed Sep 1 16:45:22 EDT 2004
Hi Mathieu,
you can use the three corner points of the widget's plane:
double* o = widget->GetOrigin();
double* p1 = widget->GetPoint1();
double* p2 = widget->GetPoint2();
double edgeLength1 = sqrt( vtkMath::Distance2BetweenPoints(p1,o) );
double edgeLength2 = sqrt( vtkMath::Distance2BetweenPoints(p2,o) );
double area = sqrt( vtkMath::Distance2BetweenPoints(p1,o) *vtkMath::Distance2BetweenPoints(p2,o) ) ;
Dean
More information about the vtkusers
mailing list