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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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