mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
coordinate system widget implementation, update pose fix
This commit is contained in:
@@ -31,6 +31,11 @@ public:
|
||||
void updatePose(const Affine3f& pose)
|
||||
{
|
||||
vtkSmartPointer<vtkMatrix4x4> matrix = actor->GetUserMatrix();
|
||||
if (!matrix)
|
||||
{
|
||||
setPose(pose);
|
||||
return ;
|
||||
}
|
||||
Matx44f matrix_cv = convertToMatx(matrix);
|
||||
|
||||
Affine3f updated_pose = pose * Affine3f(matrix_cv);
|
||||
|
||||
Reference in New Issue
Block a user