IC8 Python API:RLPy RIMesh
Contents
- 1 Description
- 2 Constructor & Destructor
- 3 Member Functions
- 3.1 ConvertToAccessory (self, bCurrentShape=True)
- 3.2 DeleteFaces (self, kFaceIndexs)
- 3.3 GetFace (self, nFaceIdx)
- 3.4 GetFacesCount (self)
- 3.5 GetID (self)
- 3.6 GetName (self)
- 3.7 GetSelectedFaceIndices (self)
- 3.8 GetSelectedVertexIndices (self)
- 3.9 GetStdMaterials (self)
- 3.10 GetVertex (self, nIndex, bWorld=False)
- 3.11 GetVertices (self, bWorld=False)
- 3.12 GetVerticesCount (self)
- 3.13 ReplaceMesh (self, strPath, eOption, bReplaceUv, bSplitObjects=False)
- 3.14 SetSelectedFaceIndices (self, kIndices)
- 3.15 SetSelectedVertexIndices (self, kIndices)
- 3.16 SetWorldVertices (self, kWorldVertices)
- 4 Properties
Description
This class provides access to scene mesh geometry and materials, and supports mesh editing operations.
Constructor & Destructor
__init__ (self, *args, **kwargs)
Initializes a new mesh instance.
Parameters
- args
- kwargs
Member Functions
ConvertToAccessory (self, bCurrentShape=True)
Converts mesh to accessory.
Parameters
- bCurrentShape (default: True)
DeleteFaces (self, kFaceIndexs)
Deletes faces.
Parameters
- kFaceIndexs
GetFace (self, nFaceIdx)
Gets the index of vertices that make up the face.
Parameters
- nFaceIdx
GetFacesCount (self)
Gets face count of the mesh.
GetID (self)
Gets unique id of the mesh.
GetName (self)
Gets name of the mesh.
GetSelectedFaceIndices (self)
Gets the selected face indices of this mesh.
GetSelectedVertexIndices (self)
Gets the selected vertex XYZ indices of this mesh.
GetStdMaterials (self)
Returns the std materials.
GetVertex (self, nIndex, bWorld=False)
Gets position of the vertex.
Parameters
- nIndex
- bWorld (default: False)
GetVertices (self, bWorld=False)
Returns the vertices.
Parameters
- bWorld (default: False)
GetVerticesCount (self)
Gets vertex count of the mesh.
ReplaceMesh (self, strPath, eOption, bReplaceUv, bSplitObjects=False)
Replaces mesh with fbx or obj, no used for standard Note: standard series characters are not supported for this operation.
Parameters
- strPath
- eOption
- bReplaceUv
- bSplitObjects (default: False)
SetSelectedFaceIndices (self, kIndices)
Replaces the selected face indices of this mesh.
Parameters
- kIndices
SetSelectedVertexIndices (self, kIndices)
Replaces the selected vertex XYZ indices of this mesh.
Parameters
- kIndices
SetWorldVertices (self, kWorldVertices)
Sets all vertex positions of the mesh in world space.
Parameters
- kWorldVertices
Properties
thisown
Indicates whether this SWIG proxy owns the underlying C++ object.