Methods
|
|
|
|
__getattr__
|
__getattr__ ( self, name )
|
|
__init__
|
__init__ ( self, object=None )
|
|
__repr__
|
__repr__ ( self )
|
|
addFace
|
addFace (
self,
vlist,
flags=None,
makedefaultUV=0,
)
Adds a face to the mesh and returns a reference to it. vlist
must be a list of vertex references returned by addVert().
Note that the returned value references an owned face
|
|
addVert
|
addVert ( self, v )
Adds a vertex to the mesh and returns a reference to it. v can
be a float triple or any data type emulating a sequence, containing the
coordinates of the vertex. Note that the returned value references an
owned vertex
|
|
getMaterials
|
getMaterials ( self, materials=[] )
Returns materials assigned to the mesh
|
|
hasFaceUV
|
hasFaceUV ( self, true=None )
Sets the per-face UV texture flag, if true specified (either
0 or 1). Returns the texture flag in any case.
|
|
hasVertexColours
|
hasVertexColours ( self, true=None )
Sets the per-face UV texture flag, if true specified (either
0 or 1). Returns the texture flag in any case.
|
|
hasVertexUV
|
hasVertexUV ( self, true=None )
Sets the per-vertex UV texture flag, if true specified (either
0 or 1). Returns the texture flag in any case.
|
|
link
|
link ( self, material )
Link material material with the mesh. Note that a mesh can
currently have up to 16 materials, which are referenced by
Face().materialIndex
|
|
setMaterials
|
setMaterials ( self, materials=[] )
Sets materials. materials must be a list of valid material objects
Note that a mesh can currently have up to 16 materials, which are referenced
by Face().materialIndex
|
|
unlink
|
unlink ( self, material )
Unlink (remove) material material from the mesh. Note
that the material indices per face need to be updated.
|
|
update
|
update ( self )
Updates the mesh datablock in Blender
|