flat mode
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
// Double mounting plate with shared base and tripod mount
|
||||
// Two 24x25mm sections with 10mm spacing and 4 M3 holes each
|
||||
// Camera hole spacing: 24mm x 25mm pitch
|
||||
// 1/4" tripod hole in center, 3mm padding on all sides
|
||||
|
||||
// Parameters
|
||||
plate_width = 24; // mm (width of each mounting section)
|
||||
plate_height = 25; // mm
|
||||
// Parameters - Camera hole spacing
|
||||
hole_spacing_x = 24; // mm (horizontal distance between hole centers)
|
||||
hole_spacing_y = 25; // mm (vertical distance between hole centers)
|
||||
hole_edge_margin = 3; // mm (margin from edge to first hole)
|
||||
plate_width = hole_spacing_x + 2 * hole_edge_margin; // 30mm total width per section
|
||||
plate_height = hole_spacing_y + 2 * hole_edge_margin; // 31mm total height per section
|
||||
plate_thickness = 2; // mm
|
||||
spacing = 15; // mm (gap between mounting sections)
|
||||
spacing = 10; // mm (gap between mounting sections)
|
||||
hole_diameter = 3.2; // mm (M3 clearance hole)
|
||||
hole_margin = 3; // mm from edge of mounting section
|
||||
padding = 3; // mm padding on all sides
|
||||
tripod_hole_diameter = 6.35; // mm (1/4" standard tripod screw)
|
||||
|
||||
@@ -23,40 +25,40 @@ module double_plate_with_holes() {
|
||||
// Single continuous base rectangle with padding
|
||||
cube([total_width, total_height, plate_thickness]);
|
||||
|
||||
// First set of 4 holes (left section) - offset by padding
|
||||
// First set of 4 holes (left section) - 24mm x 25mm spacing
|
||||
// Bottom-left
|
||||
translate([padding + hole_margin, padding + hole_margin, -0.5])
|
||||
translate([padding + hole_edge_margin, padding + hole_edge_margin, -0.5])
|
||||
cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30);
|
||||
|
||||
// Bottom-right
|
||||
translate([padding + plate_width - hole_margin, padding + hole_margin, -0.5])
|
||||
// Bottom-right (24mm from left hole)
|
||||
translate([padding + hole_edge_margin + hole_spacing_x, padding + hole_edge_margin, -0.5])
|
||||
cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30);
|
||||
|
||||
// Top-left
|
||||
translate([padding + hole_margin, padding + plate_height - hole_margin, -0.5])
|
||||
// Top-left (25mm from bottom hole)
|
||||
translate([padding + hole_edge_margin, padding + hole_edge_margin + hole_spacing_y, -0.5])
|
||||
cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30);
|
||||
|
||||
// Top-right
|
||||
translate([padding + plate_width - hole_margin, padding + plate_height - hole_margin, -0.5])
|
||||
// Top-right (24mm x 25mm from bottom-left)
|
||||
translate([padding + hole_edge_margin + hole_spacing_x, padding + hole_edge_margin + hole_spacing_y, -0.5])
|
||||
cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30);
|
||||
|
||||
// Second set of 4 holes (right section) - offset by padding
|
||||
// Second set of 4 holes (right section) - 24mm x 25mm spacing
|
||||
offset_x = padding + plate_width + spacing;
|
||||
|
||||
// Bottom-left
|
||||
translate([offset_x + hole_margin, padding + hole_margin, -0.5])
|
||||
translate([offset_x + hole_edge_margin, padding + hole_edge_margin, -0.5])
|
||||
cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30);
|
||||
|
||||
// Bottom-right
|
||||
translate([offset_x + plate_width - hole_margin, padding + hole_margin, -0.5])
|
||||
// Bottom-right (24mm from left hole)
|
||||
translate([offset_x + hole_edge_margin + hole_spacing_x, padding + hole_edge_margin, -0.5])
|
||||
cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30);
|
||||
|
||||
// Top-left
|
||||
translate([offset_x + hole_margin, padding + plate_height - hole_margin, -0.5])
|
||||
// Top-left (25mm from bottom hole)
|
||||
translate([offset_x + hole_edge_margin, padding + hole_edge_margin + hole_spacing_y, -0.5])
|
||||
cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30);
|
||||
|
||||
// Top-right
|
||||
translate([offset_x + plate_width - hole_margin, padding + plate_height - hole_margin, -0.5])
|
||||
// Top-right (24mm x 25mm from bottom-left)
|
||||
translate([offset_x + hole_edge_margin + hole_spacing_x, padding + hole_edge_margin + hole_spacing_y, -0.5])
|
||||
cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30);
|
||||
|
||||
// 1/4" tripod hole in center
|
||||
|
||||
Reference in New Issue
Block a user