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

Uploaded Source

Built Distribution

pyhyperbolic3d-0.1.0-py3-none-any.whl (16.1 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