Browse Source

Platform with strap connectors

master
Dejvino 3 years ago
parent
commit
659c75c628
2 changed files with 10 additions and 4 deletions
  1. +4
    -4
      src/platform.scad
  2. +6
    -0
      src/specs_platform.scad

+ 4
- 4
src/platform.scad View File

@@ -40,12 +40,12 @@ module platform(base) {
cube(size, center=true);
module strap_connectors() {
offset=get_platform_strap_connector_offset();
down(size.z/2) {
for (i=[0:3]) {
left((i%2*(-2)+1) * (size.x/2 - get_link_segment_size().y/2))
fwd((round(i/2)%2*(-2)+1) * size.y/2)
down(get_link_segment_size().z/2)
zrot(90 + (round(i/2)%2*180)) link_connector_pin();
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();
}
}
}


+ 6
- 0
src/specs_platform.scad View File

@@ -1,4 +1,5 @@
use <specs_phone.scad>
use <specs_strap.scad>

function get_platform_size() = [
get_phone_size().x - 5,
@@ -6,3 +7,8 @@ function get_platform_size() = [
5
];

function get_platform_strap_connector_offset() = [
(get_platform_size().x/2 - get_link_segment_size().y/2),
get_platform_size().y/2,
-get_link_segment_size().z/2
];

Loading…
Cancel
Save