Block Angle
The angle parameter of block_angle() sets the angle between the two arms.
Customizing block_angle with OpenSCAD parameters
block_angle is a solid L-shaped bracket with two arms that meet at a configurable angle:
block_angle(
length1 = 5,
length2 = 5,
angle = 45,
height = 1,
hole_diameter = global_default_hole_diameter,
chamfer_depth = 0.6,
do_nut_pockets = true,
nut_thickness = global_default_nut_thickness,
nut_width = global_default_nut_width,
nut_clearance = global_default_nut_clearance,
echo_parameters = true
);
| angle | the angle between the two arms in degrees (default 45). |
| length1 | the first arm length in 1 cm units (default 5). |
| length2 | the second arm length in 1 cm units (default 5). |
| height | the height of the bracket in 1 cm units (default 1). |
| hole_diameter | mounting hole diameter in mm (default global_default_hole_diameter, 3.2 mm, sized for m3 screws). |
| chamfer_depth | edge chamfer in mm (default 0.6). |
| do_nut_pockets | when true (default), nut pockets are cut at the bolt axes so m3 nuts sit flush. |
| nut_thickness | nut thickness in mm (default global_default_nut_thickness, 2.6 mm). |
| nut_width | nut width across flats in mm (default global_default_nut_width, 5.5 mm, sized for m3 nuts). |
| nut_clearance | extra clearance around the nut pocket in mm (default global_default_nut_clearance, 0.2 mm). |
| echo_parameters | when true (default), the OpenSCAD console echoes the full parameter list when you preview or render the module. |
If you leave a parameter out of the module call, that parameter will just have the default value. For example, these are all valid module calls:
block_angle();
block_angle(angle=90);
block_angle(angle=45, length1=4, length2=2);