Anybody here know how to access the volume grids in a VolumeLoader?
Cheers,
Kent
Hello,
a volume loader is just an ordinary generator. This means the stuff it creates is in its cache. You can access the volumes stored in its cache as usual:
if (baseObject->IsInstanceOf(Ovolumeloader) == false)
return maxon::IllegalArgumentError(MAXON_SOURCE_LOCATION);
BaseObject* const cache = baseObject->GetCache();
if (cache == nullptr)
return maxon::IllegalArgumentError(MAXON_SOURCE_LOCATION);
if (cache->IsInstanceOf(Ovolume) == false)
return maxon::UnexpectedError(MAXON_SOURCE_LOCATION);
const VolumeObject* const volumeObject = static_cast<VolumeObject*>(cache);
ApplicationOutput("Volume Object: " + volumeObject->GetName());
See also VolumeObject Manual.
best wishes,
Sebastian
MAXON SDK Specialist