Previous topic

collada.source.IDRefSource

Next topic

collada.source.NameSource

This Page

collada.source.InputList

class collada.source.InputList

Bases: object

Used for defining input sources to a geometry.

digraph inheritance7607915fbc { rankdir=LR; size="8.0, 12.0"; "InputList" [style="setlinewidth(0.5)",URL="#collada.source.InputList",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "IDRefSource" [style="setlinewidth(0.5)",URL="collada.source.IDRefSource.html#collada.source.IDRefSource",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "Source" -> "IDRefSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Source" [style="setlinewidth(0.5)",URL="collada.source.Source.html#collada.source.Source",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "DaeObject" -> "Source" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NameSource" [style="setlinewidth(0.5)",URL="collada.source.NameSource.html#collada.source.NameSource",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "Source" -> "NameSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DaeObject" [style="setlinewidth(0.5)",URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "FloatSource" [style="setlinewidth(0.5)",URL="collada.source.FloatSource.html#collada.source.FloatSource",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "Source" -> "FloatSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

__init__()

Create an input list

Methods

__init__() Create an input list
addInput(offset, semantic, src[, set]) Add an input source to this input list.
getList() Returns a list of tuples of the source in the form (offset, semantic, source, set)
addInput(offset, semantic, src, set=None)

Add an input source to this input list.

Parameters:
  • offset (int) – Offset for this source within the geometry’s indices
  • semantic (str) –
    The semantic for the input source. Currently supported options are:
    • VERTEX
    • NORMAL
    • TEXCOORD
    • TEXBINORMAL
    • TEXTANGENT
    • COLOR
    • TANGENT
    • BINORMAL
  • src (str) – A string identifier of the form #srcid where srcid is a source within the geometry’s sourceById array.
  • set (str) – Indicates a set number for the source. This is used, for example, when there are multiple texture coordinate sets.
getList()

Returns a list of tuples of the source in the form (offset, semantic, source, set)