Kaydet (Commit) 8854643a authored tarafından Zsolt Bölöny's avatar Zsolt Bölöny Kaydeden (comit) Caolán McNamara

Removed getNormal() from polygontools, it just calls B3DPolygon::getNormal()

Change-Id: I5a59ff8e0db1aee52d0b683c9c64e4b18b64e66b
Reviewed-on: https://gerrit.libreoffice.org/16077Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 4e96b278
...@@ -72,11 +72,6 @@ namespace basegfx ...@@ -72,11 +72,6 @@ namespace basegfx
return aRetval; return aRetval;
} }
B3DVector getNormal(const B3DPolygon& rCandidate)
{
return rCandidate.getNormal();
}
double getLength(const B3DPolygon& rCandidate) double getLength(const B3DPolygon& rCandidate)
{ {
double fRetval(0.0); double fRetval(0.0);
......
...@@ -131,7 +131,7 @@ drawing::Direction3D Stripe::getNormal() const ...@@ -131,7 +131,7 @@ drawing::Direction3D Stripe::getNormal() const
aPolygon3D.append(Position3DToB3DPoint( m_aPoint2 )); aPolygon3D.append(Position3DToB3DPoint( m_aPoint2 ));
aPolygon3D.append(Position3DToB3DPoint( m_aPoint3 )); aPolygon3D.append(Position3DToB3DPoint( m_aPoint3 ));
aPolygon3D.append(Position3DToB3DPoint( m_aPoint4 )); aPolygon3D.append(Position3DToB3DPoint( m_aPoint4 ));
::basegfx::B3DVector aNormal(::basegfx::tools::getNormal(aPolygon3D)); ::basegfx::B3DVector aNormal(aPolygon3D.getNormal());
aRet = B3DVectorToDirection3D(aNormal); aRet = B3DVectorToDirection3D(aNormal);
} }
......
...@@ -55,9 +55,6 @@ namespace basegfx ...@@ -55,9 +55,6 @@ namespace basegfx
// get size of polygon. Control vectors are included in that ranges. // get size of polygon. Control vectors are included in that ranges.
BASEGFX_DLLPUBLIC B3DRange getRange(const B3DPolygon& rCandidate); BASEGFX_DLLPUBLIC B3DRange getRange(const B3DPolygon& rCandidate);
// get normal vector of polygon
BASEGFX_DLLPUBLIC B3DVector getNormal(const B3DPolygon& rCandidate);
// get area of polygon // get area of polygon
BASEGFX_DLLPUBLIC double getArea(const ::basegfx::B3DPolygon& rCandidate); BASEGFX_DLLPUBLIC double getArea(const ::basegfx::B3DPolygon& rCandidate);
......
...@@ -73,7 +73,7 @@ void E3dPolygonObj::CreateDefaultNormals() ...@@ -73,7 +73,7 @@ void E3dPolygonObj::CreateDefaultNormals()
basegfx::B3DPolygon aNormals; basegfx::B3DPolygon aNormals;
// Get normal (and invert) // Get normal (and invert)
basegfx::B3DVector aNormal(-basegfx::tools::getNormal(aPolygon)); basegfx::B3DVector aNormal(-aPolygon.getNormal());
// Fill new polygon // Fill new polygon
for(sal_uInt32 b(0L); b < aPolygon.count(); b++) for(sal_uInt32 b(0L); b < aPolygon.count(); b++)
...@@ -104,7 +104,7 @@ void E3dPolygonObj::CreateDefaultTexture() ...@@ -104,7 +104,7 @@ void E3dPolygonObj::CreateDefaultTexture()
basegfx::B3DRange aVolume(basegfx::tools::getRange(aPolygon)); basegfx::B3DRange aVolume(basegfx::tools::getRange(aPolygon));
// Get normal // Get normal
basegfx::B3DVector aNormal(basegfx::tools::getNormal(aPolygon)); basegfx::B3DVector aNormal(aPolygon.getNormal());
aNormal.setX(fabs(aNormal.getX())); aNormal.setX(fabs(aNormal.getX()));
aNormal.setY(fabs(aNormal.getY())); aNormal.setY(fabs(aNormal.getY()));
aNormal.setZ(fabs(aNormal.getZ())); aNormal.setZ(fabs(aNormal.getZ()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment