Skip to main content

This package allows to compute the best fit circle given points in three-dimensional space.

Project description

Introduction

This package allows to compute the best fit circle given points in three-dimensional space.

Installation

The package can be installed with pip.

$ pip install circle-fitting-3d

Example Usage

>>> from circle_fitting_3d import Circle3D
>>> circle_3d = Circle3D([[3, 0, 0], [0, 3, 0], [0, 0, 3]])
>>> circle_3d.center
Point([1., 1., 1.])
>>> circle_3d.radius
2.449489742783178

The circle and points can be plotted as follows (plot created using the example_1.py script located in the examples folder):

>>> import matplotlib.pyplot as plt
>>> fig = plt.figure()
>>> ax = fig.add_subplot(111, projection="3d")
>>> circle_3d.plot(ax)
examples/example_1.svg

Acknowledgment

This package is based on the scikit-spatial library by Andrew Hynes and the algorithm is based on the algorithm provided by the MESHLOGIC webiste.

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

circle-fitting-3d-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circle_fitting_3d-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file circle-fitting-3d-1.0.0.tar.gz.

File metadata

  • Download URL: circle-fitting-3d-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for circle-fitting-3d-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8d2b989f293eec9c6f33a6025e77779d1aa805c90a960332d0894ee591180668
MD5 5d3a2cece7c7aa1681f8e72b7b1f5176
BLAKE2b-256 d903e8eaf800aecdae1f1b07ad3b283e854a671f916b8aae97ef488b461fab8a

See more details on using hashes here.

File details

Details for the file circle_fitting_3d-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for circle_fitting_3d-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6afd8eead7bc11ae8f31f6195a8d557b39d048ced143b6e705f146726aec013
MD5 673ed4ef7972c87ba0417839ca10cd09
BLAKE2b-256 8db3395214c8223447ec37c8b379e697c564be967d4a456bb9ba4306e9e588f2

See more details on using hashes here.

Supported by

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