ConvexHullInterface Class Reference

#include <convexhull.h>

详细描述

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

公共成员函数

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

静态公共成员函数

static MAXON_METHOD ConvexHullInterface Alloc ( MAXON_SOURCE_LOCATION_DECLARATION )

私有成员函数

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

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

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

◆  Alloc()

static MAXON_METHOD ConvexHullInterface * Alloc ( MAXON_SOURCE_LOCATION_DECLARATION   )
static

◆  ComputeConvexHull() [1/2]

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

Creates a Convex hull out of the input points.

参数
[in] vertices Block of point data for which the convex hull is to be calculated.
[in] shrink Value the resulting convex hull is shrunk by.
[in] shrinkClamp Clamping the minimum size of the resulting convex hull.
[out] resultVertices The array is filled with the vertices of the calculated convex hull.
[out] resultEdges The array is filled with the edges of the calculated convex hull.
[out] resultFaces The array is filled with the face of the calculated convex hull.
返回
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 向量 > &  vertices ,
const Float   shrink ,
const Float   shrinkClamp ,
ConvexHullData hull  
)

Creates a Convex hull out of the input points.

参数
[in] vertices Block of point data for which the convex hull is to be calculated.
[in] shrink Value the resulting convex hull is shrunk by.
[in] shrinkClamp Clamping the minimum size of the resulting convex hull.
[out] hull The struct is filled with all data that makes up the convex hull (vertices, edges, faces).
返回
The amount the convex hull was shrunk by. if value is negative the convex hull is empty because it shrunk to much.