Skip to content

Commit 25395d5

Browse files
committed
ovis: fix plane mesh coordinate system to match OpenCV
1 parent 4e77e6f commit 25395d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ovis/src/meshes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ void createPlaneMesh(const String& name, const Size2f& size, InputArray image)
2828
}
2929

3030
// plane
31-
MovablePlane plane(Vector3::UNIT_Z, 0);
31+
MovablePlane plane(-Vector3::UNIT_Z, 0);
3232
MeshPtr mesh = MeshManager::getSingleton().createPlane(
33-
name, RESOURCEGROUP_NAME, plane, size.width, size.height, 1, 1, true, 1, 1, 1, Vector3::UNIT_Y);
33+
name, RESOURCEGROUP_NAME, plane, size.width, size.height, 1, 1, true, 1, 1, 1, -Vector3::UNIT_Y);
3434
mesh->getSubMesh(0)->setMaterialName(name);
3535
}
3636

0 commit comments

Comments
 (0)