polygonprimitive3d.cxx (464702f4) polygonprimitive3d.cxx (5aaf853b)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 92 unchanged lines hidden (view full) ---

101 // prepare result
102 aRetval.realloc(aHairLinePolyPolygon.count());
103
104 if(getLineAttribute().getWidth())
105 {
106 // create fat line data
107 const double fRadius(getLineAttribute().getWidth() / 2.0);
108 const basegfx::B2DLineJoin aLineJoin(getLineAttribute().getLineJoin());
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 92 unchanged lines hidden (view full) ---

101 // prepare result
102 aRetval.realloc(aHairLinePolyPolygon.count());
103
104 if(getLineAttribute().getWidth())
105 {
106 // create fat line data
107 const double fRadius(getLineAttribute().getWidth() / 2.0);
108 const basegfx::B2DLineJoin aLineJoin(getLineAttribute().getLineJoin());
109 const com::sun::star::drawing::LineCap aLineCap(getLineAttribute().getLineCap());
109
110 for(sal_uInt32 a(0L); a < aHairLinePolyPolygon.count(); a++)
111 {
112 // create tube primitives
110
111 for(sal_uInt32 a(0L); a < aHairLinePolyPolygon.count(); a++)
112 {
113 // create tube primitives
113 const Primitive3DReference xRef(new PolygonTubePrimitive3D(aHairLinePolyPolygon.getB3DPolygon(a), getLineAttribute().getColor(), fRadius, aLineJoin));
114 const Primitive3DReference xRef(
115 new PolygonTubePrimitive3D(
116 aHairLinePolyPolygon.getB3DPolygon(a),
117 getLineAttribute().getColor(),
118 fRadius,
119 aLineJoin,
120 aLineCap));
114 aRetval[a] = xRef;
115 }
116 }
117 else
118 {
119 // create hair line data for all sub polygons
120 for(sal_uInt32 a(0L); a < aHairLinePolyPolygon.count(); a++)
121 {

--- 53 unchanged lines hidden ---
121 aRetval[a] = xRef;
122 }
123 }
124 else
125 {
126 // create hair line data for all sub polygons
127 for(sal_uInt32 a(0L); a < aHairLinePolyPolygon.count(); a++)
128 {

--- 53 unchanged lines hidden ---