MoI discussion forum
MoI discussion forum

Full Version: Spur Gear Profile

Show messages:  1-20  21-23

From: Brian (BWTR)
28 Feb 2008   [#1]
The new spur gear profile for custom commands, suggests a matching profile can be added to another shape such as the bar in the associated jpeg.
It may be another thick day for me but would appreciate help please.
Brian
From: Michael Gibson
28 Feb 2008   [#2] In reply to [#1]
Hi Brian, run the command a second time and create another gear with the same "Module", but a larger number of teeth.

That will give you 2 gears something like this:



Now trim out a chunk of the big one. In this case I drew an ellipse and used boolean difference to cut the ellipse with the big gear:



Then move the pieces together:



Actually I guess you may want to give a slightly larger module on the big gear to make it fit together better? Anyway I think this should give you the idea.

By the way, this is for Petr's cool new gear command that he posted on his web page here: http://kyticka.webzdarma.cz/3d/moi/#SpurGear

- Michael

Image Attachments:
spurgear1.jpg  spurgear2.jpg  spurgear3.jpg 


From: Brian (BWTR)
28 Feb 2008   [#3] In reply to [#2]
Thanks Michael, that was far too logical for my brain to work out this morning!
From: Michael Gibson
28 Feb 2008   [#4] In reply to [#3]
Hi Brian, you are welcome!

Sometimes it can be difficult to make a kind of mental switch for how you are viewing an object. Like in this case the "inside" of the larger gear is switched to become the "outside" of the final upper piece after some cutting and splicing...

- Michael
From: Brian (BWTR)
28 Feb 2008   [#5] In reply to [#4]
Something is still not correct Michael.
The match for the second gear is on the outside not the inside. Also in theory the second lot of gears could be on a straight line.
Will work on it some and see if I can come up with some diagramatic illustrations--I may find solutions on the way?
From: Michael Gibson
28 Feb 2008   [#6] In reply to [#5]
Hi Brian, well the one in Petr's associated image that you were asking about is curved, not flat. I assume that he used this method to make that particular image.

A flat piece is certainly a common kind of gear structure, but as far as I could tell that command is not currently set up to create flat pieces, just curved gears.

It's probably not too difficult to draw a flat piece by hand though, you would do something like draw one tooth and then use Transform / Array / Dir to replicate it...

If you can make a diagram of what you want to create I should be able to show you the steps for it.

- Michael
From: Brian (BWTR)
28 Feb 2008   [#7] In reply to [#6]
My profile could ,rather than be a straight line, be a positive or negative curve.
I just can not see a "correct" solution to making "adjusting distance" be an acceptable result?
From: Michael Gibson
28 Feb 2008   [#8] In reply to [#7]
Hi Brian, I'd do something like this:

Start with one tooth which is slightly narrowed from the other gear, and draw a line off of one part of it. Then do a Transform / Array / Dir, and pick the 2 points as indicated here:



That will create this:



You may need to adjust the length of that line hanging off to the side, I made it a bit shorter or longer until I got a nice fit. It looks like you have the equivalent of a rather long line in yours.

Then you can repeat the array dir, but reversing the order of the points to do an array to the other side, then add one extra little line and then that straight part can be closed off and finished:



- Michael

Image Attachments:
gear_straight1.jpg  gear_straight2.jpg  gear_straight3.jpg 


From: Michael Gibson
28 Feb 2008   [#9] In reply to [#8]
Also, it will be hard to adjust it to make it fit nicely if you have it far away from it - push the tooth right up against the gear so you can more easily tell when you've got a good fit from your adjustements.

- Michael
From: Brian (BWTR)
28 Feb 2008   [#10] In reply to [#9]
Thanks Michael. It was the complex way I thought was not necessary. Am I forgetting the very simple way of doing this in other apps? (On the law of averages--I am wrong!)
From: Michael Gibson
28 Feb 2008   [#11] In reply to [#10]
Hi Brian, the only more simple way that I can think of is if a program has a specialized command to create that part.

Otherwise drawing one tooth like that and replicating it is the most simple way that I know of anyway...

- Michael
From: Brian (BWTR)
1 Mar 2008   [#12] In reply to [#11]
These Gear Fonts can be good fun to use in MoI.
Is there anywhere I could send the zip file for access?
From: Michael Gibson
1 Mar 2008   [#13] In reply to [#12]
Hi Brian, those look cool - you should be able to post a .zip file as an attachment to a message right here as long as it is not too huge.

- Michael
From: Brian (BWTR)
1 Mar 2008   [#14] In reply to [#13]
OK it did--all have fun.
Brian
From: Max Smirnov (SMIRNOV)
21 Sep 2014   [#15]
This is a rewritten version of the original Spur Gear script

From: bemfarmer
21 Sep 2014   [#16] In reply to [#15]
This Script has excellent examples of how to code for multiple factories, in htm, if I can understand them.

I see that the function factory(factoryname) is being passed more (parameter) arguments than are declared.
The "argument object "is being used to process the arguments.
http://www.w3schools.com/js/js_function_parameters.asp

The techniques of this script are perfect for a polyskelions script, because I need 2 interpcurve factories.
I've got the two curves coded up already.
The join and circular array will come in handy also. And sliders.

- Brian
From: Max Smirnov (SMIRNOV)
21 Sep 2014   [#17] In reply to [#16]
Hi Brian

This factory function trick I found in the old SpurGear script. :)
Unfortunatelly, I can't find the original thread and the author name of this script.
From: DannyT (DANTAS)
21 Sep 2014   [#18] In reply to [#15]
Hi Max,

Could you please explain what the re-written spur gear script does?

Thanks
From: bemfarmer
21 Sep 2014   [#19] In reply to [#17]
See post #3 re Petr ?

I've been looking for a formula for internal spur gears...with ambiguous results so far.
I saw the factory function somewhere else awhile back.

OnClick is used again.

- Brian
From: keith1961
3 May 2018   [#20]

Just found this gear generator that might be useful to someone? http://geargenerator.com
BW
Keith


Show messages:  1-20  21-23