Hi, I've written a macro to generate a grind path for a specific application I have on a 5 axis machine.
2 of the axes are fixed, 2 move at fixed increments along the workpiece which leave 1 axis which I need to solve based on the tool/workpeice contact.
I'm not using path at the moment, it's just a macro that moves the tool around and writes the axis positions to a file.
for the contact detection I am using a intersection boolean which returns the intersection volume.
I have a loop which is moving the tool in and out of contact with reduced steps each time until i reach a minimum step tolerance
(when the volume returns 0 I am not in contact, when not 0 the tool is in contact)
while this is working it's very slow, multipled by 100,000's of points it can take many hours.
my question is, how does path detect the tool and workpeice? I there an inbuilt function I can use?
I have looked at using assembly constraints, but the workpiece is a coplex curved surface and I can't find a constraint in any of the assembly options that will work.
Thanks
Path tool/workpiece contact detection [macro]
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Path tool/workpiece contact detection [macro]
Last edited by mickgalt on Sun Sep 11, 2022 9:37 am, edited 1 time in total.
Re: Path tool/workpiece contact detection [marco]
Do you mind providing the macro code ? Is it on github ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Path tool/workpiece contact detection [macro]
I only have the local copy at the moment.
i there anything in particular you wanted to see in it? its a bit of a hot mess.
i there anything in particular you wanted to see in it? its a bit of a hot mess.
Re: Path tool/workpiece contact detection [macro]
For a 3D operation, which sounds like what you need, FreeCAD uses Open Cam Lib to detect the surface.
https://github.com/aewallin/opencamlib
Open Cam Lib is currently distributed with FreeCAD as a library, ocl.pyd
Gene