1 | initial version |
You are trying to add the item of the wrong type to the collection.
For your code to work, arrayObjectPoints must be a 2D array or vector of elements having the same type as objectPoints (once you reference it by n, then assume the referenced element is still a collection).