convex_hull
ray_hull_intersections(directions, hull, method='fast')
Find the distance from the origin to the intersection with the
given ConvexHull for a list of directions. Assumes directions
is a (N, 3) array of unit vectors representing directions, and
hull
is a ConvexHull
object centered about the origin.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
directions
|
ndarray
|
(N, 3) array of unit vectors |
required |
hull
|
ConvexHull
|
A ConvexHull for which to find intersections |
required |
Returns:
Type | Description |
---|---|
np.ndarray: (N,) array of the distances for each intersection |
Source code in chmpy/shape/convex_hull.py
transform_hull(sht, hull, **kwargs)
Calculate the spherical harmonic transform of the shape of the provided convex hull
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sht
|
SHT
|
the spherical harmonic transform object handle |
required |
n_i
|
ConvexHull
|
the convex hull (or shape to describe) |
required |
kwargs
|
dict
|
{}
|
Returns:
Type | Description |
---|---|
np.ndarray: the coefficients from the analysis step of the SHT |