bezier spline
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/11/2005 at 07:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.5
Platform:
Language(s) : C.O.F.F.E.E ;---------
Hi,I have the following problem: I want to add points to a given bezier spline in the scene. But it's shape needs to remain the same!
I know I can get the tangents of that spline of a certain position x along the spline with "GetSplineTangent( x, segment )", but what does that tell me about the required coordinates of that points handles, if I add a point at that position? It only tells me the angle, right?Obviously longer handles produce a larger radius, but how is the influence of the length of a handle to the radius defined mathematicly?
I didn't find any beziersplines in a maths book that are controlled through tangents! Maybe you tell me that I have to look harder, or it is a cinema thing, which I absolutely love, by the way!Well anyways, it might be the wrong approach.
I also thought about the "sendmodelingcommand()" function and the "MCOMMAND_SPLINE_ADDPOINT" command, since added points to a bezierspline in cinema automatically take on the right tangents.
But what woud this look like?
How do I tell cinema where to add my point in the spline?SendModelingCommand(MCOMMAND_SPLINE_ADDPOINT, doc, op, ????, MODIFY_ALL)
I hope you are understanding what I am trying to do.
Can anyone help me? Am I thinking in the right direction?