A package for solving discrete Frenet frames with numerical corrections
Project description
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
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discrete_frenet_solver-0.1.0.tar.gz.
File metadata
- Download URL: discrete_frenet_solver-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1390aea58375fe1f11e019976707600bc0471356980d5aceec5ec96a1a75a1c2
|
|
| MD5 |
29eea58af6639a1d7893e67b4d3b4297
|
|
| BLAKE2b-256 |
ba6aa8a7179bb51b825c5db86d1f52f543e123299902e8fead345e29f0b653b1
|
File details
Details for the file discrete_frenet_solver-0.1.0-py3-none-any.whl.
File metadata
- Download URL: discrete_frenet_solver-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c39885d1f64fa2aa1bd44ad2f978705e82293021ee5056023c7cd48d87aa89b
|
|
| MD5 |
4fae5b4aa8f9f7242beaa73fa2f40238
|
|
| BLAKE2b-256 |
9542eb50f4b62457fd5f108c868effebe6b26b75f0a6423424067dee7f5444ee
|