Difference between revisions of "Inkscape Extension to Render a Living Hinge"

From LVL1
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
A living hinge is a way to make rigid materials like plywood and acrylic sheets flexible by making cuts in the material. The Living Hinge Inkscape extension is a project by Mark Endicott to automate the process of drawing the cut lines needed to form a living hinge. It is an extension to the popular SVG graphics program Inkscape.
 
A living hinge is a way to make rigid materials like plywood and acrylic sheets flexible by making cuts in the material. The Living Hinge Inkscape extension is a project by Mark Endicott to automate the process of drawing the cut lines needed to form a living hinge. It is an extension to the popular SVG graphics program Inkscape.
  
== Living Hinge Example ==
+
== Living Hinge Examples ==
 
[[File:Living hinge.jpg|800px]]
 
[[File:Living hinge.jpg|800px]]
  
The pattern of cuts in this hinge are typical of those used to make a living hinge.  
+
[[File:Living_hinge_(wood).jpg|800px]]
  
== The Extension ==
+
The pattern of cuts in these hinges are typical of those used to make a living hinge.
 +
 
 +
== Installing the Extension ==
 
To install the extension in Inkscape two files are needed:
 
To install the extension in Inkscape two files are needed:
 
   
 
   
Line 13: Line 15:
 
living_hinge.py
 
living_hinge.py
  
Both files need to be put in the Inkscape extensions directory. On Linux it is located somewhere like /usr/share/inkscape/extensions. On Windows you will find an inkscape/extensions directory in the program files directory.
+
Both are available from GitHub[https://github.com/drphonon/Inkscape_LivingHinge] in a zip file[https://github.com/drphonon/Inkscape_LivingHinge/archive/master.zip].
 +
 
 +
Both files need to be put in the Inkscape extensions directory. On Linux it is located somewhere like /usr/share/inkscape/extensions. On Windows you will find an inkscape/extensions directory in the program files directory. On Mac you're on your own.
 +
 
 +
== Using the Extension ==
 +
You select one or more rectangles in the SVG document. Each rectangle will be filled with cut lines for a living hinge. Each set of cut lines for a hinge are created as a single path. The rectangles must be selected before accessing the extension. It is accessed by the menu Extensions->Render->Living Hinge
 +
 
 +
[[File:hinge_menu.png|400px]]
 +
 
 +
The extension dialog has a few parameters to set.
 +
 
 +
[[File:hinge_dialog.png|400px]]
 +
 
 +
cut length (y): This is the length of each cut in the hinge. The cuts run in the y-direction.
 +
 
 +
gap length (y): This is the distance in the y-direction between adjacent cuts.
 +
 
 +
separation distance (x): This is the separation in the x-direction between successive lines of cuts.
 +
 
 +
The cut length will be adjusted so that an integral number of cuts is made inside the rectangle in the y-direction. The separation distance will be adjusted so that an integer number of cuts is made inside the rectangle in the x-direction.
 +
 
 +
Here is the result.
 +
 
 +
[[File:hinge-cuts.png]]

Latest revision as of 11:41, 8 December 2013

A living hinge is a way to make rigid materials like plywood and acrylic sheets flexible by making cuts in the material. The Living Hinge Inkscape extension is a project by Mark Endicott to automate the process of drawing the cut lines needed to form a living hinge. It is an extension to the popular SVG graphics program Inkscape.

Living Hinge Examples

Living hinge.jpg

Living hinge (wood).jpg

The pattern of cuts in these hinges are typical of those used to make a living hinge.

Installing the Extension

To install the extension in Inkscape two files are needed:

living_hinge.inx

living_hinge.py

Both are available from GitHub[1] in a zip file[2].

Both files need to be put in the Inkscape extensions directory. On Linux it is located somewhere like /usr/share/inkscape/extensions. On Windows you will find an inkscape/extensions directory in the program files directory. On Mac you're on your own.

Using the Extension

You select one or more rectangles in the SVG document. Each rectangle will be filled with cut lines for a living hinge. Each set of cut lines for a hinge are created as a single path. The rectangles must be selected before accessing the extension. It is accessed by the menu Extensions->Render->Living Hinge

Hinge menu.png

The extension dialog has a few parameters to set.

Hinge dialog.png

cut length (y): This is the length of each cut in the hinge. The cuts run in the y-direction.

gap length (y): This is the distance in the y-direction between adjacent cuts.

separation distance (x): This is the separation in the x-direction between successive lines of cuts.

The cut length will be adjusted so that an integral number of cuts is made inside the rectangle in the y-direction. The separation distance will be adjusted so that an integer number of cuts is made inside the rectangle in the x-direction.

Here is the result.

Hinge-cuts.png