compute_bounding_simplex_3d
Constants
- SIMPLEX_PROJECTION_AXES :
Float32Array
Planes used to bound the simplex NOTE: these might be computed for a given set of points instead, to produce a tighter fit, but this was good enough for my needs so far
Functions
- compute_bounding_simplex_3d(result, result_offset, input, input_count, padding)
Compute bounding tetrahedron (3d simplex) for a given set of input points The algorithm is pretty basic, it projects each point onto 4 planes and pushes planes away from origin to the furthest projected point then, we take intersection points between those planes to get our bounding tetrahedron
SIMPLEX_PROJECTION_AXES : Float32Array
Planes used to bound the simplex NOTE: these might be computed for a given set of points instead, to produce a tighter fit, but this was good enough for my needs so far
Kind: global constant
Read only: true
compute_bounding_simplex_3d(result, result_offset, input, input_count, padding)
Compute bounding tetrahedron (3d simplex) for a given set of input points The algorithm is pretty basic, it projects each point onto 4 planes and pushes planes away from origin to the furthest projected point then, we take intersection points between those planes to get our bounding tetrahedron
Kind: global function
See: https://github.com/bryanmcnett/aabo/blob/master/aabo.cpp
Author: Alexander Goldring (c) 2021
Param | Type | Description |
---|---|---|
result | Array.<number> | Float32Array | Float64Array | |
result_offset | number | |
input | Array.<number> | Float32Array | Float64Array | |
input_count | number | |
padding | number | Planar offset for each of the simple sides, positive padding value will create a larger simplex. Useful for ensuring that input points do not lie directly on the simplex planes |