diff --git a/README.md b/README.md index 12dd1c1..962d474 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ __python > 3 (for python2 use branch py2)__ * Helical * Double Helical -![cycloide-gear](examples/cycloide-gear.png) +![cycloid-gear](examples/cycloid-gear.png) ### Spherical Involute Bevel-Gear * Spiral diff --git a/freecad/gears/commands.py b/freecad/gears/commands.py index aa47249..6e43e41 100644 --- a/freecad/gears/commands.py +++ b/freecad/gears/commands.py @@ -23,7 +23,7 @@ import os import FreeCAD import FreeCADGui as Gui from .features import ViewProviderGear, InvoluteGear, InvoluteGearRack -from .features import CycloideGear, BevelGear, CrownGear, WormGear, TimingGear, LanternGear, HypoCycloidGear +from .features import CycloidGear, BevelGear, CrownGear, WormGear, TimingGear, LanternGear, HypoCycloidGear class BaseCommand(object): @@ -95,12 +95,12 @@ class CreateCrownGear(BaseCommand): ToolTip = 'Create a Crown gear' -class CreateCycloideGear(BaseCommand): +class CreateCycloidGear(BaseCommand): NAME = "cycloidgear" - GEAR_FUNCTION = CycloideGear - Pixmap = os.path.join(BaseCommand.ICONDIR, 'cycloidegear.svg') - MenuText = 'Cycloide gear' - ToolTip = 'Create a Cycloide gear' + GEAR_FUNCTION = CycloidGear + Pixmap = os.path.join(BaseCommand.ICONDIR, 'cycloidgear.svg') + MenuText = 'Cycloid gear' + ToolTip = 'Create a Cycloid gear' class CreateBevelGear(BaseCommand): diff --git a/freecad/gears/features.py b/freecad/gears/features.py index 063a796..866f9da 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -25,7 +25,7 @@ import os import numpy as np import math from pygears.involute_tooth import InvoluteTooth, InvoluteRack -from pygears.cycloide_tooth import CycloideTooth +from pygears.cycloid_tooth import CycloidTooth from pygears.bevel_tooth import BevelTooth from pygears._functions import rotation3D, rotation, reflection, arc_from_points_and_center @@ -38,9 +38,12 @@ from Part import BSplineCurve, Shape, Wire, Face, makePolygon, \ __all__ = ["InvoluteGear", - "CycloideGear", + "CycloidGear", "BevelGear", "InvoluteGearRack", + "CrownGear", + "WormGear", + "HypoCycloidGear" "ViewProviderGear"] @@ -402,19 +405,19 @@ class CrownGear(object): pass -class CycloideGear(object): +class CycloidGear(object): """FreeCAD gear""" def __init__(self, obj): - self.cycloide_tooth = CycloideTooth() + self.cycloid_tooth = CycloidTooth() obj.addProperty("App::PropertyInteger", "teeth", "gear_parameter", "number of teeth") obj.addProperty( "App::PropertyLength", "module", "gear_parameter", "module") obj.addProperty( - "App::PropertyLength", "inner_diameter", "cycloid_parameter", "inner_diameter") + "App::PropertyLength", "inner_diameter", "cycloid_parameter", "inner_diameter (hypocycloid)") obj.addProperty( - "App::PropertyLength", "outer_diameter", "cycloid_parameter", "outer_diameter") + "App::PropertyLength", "outer_diameter", "cycloid_parameter", "outer_diameter (epicycloid)") obj.addProperty( "App::PropertyLength", "height", "gear_parameter", "height") obj.addProperty( @@ -428,7 +431,7 @@ class CycloideGear(object): "App::PropertyLength", "backlash", "gear_parameter", "backlash in mm") obj.addProperty("App::PropertyPythonObject", "gear", "gear_parameter", "the python object") - obj.gear = self.cycloide_tooth + obj.gear = self.cycloid_tooth obj.teeth = 15 obj.module = '1. mm' obj.inner_diameter = '5 mm' diff --git a/freecad/gears/icons/cycloidegear.svg b/freecad/gears/icons/cycloidgear.svg similarity index 99% rename from freecad/gears/icons/cycloidegear.svg rename to freecad/gears/icons/cycloidgear.svg index a7474be..9dd0fc9 100644 --- a/freecad/gears/icons/cycloidegear.svg +++ b/freecad/gears/icons/cycloidgear.svg @@ -15,7 +15,7 @@ id="svg3799" version="1.1" inkscape:version="0.48.4 r9939" - sodipodi:docname="cycloidegear.svg"> + sodipodi:docname="cycloidgear.svg"> + sodipodi:docname="cycloidgear.svg">