mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-08 08:26:29 +02:00
Added veroboard constructor.
Documented solder_meniscus and made it parametric.
This commit is contained in:
@@ -4227,6 +4227,7 @@ Veroboard with mounting holes, track breaks, removed tracks, solder points and c
|
|||||||
### Functions
|
### Functions
|
||||||
| Function | Description |
|
| Function | Description |
|
||||||
|:--- |:--- |
|
|:--- |:--- |
|
||||||
|
| `vero(name, assembly, holes, strips, pitch = inch(0.1)` | Constructor |
|
||||||
| `vero_length(type)` | Length of the board |
|
| `vero_length(type)` | Length of the board |
|
||||||
| `vero_size(type)` | Board size |
|
| `vero_size(type)` | Board size |
|
||||||
| `vero_thickness(type)` | Thickness of the substrate |
|
| `vero_thickness(type)` | Thickness of the substrate |
|
||||||
@@ -4237,6 +4238,7 @@ Veroboard with mounting holes, track breaks, removed tracks, solder points and c
|
|||||||
### Modules
|
### Modules
|
||||||
| Module | Description |
|
| Module | Description |
|
||||||
|:--- |:--- |
|
|:--- |:--- |
|
||||||
|
| `solder_meniscus(type, ir = 0.3, r = undef)` | Draw a solder meniscus |
|
||||||
| `vero_cutouts(type, angle = undef)` | Make cutouts to clear components |
|
| `vero_cutouts(type, angle = undef)` | Make cutouts to clear components |
|
||||||
| `vero_grid_pos(type, x, y)` | Convert grid position to offset from the centre |
|
| `vero_grid_pos(type, x, y)` | Convert grid position to offset from the centre |
|
||||||
| `vero_mounting_hole_positions(type)` | Positions children at the mounting holes |
|
| `vero_mounting_hole_positions(type)` | Positions children at the mounting holes |
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 150 KiB |
@@ -41,19 +41,22 @@ function vero_track_width(type) = vero_pitch(type) * 0.8; //! The width of th
|
|||||||
function vero_length(type) = vero_holes(type) * vero_pitch(type); //! Length of the board
|
function vero_length(type) = vero_holes(type) * vero_pitch(type); //! Length of the board
|
||||||
function vero_width(type) = vero_strips(type) * vero_pitch(type); //! Width of the board
|
function vero_width(type) = vero_strips(type) * vero_pitch(type); //! Width of the board
|
||||||
|
|
||||||
|
function vero(name, assembly, holes, strips, pitch = inch(0.1), fr4 = false, screw = M3_cap_screw, mounting_holes = [], breaks = [], no_tracks = [], components = [], joints = []) = //! Constructor
|
||||||
|
[ name, assembly, holes, strips, pitch, fr4, screw, mounting_holes, breaks, no_tracks, components, joints ];
|
||||||
|
|
||||||
function vero_size(type) = [vero_length(type), vero_width(type), vero_thickness(type)]; //! Board size
|
function vero_size(type) = [vero_length(type), vero_width(type), vero_thickness(type)]; //! Board size
|
||||||
|
|
||||||
module solder_meniscus(type) {
|
module solder_meniscus(type, ir = 0.3, r = undef) { //! Draw a solder meniscus
|
||||||
h = 1;
|
h = 0.7;
|
||||||
r = vero_track_width(type) / 2;
|
r = is_undef(r) ? vero_track_width(type) / 2 : r;
|
||||||
|
|
||||||
translate_z(vero_track_thickness(type))
|
translate_z(vero_track_thickness(type))
|
||||||
color("silver") rotate_extrude()
|
color("silver") rotate_extrude()
|
||||||
difference() {
|
difference() {
|
||||||
square([r, h]);
|
square([r, h]);
|
||||||
|
|
||||||
translate([r - eps, h + eps])
|
translate([r + eps, h + eps])
|
||||||
ellipse(r , h);
|
ellipse(r - ir , h, $fn = 64);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user