mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-31 05:10:07 +02:00
vmul() to v_mul(), etc.
This commit is contained in:
@@ -928,7 +928,7 @@ function bevel_gear(
|
||||
radcp = [0, midpr] + polar_to_xy(cutter_radius, 180+spiral_angle),
|
||||
angC1 = law_of_cosines(a=cutter_radius, b=norm(radcp), c=ocone_rad),
|
||||
angC2 = law_of_cosines(a=cutter_radius, b=norm(radcp), c=icone_rad),
|
||||
radcpang = vang(radcp),
|
||||
radcpang = v_theta(radcp),
|
||||
sang = radcpang - (180-angC1),
|
||||
eang = radcpang - (180-angC2),
|
||||
profile = gear_tooth_profile(
|
||||
@@ -944,7 +944,7 @@ function bevel_gear(
|
||||
verts1 = [
|
||||
for (v = lerpn(0,1,slices+1)) let(
|
||||
p = radcp + polar_to_xy(cutter_radius, lerp(sang,eang,v)),
|
||||
ang = vang(p)-90,
|
||||
ang = v_theta(p)-90,
|
||||
dist = norm(p)
|
||||
) [
|
||||
let(
|
||||
|
Reference in New Issue
Block a user