Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discrete_frenet_solver-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

discrete_frenet_solver-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file discrete_frenet_solver-0.1.0.tar.gz.

File metadata

File hashes

Hashes for discrete_frenet_solver-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1390aea58375fe1f11e019976707600bc0471356980d5aceec5ec96a1a75a1c2
MD5 29eea58af6639a1d7893e67b4d3b4297
BLAKE2b-256 ba6aa8a7179bb51b825c5db86d1f52f543e123299902e8fead345e29f0b653b1

See more details on using hashes here.

File details

Details for the file discrete_frenet_solver-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for discrete_frenet_solver-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c39885d1f64fa2aa1bd44ad2f978705e82293021ee5056023c7cd48d87aa89b
MD5 4fae5b4aa8f9f7242beaa73fa2f40238
BLAKE2b-256 9542eb50f4b62457fd5f108c868effebe6b26b75f0a6423424067dee7f5444ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page