Skip to main content

Hyperbolic meshes for 'PyVista'

Project description

PyHyperbolic3D

Documentation status

Python stuff for drawing 3D hyperbolic polyhedra with 'PyVista'.

pip install pyhyperbolic3d

gyrotube(A, B, s, r, npoints=300):

Tubular hyperbolic segment.

Parameters
  • A,B points (lists or arrays)

    The two endpoints of the segment.

  • s positive float

    Curvature parameter.

  • r positive float

    Radius of the tube.

  • npoints integer

    Number of points along the segment. The default is 300.

Returns

A PyVista mesh ready for inclusion in a plotting region.


gyrotriangle(A, B, C, s, depth=5, tol=1e-6):

Hyperbolic triangle.

Parameters
  • A,B,C points (lists or arrays)

    The vertices of the triangle.

  • s positive float

    Curvature parameter.

  • depth integer

    The number of recursive subdivions. The default is 5.

  • tol small positive float

    The tolerance used to merge duplicated points in the mesh. The default is 1e-6.

Returns

A PyVista mesh ready for inclusion in a plotting region.

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

pyhyperbolic3d-0.1.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

pyhyperbolic3d-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhyperbolic3d-0.1.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.12 Linux/5.15.0-71-generic

File hashes

Hashes for pyhyperbolic3d-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5fa386dfcbe72d288bbca6454a6f77cb65ce05dce8cb73a4a747bd2d97c1eb29
MD5 2f52831920c90ca46bc495ab15cea112
BLAKE2b-256 e3ed1ab0db6f561a99dcd862f41779ced39536dafd1f01b8511842f8c416a79c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhyperbolic3d-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.12 Linux/5.15.0-71-generic

File hashes

Hashes for pyhyperbolic3d-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a5f3516573a0dc8100be007436b9b1fd689a2f43a5355ab5d297f87286639a4
MD5 d2e82d2de7f2e48212e6e0e85e744713
BLAKE2b-256 cd09f763d102f7e1ad9d565d375957507f25fbae63d4c474ec0aaf89bf1ac4c4

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