About
A VolumeBuilder is used to create a volume based on various input objects. The created volumes are represented as VolumeObject objects within the generator's cache. The VolumeBuilder class is defined in the lib_volumebuilder.h header file. The parameter IDs are defined in ovolumebuilder.h.
A VolumeBuilder object is an instance of Ovolumebuilder.
VolumeBuilder
Creation
A VolumeBuilder object is created with these functions:
if (volumeBuilder == nullptr)
doc->InsertObject(volumeBuilder,
nullptr,
nullptr);
Definition: lib_volumebuilder.h:43
static VolumeBuilder * Alloc()
Definition: lib_volumebuilder.h:55
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
const char * doc
Definition: pyerrors.h:226
Input Objects
A VolumeBuilder creates volumes based on various input objects. Such input objects are added or removed to the input objects list with these functions:
if (settings == nullptr)
Definition: c4d_basecontainer.h:48
void SetBool(Int32 id, Bool b)
Definition: c4d_basecontainer.h:580
BaseContainer * GetSettingsContainerForIndex(Int32 index) const
Bool AddSceneObject(BaseObject *object, Int32 index, Bool enabled, BOOLTYPE boolMode, MIXTYPE mixMode)
Py_ssize_t * index
Definition: abstract.h:374
maxon::Int32 Int32
Definition: ge_sys_math.h:56
@ ID_VOLUMEBUILDER_TAG_OPTIMIZEANDCLOSE
Definition: tvolumebuilder.h:28
The objects in the input list are accessed with:
{
if (inputObject != nullptr)
{
}
}
Py_ssize_t i
Definition: abstract.h:645
const char const char * name
Definition: abstract.h:195
String GetName() const
Definition: c4d_baselist.h:2543
Definition: c4d_baseobject.h:248
Bool InputObjectIsChild(Int32 index) const
Int32 GetListEntryCount()
BaseObject * GetInputObject(Int32 index) const
Definition: string.h:1237
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
For each input object various settings can be set (see tvolumebuilder.h). The BaseContainer storing these settings is accessed with:
if (settings == nullptr)
void SetFloat(Int32 id, Float r)
Definition: c4d_basecontainer.h:615
BaseContainer * GetSettingsContainerForObject(BaseObject *object) const
@ ID_VOLUMEBUILDER_TAG_MESHRADIUS
Definition: tvolumebuilder.h:27
@ ID_VOLUMEBUILDER_TAG_USEPOINTS
Definition: tvolumebuilder.h:17
The bool mode (BOOLTYPE) of a given object is accessed with:
The mix mode (::MIXTYPE) of a given object is accessed with:
The functional state of an object in the list is accessed by:
The selection state of an object in the list is accessed with:
The MIXVECTORTYPE defines how vector data is handled:
{
if (selected)
else
}
void SetEnable(Int32 index, Bool enable)
Bool GetSelected(Int32 index) const
maxon::Bool Bool
Definition: ge_sys_math.h:51
Further Reading