Constructor
This module provides the main function of the package for performing the tessellation and trimming algorithm on an arbitrary collection of points.
Tessellation(orbit_or_point_array, dims_for_orbit=None, *, incremental=True, qhull_options=None, axis_ratio=10, normalization_routine='default', verbosity=0)
¶
Perform a tessellation and trimming on a collection of points or orbit object (from galpy or gala).
This function returns a tessellation object based on the dimensionality of the points. If an orbit object is passed, the dimensions to extract must be specified by name in a tuple.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orbit_or_point_array
|
Any
|
Input data, which can be an orbit object or a 2D array of shape (npoints, ndim). |
required |
dims_for_orbit
|
Optional[tuple[str]]
|
Dimension names for orbit objects (default None). |
None
|
incremental
|
bool
|
Whether to use incremental Delaunay triangulation (default True). |
True
|
qhull_options
|
str
|
Additional options for Qhull (default None). |
None
|
axis_ratio
|
float
|
Threshold for tessellation trimming (default 10). |
10
|
normalization_routine
|
str
|
The normalization routine to use (default "default"). |
'default'
|
verbosity
|
int
|
Verbosity level (default 0). |
0
|
Returns:
| Name | Type | Description |
|---|---|---|
TessellationBase |
TessellationBase
|
A tessellation object of the appropriate dimensionality. |
Raises:
| Type | Description |
|---|---|
LowDimensionalityException
|
If the input data has an unsupported dimensionality (less than 2). |