About
A VolumeSet is a BaseObject that stores a collection of volume objects (VolumeObject).
A VolumeSet object is an instance of Ovolumeset.
Creation
A VolumeSet object is created as usual (see Entity Creation and Destruction Manual (Classic)):
if (volumeSet == nullptr)
doc->InsertObject(volumeSet,
nullptr,
nullptr);
Definition: lib_volumeset.h:84
static VolumeSet * Alloc()
Definition: lib_volumeset.h:96
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
const char * doc
Definition: pyerrors.h:226
Handling Volumes
A VolumeSet contains multiple VolumeObject elements. These elements are edited with:
if (gridCnt == 0)
if (volumeSet == nullptr)
doc->InsertObject(volumeSet,
nullptr,
nullptr);
for (
maxon::Int gridIndex = 0; gridIndex < gridCnt; ++gridIndex)
{
if (gridName == "cube_volume"_s)
{
if (volumeObject == nullptr)
}
}
void SetName(const maxon::String &name, Bool setDirty=true)
Definition: c4d_baselist.h:2549
Definition: lib_volumeobject.h:41
void SetVolume(const maxon::VolumeInterface *volumeObj)
static VolumeObject * Alloc()
Definition: lib_volumeobject.h:53
void AddVolume(VolumeObject *volumeObj)
Definition: lib_volumeset.h:127
MAXON_ATTRIBUTE_FORCE_INLINE Int GetCount() const
Definition: basearray.h:585
Definition: string.h:1237
static MAXON_METHOD Result< Volume > CreateFromFile(const Url &url, Float scale, Int gridIndex)
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:202
#define iferr_return
Definition: resultbase.h:1524
Further Reading