geotess.lib.geotessgrid#

class geotess.lib.geotessgrid.GeoTessGrid#

Bases: object

getFirstTriangle(self, int tessellation, int level)#
getLastTriangle(self, int tessellation, int level)#
getNLevels(self)#
getNTessellations(self)#
getNTriangles(self, tessellation=None, level=None)#
getNVertices(self)#
getTriangleVertexIndexes(self, int triangleIndex)#

Supply an integer triangle index, get a 3-element integer array, which are indices of the vertices that make this triangle.

getVertex(self, int vertex)#

Retrieve the unit vector that corresponds to the specified vertex.

Returns a 3-element NumPy vector. This array is still connected to the vertex in-memory, so don’t modify it unless you intend to!

getVertexIndex(self, int triangle, int corner)#
getVertexTriangles(self, int tessId, int level, int vertex)#

Retrieve a list of the triangles a particular vertex is a member of, considering only triangles in the specified tessellation/level.

getVertices(self)#
loadGrid(self, string inputFile)#
toString(self)#
writeGrid(self, string fileName)#