materialIndices property

IVector<int> materialIndices

Implementation

IVector<int> get materialIndices {
  final retValuePtr = calloc<COMObject>();

  final hr = ptr.ref.vtable
          .elementAt(6)
          .cast<
              Pointer<
                  NativeFunction<
                      HRESULT Function(Pointer, Pointer<COMObject>)>>>()
          .value
          .asFunction<int Function(Pointer, Pointer<COMObject>)>()(
      ptr.ref.lpVtbl, retValuePtr);

  if (FAILED(hr)) {
    free(retValuePtr);
    throw WindowsException(hr);
  }

  return IVector.fromRawPointer(retValuePtr,
      iterableIid: '{421d4b91-b13b-5f37-ae54-b5249bd80539}', intType: Uint32);
}