Note: This code is no longer under active development. See below for more details.
gh-svg is a plugin for exporting svg data from the Grasshopper and Rhino 3D modeling environments. The intent is work towards create greater interoperability between different geometry editing softwares using open-source data format standards, as well as making it easier to create dynamic interfaces for topics that rely heavily on illustration and geometry, such as architecture, urban design, industrial design, and data visualization.
The Current State of this Software
March 26, 2016 --- I haven't worked on this code for years. This project has been abandoned. It was a neat experiment, but was a clunky implementation and is likely obselete today. Others have written better implementations. For example, the decodes library includes an svg io module.
February 27th, 2012 --- I've now created some simple Dot and Polyline export examples. They are a little slow, but they work fine.
February 5th, 2012 --- I just made this repository for the project, and expect to develop the plugin over the next several months. If you are interested in this project, please 'watch' it here on Github.
Next Steps to Development
- Point/Dot Export (Done!)
- Polylines Export (Done!)
- Viewport Projection (Done!)
- Embedding arbitrary attributes (Done!)
- Viewport Selection (ok, soon)
- Curve Export (no beziers yet, but polyline approximation works)
Here’s why I think SVG is a good file format to export to:
- SVG can be read by any common browser, and therefore there is no need for special software to view it.
- SVG can be easily read and edited by most vector editing software, including Adobe Illustrator and many open source softwares. style information can be easily embedded in the geometry, or can be adjusted with a style sheet