How get indices from the FFleshCollection ?

Hello ,

I am trying to get the indices from the FFleshCollection . I could get the tetrahedrons from it in the following way

FFleshCollection* Flesh = fleshAsset->GetCollection();
TManagedArray* Tetrahedron = Flesh->FindAttribute(FTetrahedralCollection::TetrahedronStartAttribute,
FGeometryCollection::GeometryGroup);
TManagedArray* TetrahedronStart = Flesh->FindAttribute(FTetrahedralCollection::TetrahedronStartAttribute,
FGeometryCollection::GeometryGroup);
TManagedArray* TetrahedronCount = Flesh->FindAttribute(FTetrahedralCollection::TetrahedronCountAttribute,
FGeometryCollection::GeometryGroup);

But the following statement gives error

TManagedArray tIndices = Flesh->Indices;

‘TManagedArray::TManagedArray(const TManagedArray &)’: function was explicitly deleted

make tIndices a reference variable instead.

the creator of the interface you are using has deleted the copy constructor from the container class, so you can’t copy construct as you’ve done.