Skip to content

Commit

Permalink
Change axes size.
Browse files Browse the repository at this point in the history
Here the axes have a size depending on the bone length and not the display.
The latest would imply that the axes would be transfered to the
representation somehow to respond to rendering events. This is an esaier
to implement this.

See Issue #13696
  • Loading branch information
vovythevov committed Nov 23, 2012
1 parent af462ab commit 778bdcd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Libs/VTK/Widgets/vtkBoneWidget.cxx
Expand Up @@ -1323,10 +1323,7 @@ void vtkBoneWidget::RebuildAxes()
return;
}

double distance =
vtkMath::Distance2BetweenPoints(this->WorldHeadRest, this->WorldTailRest)
* this->AxesSize; // Rest because distance shouldn't change in pose mode
// anyway
double distance = this->GetLength() * this->AxesSize;
this->AxesActor->SetTotalLength(distance, distance, distance);

vtkSmartPointer<vtkTransform> transform =
Expand Down

0 comments on commit 778bdcd

Please sign in to comment.