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
    • Login
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Access to selected points of an object

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 200 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 25/09/2007 at 08:15, xxxxxxxx wrote:

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

      ---------
      Hi,

      Question for C++

      Can somebody me please explain how you get the selected points (vertexes) of an object, or point me to an example? It has something to do with BaseSelect, no?

      From the BaseDocument I take the BaseObject and then the Polygonobject? Somehow I can only access the selected eges, but I want the points. The one that are currently selected.

      BTW, why do I get 0 results when searching the word "select" in the thread title or body? But there are posts concerning this word in the forum. That's strange, isn't it...

      Steve

      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 25/09/2007 at 10:52, xxxxxxxx wrote:

        BaseObject* obj = // the object
        > // not a point object, return
        > if (!obj- >IsInstanceOf(Opoint)) return;
        > // Cast to a point object
        > PointObject* pobj = ToPoint(obj);
        > // Get the selected points, the point array, and point count
        > BaseSelect* bs = pobj->GetPointS();
        > Vector* vert = pobj->GetPointW();
        > LONG vcnt = pobj->GetPointCount();

        Traverse the BaseSelect just as shown in the SDK documentation. The indices that are 'selected' will match those of the vert array.

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