implement triangles.
fix gerber rendering and support inch-units.