diff options
author | Zsolt Bölöny <bolony.zsolt@gmail.com> | 2015-06-04 10:45:08 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-04 20:08:04 +0000 |
commit | 8854643a0a964f6aa511013c6ab31ed198c74e86 (patch) | |
tree | 9bc923a82196147d5b07d3dc0b53d651df05f56a /svx/source/engine3d | |
parent | 4e96b278965875a95f02993590f30ab5859c1fed (diff) |
Removed getNormal() from polygontools, it just calls B3DPolygon::getNormal()
Change-Id: I5a59ff8e0db1aee52d0b683c9c64e4b18b64e66b
Reviewed-on: https://gerrit.libreoffice.org/16077
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r-- | svx/source/engine3d/polygn3d.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/engine3d/polygn3d.cxx b/svx/source/engine3d/polygn3d.cxx index 44ea9816c706..7329aa1df875 100644 --- a/svx/source/engine3d/polygn3d.cxx +++ b/svx/source/engine3d/polygn3d.cxx @@ -73,7 +73,7 @@ void E3dPolygonObj::CreateDefaultNormals() basegfx::B3DPolygon aNormals; // Get normal (and invert) - basegfx::B3DVector aNormal(-basegfx::tools::getNormal(aPolygon)); + basegfx::B3DVector aNormal(-aPolygon.getNormal()); // Fill new polygon for(sal_uInt32 b(0L); b < aPolygon.count(); b++) @@ -104,7 +104,7 @@ void E3dPolygonObj::CreateDefaultTexture() basegfx::B3DRange aVolume(basegfx::tools::getRange(aPolygon)); // Get normal - basegfx::B3DVector aNormal(basegfx::tools::getNormal(aPolygon)); + basegfx::B3DVector aNormal(aPolygon.getNormal()); aNormal.setX(fabs(aNormal.getX())); aNormal.setY(fabs(aNormal.getY())); aNormal.setZ(fabs(aNormal.getZ())); |