Problems with indices after deleting vertices or faces using garbage collection

Hello, my problem is, that after deleting vertices or faces using garbage collection, the indices aren't consistent to the indices before the deleting process any more. For example: we have 3 vertices: 0,1,2 we delete vertex 0 using garbage collection and we have vertices labled: 0, 1 and the vertex labled with 0 belongs to the vertex labled with 2 before deleting. A consistent numbering for me would be: 1,2 Is there any way to have a consistent numbering after deleting using garbage collection ? best regards, Marcel -- Dipl.-Math. Marcel Makowski Institut für Geometrie und Praktische Mathematik RWTH-Aachen Templergraben 55 D-52056 Aachen, Germany email: makowski@igpm.rwth-aachen.de Phone: +49-241-80-97066 Fax: +49-241-80-92317 URL: http://www.igpm.rwth-aachen.de

Hello, to my knowledge, Garbage Collection will eventually re-number all vertices. The old indices are invalidated and should no longer be used. This behaviour is intended such that in a mesh with n vertices, the verties are consistently numbered from 0 to n-1 without any gaps. What you could do to work around this: add a vertex property that saves the old indices, then after garbage collection update the data structures in which you saved the (old) indices such that they use the new indices in the future. Best Regards, Marlin On 08/11/2011 03:27 PM, Marcel Makowski wrote:
Hello,
my problem is, that after deleting vertices or faces using garbage collection, the indices aren't consistent to the indices before the deleting process any more.
For example:
we have 3 vertices: 0,1,2
we delete vertex 0 using garbage collection and we have vertices labled: 0, 1
and the vertex labled with 0 belongs to the vertex labled with 2 before deleting.
A consistent numbering for me would be: 1,2
Is there any way to have a consistent numbering after deleting using garbage collection ?
best regards, Marcel
participants (2)
-
Marcel Makowski
-
Marlin Frickenschmidt