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

    Direction of c4d.utils.CircleLineIntersection

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 309 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 10/10/2014 at 09:13, xxxxxxxx wrote:

      Hi
      I forgot how to set direction for 2d circle interpretation(XY or YZ or XZ) for new c4d.utils.CircleLineIntersection[URL-REMOVED]
      Not for plugins, it is for code snippet in c4d


      [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

        On 13/10/2014 at 05:01, xxxxxxxx wrote:

        Hi,

        for the new

        utils.CircleLineIntersection
        you don´t need to set the orientation of your circle, I guess.
        It´s already done by the command, the circle is always directed parallel to your line.

        if you change the P2 values in Y or Z, you´ll get the corresponding results.

          
          P1 = c4d.Vector(0,0,0)  
          P2 = c4d.Vector(50,0,0)  
          CEN = c4d.Vector(0,0,0)  
          RAD = 30  
          print c4d.utils.CircleLineIntersection(P1,P2,CEN,RAD)  
        

        hope this helps...

        Cheers,
        Martin

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

          On 13/10/2014 at 08:01, xxxxxxxx wrote:

          Hi Martin. Thank you.
          I got nice results if combine with SphereLineIntersection too

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