fmeobjects.FMEMesh.addMeshPartExtended
- FMEMesh.addMeshPartExtended(hasAFront, hasABack, frontAppRef, backAppRef, vertexIndices, vertexNormalIndices, frontTextCoordIndices, backTextCoordIndices)
This routine extends the functionality of
addMeshPart()
, allowing double-sided mesh parts to be added. When both ‘hasAFront’ and ‘hasABack’ areTrue
, a double sided part will be added. If one of these parameters isFalse
, the corresponding appearance reference and texture coordinates will not be ignore.- Parameters:
hasAFront (bool) – Boolean indicating whether or not the mesh has a front.
hasABack (bool) – Boolean indicating whether or not the mesh has a back.
frontAppRef (int) – Appearance reference for the front of the Mesh. Should refer to a valid appearance in the shared object library, but no checking is done during this call. The appearance reference of 0 implies that this part will inherit the appearance reference of the mesh. If ‘hasAFront’ is
False
the value of this parameter is not important, but it must be a valid int.backAppRef (int) – Appearance reference for the back of the Mesh. Should refer to a valid appearance in the shared object library, but no checking is done during this call. The appearance reference of 0 implies that this part will inherit the appearance reference of the mesh. If ‘hasAback’ is
False
the value of this parameter is not important, but it must be a valid int.vertexIndices (list of int) – Should refer to valid vertices in the vertex list of the mesh, but no validation is done by the method.
vertexNormalIndices (list[int] or None) – Should refer to valid vertex normals stored in the mesh.
frontTextCoordIndices (list[int] or None) – Should refer to valid texture coordinates of the mesh.
backTextCoordIndices (list[int] or None) – Should refer to valid texture coordinates of the mesh.
- Return type:
- Returns:
Boolean indicating whether or not the addition was successful.