- if (arc < 0) serration_height *= -1;
- var blade_height = depth + serration_height;
- return [[0, 0, 0],
- [blade_height - edge_height, 0, 0],
- [blade_height, thickness/2, 0],
- [blade_height - edge_height, thickness, 0],
- [0, thickness, 0]];
+ if (params.arc < 0) serration_height *= -1;
+ var blade_height = params.depth + serration_height;
+ return [[0, 0, 0],
+ [blade_height - edge_height, 0, 0],
+ [blade_height, params.thickness/2, 0],
+ [blade_height - edge_height, params.thickness, 0],
+ [0, params.thickness, 0]];