pygfx.objects.InstancedLine

class pygfx.objects.InstancedLine(geometry, material, count, **kwargs)

Bases: Line, InstancedObject

Display a line multiple times using instances.

An instanced line with a matrix for each instance.

Parameters:
  • geometry (Geometry) – The line’s geometry data.

  • material (Material) – The material with which to render the line.

  • count (int) – The number of instances to create.

  • kwargs (Any) – Additional kwargs get forwarded to the base class.