MQFace class

MQFace has an information of the face in the object.

Property

get set Type Name Description
x long id unique ID
x int numVertex number of vertices
x list<int> index list of indices of vertices
x list<MQCoordinate> coord list of UV coordinates
x list<MQColor> color list of vertex colors
x list<float> alpha list of vertex alpha colors
x list<float> crease list of edge creases
[0] no crease
[1] crease
x x int material index of the material
x x int select state of the selection
[0] not selected
[1] selected

Method

Member Description
getCoord Get an UV coordinate of the vertex.
setCoord Set an UV coordinate of the vertex.
getChannelCoord Get an UV coordinate of the specified channel of the vertex.
setChannelCoord Set a UV coordinate of the specified channel of the vertex.
getColor Get a color of the vertex.
setColor Set a vertex color of the vertex.
getAlpha Get an alpha value of the vertex.
setAlpha Set an alpha value of the vertex.
getEdgeCrease Get an edge crease.
setEdgeCrease Set an edge crease.

getCoord(index)

Get an UV coordinate of the vertex.

Parameters:
int index - index of the vertex
Return value:
MQCoordinate - coordinate

setCoord(index, coord)

Set an UV coordinate of the vertex.

Parameters:
int index - index of the vertex
MQCoordinate coord - coordinate

getChannelCoord(index, channel)

Get an UV coordinate of the specified channel of the vertex.

Parameters:
int index - index of the vertex
int channel - UV channel ID
Return value:
MQCoordinate - coordinate

setChannelCoord(index, channel, coord)

Set a UV coordinate of the specified channel of the vertex.

Parameters:
int index - index of the vertex
int channel - UV channel ID
MQCoordinate coord - coordinate

getColor(index)

Get a color of the vertex.

Parameters:
int index - index of the vertex
Return value:
MQColor - vertex color

setColor(index, color)

Set a vertex color of the vertex.

Parameters:
int index - index of the vertex
MQColor color - vertex color

getAlpha(index)

Get an alpha value of the vertex.

Parameters:
int index - index of the vertex
Return value:
float - alpha value

setAlpha(index, alpha)

Set an alpha value of the vertex.

Parameters:
int index - index of the vertex
float alpha - alpha value

getEdgeCrease(index)

Get an edge crease.

Parameters:
int index - index of the vertex
Return value:
float - edge crease
[0] no crease
[1] crease

setEdgeCrease(index, crease)

Set an edge crease.

Parameters:
int index - index of the vertex
float crease - edge crease
[0] no crease
[1] crease