On 08/04/2013 at 15:21, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Mac ;
Language(s) : C++ ;
---------
I am trying to write a simple export plugin to create rudimentary g-code for my CNC machine. That means I am trying to pick through how splines can be transformed into usable paths for the tool head. I am using the SplineHelper class but have a hard time finding any detailed info about how to use it.
In a simple case I'll have a spline rectangle and to use this to make g-code I'd like to go to the first point, calculate the distance to the second point, etc. until I am back at the first point.
I guess specific questions are:
Is there a way to get the position of each point? (like GetFirst, GetNext....)
Anybody know a good tutorial about splines & points?
C4D doesn't seem to be the right tool. At the same time much of the stuff I make starts out in C4D and is then transferred through various applications, via a MacMini running Windows XP, to EMC2 on a Linux box. Just too many steps and I find the Windows tools cumbersome to use.
Peter