Sebastian Hoogen
1bdee9179f
importSVG: recognize relative scaling in viewBox attribute
2014-07-13 11:37:36 +02:00
Yorik van Havre
a8561a9eea
Fixes Draft encoding bug - fixes #1487
2014-03-22 13:25:59 -03:00
Sebastian Hoogen
b841624096
Draft SVG export: fix viewbox for raw output
2014-02-04 15:44:35 -02:00
Yorik van Havre
5ba7e07f7c
Draft: applied ulrich1a's fix to svg output - fixes #1365
2014-01-26 20:32:35 -02:00
Yorik van Havre
4005b199e0
0001102: Updated all links to old freecad homepage and wiki to the new ones
2013-09-15 17:04:42 -03:00
Yorik van Havre
def617c89e
Draft: Fixes in DXF exporter
2013-08-11 12:46:36 -03:00
Yorik van Havre
3f3deb3e18
Draft: Fixes bugs from last commit
2013-07-31 13:55:06 -03:00
Yorik van Havre
ce78a0e0a7
Draft: removed unnecessary uses of DraftVecUtils
2013-07-30 16:48:28 -03:00
Yorik van Havre
e0c05d8806
0001151: Draft loads Part module at start
...
+ Fixed loading of Part module at startup
+ Minor cleaning around
2013-06-15 15:39:29 -03:00
Yorik van Havre
4f3eeda0d6
0000946: Draft inserts now set the active document
2013-02-25 19:38:53 -03:00
Sebastian Hoogen
d42741f3a2
0000962: Attempting to import an SVG file fails
...
with "invalid literal for int() with base 16"
2013-01-21 11:39:50 +01:00
Sebastian Hoogen
a9a9e7aa99
bugfix for handling of elipses in importSVG
2013-01-09 15:09:22 +01:00
Yorik van Havre
a553941409
0000866: Draft to sketch
2012-11-02 18:59:31 -02:00
Sebastian Hoogen
de2bd1eb8e
importSVG: create Face only if path is closed
2012-06-21 15:11:16 +02:00
Sebastian Hoogen
689c0d7ce3
importSVG: fixes in preserveAspectRatio and sweepflag handling
2012-06-21 14:01:27 +02:00
Yorik van Havre
28f386f3ab
Renamed Draft fcvec and fcgeo modules
...
Draft/draftlibs/fcvec becomes Draft/DraftVecUtils
Draft/draftlibs/fcgeo becomes Draft/DraftGeomUtils
2012-05-22 11:45:40 -03:00
Yorik van Havre
3a4ed2f723
unified yorik's email
2012-05-21 22:35:18 -03:00
Sebastian Hoogen
03acbb7441
importSVG support numbers only seperated through a minus sign
...
in path definition. Like in files created by Adobe Ilustrator.
2012-05-03 11:11:40 +02:00
Sebastian Hoogen
f5d1551911
importSVG: fix viewBox bug and allow nonuniform scaling only if
...
requested by 'preserveAspectRatio' attribute
2012-04-04 23:15:57 +02:00
Sebastian Hoogen
5fbd017e85
importSVG: ignore the viewBox if not absolute untis are
...
given for width and height and sort edges before trying to make a wire
2012-04-03 15:23:51 +02:00
Yorik van Havre
ccf52d9910
Fixed bug 625 in Draft importers
2012-03-12 18:45:47 -03:00
Sebastian Hoogen
4be3d6393e
importSVG fixed handling of Ellipses
2012-02-23 21:06:04 +01:00
Sebastian Hoogen
dc1b380312
handling of viewBox and units in importSVG
...
The absolute values in the svg element are used in combination with the
viewBox Attribute to scale the svg to milimeter units.
If there is no viewbox attribute. 90dpi input is assumed.
2012-02-23 21:06:04 +01:00
Sebastian Hoogen
83004e56b7
importSVG reimplemented getsize using a RegEx
2012-02-12 10:20:48 +01:00
Sebastian Hoogen
15fe31b8ce
importSVG multiple changes
...
reordered path command control structure
adding rounded rect and elliptical arc support
2012-02-10 09:36:12 +01:00
Sebastian Kuzminsky
0bd5e02ef3
remove some old dead code
2012-02-10 00:38:13 -07:00
Sebastian Kuzminsky
e02eafc207
export SVG as either 'Translated' or 'Raw'
...
There are two things a user might want when exporting to SVG:
1. A pretty picture, to put on paper or on the screen and show
to humans.
2. An accurate representation of their part, for feeding to CAM
software.
This commit adds a mechanism that lets the user select which of those
two options they want.
A new choice is added to the Draft Preferences. The two options are:
* "Translated (for print and display)", which acts just like before.
The sketch is translated so it fits neatly in the display area.
of the cartesian plane. This is usually what you want if you're
going to display the SVG to humans.
* "Raw (for CAM)", which does not translate the sketch at all.
All sketch coordinates are preserved exactly. This is useful for
feeding the SVG to a CAM program (like PyCAM).
The SVG export function is modified to check this new Preference setting,
and write either "Translated" or "Raw" SVGs as appropriate.
2012-02-10 00:38:04 -07:00
Sebastian Kuzminsky
60c61a3f6d
when exporting SVG, map user units to mm so the coordinates make sense
...
This commit changes SVG export so that the user unit (what SVG calls
'px') is defined to be 1 mm.
This lets us write out the native sketch coordinates in the SVG file,
and the SVG will contain a drawing of the correct size (same size as
what's in FreeCAD).
2012-02-10 00:24:21 -07:00
Yorik van Havre
dc9ba93a75
Bugfix in Draft custom hatch patterns
2012-01-24 20:30:04 -02:00
Sebastian Hoogen
703df6f051
Draft importSVG reimplentation of path and transformation parsing
...
All basic elements besides elliptic arcs and rounded rects are now
supported
2012-01-16 18:51:04 +01:00
Yorik van Havre
3da049b147
fixes to Draft SVG importer (shoogen)
2012-01-14 16:14:29 -02:00
Yorik van Havre
53ed480861
small fix in Draft importSVG
...
+ removed unused blocks
+ added description strings
2012-01-09 10:43:20 -02:00
Sebastian Hoogen
2337eb934b
Small fixes in importSVG
2012-01-09 09:54:02 +01:00
Sebastian Hoogen
83f18cf20a
New Parser for path element in importSVG
2012-01-09 07:21:42 +01:00
Sebastian Hoogen
4bf298e258
fixed syntax error in importSVG
2012-01-07 22:45:09 +01:00
Sebastian Hoogen
e864107ccc
Added support for ellipse, polygon and polyline in importSVG
2012-01-07 22:06:21 +01:00
Yorik van Havre
3b61f0d29f
small fixes to draft SVG import (shoogen)
2012-01-07 13:39:50 -02:00
Yorik van Havre
596b3674b5
Draft SVG importer now supports quadratic and cubic curves (shoogen)
2012-01-06 13:11:19 -02:00
Yorik van Havre
ada7dc440f
used precision value from preferences in Draft SVG import
2012-01-05 10:22:06 -02:00
Yorik van Havre
c712e5882b
small bugfix in Draft SVG import
2012-01-05 10:12:25 -02:00
Yorik van Havre
0abf6b621a
fixed bug 562 - Draft module - problem in SVG import
2012-01-04 18:41:13 -02:00
Yorik van Havre
83894d9900
+ set license blocks of the Draft module to LGPL
2012-01-03 19:41:51 -02:00
Yorik van Havre
4918fd32f1
fixed bug #556 - Premature loading of modules
...
The Draft and Arch modules now load heavy modules such
as Part or Sketch only when they use them, not anymore
at Init time.
2011-12-31 17:16:51 -02:00
yorikvanhavre
b40e4c011b
+ Draft dimensions exported to SVG are now reimportable as Draft dimensions
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5079 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-28 15:25:14 +00:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00