diff options
Diffstat (limited to 'basegfx/source/polygon/b3dpolygontools.cxx')
-rw-r--r-- | basegfx/source/polygon/b3dpolygontools.cxx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx index ce76c3503dbf..b56c837e2a09 100644 --- a/basegfx/source/polygon/b3dpolygontools.cxx +++ b/basegfx/source/polygon/b3dpolygontools.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -251,7 +251,7 @@ namespace basegfx { double fRetval(0.0); const sal_uInt32 nPointCount(rCandidate.count()); - + if(nPointCount > 1L) { const sal_uInt32 nLoopCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1L); @@ -449,7 +449,7 @@ namespace basegfx aSnippet.clear(); } - + // prepare next DotDashArray step and flip line/gap flag fLastDotDashMovingLength = fDotDashMovingLength; fDotDashMovingLength += rDotDashArray[(++nDotDashIndex) % nDotDashCount]; @@ -459,7 +459,7 @@ namespace basegfx // append snippet [fLastDotDashMovingLength, fEdgeLength] const bool bHandleLine(bIsLine && pLineTarget); const bool bHandleGap(!bIsLine && pGapTarget); - + if(bHandleLine || bHandleGap) { if(!aSnippet.count()) @@ -469,10 +469,10 @@ namespace basegfx aSnippet.append(aNextPoint); } - + // prepare move to next edge fDotDashMovingLength -= fEdgeLength; - + // prepare next edge step (end point gets new start point) aCurrentPoint = aNextPoint; } @@ -674,7 +674,7 @@ namespace basegfx if(bChangeY) { aTexCoor.setY(fOne); - + if(bChangeX) { bPolarPoints = true; @@ -684,7 +684,7 @@ namespace basegfx else { double fX(fOne - ((atan2(aVector.getZ(), aVector.getX()) + F_PI) / F_2PI)); - + // correct cartesinan point coordiante dependent from center value if(fX > fXCenter + 0.5) { @@ -828,7 +828,7 @@ namespace basegfx bool isInEpsilonRange(const B3DPolygon& rCandidate, const B3DPoint& rTestPosition, double fDistance) { const sal_uInt32 nPointCount(rCandidate.count()); - + if(nPointCount) { const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1L); @@ -895,7 +895,7 @@ namespace basegfx { const B3DPoint aPreviousPoint(aCurrentPoint); aCurrentPoint = rCandidate.getB3DPoint(a); - + // cross-over in Z? const bool bCompZA(fTools::more(aPreviousPoint.getZ(), rPoint.getZ())); const bool bCompZB(fTools::more(aCurrentPoint.getZ(), rPoint.getZ())); @@ -905,7 +905,7 @@ namespace basegfx // cross-over in Y? const bool bCompYA(fTools::more(aPreviousPoint.getY(), rPoint.getY())); const bool bCompYB(fTools::more(aCurrentPoint.getY(), rPoint.getY())); - + if(bCompYA == bCompYB) { if(bCompYA) @@ -936,7 +936,7 @@ namespace basegfx { const B3DPoint aPreviousPoint(aCurrentPoint); aCurrentPoint = rCandidate.getB3DPoint(a); - + // cross-over in Z? const bool bCompZA(fTools::more(aPreviousPoint.getZ(), rPoint.getZ())); const bool bCompZB(fTools::more(aCurrentPoint.getZ(), rPoint.getZ())); @@ -946,7 +946,7 @@ namespace basegfx // cross-over in X? const bool bCompXA(fTools::more(aPreviousPoint.getX(), rPoint.getX())); const bool bCompXB(fTools::more(aCurrentPoint.getX(), rPoint.getX())); - + if(bCompXA == bCompXB) { if(bCompXA) @@ -977,7 +977,7 @@ namespace basegfx { const B3DPoint aPreviousPoint(aCurrentPoint); aCurrentPoint = rCandidate.getB3DPoint(a); - + // cross-over in Y? const bool bCompYA(fTools::more(aPreviousPoint.getY(), rPoint.getY())); const bool bCompYB(fTools::more(aCurrentPoint.getY(), rPoint.getY())); @@ -987,7 +987,7 @@ namespace basegfx // cross-over in X? const bool bCompXA(fTools::more(aPreviousPoint.getX(), rPoint.getX())); const bool bCompXB(fTools::more(aCurrentPoint.getX(), rPoint.getX())); - + if(bCompXA == bCompXB) { if(bCompXA) @@ -1056,7 +1056,7 @@ namespace basegfx const double fZero(0.0); const double fOne(1.0); double fParamTestOnCurr(0.0); - + if(aEdgeVector.getX() > aEdgeVector.getY()) { if(aEdgeVector.getX() > aEdgeVector.getZ()) @@ -1134,7 +1134,7 @@ namespace basegfx { const B3DVector aCompareEdge(rPlanePoint - rEdgeStart); const double fScalarCompare(rPlaneNormal.scalar(aCompareEdge)); - + fCut = fScalarCompare / fScalarEdge; return true; } @@ -1158,7 +1158,7 @@ namespace basegfx return getCutBetweenLineAndPlane(aPlaneNormal, aPointOnPlane, rEdgeStart, rEdgeEnd, fCut); } } - + return false; } @@ -1202,7 +1202,7 @@ namespace basegfx if(nPointCount > 1) { - // Start by copying the source polygon to get a writeable copy. The closed state is + // Start by copying the source polygon to get a writeable copy. The closed state is // copied by aRetval's initialisation, too, so no need to copy it in this method B3DPolygon aRetval(rCandidate); |