IndexedVertexList Class

Inheritance diagram of IndexedVertexList

class IndexedVertexList(domain, start, count, index_start, index_count)

A list of vertices within an IndexedVertexDomain that are indexed. Use IndexedVertexDomain.create to construct this list.

Constructor:

__init__(domain, start, count, index_start, index_count)

Methods:

delete() Delete this group.
draw(mode)
get_domain() Get the domain this vertex list belongs to.
get_size() Get the number of vertices in the list.
migrate(domain) Move this group from its current domain and add to the specified one.
resize(count, index_count) Resize this group.

Attributes:

colors Array of color data.
edge_flags Array of edge flag data.
fog_coords Array of fog coordinate data.
indices Array of index data.
normals Array of normal vector data.
secondary_colors Array of secondary color data.
tex_coords Array of texture coordinate data.
vertices Array of vertex coordinate data.

Methods

IndexedVertexList.delete()

Delete this group.

IndexedVertexList.draw(mode)
IndexedVertexList.resize(count, index_count)

Resize this group.

Parameters:
  • count (int) – New number of vertices in the list.
  • index_count (int) – New number of indices in the list.

Attributes

IndexedVertexList.indices

Array of index data.

Inherited members

Methods

IndexedVertexList.get_domain()

Get the domain this vertex list belongs to.

Return type:VertexDomain
IndexedVertexList.get_size()

Get the number of vertices in the list.

Return type:int
IndexedVertexList.migrate(domain)

Move this group from its current domain and add to the specified one. Attributes on domains must match. (In practice, used to change parent state of some vertices).

Parameters:domain (VertexDomain) – Domain to migrate this vertex list to.

Attributes

IndexedVertexList.colors

Array of color data.

IndexedVertexList.edge_flags

Array of edge flag data.

IndexedVertexList.fog_coords

Array of fog coordinate data.

IndexedVertexList.normals

Array of normal vector data.

IndexedVertexList.secondary_colors

Array of secondary color data.

IndexedVertexList.tex_coords

Array of texture coordinate data.

IndexedVertexList.vertices

Array of vertex coordinate data.

Table Of Contents

Previous topic

IndexedVertexDomain Class

Next topic

VertexDomain Class