CVolumeDataComposite

class Lib3MF::CVolumeDataComposite : public CBase
PBaseMaterialGroup GetBaseMaterialGroup()

Returns the BaseMaterialGroup used within this volume data item

Returns:

The BaseMaterialGroup instance of this VolumeDataComposite element

void SetBaseMaterialGroup(classParam<CBaseMaterialGroup> pBaseMaterialGroupInstance)

Sets the BaseMaterialGroup to use within this volume data item.

Parameters:

pBaseMaterialGroupInstance – The new BaseMaterialGroup instance of this VolumeDataComposite element

Lib3MF_uint32 GetMaterialMappingCount()

Returns the number of material mappings of this VolumeDataComposite element

Returns:

the number of material mappings.

PMaterialMapping GetMaterialMapping(const Lib3MF_uint32 nIndex)

Returns MaterialMapping with given index

Parameters:

nIndex – Index of the MaterialMapping in question.

Returns:

MaterialMapping used in this element

PMaterialMapping AddMaterialMapping(const sTransform &Transform)

Adds a MaterialMapping

Parameters:

Transform – new transformation matrix

Returns:

The new MaterialMapping

void RemoveMaterialMapping(const Lib3MF_uint32 nIndex)

Removes the MaterialMapping with given index

Parameters:

nIndex – The index of the MaterialMapping to be removed.

typedef std::shared_ptr<CVolumeDataComposite> Lib3MF::PVolumeDataComposite

Shared pointer to CVolumeDataComposite to easily allow reference counting.