Renamed linear_exturde_flat_option module to linear_extrude_flat_option (corrected spelling of 'extrude').
This commit is contained in:
parent
68bde2d7d7
commit
526aa67e1c
|
@ -364,7 +364,7 @@ module gear (
|
||||||
{
|
{
|
||||||
difference ()
|
difference ()
|
||||||
{
|
{
|
||||||
linear_exturde_flat_option(flat=flat, height=rim_thickness, convexity=10, twist=twist)
|
linear_extrude_flat_option(flat=flat, height=rim_thickness, convexity=10, twist=twist)
|
||||||
gear_shape (
|
gear_shape (
|
||||||
number_of_teeth,
|
number_of_teeth,
|
||||||
pitch_radius = pitch_radius,
|
pitch_radius = pitch_radius,
|
||||||
|
@ -379,28 +379,28 @@ module gear (
|
||||||
cylinder (r=rim_radius,h=rim_thickness-gear_thickness+1);
|
cylinder (r=rim_radius,h=rim_thickness-gear_thickness+1);
|
||||||
}
|
}
|
||||||
if (gear_thickness > rim_thickness)
|
if (gear_thickness > rim_thickness)
|
||||||
linear_exturde_flat_option(flat=flat, height=gear_thickness)
|
linear_extrude_flat_option(flat=flat, height=gear_thickness)
|
||||||
circle (r=rim_radius);
|
circle (r=rim_radius);
|
||||||
if (flat == false && hub_thickness > gear_thickness)
|
if (flat == false && hub_thickness > gear_thickness)
|
||||||
translate ([0,0,gear_thickness])
|
translate ([0,0,gear_thickness])
|
||||||
linear_exturde_flat_option(flat=flat, height=hub_thickness-gear_thickness)
|
linear_extrude_flat_option(flat=flat, height=hub_thickness-gear_thickness)
|
||||||
circle (r=hub_diameter/2);
|
circle (r=hub_diameter/2);
|
||||||
}
|
}
|
||||||
translate ([0,0,-1])
|
translate ([0,0,-1])
|
||||||
linear_exturde_flat_option(flat =flat, height=2+max(rim_thickness,hub_thickness,gear_thickness))
|
linear_extrude_flat_option(flat =flat, height=2+max(rim_thickness,hub_thickness,gear_thickness))
|
||||||
circle (r=bore_diameter/2);
|
circle (r=bore_diameter/2);
|
||||||
if (circles>0)
|
if (circles>0)
|
||||||
{
|
{
|
||||||
for(i=[0:circles-1])
|
for(i=[0:circles-1])
|
||||||
rotate([0,0,i*360/circles])
|
rotate([0,0,i*360/circles])
|
||||||
translate([circle_orbit_diameter/2,0,-1])
|
translate([circle_orbit_diameter/2,0,-1])
|
||||||
linear_exturde_flat_option(flat =flat, height=max(gear_thickness,rim_thickness)+3)
|
linear_extrude_flat_option(flat =flat, height=max(gear_thickness,rim_thickness)+3)
|
||||||
circle(r=circle_diameter/2);
|
circle(r=circle_diameter/2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module linear_exturde_flat_option(flat =false, height = 10, center = false, convexity = 2, twist = 0)
|
module linear_extrude_flat_option(flat =false, height = 10, center = false, convexity = 2, twist = 0)
|
||||||
{
|
{
|
||||||
if(flat==false)
|
if(flat==false)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue