View Issue Details

IDProjectCategoryView StatusLast Update
0001810DraftBugpublic2015-01-17 15:19
Reporterquick61 Assigned Toyorik  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformAll 
Product Version0.14 
Summary0001810: Flattened SVG exports page size smaller than bounding box.
DescriptionWhen exporting a Flattened SVG of a 2D shape that contains Arcs on the outside edges, the page size is smaller than the shapes bounding box. This is not the case when the outer shape has straight edges. 2 example files are attached for reproducing the error.
Steps To ReproduceOpen one of the example files.

Select all and export to Flattened SVG

Open exported SVG file in FreeCAD as a Drawing or in any external SVG viewer/editor such as Inkscape.

Notice shape geometry is larger than page size.

To see a comparison -

Open one or both of the example files and draw a rectangle around the shape.

Select all and export as Flattened SVG.

Open in FreeCAD as Drawing or view in an external viewer/editor.

Note than with the rectangle added, the page size in now correct.
Additional InformationThis bug was found while working within a FreeCAD Forum > Help topic -

http://forum.freecadweb.org/viewtopic.php?f=3&t=8221

The post where first noticed -

http://forum.freecadweb.org/viewtopic.php?f=3&t=8221#p67422

this bug is present in 0.14 Release on at least Linux and Windows and present in development build -

OS: Kubuntu 14.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4151 (Git)
Branch: master
Hash: ae09625140651423ed7b1035fa59395d206e532f
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
TagsNo tags attached.
FreeCAD Information

Activities

quick61

2014-11-01 06:26

reporter  

quick61

2014-11-01 06:27

reporter  

yorik

2014-11-01 15:52

administrator   ~0005263

Hm IIRC indeed the page extents are calculated from vertices... We should calculate them from the bounding box instead.

Related Changesets

FreeCAD: master 8fbe6310

2015-01-17 15:51:09

yorik

Details Diff
Draft: Fixed svg export view box - fixes 0001810 Affected Issues
0001810
mod - src/Mod/Draft/importSVG.py Diff File

Issue History

Date Modified Username Field Change
2014-11-01 06:26 quick61 New Issue
2014-11-01 06:26 quick61 File Added: FlattenedSVG_exportTEST1.fcstd
2014-11-01 06:27 quick61 File Added: FlattenedSVG_exportTEST2.fcstd
2014-11-01 15:52 yorik Note Added: 0005263
2014-11-01 15:52 yorik Assigned To => yorik
2014-11-01 15:52 yorik Status new => assigned
2014-11-01 15:52 yorik Project FreeCAD => Draft
2015-01-17 15:19 yorik Changeset attached => FreeCAD Master master 8fbe6310
2015-01-17 15:19 yorik Status assigned => closed
2015-01-17 15:19 yorik Resolution open => fixed