Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.cpp @ 1770:073484e33bee
fix offset of textures
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 May 2021 10:53:37 +0200 |
parents | a217140dd41a |
children | fca942f4b4a7 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.cpp Wed May 12 10:26:13 2021 +0200 +++ b/OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.cpp Wed May 12 10:53:37 2021 +0200 @@ -166,9 +166,9 @@ const Vector& pixelOffsetY) { double x0, y0, x1, y1, x2, y2; - cuttingPlane.ProjectPoint(x0, y0, origin); - cuttingPlane.ProjectPoint(x1, y1, origin + pixelOffsetX); - cuttingPlane.ProjectPoint(x2, y2, origin + pixelOffsetY); + cuttingPlane.ProjectPoint(x0, y0, origin + cuttingPlane.GetOrigin()); + cuttingPlane.ProjectPoint(x1, y1, origin + cuttingPlane.GetOrigin() + pixelOffsetX); + cuttingPlane.ProjectPoint(x2, y2, origin + cuttingPlane.GetOrigin() + pixelOffsetY); /**