maxon::ConvexHullData hullData;
if (polyObject == nullptr)
CPolygon* const polygons = polyObject->GetPolygonW();
const
maxon::ConvEdge* lastEdge;
for (
Int32 faceIndex = 0; faceIndex < polyCount; faceIndex++)
{
const maxon::ConvEdge* currentEdge = &hullData.edges[hullData.faces[faceIndex]];
lastEdge = currentEdge;
for (currentEdge = &hullData.edges[lastEdge->_nextEdgeOfFace];
&hullData.edges[currentEdge->
_nextEdgeOfFace] != &hullData.edges[hullData.faces[faceIndex]];
{
polyCounter++;
lastEdge = currentEdge;
}
}
Vector*
const polyPoints = polyObject->GetPointW();
for (
Int32 pointIndex = 0; pointIndex < vertexCount; pointIndex++)
polyPoints[pointIndex] = hullData.vertices[pointIndex];
doc->InsertObject(polyObject,
nullptr,
nullptr);
Definition: c4d_baseobject.h:1631
Py_UCS4 * res
Definition: unicodeobject.h:1113
for(i=0;i< length;i++)
Definition: unicodeobject.h:61
OK
Ok.
Definition: ge_prepass.h:0
maxon::Int32 Int32
Definition: ge_sys_math.h:60
maxon::Float Float
Definition: ge_sys_math.h:66
maxon::Int Int
Definition: ge_sys_math.h:64
static auto Create(ARGS &&... args)
Definition: apibase.h:2773
#define MSG_UPDATE
Must be sent if the bounding box has to be recalculated. (Otherwise use MSG_CHANGE....
Definition: c4d_baselist.h:358
Int GetCount(const ITERABLE &iterable)
Definition: collection.h:37
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
The maxon namespace contains all declarations of the MAXON API.
Definition: autoweight.h:14
const char * doc
Definition: pyerrors.h:226
#define iferr_return
Definition: resultbase.h:1519
Represents a polygon that can be either a triangle or a quadrangle.
Definition: c4d_baseobject.h:44
Definition: convexhull.h:15
Int _nextEdgeOfFace
Definition: convexhull.h:21
Int _end
Definition: convexhull.h:20
Int _start
Definition: convexhull.h:19