generate G-code | decompose b-spline to circular sections
I'm trying to decompose a b-spline to a set of circl开发者_StackOverflow社区e definitions. I'm trying to generate G-code; the idea here is to segment a b-spline into a number of circular interpolations [ G02 ]. Using PythonOCC I can break up the b-spline into a number of beziers curves, but I don't know how to translate the bezier into circular sections.
Thanks
Maybe not the most scientific approach but it worth a look: http://rocksolidperspective.com/2010/02/17/making-splines-work-in-manufacturing/
精彩评论