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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Circular sector like Rotate axis tool?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 231 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 14/01/2008 at 20:15, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R9-R10 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Anyone have ideas about how to draw a circular sector in ObjectData::Draw() similar to how the Rotate axis tool does the same in the Editor? LineStrip looked interesting, but have no clue what the heck this does. I imagine that one can do a series of Polygon3D() calls (?). Seems like a bit of work though.

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 14/01/2008 at 21:49, xxxxxxxx wrote:

        Ah, I have it mostly working. Definitely Polygon3D() calls. The main problem is how to handle when the start angle is greater than the end angle (always rotates positively from start to end but the end may be over the 0d mark). 🙂

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 14/01/2008 at 22:50, xxxxxxxx wrote:

          Found it. If the start angle is greater than the end angle, it will definitely be crossing the 0d mark. So, I increment my sub-section slices up to 360, start anew at 0d and go until the end angle. QED.

          Happy camper. 🙂

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