This instruction will create a torus with big radius R1 and small radius R2 at (0,0,0).
To move it to its position in the bearing:
TH/2 because track is in the middle of the bearing z axis (remember TH variable defined in previous post "FreeCad Bearing Script")
With this you have a groove with a radius R2 a radial distance R1 just in middle of the bearing, a little improvement to our bearing.
Added: Round edges:
After a bit of research I found how to select edges and how to fillet them, just two commands.
First, we create a new variable that I`ve called RR and contains the value of the rounding radius.
To explain the commands I am going to use a box object:
Do not create a very tiny box or making fillet will crash freecad.
Getting the box edges (all) and store them in Bedges new variable:
This instructions creates BFillet object that is our B box with all its edges rounded with an RR radius.
This should be the result:
How can we apply this to our bearing? (understand "FreeCad Bearing Script 1" needed)
Create inner ring:
Now just round the ring:
And its done!
for i in range(NBall):
The output of that command is the picture at the beginning of this post.
Added: Video of the script working
Next things to do are grouping all entities in the same object and create a standard bearing generator script.
I have realized that there is no way (at least graphically) to create section views or cuts to 3d parts. A very useful tool to show internals. Also I have not found at the moment any way to measure distance or angles of points, edges, axis... Maybe in the next release.