vispy.visuals.collections.raw_triangle_collection module#

class vispy.visuals.collections.raw_triangle_collection.RawTriangleCollection(user_dtype=None, transform=None, vertex=None, fragment=None, **kwargs)#

Bases: Collection

append(points, indices, **kwargs)#

Append a new set of vertices to the collection.

For kwargs argument, n is the number of vertices (local) or the number of item (shared)

Parameters:
pointsnp.array

Vertices composing the triangles

indicesnp.array

Indices describing triangles

colorlist, array or 4-tuple

Path color