Commit Graph

15 Commits

Author SHA1 Message Date
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
yorikvanhavre
5b1c692c21 + added dot icons to Draft
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5322 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-17 15:36:02 +00:00
yorikvanhavre
071b657df7 + new Draft Snap
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5316 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-16 19:54:32 +00:00
yorikvanhavre
4748657016 + started implementing the new Draft snap
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5309 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-15 17:20:23 +00:00
yorikvanhavre
57fa312673 added RFE 533 - Draft Array tool
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5256 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-10 18:31:32 +00:00
yorikvanhavre
4f408105f9 + extended Draft2Sketch tool with items from RFE492
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5238 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-08 14:24:55 +00:00
yorikvanhavre
c618af29dc + added Draft2Sketch command, converts bidir between Sketch and Draft
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5227 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-06 17:18:18 +00:00
yorikvanhavre
be5c1e8731 + added Momentum's Draft Offset icon
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5195 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-27 20:32:08 +00:00
yorikvanhavre
0572ab0351 + updated translations of Draft & Arch modules
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5193 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-26 20:10:18 +00:00
yorikvanhavre
0dfa852071 + fixed Draft translations
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5189 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-26 14:46:45 +00:00
yorikvanhavre
8881926b54 + refined Draft 2DShapeView icon for bad SVG renderers
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5186 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-25 22:09:02 +00:00
yorikvanhavre
e64a9efc92 + fixed bug #473 - Precision value in Draft
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5092 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-05 14:28:29 +00:00
yorikvanhavre
10c5ddb115 + added RFE #442 - allow to set custom ctrl, shift & alt combinations in Draft module
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5024 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-14 20:14:26 +00:00
yorikvanhavre
c8499b039c + added RFE #224 - improvements to the Draft axis marker
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5022 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-14 18:47:29 +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