Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
1769:a217140dd41a | 1770:073484e33bee |
---|---|
164 const Vector& origin, | 164 const Vector& origin, |
165 const Vector& pixelOffsetX, | 165 const Vector& pixelOffsetX, |
166 const Vector& pixelOffsetY) | 166 const Vector& pixelOffsetY) |
167 { | 167 { |
168 double x0, y0, x1, y1, x2, y2; | 168 double x0, y0, x1, y1, x2, y2; |
169 cuttingPlane.ProjectPoint(x0, y0, origin); | 169 cuttingPlane.ProjectPoint(x0, y0, origin + cuttingPlane.GetOrigin()); |
170 cuttingPlane.ProjectPoint(x1, y1, origin + pixelOffsetX); | 170 cuttingPlane.ProjectPoint(x1, y1, origin + cuttingPlane.GetOrigin() + pixelOffsetX); |
171 cuttingPlane.ProjectPoint(x2, y2, origin + pixelOffsetY); | 171 cuttingPlane.ProjectPoint(x2, y2, origin + cuttingPlane.GetOrigin() + pixelOffsetY); |
172 | 172 |
173 /** | 173 /** |
174 | 174 |
175 A = [ a11 a12 ; a21 a22 ] | 175 A = [ a11 a12 ; a21 a22 ] |
176 | 176 |