THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/03/2010 at 08:33, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
I have a plugin which generates a spline. What I want to do is implement a 'rounding' effect on the spline like that seen in the Rectangle spline primitive. Like the Rectangle, my spline starts out as Linear and would need to be a Hermite to implement this.
I've searched extensively here and on the net and can't find out how to do make this work. That is, I can do it manually in the code by setting the point tangents to estimated values, but what I'm looking for is an algorithm to calculate what the position and tangent length of the new points should be. I've studied the circle.cpp example and I get how that works but not how to implement it for anything other than a circle. Of course, this has to be done in GetContour() so I can't use SendModelingCommand() to do it - it looks as if I have to calculate the vectors myself.
Does anyone have any information on this or pointers to where I might find some?
Many thanks,
Steve