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

    getting correct triangles from RayPolygon

    SDK Help
    0
    3
    266
    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

      On 04/03/2015 at 06:59, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   13+ 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      let's consider I have a RayPolygon which is quad.
      now which is the correct 2 triangles:
      1- (a, b, c) , (a, c, d)
      or
      2- (a, b, d) , (b, c, d)

      and what can I do with the flag: RAYPOLYSTATE_SPLIT ?

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

        On 05/03/2015 at 07:28, xxxxxxxx wrote:

        Hi Mohamed,

        The correct 2 triangles in a RayPolygon are (a, b, c) and (a, c, d) :

        d-------------c
        |             |
        |             |
        |             |
        |             |
        |             |
        |             |
        a-------------b

        RAYPOLYSTATE_SPLIT is meant for non-planar faces. It's mostly unused.

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

          On 05/03/2015 at 07:51, xxxxxxxx wrote:

          thanks Yannick

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