Results 1 to 3 of 3

Thread: Last polygon created index number

  1. #1
    Registered User
    Join Date
    Jan 2004
    Location
    Canyon Country, CA
    Posts
    12

    Last polygon created index number

    How can I determine the last polygon index number created after I've run a command sequence like the extrude command?

    For example, if I extrude a 4 point polygon the new geometry creates 5 new polygons. I need to be able to select the last polygon created in order to manipulate it further.

    Thanks!

    Kevin

  2. #2
    Code Muppet evenflcw's Avatar
    Join Date
    Feb 2003
    Location
    Stockholm, Sweden
    Posts
    2,642
    How many polygons you got? PolyNDX coincides with order of creation so the last polygons index is the same as the (global) polycount. Ie, if you had 4 polygons, then beveled 5 out of those, index 5 through 9 are those last 5.

    If you want the ID then just grab it of the last element in the polygons[] array generated from editbegin();

  3. #3
    Registered User
    Join Date
    Jan 2004
    Location
    Canyon Country, CA
    Posts
    12
    Thanks! That got it!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •