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

    Normal to rotation

    General Discussion
    0
    4
    602
    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 27/09/2011 at 09:58, xxxxxxxx wrote:

      I have the normal vector of a polygon face. I also have the center coordinate of that polygon.
      Now I want to place an object at that location (easy) but also rotate it so that it is perpendicular to the face. So, how can I use the normal information to rotate my object to a suitable orientation?

      Rui Batista

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

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

        On 27/09/2011 at 10:43, xxxxxxxx wrote:

        I don't know what language you are using, but in Python (and for sure in C++ as well) there is a function called "VectorToHPB". This is what you search for.

        Cheers,

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

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

          On 27/09/2011 at 13:17, xxxxxxxx wrote:

          Thank you very much. That did the trick.
          By the way, I'm using Xpresso but I could make it work fine with a C.O.F.F.E.E. node.

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

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

            On 06/11/2011 at 17:31, xxxxxxxx wrote:

            Thanks!!!

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