Hyperbolic meshes for 'PyVista'
Project description
PyHyperbolic3D
Python stuff for drawing 3D hyperbolic polyhedra with 'PyVista'.
pip install pyhyperbolic3d
gyrotube(A, B, s, r, npoints=300):
Tubular hyperbolic segment.
Parameters
-
A,Bpoints (lists or arrays)The two endpoints of the segment.
-
spositive floatCurvature parameter.
-
rpositive floatRadius of the tube.
-
npointsintegerNumber 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,Cpoints (lists or arrays)The vertices of the triangle.
-
spositive floatCurvature parameter.
-
depthintegerThe number of recursive subdivions. The default is 5.
-
tolsmall positive floatThe 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa386dfcbe72d288bbca6454a6f77cb65ce05dce8cb73a4a747bd2d97c1eb29
|
|
| MD5 |
2f52831920c90ca46bc495ab15cea112
|
|
| BLAKE2b-256 |
e3ed1ab0db6f561a99dcd862f41779ced39536dafd1f01b8511842f8c416a79c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a5f3516573a0dc8100be007436b9b1fd689a2f43a5355ab5d297f87286639a4
|
|
| MD5 |
d2e82d2de7f2e48212e6e0e85e744713
|
|
| BLAKE2b-256 |
cd09f763d102f7e1ad9d565d375957507f25fbae63d4c474ec0aaf89bf1ac4c4
|