Difference between revisions of "Makerspace 3D and 2D"

From DiLab
Jump to: navigation, search
(Problem2: unittouu)
 
Line 1: Line 1:
 
Leo's notes about 2D and 3D design and tools.
 
Leo's notes about 2D and 3D design and tools.
  
= 2D - Laser Cutting and engraving =
+
= Modes =
Life cycle:
+
Link to [[Laser CNC]] notes
# Design the 2D object (Inkscape, or any graphical editor)
 
# Export to a compatible format: Gcode or DXF
 
# Send to the laser cutter
 
  
== Inkscape for Laser cutting ==
 
Good and short tutorial videos:
 
* [https://www.youtube.com/watch?v=Dwqlf5iirbM Laser Cutting With Inkscape Tutorial]
 
 
Notes: about Inkscape and Linux
 
====Problem1: python 2.7 vs 3 for gcodetools====
 
* There is an extension for Gcode export.
 
* It appears to be written for Python 2, while the newest Inkscape appears to be running Python 3. There might be problems with running the extensions. Change the default version for python to be 2.7 like this:
 
** Open Inkscape preferences, usually here: <code>~/.config/inkscape/preferences.xml</code>
 
** Search for
 
<group
 
    id="extensions"
 
    …
 
    org.ekips.filter.gears.pitch="20"
 
    org.ekips.filter.gears.angle="20" />
 
** Change to - add the following:
 
<group
 
    id="extensions"
 
    python-interpreter="/usr/bin/python2.7"
 
    …
 
    org.ekips.filter.gears.pitch="20"
 
    org.ekips.filter.gears.angle="20" />
 
** More info here: https://wiki.inkscape.org/wiki/index.php/Extension_Interpreters
 
 
===Problem2: unittouu===
 
After running gcodetools extension you may get the error:
 
:: AttributeError: 'module' object has no attribute 'unittouu'
 
 
The solution is to update the gcodetools.py as follows. For me, this was on the line 5864 where <code>inkex.unittouu()</code> is called.
 
The problem is that it is referenced as
 
doc_height = inkex.unittouu(...
 
Fix this as follows:
 
doc_height = self.unittouu(...
 
  
 
= Topics =
 
= Topics =
 
* [[Topo_to_3D | No topogrāfiskajām kartēm līdz drukājamam 3d modelim]]
 
* [[Topo_to_3D | No topogrāfiskajām kartēm līdz drukājamam 3d modelim]]

Latest revision as of 00:04, 6 January 2020

Leo's notes about 2D and 3D design and tools.

Modes

Link to Laser CNC notes


Topics