Hi,

After fusing your geometry, you can run 2 primitive wrangles like this:

Serialize point list:

string serializePointIndices ( int primIndex )
{
int indices [ ];
int count = primvertexcount ( geoself ( ), primIndex );
for ( int i = 0; i < count; ++i )
{
int index = vertexpoint ( geoself ( ), vertexindex ( geoself ( ), primIndex, i ) );
push ( indices, index );
}
indices = sort ( indices );
return sprintf ( "%s", indices );
}
s@pointList = serializePointIndices ( @primnum );

Delete overlapping polygons:

string pointList = prim ( 1, "pointList", @primnum );
int count = findattribvalcount ( 1, "primitive", "pointList", pointList );
if ( count > 1 )
removeprim ( geoself ( ), @primnum, 1 );

If you want to keep the first overlapping polygon rather than deleting all, you can do this:

string pointList = prim ( 1, "pointList", @primnum );
int index = findattribval ( 1, "primitive", "pointList", pointList );
if ( @primnum != index )
removeprim ( geoself ( ), @primnum, 1 );