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

    Selected Edges

    Bugs
    0
    5
    1.5k
    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 16/03/2003 at 12:04, xxxxxxxx wrote:

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

      ---------
      op->GetEdgeS() does not work correctly. It doubles the selection count. If there is one edge selected it returns 2 etc.
      Best
      Samir

      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 18/03/2003 at 08:52, xxxxxxxx wrote:

        No, that is correct, it -does- work, and you -do- have 2 edges, one per polygon, try it with a single polygon. I know it works, I've used it 😉

        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 18/03/2003 at 09:05, xxxxxxxx wrote:

          I thought two polygons do share the SAME edge and not two edges?
          This actually has to be the case or GetEdgePolys(LONG a, LONG b, LONG* first, LONG* second) wouldn´t work would it? This is contradictory somehow. You can get the neighboring polygons of ONE edge but if ONE edge is selected it returns an edgecount of two edges??
          And here a text out of the docs:

              
              
              for example think of two polygons that share an edge
          

          So what´s right now? You see, I´m confused 🙂
          Best
          Samir

          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 18/03/2003 at 09:26, xxxxxxxx wrote:

            I think maybe you misunderstand the function and edges 🙂 it also returns the polygons, in that case, 1 edge also has 2 polygons, so you get back 2, it is just like the Neighbor class.
            "The edges are indexed by 4 * polygon + edge where polygon is the polygon index and edge is the edge index between 0 and 3. "
            So the polygon is:

                
                
                  
                   i=e/4;  
                
            

            and

                
                
                  
                   side=e%4;  
                
            
            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 18/03/2003 at 10:12, xxxxxxxx wrote:

              lol, thanks for the explanation. I´m not sure if I 100% got it but if you are saying it than I believe it 🙂 Well, I will need some edge processing very soon in one of my plugins, so prepare to see me in the plugincafe asking questions toward Dave O´Reilly empire.. 😉
              Thank you
              Best
              Samir

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