-
首页
-
C4D R23.110 C++ SDK
Voronoi3DInterface Class Reference
#include <voronoi3d.h>
详细描述
Voronoi3D provides functions for creating a 3D Voronoi representation of points.
成员函数文档编制
◆
MAXON_INTERFACE_NONVIRTUAL()
◆
Alloc()
◆
Init()
◆
CopyFrom()
Copies the contents of src into this object.
-
参数
-
[in]
|
src
|
The object to copy from.
|
[in]
|
resizeFlags
|
Resize flag for collections.
|
-
返回
-
OK on success.
◆
IsReadyButPendingChanges()
Checks if the Voronoi data structure is ready, even through the data might need recalculation.
-
返回
-
True if a Voronoi data structure is ready.
◆
IsReady()
Checks if the current object state is the finished data with no pending changes.
-
返回
-
True if all calculations were performed and no pending changes.
◆
SetPoints()
Sets a list of points as Voronoi sites. Only these will be used, and old points will be reset
-
参数
-
[in]
|
points
|
Points to set for this Voronoi object.
|
-
返回
-
OK on success.
◆
AddPoint()
Add a single point to the current set of points.
-
参数
-
[in]
|
pointIn
|
Point to add for this Voronoi object.
|
-
返回
-
OK on success.
◆
AddPoints()
Adds a list of points as Voronoi sites to the current set of points.
-
参数
-
[in]
|
points
|
Points to add for this Voronoi object.
|
-
返回
-
OK on success.
◆
CalcCells()
Performs a Voronoi calculation on the current set of points.
-
返回
-
OK on success.
◆
CalcTetrahedralization()
Performs the pre-step of calculating a Delaunay tetrahedralization. if
CalcCells()
is called after this, the calcualted tetrahedralization will be reused. If
CalcCells()
is called without this being called, it will perform it automatically.
-
返回
-
OK on success.
◆
SetForClipping()
Set a flag that will trigger some extra calculations in die Voronoi algorithm.
◆
GetCellCount()
Gets the amount of cells.
-
返回
-
The amount of cells.
◆
GetVoronoiPointPositions()
Gets the point positions
-
返回
-
Reference to the list holding the site positions.
◆
GetInputPoints()
Gets the point positions
-
返回
-
Reference to the list holding the site positions.
◆
GetBorderCellFlags()
Gets the flag list of that defines if a cell is a border cell. This is only set if the algorithm was set for clipping.
-
返回
-
Reference to the list holding the border flags.
◆
GetCellDataStructure()
Gets the final data structure of the Voronoi 3D diagram.
-
返回
-
Reference to the list holding the full cell data.
◆
GetCellHasVolume()
Gets a list of flags, that defines for every cell, if it still has a volume. This will be true for every start cell and can only be false if a cell got scaled.
-
返回
-
Reference to the list holding the flag if a cell still has volume.
◆
ScaleCell()
Scales one cell (cellIndex) in the Voronoi data structure
-
参数
-
[in]
|
cellIndex
|
The index of the cell to scale
|
[in]
|
scaleValue
|
Scale amount
|
-
返回
-
OK on success.
◆
ScaleAllCells()
Scales all cells in the Voronoi data structure.
-
参数
-
[in]
|
scaleValue
|
Scale amount.
|
-
返回
-
OK on success.
◆
GetDelaunayTetrizer()
Gets the internal Delaunay3D tetrahedralization class.
-
返回
-
Reference to the internal Delaunay3D.
◆
Flush()
Resets the object for a fresh calculation.
◆
SetCellFuseGroup()
Sets a list of indices to be one group. These points will be fused to one cell in generation. If an index is set to fuse in an earlier call, it will be ignored. This needs to be called after points are set or it will not have any effect.
-
参数
-
[in]
|
fuseIndices
|
The list of indices to be fused.
|
-
返回
-
OK on success.
◆
FuseCells()
Fuses the cells declared in a list of neighbor pairs into each other.
-
参数
-
[in]
|
joinList
|
The neighbor pairs of cells that should be fused.
|
-
返回
-
OK on success.
◆
CreateInvertedVoronoiCell()
Inverts the whole Voronoi data structure. this is done by inverting all faces of the cells and fusing all into one cell.
-
返回
-
OK on success.