Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    Integrals and Conditions for Formula Spline

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 235 Views
    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 Offline
      Helper
      last edited by

      On 03/08/2015 at 04:48, xxxxxxxx wrote:

      Hello,
      (May be it's not directly related with Python coding but overall I'm writing those in python for formula spline)
      I'm trying to adapt some nice useful equations to Cinema 4D.
      Some of them I was able to adapt but some with integrals I cannot understand;
      (How to adapt integrals ?)
      I even asked one of my mathematician friend. She explained but we could not find how to adapt it to Cinema 4D. Here is one example of Cornu or Eulers Spiral

      http://paulbourke.net/geometry/cornu/

      I tried to write it as :

      cos ( (t*pi*sqr(100) / 2))
      sin ((t*pi*sqr(100) / 2))

      But did not work. Can anyone explain me please? I want to learn syntax not only try to solve it. (Because there are lots of other examples to adapt)

      And also from formula appendix there is an example for conditions :
      like if (3=3;10;20) what is the meaning of field after first semicolon and other semicolon. Normally after if condition there is a rule but here there are two. Confused.

      What is it for ? : Well I have already done 35 formula splines with userdata controls. I'm planning to make a library about it. So I would be glad if anyone help me.

      Regards 

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 04/08/2015 at 05:35, xxxxxxxx wrote:

        Hi,

        as this is actually not SDK related, you could try to use the support form (but you will probably need an MSA). Or maybe someone from the community has an idea. As far as I know, there's no way to integrate in the formula, so you will need to look for a series expansion.

        Regarding the if: The syntax is "if (cond; value/formula A; value/formula B)". Now, if cond is true value or formula A will be used, if false B is used.

        I saw you cross-posted on CGTalk. Cross-posting is not the best idea. But if you have to do, please keep us informed and provide information you received in another forum. So work is not done twice.

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