Spur Gear Profile

Next
 From:  Brian (BWTR)
1420.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1420.2 In reply to 1420.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

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Brian (BWTR)
1420.3 In reply to 1420.2 
Thanks Michael, that was far too logical for my brain to work out this morning!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1420.4 In reply to 1420.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Brian (BWTR)
1420.5 In reply to 1420.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?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1420.6 In reply to 1420.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Brian (BWTR)
1420.7 In reply to 1420.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?

EDITED: 31 Dec 2008 by BWTR

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1420.8 In reply to 1420.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

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1420.9 In reply to 1420.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Brian (BWTR)
1420.10 In reply to 1420.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!)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1420.11 In reply to 1420.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Brian (BWTR)
1420.12 In reply to 1420.11 
These Gear Fonts can be good fun to use in MoI.
Is there anywhere I could send the zip file for access?

EDITED: 31 Dec 2008 by BWTR

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1420.13 In reply to 1420.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Brian (BWTR)
1420.14 In reply to 1420.13 
OK it did--all have fun.
Brian

EDITED: 31 Dec 2008 by BWTR

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
1420.15 
This is a rewritten version of the original Spur Gear script
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
1420.16 In reply to 1420.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
1420.17 In reply to 1420.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  DannyT (DANTAS)
1420.18 In reply to 1420.15 
Hi Max,

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

Thanks
~Danny~
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
1420.19 In reply to 1420.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All