◆
~C4DObjectList()
成员函数文档编制
◆
Alloc()
Allocates an object list. Destroy the allocated object list with
Free()
。使用
AutoAlloc
to automate the allocation and destruction based on scope.
-
返回
-
The allocated object list, or
nullptr
if the allocation failed.
◆
Free()
Destructs object lists allocated with
Alloc()
。使用
AutoAlloc
to automate the allocation and destruction based on scope.
-
参数
-
[in,out]
|
ptr
|
The object list to destruct. If the pointer is
nullptr
nothing happens. The pointer is assigned
nullptr
afterwards.
|
◆
GetCount()
Get the number of objects stored in the list.
-
返回
-
The number of objects.
◆
GetObject()
Gets a stored object pointer by index.
-
参数
-
-
返回
-
The object at index
num
.
Cinema 4D
owns the pointed object.
◆
GetZ()
Gets the Z distance to a stored object by index.
-
参数
-
-
返回
-
The Z distance to the object at index
num
.
◆
GetPolyIdx()
Gets the polygon index of a stored object by index.
-
参数
-
-
返回
-
The polygon index.
◆
AddObject()
Adds an object to the list at a certain Z distance.
-
参数
-
[in]
|
op
|
The object to add. The caller owns the pointed object.
|
[in]
|
z
|
The Z distance to
op
.
|
[in]
|
polynum
|
The number of polygons.
|
-
返回
-
true
if successful, otherwise
false
.
◆
Flush()
Clears the object list.