VolumeObject Manual

内容表

关于

A VolumeObject represents a volume ( maxon::VolumeInterface ) inside a Cinema 4D scene. Typically a VolumeObject is found in the cache of a generator like the VolumeBuilder VolumeObject class is defined in the lib_volumeobject.h header file.

A VolumeObject object is an instance of Ovolume .

// This example checks if the given object is a volume builder. // If so, it accesses the cache to get the VolumeObject.

// check if VolumeBuilder if (object-> IsInstanceOf ( Ovolumebuilder ) == false ) return maxon::OK ;

VolumeBuilder * const volumeBuilder = static_cast< VolumeBuilder * > (object);

// get cache BaseObject * const cache = volumeBuilder-> GetCache ( nullptr ); if (cache == nullptr ) return maxon::IllegalStateError( MAXON_SOURCE_LOCATION );

// check for volume object if (cache-> IsInstanceOf ( Ovolume )) { const VolumeObject * const volumeObject = static_cast< VolumeObject * > (cache); const maxon::Volume volume = volumeObject-> GetVolume (); const maxon::String gridName = volume.GetGridName(); DiagnosticOutput ( "Grid Name: @" , gridName); }

VolumeObject

A VolumeObject can be created with these functions:

The volume represented by the object is accessed with:

延伸阅读

VolumeObject
定义: lib_volumeobject.h:40
BaseObject::GetCache
BaseObject * GetCache(HierarchyHelp *hh=nullptr)
定义: c4d_baseobject.h:809
BaseObject
定义: c4d_baseobject.h:224
maxon::String
定义: string.h:1197
maxon::OK
return OK
定义: apibase.h:2532
MAXON_SOURCE_LOCATION
#define MAXON_SOURCE_LOCATION
定义: memoryallocationbase.h:66
DiagnosticOutput
#define DiagnosticOutput(formatString,...)
定义: debugdiagnostics.h:166
VolumeBuilder
定义: lib_volumebuilder.h:42
VolumeObject::GetVolume
const maxon::VolumeInterface * GetVolume() const
Ovolumebuilder
#define Ovolumebuilder
Volume Builder.
定义: ge_prepass.h:1094
Ovolume
#define Ovolume
Volume Object.
定义: ge_prepass.h:1092
C4DAtom::IsInstanceOf
Bool IsInstanceOf(Int32 id) const
定义: c4d_baselist.h:1373

Copyright  © 2014-2025 乐数软件    

工业和信息化部: 粤ICP备14079481号-1