Lines Matching refs:rCandidate
45 void checkClosed(B3DPolygon& rCandidate) in checkClosed() argument
47 while(rCandidate.count() > 1L in checkClosed()
48 && rCandidate.getB3DPoint(0L).equal(rCandidate.getB3DPoint(rCandidate.count() - 1L))) in checkClosed()
50 rCandidate.setClosed(true); in checkClosed()
51 rCandidate.remove(rCandidate.count() - 1L); in checkClosed()
57 sal_uInt32 getIndexOfPredecessor(sal_uInt32 nIndex, const B3DPolygon& rCandidate) in getIndexOfPredecessor() argument
59 …OSL_ENSURE(nIndex < rCandidate.count(), "getIndexOfPredecessor: Access to polygon out of range (!)… in getIndexOfPredecessor()
65 else if(rCandidate.count()) in getIndexOfPredecessor()
67 return rCandidate.count() - 1L; in getIndexOfPredecessor()
75 sal_uInt32 getIndexOfSuccessor(sal_uInt32 nIndex, const B3DPolygon& rCandidate) in getIndexOfSuccessor() argument
77 …OSL_ENSURE(nIndex < rCandidate.count(), "getIndexOfPredecessor: Access to polygon out of range (!)… in getIndexOfSuccessor()
79 if(nIndex + 1L < rCandidate.count()) in getIndexOfSuccessor()
89 B3DRange getRange(const B3DPolygon& rCandidate) in getRange() argument
92 const sal_uInt32 nPointCount(rCandidate.count()); in getRange()
96 const B3DPoint aTestPoint(rCandidate.getB3DPoint(a)); in getRange()
103 B3DVector getNormal(const B3DPolygon& rCandidate) in getNormal() argument
105 return rCandidate.getNormal(); in getNormal()
108 B3DVector getPositiveOrientedNormal(const B3DPolygon& rCandidate) in getPositiveOrientedNormal() argument
110 B3DVector aRetval(rCandidate.getNormal()); in getPositiveOrientedNormal()
112 if(ORIENTATION_NEGATIVE == getOrientation(rCandidate)) in getPositiveOrientedNormal()
120 B2VectorOrientation getOrientation(const B3DPolygon& rCandidate) in getOrientation() argument
124 if(rCandidate.count() > 2L) in getOrientation()
126 const double fSignedArea(getSignedArea(rCandidate)); in getOrientation()
141 double getSignedArea(const B3DPolygon& rCandidate) in getSignedArea() argument
144 const sal_uInt32 nPointCount(rCandidate.count()); in getSignedArea()
148 const B3DVector aAbsNormal(absolute(getNormal(rCandidate))); in getSignedArea()
163 B3DPoint aPreviousPoint(rCandidate.getB3DPoint(nPointCount - 1L)); in getSignedArea()
167 const B3DPoint aCurrentPoint(rCandidate.getB3DPoint(a)); in getSignedArea()
206 double getArea(const B3DPolygon& rCandidate) in getArea() argument
210 if(rCandidate.count() > 2) in getArea()
212 fRetval = getSignedArea(rCandidate); in getArea()
224 double getEdgeLength(const B3DPolygon& rCandidate, sal_uInt32 nIndex) in getEdgeLength() argument
226 OSL_ENSURE(nIndex < rCandidate.count(), "getEdgeLength: Access to polygon out of range (!)"); in getEdgeLength()
228 const sal_uInt32 nPointCount(rCandidate.count()); in getEdgeLength()
232 if(rCandidate.isClosed() || ((nIndex + 1L) != nPointCount)) in getEdgeLength()
234 const sal_uInt32 nNextIndex(getIndexOfSuccessor(nIndex, rCandidate)); in getEdgeLength()
235 const B3DPoint aCurrentPoint(rCandidate.getB3DPoint(nIndex)); in getEdgeLength()
236 const B3DPoint aNextPoint(rCandidate.getB3DPoint(nNextIndex)); in getEdgeLength()
245 double getLength(const B3DPolygon& rCandidate) in getLength() argument
248 const sal_uInt32 nPointCount(rCandidate.count()); in getLength()
252 const sal_uInt32 nLoopCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1L); in getLength()
256 const sal_uInt32 nNextIndex(getIndexOfSuccessor(a, rCandidate)); in getLength()
257 const B3DPoint aCurrentPoint(rCandidate.getB3DPoint(a)); in getLength()
258 const B3DPoint aNextPoint(rCandidate.getB3DPoint(nNextIndex)); in getLength()
267 B3DPoint getPositionAbsolute(const B3DPolygon& rCandidate, double fDistance, double fLength) in getPositionAbsolute() argument
270 const sal_uInt32 nPointCount(rCandidate.count()); in getPositionAbsolute()
282 fLength = getLength(rCandidate); in getPositionAbsolute()
288 if(rCandidate.isClosed()) in getPositionAbsolute()
305 if(rCandidate.isClosed()) in getPositionAbsolute()
326 fEdgeLength = getEdgeLength(rCandidate, nIndex); in getPositionAbsolute()
343 aRetval = rCandidate.getB3DPoint(nIndex); in getPositionAbsolute()
349 sal_uInt32 nNextIndex(getIndexOfSuccessor(nIndex, rCandidate)); in getPositionAbsolute()
350 const B3DPoint aNextPoint(rCandidate.getB3DPoint(nNextIndex)); in getPositionAbsolute()
366 B3DPoint getPositionRelative(const B3DPolygon& rCandidate, double fDistance, double fLength) in getPositionRelative() argument
371 fLength = getLength(rCandidate); in getPositionRelative()
376 return getPositionAbsolute(rCandidate, fDistance * fLength, fLength); in getPositionRelative()
379 …void applyLineDashing(const B3DPolygon& rCandidate, const ::std::vector<double>& rDotDashArray, B3… in applyLineDashing() argument
381 const sal_uInt32 nPointCount(rCandidate.count()); in applyLineDashing()
403 B3DPoint aCurrentPoint(rCandidate.getB3DPoint(0)); in applyLineDashing()
404 const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1); in applyLineDashing()
418 const B3DPoint aNextPoint(rCandidate.getB3DPoint(nNextIndex)); in applyLineDashing()
541 pLineTarget->append(rCandidate); in applyLineDashing()
546 pGapTarget->append(rCandidate); in applyLineDashing()
551 B3DPolygon applyDefaultNormalsSphere( const B3DPolygon& rCandidate, const B3DPoint& rCenter) in applyDefaultNormalsSphere() argument
553 B3DPolygon aRetval(rCandidate); in applyDefaultNormalsSphere()
565 B3DPolygon invertNormals( const B3DPolygon& rCandidate) in invertNormals() argument
567 B3DPolygon aRetval(rCandidate); in invertNormals()
580 …B3DPolygon applyDefaultTextureCoordinatesParallel( const B3DPolygon& rCandidate, const B3DRange& r… in applyDefaultTextureCoordinatesParallel() argument
582 B3DPolygon aRetval(rCandidate); in applyDefaultTextureCoordinatesParallel()
630 …B3DPolygon applyDefaultTextureCoordinatesSphere( const B3DPolygon& rCandidate, const B3DPoint& rCe… in applyDefaultTextureCoordinatesSphere() argument
632 B3DPolygon aRetval(rCandidate); in applyDefaultTextureCoordinatesSphere()
645 const B3DRange aPlaneRange(getRange(rCandidate)); in applyDefaultTextureCoordinatesSphere()
826 …bool isInEpsilonRange(const B3DPolygon& rCandidate, const B3DPoint& rTestPosition, double fDistanc… in isInEpsilonRange() argument
828 const sal_uInt32 nPointCount(rCandidate.count()); in isInEpsilonRange()
832 const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1L); in isInEpsilonRange()
833 B3DPoint aCurrent(rCandidate.getB3DPoint(0)); in isInEpsilonRange()
841 const B3DPoint aNext(rCandidate.getB3DPoint(nNextIndex)); in isInEpsilonRange()
866 bool isInside(const B3DPolygon& rCandidate, const B3DPoint& rPoint, bool bWithBorder) in isInside() argument
868 if(bWithBorder && isPointOnPolygon(rCandidate, rPoint, true)) in isInside()
875 const B3DVector aPlaneNormal(rCandidate.getNormal()); in isInside()
879 const sal_uInt32 nPointCount(rCandidate.count()); in isInside()
883 B3DPoint aCurrentPoint(rCandidate.getB3DPoint(nPointCount - 1)); in isInside()
895 aCurrentPoint = rCandidate.getB3DPoint(a); in isInside()
936 aCurrentPoint = rCandidate.getB3DPoint(a); in isInside()
977 aCurrentPoint = rCandidate.getB3DPoint(a); in isInside()
1018 bool isInside(const B3DPolygon& rCandidate, const B3DPolygon& rPolygon, bool bWithBorder) in isInside() argument
1026 if(!isInside(rCandidate, aTestPoint, bWithBorder)) in isInside()
1035 …bool isPointOnLine(const B3DPoint& rStart, const B3DPoint& rEnd, const B3DPoint& rCandidate, bool … in isPointOnLine() argument
1037 if(rCandidate.equal(rStart) || rCandidate.equal(rEnd)) in isPointOnLine()
1050 const B3DVector aTestVector(rCandidate - rStart); in isPointOnLine()
1095 bool isPointOnPolygon(const B3DPolygon& rCandidate, const B3DPoint& rPoint, bool bWithPoints) in isPointOnPolygon() argument
1097 const sal_uInt32 nPointCount(rCandidate.count()); in isPointOnPolygon()
1101 const sal_uInt32 nLoopCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1L); in isPointOnPolygon()
1102 B3DPoint aCurrentPoint(rCandidate.getB3DPoint(0)); in isPointOnPolygon()
1106 const B3DPoint aNextPoint(rCandidate.getB3DPoint((a + 1) % nPointCount)); in isPointOnPolygon()
1118 return rPoint.equal(rCandidate.getB3DPoint(0)); in isPointOnPolygon()
1144 …bool getCutBetweenLineAndPolygon(const B3DPolygon& rCandidate, const B3DPoint& rEdgeStart, const B… in getCutBetweenLineAndPolygon() argument
1146 const sal_uInt32 nPointCount(rCandidate.count()); in getCutBetweenLineAndPolygon()
1150 const B3DVector aPlaneNormal(rCandidate.getNormal()); in getCutBetweenLineAndPolygon()
1154 const B3DPoint aPointOnPlane(rCandidate.getB3DPoint(0)); in getCutBetweenLineAndPolygon()
1197 B3DPolygon snapPointsOfHorizontalOrVerticalEdges(const B3DPolygon& rCandidate) in snapPointsOfHorizontalOrVerticalEdges() argument
1199 const sal_uInt32 nPointCount(rCandidate.count()); in snapPointsOfHorizontalOrVerticalEdges()
1205 B3DPolygon aRetval(rCandidate); in snapPointsOfHorizontalOrVerticalEdges()
1208 B3ITuple aPrevTuple(basegfx::fround(rCandidate.getB3DPoint(nPointCount - 1))); in snapPointsOfHorizontalOrVerticalEdges()
1209 B3DPoint aCurrPoint(rCandidate.getB3DPoint(0)); in snapPointsOfHorizontalOrVerticalEdges()
1219 const B3DPoint aNextPoint(rCandidate.getB3DPoint(nNextIndex)); in snapPointsOfHorizontalOrVerticalEdges()
1253 return rCandidate; in snapPointsOfHorizontalOrVerticalEdges()