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:248
Definition: lib_volumeobject.h:41
static void Free(VolumeObject *&p)
Definition: lib_volumeobject.h:66
MAXON_ATTRIBUTE_FORCE_INLINE ResultRef< T > Append(ARG &&x)
Appends a new element at the end of the array and constructs it using the forwarded value.
Definition: basearray.h:628
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:202
#define MAXON_SCOPE
Definition: apibase.h:2886
return OK
Definition: apibase.h:2735
@ 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:37
@ 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:1524
Definition: volumecommands.h:19
BaseArray<::BaseObject * > * op
Definition: volumecommands.h:35
{
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:1784
ResultMem Resize(Int newCnt, COLLECTION_RESIZE_FLAGS resizeFlags=COLLECTION_RESIZE_FLAGS::DEFAULT)
Definition: basearray.h:1218
Definition: resultbase.h:766
static StrongRef< const ThreadInterface > GetCurrentThread()
Definition: thread.h:366
maxon::Int32 Int32
Definition: ge_sys_math.h:56
bool Bool
boolean type, possible values are only false/true, 8 bit
Definition: apibase.h:195
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:1389
Represents a polygon that can be either a triangle or a quadrangle.
Definition: c4d_baseobject.h:44
Definition: volumetools.h:188
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:211
Definition: volumetools.h:172
const ::BaseList2D * fieldOwner
Definition: volumetools.h:178
const ::FieldList * fieldList
Definition: volumetools.h:177
const ::BaseDocument * doc
Definition: volumetools.h:179
FIELDLAYER_FLAG flags
Definition: volumetools.h:175
Matrix extraTransform
Definition: volumetools.h:174