if (polyObject == nullptr)
for (
Int32 faceIndex = 0; faceIndex < polyCount; faceIndex++)
{
lastEdge = currentEdge;
{
polyCounter++;
lastEdge = currentEdge;
}
}
for (
Int32 pointIndex = 0; pointIndex < vertexCount; pointIndex++)
polyPoints[pointIndex] = hullData.
vertices[pointIndex];
doc->InsertObject(polyObject,
nullptr,
nullptr);
Bool Message(Int32 type, void *data=nullptr)
Definition: c4d_baselist.h:1582
Vector * GetPointW()
Definition: c4d_baseobject.h:1606
Definition: c4d_baseobject.h:1784
CPolygon * GetPolygonW()
Definition: c4d_baseobject.h:1931
static PolygonObject * Alloc(Int32 pcnt, Int32 vcnt)
MAXON_ATTRIBUTE_FORCE_INLINE Int GetCount() const
Definition: basearray.h:585
static MAXON_METHOD Result< Float > ComputeConvexHull(const Block< const Vector > &vertices, Float shrink, Float shrinkClamp, BaseArray< Vector > &resultVertices, BaseArray< ConvEdge > &resultEdges, BaseArray< Int > &resultFaces)
Py_UCS4 * res
Definition: unicodeobject.h:1113
maxon::Int32 Int32
Definition: ge_sys_math.h:56
maxon::Int Int
Definition: ge_sys_math.h:60
Float64 Float
Definition: apibase.h:211
return OK
Definition: apibase.h:2735
#define MSG_UPDATE
Must be sent if the bounding box has to be recalculated. (Otherwise use MSG_CHANGE....
Definition: c4d_baselist.h:359
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
const char * doc
Definition: pyerrors.h:226
#define iferr_return
Definition: resultbase.h:1524
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
ConvexHullData struct is a datacontainer that represents a convex hull.
Definition: convexhull.h:32
BaseArray< Vector > vertices
Vertex coordinates of the convex hull.
Definition: convexhull.h:34
BaseArray< Int > faces
Faces of the convex hull. Each entry is an index into the "edges" array pointing to an edge of the fa...
Definition: convexhull.h:40
BaseArray< ConvEdge > edges
Edges of the convex hull. For each edge there's also the reverse edge in the array.
Definition: convexhull.h:37