MQObject contains vertices and faces.
get | set | Type | Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x | x | string | name | object's name | ||||||||||||
x | long | id | unique ID of object | |||||||||||||
x | x | string | typeName | type of object
|
||||||||||||
x | int | numVertex | number of vertices | |||||||||||||
x | int | numFace | number of faces | |||||||||||||
x | list<MQVertex> | vertex | list of vertices | |||||||||||||
x | list<MQFace> | face | list of faces | |||||||||||||
x | x | int | visible | visibility of the object
|
||||||||||||
x | x | int | lock | locking of the object
|
||||||||||||
x | x | int | select | selection of the object
|
||||||||||||
x | x | MQColor | color | color of vertices and lines | ||||||||||||
x | x | int | colorValid | validation of 'color' property
|
||||||||||||
x | x | int | shading | enable smooth shading
|
||||||||||||
x | x | float | smoothAngle | smoothing angle | ||||||||||||
x | x | int | patchType | type of the patch
|
||||||||||||
x | x | int | patchSegment | segment of the patch | ||||||||||||
x | x | int | patchTriangle | division of triangles for Catmull-Clark patch
|
||||||||||||
x | x | int | patchSmoothTriangle | smoothing of triangles for OpenSubdiv patch
|
||||||||||||
x | x | int | patchLimitSurface | limit surface for OpenSubdiv patch
|
||||||||||||
x | x | int | patchMeshInterp | An interpolation method of open faces for OpenSubdiv patch
|
||||||||||||
x | x | int | patchUVInterp | An interpolation method of UV borders for OpenSubdiv patch
|
||||||||||||
x | x | int | mirrorType | type of mirroring
|
||||||||||||
x | x | int | mirrorAxisX | Apply mirroring at X axis
|
||||||||||||
x | x | int | mirrorAxisY | Apply mirroring at Y axis
|
||||||||||||
x | x | int | mirrorAxisZ | Apply mirroring at Z axis
|
||||||||||||
x | x | int | mirrorAxisLocal | Apply mirroring by the local coordinate
|
||||||||||||
x | x | float | mirrorDistance | Maximum joined distance of mirroring. | ||||||||||||
x | x | int | latheType | type of lathe
|
||||||||||||
x | x | int | latheAxis | axis of lathe
|
||||||||||||
x | x | int | latheSegment | segment of lathe | ||||||||||||
x | x | int | depth | depth of the hierarchy | ||||||||||||
x | x | int | folding | folding of the hierarchy | ||||||||||||
x | x | MQPoint | scaling | scaling factor of the local coordinate | ||||||||||||
x | x | MQAngle | rotation | rotation angle of the local coordinate | ||||||||||||
x | x | MQPoint | translation | translation of the local coordinate | ||||||||||||
x | x | float | lightValue | lighting brightness | ||||||||||||
x | x | int | lightAttenuation | lighting attenuation
|
||||||||||||
x | x | float | lightFalloffEnd | distance of end of fall off | ||||||||||||
x | x | float | lightFalloffHalf | distance of half fall off | ||||||||||||
x | x | list<int> | uvChannels | list of UV channel ID | ||||||||||||
x | int | activeUVChannel | active UV channel ID |
Member | Description |
---|---|
clone | Duplicate an object. |
merge | Merge two objects. |
freeze | Polygonize attributes such as a patch or a mirroring. |
clear | Clear all vertices and faces. |
addVertex | Add a vertex. |
addVertex | Add a vertex. |
deleteVertex | Delete a vertex. |
addFace | Add a face. |
insertFace | Insert a face at the specified index. |
deleteFace | Delete a face. |
invertFace | Invert a direction of a face. |
optimizeVertex | Combine vertices in the specified distance. |
compact | Compact indices of vertices and faces. |
getVertexIndexFromUniqueID | Get the index of vertex from unique ID. |
getFaceIndexFromUniqueID | Get the index of face from unique ID. |
allocUserData | Allocate a memory area for an user data in the object. |
freeUserData | Free an allocated memory area for an user data. |
getUserDataInt | Get an integer value (4 bytes) from the object user data. |
getUserDataFloat | Get a float value (4 bytes) from the object user data. |
getUserDataString | Get a string from the object user data. |
setUserDataInt | Set an integer value (4 bytes) from the object user data. |
setUserDataFloat | Set a float value (4 bytes) from the object user data. |
setUserDataString | Set a string from the object user data. |
allocVertexUserData | Allocate a memory area for user data in vertices. |
freeVertexUserData | Free an allocated memory area for an user data. |
getVertexUserDataInt | Get an integer value (4 bytes) from the vertex user data. |
getVertexUserDataFloat | Get a float value (4 bytes) from the vertex user data. |
getVertexUserDataString | Get a string from the vertex user data. |
setVertexUserDataInt | Set an integer value (4 bytes) from the vertex user data. |
setVertexUserDataFloat | Set a float value (4 bytes) from the vertex user data. |
setVertexUserDataString | Set a string from the vertex user data. |
allocFaceUserData | Allocate a memory area for user data in faces. |
freeFaceUserData | Free an allocated memory area for an user data. |
getFaceUserDataInt | Get an integer value (4 bytes) from the face user data. |
getFaceUserDataFloat | Get a float value (4 bytes) from the face user data. |
getFaceUserDataString | Get a string from the face user data. |
setFaceUserDataInt | Set an integer value (4 bytes) from the face user data. |
setFaceUserDataFloat | Set a float value (4 bytes) from the face user data. |
setFaceUserDataString | Set a string from the face user data. |
activateUVChannel | Activate an UV Channel. |
addUVChannel | Add an UV Channel. |
deleteUVChannel | Delete an UV Channel. |
clone | |||
Duplicate an object. | |||
|
merge(source) | ||||
Merge two objects. | ||||
| ||||
|
clear |
Clear all vertices and faces. |
addVertex(point) | ||||
Add a vertex. | ||||
| ||||
|
addVertex(x, y, z) | ||||||||||||
Add a vertex. | ||||||||||||
| ||||||||||||
|
deleteVertex(index[, delete_face]) | ||||||||
Delete a vertex. | ||||||||
|
addFace(list) | ||||
Add a face. | ||||
| ||||
| ||||
|
insertFace(index, list) | ||||||||
Insert a face at the specified index. | ||||||||
| ||||||||
|
deleteFace(index[, delete_vertex]) | ||||||||
Delete a face. | ||||||||
|
invertFace(index) | ||||
Invert a direction of a face. | ||||
|
optimizeVertex(distance) | ||||
Combine vertices in the specified distance. | ||||
|
compact |
Compact indices of vertices and faces. |
getVertexIndexFromUniqueID(id) | ||||
Get the index of vertex from unique ID. | ||||
| ||||
|
getFaceIndexFromUniqueID(id) | ||||
Get the index of face from unique ID. | ||||
| ||||
|
allocUserData(userdata_id) | ||||
Allocate a memory area for an user data in the object. | ||||
| ||||
|
freeUserData(userdata_id) | ||||
Free an allocated memory area for an user data. | ||||
|
getUserDataInt(userdata_id, offset) | ||||||||
Get an integer value (4 bytes) from the object user data. | ||||||||
| ||||||||
|
getUserDataFloat(userdata_id, offset) | ||||||||
Get a float value (4 bytes) from the object user data. | ||||||||
| ||||||||
|
getUserDataString(userdata_id, offset, length) | ||||||||||||
Get a string from the object user data. | ||||||||||||
| ||||||||||||
|
setUserDataInt(userdata_id, offset, value) | ||||||||||||
Set an integer value (4 bytes) from the object user data. | ||||||||||||
|
setUserDataFloat(userdata_id, offset, value) | ||||||||||||
Set a float value (4 bytes) from the object user data. | ||||||||||||
|
setUserDataString(userdata_id, offset, length, value) | ||||||||||||||||
Set a string from the object user data. | ||||||||||||||||
|
allocVertexUserData(userdata_id) | ||||
Allocate a memory area for user data in vertices. | ||||
| ||||
|
freeVertexUserData(userdata_id) | ||||
Free an allocated memory area for an user data. | ||||
|
getVertexUserDataInt(userdata_id, index, offset) | ||||||||||||
Get an integer value (4 bytes) from the vertex user data. | ||||||||||||
| ||||||||||||
|
getVertexUserDataFloat(userdata_id, index, offset) | ||||||||||||
Get a float value (4 bytes) from the vertex user data. | ||||||||||||
| ||||||||||||
|
getVertexUserDataString(userdata_id, index, offset, length) | ||||||||||||||||
Get a string from the vertex user data. | ||||||||||||||||
| ||||||||||||||||
|
setVertexUserDataInt(userdata_id, index, offset, value) | ||||||||||||||||
Set an integer value (4 bytes) from the vertex user data. | ||||||||||||||||
|
setVertexUserDataFloat(userdata_id, index, offset, value) | ||||||||||||||||
Set a float value (4 bytes) from the vertex user data. | ||||||||||||||||
|
setVertexUserDataString(userdata_id, index, offset, length, value) | ||||||||||||||||||||
Set a string from the vertex user data. | ||||||||||||||||||||
|
allocFaceUserData(userdata_id) | ||||
Allocate a memory area for user data in faces. | ||||
| ||||
|
freeFaceUserData(userdata_id) | ||||
Free an allocated memory area for an user data. | ||||
|
getFaceUserDataInt(userdata_id, index, offset) | ||||||||||||
Get an integer value (4 bytes) from the face user data. | ||||||||||||
| ||||||||||||
|
getFaceUserDataFloat(userdata_id, index, offset) | ||||||||||||
Get a float value (4 bytes) from the face user data. | ||||||||||||
| ||||||||||||
|
getFaceUserDataString(userdata_id, index, offset, length) | ||||||||||||||||
Get a string from the face user data. | ||||||||||||||||
| ||||||||||||||||
|
setFaceUserDataInt(userdata_id, index, offset, value) | ||||||||||||||||
Set an integer value (4 bytes) from the face user data. | ||||||||||||||||
|
setFaceUserDataFloat(userdata_id, index, offset, value) | ||||||||||||||||
Set a float value (4 bytes) from the face user data. | ||||||||||||||||
|
setFaceUserDataString(userdata_id, index, offset, length, value) | ||||||||||||||||||||
Set a string from the face user data. | ||||||||||||||||||||
|
activateUVChannel(channel) | ||||
Activate an UV Channel. | ||||
| ||||
|
addUVChannel(channel) | ||||
Add an UV Channel. | ||||
| ||||
|
deleteUVChannel(channel) | ||||
Delete an UV Channel. | ||||
| ||||
|