ConvexHullInterface Class Reference

#include <convexhull.h>

Detailed Description

ConvexHullInterface provides functions for creating a convex hull of a set of points.

Public Member Functions

MAXON_METHOD Result< FloatComputeConvexHull (const Block< const Vector > &vertices, const Float shrink, const Float shrinkClamp, BaseArray< Vector > &resultVertices, BaseArray< ConvEdge > &resultEdges, BaseArray< Int > &resultFaces)
 
MAXON_METHOD Result< FloatComputeConvexHull (const Block< const Vector > &vertices, const Float shrink, const Float shrinkClamp, ConvexHullData &hull)
 

Static Public Member Functions

static MAXON_METHOD ConvexHullInterfaceAlloc (MAXON_SOURCE_LOCATION_DECLARATION)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (ConvexHullInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.convexhull")
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( ConvexHullInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.convexhull"   
)
private

◆ Alloc()

◆ ComputeConvexHull() [1/2]

MAXON_METHOD Result<Float> ComputeConvexHull ( const Block< const Vector > &  vertices,
const Float  shrink,
const Float  shrinkClamp,
BaseArray< Vector > &  resultVertices,
BaseArray< ConvEdge > &  resultEdges,
BaseArray< Int > &  resultFaces 
)

Creates a Convex hull out of the input points.

Parameters
[in]verticesBlock of point data for which the convex hull is to be calculated.
[in]shrinkValue the resulting convex hull is shrunk by.
[in]shrinkClampClamping the minimum size of the resulting convex hull.
[out]resultVerticesThe array is filled with the vertices of the calculated convex hull.
[out]resultEdgesThe array is filled with the edges of the calculated convex hull.
[out]resultFacesThe array is filled with the face of the calculated convex hull.
Returns
The amount the convex hull was shrunk by. if value is negative the convex hull is empty because it shrunk to much.

◆ ComputeConvexHull() [2/2]

MAXON_METHOD Result<Float> ComputeConvexHull ( const Block< const Vector > &  vertices,
const Float  shrink,
const Float  shrinkClamp,
ConvexHullData hull 
)

Creates a Convex hull out of the input points.

Parameters
[in]verticesBlock of point data for which the convex hull is to be calculated.
[in]shrinkValue the resulting convex hull is shrunk by.
[in]shrinkClampClamping the minimum size of the resulting convex hull.
[out]hullThe struct is filled with all data that makes up the convex hull (vertices, edges, faces).
Returns
The amount the convex hull was shrunk by. if value is negative the convex hull is empty because it shrunk to much.