I just pushed it into a branch of the main repo, the branchs' name is LP699502-openscad-exporter. I did so after fixing a few whitespace errors in the exported text and fixing a leak of via_name (many instances created, only one free()). I did this not by adding new commits, but by fixing the existing commits. Maybe a bad habit of mine.
A few issues are left:
- Trying to render the result (exported with default settings) in OpenSCAD results in these OpenSCAD errors:
Indeed great work!
I just pushed it into a branch of the main repo, the branchs' name is LP699502- openscad- exporter. I did so after fixing a few whitespace errors in the exported text and fixing a leak of via_name (many instances created, only one free()). I did this not by adding new commits, but by fixing the existing commits. Maybe a bad habit of mine.
A few issues are left:
- Trying to render the result (exported with default settings) in OpenSCAD results in these OpenSCAD errors:
WARNING: Can't find 'include' file 'COLORS.scad'. PART_MODEL. scad'.
WARNING: Can't find 'include' file 'CONST.scad'.
WARNING: Can't find 'include' file 'BOARD.scad'.
WARNING: Can't find 'include' file 'PIN_HOLE.scad'.
WARNING: Can't find 'include' file 'VIA_HOLE.scad'.
WARNING: Can't find 'include' file 'PACKAGES.scad'.
WARNING: Can't open 'use' file 'INSERT_
Not sure where these files should be, but I'm pretty sure standard ones should be included by default.
- Tests fail. BTW., thanks a ton for creating them!
All test fail with this:
@@ -2,5 +2,5 @@ Test.scad
* \file Basic_OpenSCAD_
*
- * \author Copyright Bert Timmerman.
+ * \author Copyright Markus Hitter.
*
* \brief PCB - OpenSCAD 3D-model exporter Version 1.0
Not easy to detect for a single developer ;-)
Tests 2 and 4 additionally fail with this:
@@ -32,6 +32,21 @@
DRILL_HOLE = [1.0, 1.0, 1.0];
-include <CONST.scad>
-include <BOARD.scad>
+$fa = 1;
+$fs = 0.1;
+$fn = 36;
+$t = 0.01;
+
+module BOARD
+(
+ length,
+ width,
+ thickness,
+)
+{
+ color (FR4)
+ {
+ cube([length, width, thickness], center = false);
+ }
+}
module PIN_HOLE (x, y, diameter, depth)