revert yBar changes, also WIP on side connectors and side wall
This commit is contained in:
@ -4,8 +4,17 @@ include <./math.scad>
|
||||
include <./common.scad>
|
||||
|
||||
module halfspace(vpos, p) {
|
||||
translate(p)
|
||||
align(a=[0,0,-1], b=vpos)
|
||||
translate(v=[0,0,-inf/2])
|
||||
// TODO: clean up
|
||||
ref = [0,0,-1];
|
||||
|
||||
if (cross(ref, vpos) == [0,0,0]) {
|
||||
translate(p)
|
||||
translate(v=[0,0, (ref*vpos) * -inf/2])
|
||||
cube(size=[inf, inf, inf], center=true);
|
||||
} else {
|
||||
translate(p)
|
||||
align(a=ref, b = vpos)
|
||||
translate(v = [0, 0, -inf/2])
|
||||
cube(size = [inf, inf, inf], center = true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user