Move affine3d_frame_map to transforms.scad and rename to frame_map.

Add module version.  Change all calls.
This commit is contained in:
Adrian Mariano
2021-09-06 18:07:03 -04:00
parent 4fee72f517
commit 0aad39c7e5
7 changed files with 102 additions and 72 deletions

View File

@@ -224,7 +224,7 @@ function project_plane(plane,p) =
y = unit(plane[1]-plane[0]), // y axis goes to point b
x = unit(v-(v*y)*y) // x axis
)
affine3d_frame_map(x,y) * move(-plane[0])
frame_map(x,y) * move(-plane[0])
: is_vector(plane,4) && is_undef(p) ? // no data, plane given in "plane"
assert(_valid_plane(plane), "Plane is not valid")
let(
@@ -280,7 +280,7 @@ function lift_plane(plane, p) =
y = unit(plane[1]-plane[0]), // y axis goes to point b
x = unit(v-(v*y)*y) // x axis
)
move(plane[0]) * affine3d_frame_map(x,y,reverse=true)
move(plane[0]) * frame_map(x,y,reverse=true)
: is_vector(plane,4) && is_undef(p) ? // no data, plane given in "plane"
assert(_valid_plane(plane), "Plane is not valid")
let(