mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
intersection_for not supported in 2020.12
This commit is contained in:
@@ -19,13 +19,11 @@ module vrn2_from(points, spacing = 1, r = 0, delta = 0, chamfer = false, region_
|
||||
function normalize(v) = v / norm(v);
|
||||
|
||||
module region(pt) {
|
||||
intersection_for(p = points) {
|
||||
if(pt != p) {
|
||||
v = p - pt;
|
||||
translate((pt + p) / 2 - normalize(v) * offset_leng)
|
||||
rotate(atan2(v[1], v[0]))
|
||||
children();
|
||||
}
|
||||
intersection_for(p = [for(p = points) if(pt != p) p]) {
|
||||
v = p - pt;
|
||||
translate((pt + p) / 2 - normalize(v) * offset_leng)
|
||||
rotate(atan2(v[1], v[0]))
|
||||
children();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user