Removed translate_points(), scale_points(), rotate_points2d() and rotate_points3d()

This commit is contained in:
Revar Desmera
2020-03-22 05:11:19 -07:00
parent d52c10f03b
commit 00f69ba95b
13 changed files with 231 additions and 281 deletions

View File

@@ -763,7 +763,7 @@ module offset_sweep(
top_start_ind = len(vertices_faces_bot[0]);
initial_vertices_top = zip(path, repeat(middle,len(path)));
vertices_faces_top = make_polyhedron(
path, translate_points(offsets_top,[0,middle]),
path, move(p=offsets_top,[0,middle]),
struct_val(top,"offset"), !clockwise,
struct_val(top,"quality"),
struct_val(top,"check_valid"),
@@ -1278,7 +1278,7 @@ function _stroke_end(width,left, right, spec) =
angle = struct_val(spec,"absolute")?
angle_between_lines(left[0]-right[0],[cos(user_angle),sin(user_angle)]) :
user_angle,
endseg = [center, rotate_points2d([left[0]],angle, cp=center)[0]],
endseg = [center, rot(p=[left[0]], angle, cp=center)[0]],
intright = angle>0,
pathclip = _path_line_intersection(intright? right : left, endseg),
pathextend = line_intersection(endseg, select(intright? left:right,0,1))