Skip to main content

fixed_convex_hull_humus

fixed_convex_hull_humus(output, output_offset, output_point_count, input_points, input_point_count) ⇒ number

Compute a bounding polygon with a fixed given number of vertices such that the area would be minimal Uses combinatorial sets of edges to find the subset, which when extending those edges produces poly with minimum area NOTE: very very slow as it's O(n^k) where n is number of edges and k is number of points on the desired bounding polygon

Kind: global function
Returns: number - number of points added to the output
See

ParamTypeDescription
outputArray.<number> | Float32Arrayresult will be written here
output_offsetnumberoffset into output array where to write the result
output_point_countnumbernumber of points to comprise bounding polygon
input_pointsArray.<number>Points to be bounded, must be an ordered loop. Must form a convex hull
input_point_countnumbernumber of points in the input to consider

fixed_convex_hull_humus~s : Array.<number>

Kind: inner constant of fixed_convex_hull_humus

fixed_convex_hull_humus~process_combination(subset)

Kind: inner method of fixed_convex_hull_humus

ParamType
subsetArray.<number> | Uint16Array