Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    bezier spline

    SDK Help
    0
    1
    70
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post