Index: line_speed/README =================================================================== --- line_speed/README (nonexistent) +++ line_speed/README (revision 37239) @@ -0,0 +1,6 @@ +exporting copper traces and silk graphics is slow because of the large number +of individual objects. + + +Workaround #1: pixmap/: export pixmap data and use that as height map; compiles +fast, renders slow. Index: line_speed/pixmap/A.scad =================================================================== --- line_speed/pixmap/A.scad (nonexistent) +++ line_speed/pixmap/A.scad (revision 37239) @@ -0,0 +1,28 @@ +// Round cap line +module pcb_line_rc(x1, y1, length, angle, width, thick) { + translate([x1,y1,0]) { +union() { + + rotate([0,0,angle]) { + translate([length/2+2, 0, 0]) + cube([length-8, width, thick], center=true); +// cylinder(r=width/2, h=thick, center=true, $fn=3); +// translate([length, 0, 0]) +// cylinder(r=width/2, h=thick, center=true, $fn=3); + } + } + } +} + +if (0) +for(y=[1:8000]) { + pcb_line_rc(1, y, 20, 0, 0.5, 0.1); + pcb_line_rc(41, y, 20, 0, 0.5, 0.1); +// pcb_line_rc(21, y, 20, 0, 0.5, 0.1); +} + +difference() { + translate([0,0,4]) + surface(file = "A.dat", center = true, convexity = 5); + cube([100, 100, 3]); +} Index: line_speed/pixmap/gen.sh =================================================================== --- line_speed/pixmap/gen.sh (nonexistent) +++ line_speed/pixmap/gen.sh (revision 37239) @@ -0,0 +1,11 @@ +#!/bin/sh + +awk ' + BEGIN { + for(y = 0; y < 190; y++) { + for(x = 0; x < 190; x++) + printf("%.0f ", sin((x+y)/10)*2) + print "" + } + } +' > A.dat Property changes on: line_speed/pixmap/gen.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property