discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

mysterious error message generating spur gears

J
jon
Wed, Jun 28, 2023 8:58 PM

When I F5 or F6 this code, sometimes I see

ECHO: "The interior paramter to spur_gear has been replaced by internal
and will be removed."

ECHO: "The interior paramter to spur_gear2d has been replaced by
internal and will be removed."

include <BOSL2/std.scad>

include <BOSL2/gears.scad>

pa = 20;
pitch = 5;
mult = 2;
rteeth = mult56;     // outer Ring
pteeth = mult
16;     // Planetary gears

module TwoGears() {
    spur_gear(
        pitch = pitch,
        teeth = 160,
        thickness = 6,
        shaft_diam = 5,
        pressure_angle = pa,
        spin = -$t90rteeth/pteeth);
    translate([138, 0, 0])
    rotate([0, 0, 15])
    spur_gear(
        pitch = pitch,
        teeth = 12,
        thickness = 6,
        shaft_diam = 5,
        pressure_angle = pa,
        spin = -$t90rteeth/pteeth);
    }
!TwoGears();

When I F5 or F6 this code, sometimes I see ECHO: "The interior paramter to spur_gear has been replaced by internal and will be removed." ECHO: "The interior paramter to spur_gear2d has been replaced by internal and will be removed." include <BOSL2/std.scad> include <BOSL2/gears.scad> pa = 20; pitch = 5; mult = 2; rteeth = mult*56;     // outer Ring pteeth = mult*16;     // Planetary gears module TwoGears() {     spur_gear(         pitch = pitch,         teeth = 160,         thickness = 6,         shaft_diam = 5,         pressure_angle = pa,         spin = -$t*90*rteeth/pteeth);     translate([138, 0, 0])     rotate([0, 0, 15])     spur_gear(         pitch = pitch,         teeth = 12,         thickness = 6,         shaft_diam = 5,         pressure_angle = pa,         spin = -$t*90*rteeth/pteeth);     } !TwoGears();