PolygonObject* const polyObject = PolygonObject::Alloc(vertexCount, polyCount);
if (polyObject == nullptr)
CPolygon* const polygons = polyObject->GetPolygonW();
for (
Int32 faceIndex = 0; faceIndex < polyCount; faceIndex++)
{
lastEdge = currentEdge;
{
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);
MAXON_ATTRIBUTE_FORCE_INLINE Int GetCount() const
Gets the number of array elements.
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
Float64 Float
Definition: apibase.h:196
return OK
Definition: apibase.h:2740
#define MSG_UPDATE
Must be sent if the bounding box has to be recalculated. (Otherwise use MSG_CHANGE....
Definition: c4d_baselist.h:372
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:69
maxon::Int32 Int32
Definition: ge_sys_math.h:51
maxon::Int Int
Definition: ge_sys_math.h:55
maxon::Vec3< maxon::Float64, 1 > Vector
Definition: ge_math.h:140
const char * doc
Definition: pyerrors.h:226
#define iferr_return
Definition: resultbase.h:1531
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