add halfspace
This commit is contained in:
@ -10,3 +10,12 @@ function mirror4XY(midpoint, offsetX, offsetY) =
|
||||
[midpoint[0]-offsetX, midpoint[1]+offsetY, midpoint[2]],
|
||||
[midpoint[0]-offsetX, midpoint[1]-offsetY, midpoint[2]],
|
||||
[midpoint[0]+offsetX, midpoint[1]-offsetY, midpoint[2]]];
|
||||
|
||||
|
||||
module align(a,b) {
|
||||
rot_axis = cross(a,b);
|
||||
angle = acos(a*b/ (norm(a)*norm(b)));
|
||||
|
||||
rotate(v=rot_axis, a=angle)
|
||||
children(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user