Using FreeCAD API, a Python program has been developed for simulating threads with various geometric deviations that occur during thread turning. The algorithm is based on the approximation of a complex trajectory of tool movement by splines and using the Boolean "cut" operation on the bodies of the workpiece and the tool.
To simulate various machining errors in the program, it is possible to change the values of the geometric parameters of the workpiece and tool and the parameters of the tool path relative to the workpiece. The testing of the suitability of threads with deviations is realized by Boolean operations on the maximum permissible and real bodies.
Code: https://github.com/vkopey/Thread-turning-simulator
Thread-turning-simulator
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Thread-turning-simulator
Can you provide anymore information on how to use this in FreeCAD?
Can you provide any screen snap-shots.
I see from the TXlated main.py, integration with Parts and BRep.
Is it a Macro? Is it a WorkBench? Tool?; etc.
Need more README info for installation/usage.
Thanks
Can you provide any screen snap-shots.
I see from the TXlated main.py, integration with Parts and BRep.
Is it a Macro? Is it a WorkBench? Tool?; etc.
Need more README info for installation/usage.
Thanks