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
    • Register
    • Login

    Points of selected edges...

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 528 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 13/02/2005 at 19:05, xxxxxxxx wrote:

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

      ---------
      Hi,

      I would like to know how to get the points of an selected edge? By using the following code, I managed to get number of selected edges. Now I want to know the points of each and every edges. Can any one help me?

        
      plyobject = ToPoly(obj);  
      Neighbor n;  
      n.Init(plyobject->GetPointCount(), plyobject->GetPolygon(), plyobject->GetPolygonCount(), NULL);  
        
      BaseSelect *bss = plyobject->GetSelectedEdges(&n;, EDGES_SELECTION);  
      MessageDialog(LongToString(bss->GetCount()));  
      
      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 17/02/2005 at 14:08, xxxxxxxx wrote:

        The code to browse through all available edges is documented in the SDK docs in the Neighbor class. Have a look at it, and your prob is solved. (GetPolyInfo!)

        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 17/02/2005 at 18:28, xxxxxxxx wrote:

          Yes I have gone through that sample code which tells how to get all the edges. But what I want to know is only selected edges. After that I would like to get the points of those selected edges.

          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 18/02/2005 at 02:18, xxxxxxxx wrote:

            ? You have the selected edges in your BaseSelect. Simply check the edge index that you get when you browse thru the edges with the selection state in your BaseSelect. And the browse function also tells you the point indices of each edge.

            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 20/02/2005 at 19:28, xxxxxxxx wrote:

              Ok, I got it. Thanks Katachi.

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