Volumes can be created and edited with specific commands and functions provided in the maxon::VolumeToolsInterface.
{
maxon::LegacyCommandDataRef
context = maxon::LegacyCommandDataClasses::VOLUMEDATA().Create()
iferr_return;
data.
op = &sourceObjects;
const auto command = maxon::CommandClasses::MESHTOVOLUME();
if (
result.result.GetCount() == 2)
{
}
}
{
maxon::LegacyCommandDataRef
context = maxon::LegacyCommandDataClasses::VOLUMEDATA().Create()
iferr_return;
data.
op = &sourceObjects;
const auto command = maxon::CommandClasses::BOOLE();
if (
result.result.GetCount() == 1)
{
}
}
{
maxon::LegacyCommandDataRef
context = maxon::LegacyCommandDataClasses::VOLUMEDATA().Create()
iferr_return;
data.
op = &sourceObjects;
const auto command = maxon::CommandClasses::VOLUMETOMESH();
if (
result.result.GetCount() == 1)
{
doc->InsertObject(
object,
nullptr,
nullptr);
}
}
Definition: c4d_baseobject.h:225
Definition: lib_volumeobject.h:41
static void Free(VolumeObject *&p)
Definition: lib_volumeobject.h:66
MAXON_ATTRIBUTE_FORCE_INLINE ResultRef< T > Append(ARG &&x)
Definition: basearray.h:677
PyObject PyObject * result
Definition: abstract.h:43
Py_UCS4 * res
Definition: unicodeobject.h:1113
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:188
#define MAXON_SCOPE
Definition: apibase.h:2841
return OK
Definition: apibase.h:2690
@ GRIDSIZE
Float Grid voxel cube size.
@ BOOLETYPE
Int32 The Boole type (union, difference, intersection).
COMMANDRESULT
Defines the result of the command after execution.
Definition: commandbase.h:35
@ OK
The command was executed properly.
void * context
Definition: pycapsule.h:49
const char * doc
Definition: pyerrors.h:226
#define iferr_return
Definition: resultbase.h:1519
Definition: volumecommands.h:20
BaseArray<::BaseObject * > * op
Definition: volumecommands.h:36
{
const Vector*
const points = poly->GetPointR();
const CPolygon*
const polys = poly->GetPolygonR();
if (noPoints || noPolys)
const Int32 pointCount = poly->GetPointCount();
const Int32 polyCount = poly->GetPolygonCount();
const Matrix objectMatrix = poly->GetMg();
for (
Int32 pointIndex = 0; pointIndex < pointCount; ++pointIndex)
volPoints[pointIndex] = objectMatrix * points[pointIndex];
for (
Int32 polyIndex = 0; polyIndex < polyCount; polyIndex++)
{
if (polys[polyIndex].IsTriangle())
volPolys[polyIndex].SetTriangle();
}
if (thread == nullptr)
};
const maxon::Volume volumeA = PolyToVolume(polyObjectA)
iferr_return;
const maxon::Volume volumeB = PolyToVolume(polyObjectB)
iferr_return;
if (mesh == nullptr)
doc->InsertObject(mesh,
nullptr,
nullptr);
PyCompilerFlags * flags
Definition: ast.h:14
Definition: c4d_baseobject.h:1631
ResultMem Resize(Int newCnt, COLLECTION_RESIZE_FLAGS resizeFlags=COLLECTION_RESIZE_FLAGS::DEFAULT)
Definition: basearray.h:1369
Definition: resultbase.h:766
static StrongRef< const ThreadInterface > GetCurrentThread()
Definition: thread.h:356
maxon::Int32 Int32
Definition: ge_sys_math.h:60
bool Bool
boolean type, possible values are only false/true, 8 bit
Definition: apibase.h:181
COLLECTION_RESIZE_FLAGS
Flags for Resize(). Depending on the type of collection the flags might be ignored (except for ON_GRO...
Definition: collection.h:126
@ ON_GROW_UNINITIALIZED
Do not initialize added elements (usually PODs) when resizing the array (is supported by all collecti...
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
The maxon namespace contains all declarations of the MAXON API.
Definition: autoweight.h:14
#define iferr_scope
Definition: resultbase.h:1384
Represents a polygon that can be either a triangle or a quadrangle.
Definition: c4d_baseobject.h:44
Definition: volumetools.h:154
if (volumeObject == nullptr)
doc->InsertObject(volumeObject,
nullptr,
nullptr);
volumeObject->SetVolume(volume);
T maxValue
The inclusive maximum boundary of this range. If the minimum boundary is not less than or equal to th...
Definition: range.h:257
T minValue
The inclusive minimum boundary of this range.
Definition: range.h:256
Float64 Float
Definition: apibase.h:197
Definition: volumetools.h:139
::BaseList2D * fieldOwner
Definition: volumetools.h:144
FIELDLAYER_FLAG flags
Definition: volumetools.h:142
::BaseDocument * doc
Definition: volumetools.h:145
Matrix extraTransform
Definition: volumetools.h:141
::FieldList * fieldList
Definition: volumetools.h:143