API Reference
This section contains the complete API reference for PolytopAX.
Overview
PolytopAX provides both high-level object-oriented APIs and low-level functional APIs:
High-level API:
polytopax.ConvexHullclass for easy-to-use convex hull operationsLow-level API: Individual functions for custom workflows and advanced usage
Utilities: Helper functions for validation, preprocessing, and geometric computations
Quick Reference
Main Classes:
|
JAX-compatible ConvexHull class with object-oriented API. |
Core Functions:
|
Compute convex hull of a set of points. |
|
Differentiable approximate convex hull computation. |
Geometric Predicates:
|
Test if point is inside convex hull. |
|
Compute volume of convex hull (differentiable). |
|
Compute surface area of convex hull. |
|
Compute distance from point to convex hull. |
|
Compute Hausdorff distance between two convex hulls. |
Utility Functions:
|
Get PolytopAX package information. |
|
Validate point cloud shape and numerical validity. |
|
Generate direction vectors for sampling. |
Detailed Documentation
Module Structure
The PolytopAX library is organized into several modules:
polytopax.core- Core data structures and main APIspolytopax.algorithms- Convex hull algorithms and approximation methodspolytopax.operations- Geometric predicates and operations
Each module contains related functionality and can be imported independently for advanced usage.