-
Notifications
You must be signed in to change notification settings - Fork 1
Python script to generate SVG files of the 6 interlocking faces of a box. I use the generated files for laser cutting, but they are good for any project where you need the dimensions of a simple box!
poundifdef/SVG-Box-Generator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
By specifying the desired dimensions of a box, this script outputs an SVG file consisting of the box's faces. The panels interlock. I wrote this to generate enclosure designs for my projects that I can use in a laser cutter. To use this script, create a new Box object with the desired parameters and call print_all_faces(): # length, width, height, material thickness (units are millimeters) myBox = Box(58, 96, 38, 3) myBox.print_all_faces() This outputs the SVG file (which are an XML-based format) to the console, which you can then pipe to a file. This opens without a problem in Inkscape. See "out.svg" as an example. The Box class contains a few variables that you might be interested in tweaking. These are explained in the comments at the beginning of the code.
About
Python script to generate SVG files of the 6 interlocking faces of a box. I use the generated files for laser cutting, but they are good for any project where you need the dimensions of a simple box!
Resources
Stars
Watchers
Forks
Releases
No releases published