Skip to main content

Geodesic Dome

Project description

GeodesicDome(freq=0)

Class wrapper to create and interact with a Geodesic Dome

Creates a given geodesic dome with a given frequency.

Args: freq (int, optional): The frequency of the geodesic dome. Defaults to 0.

Methods

find_neighbours(self, index: numpy.int64, depth=1) ‑> numpy.ndarray

Finds the neighbours of a given vertex on the geodesic dome to a certain depth (defaults to 1 if not provided)

Args: index (np.int64): The index of the vertex to search from depth (int, optional): The depth of neighbours to return. Defaults to 1.

Returns: np.ndarray: An array containing the indices of all the vertex’s neighbours

get_triangles(self) ‑> numpy.ndarray

Getter function for triangles

Returns: np.ndarray: the triangles of the geodesic dome

get_vertices(self) ‑> numpy.ndarray

Getter function for vertices

Returns: np.ndarray: the vertices of the geodesic dome

tessellate(self, freq=1) ‑> None

Tessellates the geodesic dome a given number of times (tessellates once if no arguments provided)

Args: freq (int, optional): The number of times to tessellate. Defaults to 1.

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

geodesicDome-2.0.22.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file geodesicDome-2.0.22.tar.gz.

File metadata

  • Download URL: geodesicDome-2.0.22.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for geodesicDome-2.0.22.tar.gz
Algorithm Hash digest
SHA256 281353cafb2876cf6a061048d58447f27d90cb063952c15e367876e6dc49a970
MD5 9d9713cc9660259fa5f57204674560e9
BLAKE2b-256 253017317360408aad2f66e443562804ae283e8842b75770dea52fb3c9fad7f5

See more details on using hashes here.

Supported by

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