Extracted common code out
This commit is contained in:
+3
-7
@@ -11,6 +11,7 @@ use <specs_platform.scad>
|
||||
use <specs_strap.scad>
|
||||
|
||||
use <strap_common.scad>
|
||||
use <platform_common.scad>
|
||||
|
||||
// DEBUG:
|
||||
//validation = 1;
|
||||
@@ -40,13 +41,8 @@ module platform(base) {
|
||||
cube(size, center=true);
|
||||
|
||||
module strap_connectors() {
|
||||
offset=get_platform_strap_connector_offset();
|
||||
down(size.z/2) {
|
||||
for (i=[0:3]) {
|
||||
translate([((i%2*(-2)+1) * offset.x), -((round(i/2)%2*(-2)+1) * offset.y), offset.z])
|
||||
zrot(90 + (round(i/2)%2*180))
|
||||
link_connector_pin();
|
||||
}
|
||||
down(size.z/2) foreach_platform_strap_connector() {
|
||||
link_connector_pin();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user