Metadata-Version: 2.3
Name: discrete-frenet-solver
Version: 0.1.0
Summary: A package for solving discrete Frenet frames with numerical corrections
Project-URL: Homepage, https://github.com/ShixuanGu/DiscreteFrenetSolver
Project-URL: Bug Tracker, https://github.com/ShixuanGu/DiscreteFrenetSolver/issues
Author-email: Your Name <your.email@example.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: numpy
Description-Content-Type: text/markdown

# DiscreteFrenetSolver

DiscreteFrenetSolver is a Python package for computing the discrete Frenet frame (TNB frame) of a curve with numerical corrections. It handles edge cases such as straight segments and ensures orthogonality of the resulting frame for discrete curve data.

## Installation

pip install discrete-frenet-solver

## Usage

```python
import numpy as np
from discrete_frenet_solver import solve_frenet_frame

# Define your discrete curve
curve = np.array([[0, 0, 0], [1, 1, 1], [2, 0, 2], [3, -1, 1]])

# Solve for the Frenet frame
T, N, B = solve_frenet_frame(curve)

print("Tangent vectors:", T)
print("Normal vectors:", N)
print("Binormal vectors:", B)