Removes the Primitive with given id from this scene.
Source
void remove(int primId) {
int i = 0;
bool found = false;
for (Primitive prim in nonIdxPrimitives) {
if (prim.id == primId) {
found = true;
break;
}
i++;
}
if (found) nonIdxPrimitives.removeAt(i);
}