mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
refactor
This commit is contained in:
@@ -26,10 +26,9 @@ module vrn3_from(points, spacing = 1) {
|
||||
|
||||
module space(pt) {
|
||||
intersection_for(p = [for(p = points) if(pt != p) p]) {
|
||||
v = p - pt;
|
||||
ryz = __angy_angz(p, pt);
|
||||
|
||||
translate((pt + p) / 2 - normalize(v) * offset_leng)
|
||||
translate((pt + p) / 2 - normalize(p - pt) * offset_leng)
|
||||
rotate([0, -ryz[0], ryz[1]])
|
||||
cube([space_size, double_space_size, double_space_size], center = true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user