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,B
points (lists or arrays)The two endpoints of the segment.
-
s
positive floatCurvature parameter.
-
r
positive floatRadius of the tube.
-
npoints
integerNumber 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 floatCurvature parameter.
-
depth
integerThe number of recursive subdivions. The default is 5.
-
tol
small 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
Hashes for pyhyperbolic3d-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a5f3516573a0dc8100be007436b9b1fd689a2f43a5355ab5d297f87286639a4 |
|
MD5 | d2e82d2de7f2e48212e6e0e85e744713 |
|
BLAKE2b-256 | cd09f763d102f7e1ad9d565d375957507f25fbae63d4c474ec0aaf89bf1ac4c4 |