Kaydet (Commit) 2ec34d8c authored tarafından Armin Weiss's avatar Armin Weiss

#i39532# wntmsci10 correction

üst 2410376e
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: polygonprimitive2d.cxx,v $ * $RCSfile: polygonprimitive2d.cxx,v $
* *
* $Revision: 1.7 $ * $Revision: 1.8 $
* *
* last change: $Author: aw $ $Date: 2007-11-19 10:21:42 $ * last change: $Author: aw $ $Date: 2007-11-22 15:01:17 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -204,15 +204,17 @@ namespace drawinglayer ...@@ -204,15 +204,17 @@ namespace drawinglayer
{ {
// create fat line data // create fat line data
const double fHalfLineWidth(getLineAttribute().getWidth() / 2.0); const double fHalfLineWidth(getLineAttribute().getWidth() / 2.0);
const double fMiterMinimumAngle(15.0 * F_PI180);
const basegfx::B2DLineJoin aLineJoin(getLineAttribute().getLineJoin()); const basegfx::B2DLineJoin aLineJoin(getLineAttribute().getLineJoin());
basegfx::B2DPolyPolygon aAreaPolyPolygon; basegfx::B2DPolyPolygon aAreaPolyPolygon;
for(sal_uInt32 a(0L); a < nCount; a++) for(sal_uInt32 a(0L); a < nCount; a++)
{ {
const basegfx::B2DPolyPolygon aNewPolyPolygon(basegfx::tools::createAreaGeometryForPolygon( // AW: New version of createAreaGeometry; now creates bezier polygons
aHairLinePolyPolygon.getB2DPolygon(a), fHalfLineWidth, aLineJoin, fMiterMinimumAngle)); aAreaPolyPolygon.append(basegfx::tools::createAreaGeometry(
aAreaPolyPolygon.append(aNewPolyPolygon); aHairLinePolyPolygon.getB2DPolygon(a), fHalfLineWidth, aLineJoin));
//const basegfx::B2DPolyPolygon aNewPolyPolygon(basegfx::tools::createAreaGeometryForPolygon(
// aHairLinePolyPolygon.getB2DPolygon(a), fHalfLineWidth, aLineJoin, fMiterMinimumAngle));
//aAreaPolyPolygon.append(aNewPolyPolygon);
} }
// prepare return value // prepare return value
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: sdrlatheprimitive3d.cxx,v $ * $RCSfile: sdrlatheprimitive3d.cxx,v $
* *
* $Revision: 1.7 $ * $Revision: 1.8 $
* *
* last change: $Author: aw $ $Date: 2007-03-06 12:34:58 $ * last change: $Author: aw $ $Date: 2007-11-22 15:01:17 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -220,7 +220,7 @@ namespace drawinglayer ...@@ -220,7 +220,7 @@ namespace drawinglayer
void SdrLathePrimitive3D::impCreateSlices() void SdrLathePrimitive3D::impCreateSlices()
{ {
// prepare the polygon // prepare the polygon
basegfx::B2DPolyPolygon aCandidate(basegfx::tools::adaptiveSubdivideByDistance(getPolyPolygon())); basegfx::B2DPolyPolygon aCandidate(basegfx::tools::adaptiveSubdivideByAngle(getPolyPolygon()));
aCandidate.removeDoublePoints(); aCandidate.removeDoublePoints();
aCandidate = basegfx::tools::correctOrientations(aCandidate); aCandidate = basegfx::tools::correctOrientations(aCandidate);
aCandidate = basegfx::tools::correctOutmostPolygon(aCandidate); aCandidate = basegfx::tools::correctOutmostPolygon(aCandidate);
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: vclhelpergradient.cxx,v $ * $RCSfile: vclhelpergradient.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: hdu $ $Date: 2007-04-17 10:02:28 $ * last change: $Author: aw $ $Date: 2007-11-22 15:01:17 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -239,7 +239,6 @@ namespace drawinglayer ...@@ -239,7 +239,6 @@ namespace drawinglayer
{ {
const basegfx::B2DPoint aCircleCenter(0.5, 0.5); const basegfx::B2DPoint aCircleCenter(0.5, 0.5);
aUnitPolygon = basegfx::tools::createPolygonFromEllipse(aCircleCenter, 0.5, 0.5); aUnitPolygon = basegfx::tools::createPolygonFromEllipse(aCircleCenter, 0.5, 0.5);
// aUnitPolygon = basegfx::tools::adaptiveSubdivideByAngle(aUnitPolygon);
} }
else else
{ {
......
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