fmeobjects.FMEMeshPartIterator
This method returns the appearance reference within the Library associated with this mesh part iterator. |
|
Returns the texture coordinate indices in the current mesh part via a list of ints. |
|
Returns the vertex indices in the current mesh part via a list of ints. |
|
Returns the vertex normal indices in the current mesh part via a list of ints. |
|
Returns a boolean indicating whether or not the mesh part iterator has texture coordinates. |
|
Returns a boolean indicating whether or not the mesh part iterator has vertex normals. |
|
Get the number of vertices. |
|
|
This method advances the iterator to the mesh part specified by index, if it exists. |
Indicates whether of not the side of the mesh part exists. |
- class FMEMeshPartIterator
FME Mesh Part Iterator Class
init()
FMEMeshPartIterator
should not be constructed directly. Instead, use the iterator semantics ofFMEMesh
to get anFMEMeshPartIterator
which can be used to iterate over its geometries.- __init__(*args, **kwargs)
- getAppearanceReference(front)
This method returns the appearance reference within the Library associated with this mesh part iterator. The front parameter controls whether this query should return the front or the back appearance reference. Both can be fetched independently. If this mesh part iterator is a regular mesh part iterator with no geometry instance, a
FMEException
will be thrown.- Parameters:
front (bool) – Indicates whether the appearance reference should be fetched for the front or back.
- Return type:
- Returns:
The unique appearance reference for this appearance.
- Raises:
FMEException – An exception is raised if an error occurred or this mesh is a regular mesh part iterator with no geometry instance.
- getTextureCoordinateIndices(front)
Returns the texture coordinate indices in the current mesh part via a list of ints. The front parameter controls whether this query should return the front or the back texture coordinate indices. Both can be fetched independently.
- getVertexIndices()
Returns the vertex indices in the current mesh part via a list of ints.
- getVertexNormalIndices()
Returns the vertex normal indices in the current mesh part via a list of ints.
- hasTextureCoords(front)
Returns a boolean indicating whether or not the mesh part iterator has texture coordinates. The front parameter controls whether this query should be made on the front or back of the mesh part.
- hasVertexNormals()
Returns a boolean indicating whether or not the mesh part iterator has vertex normals.
- seek(index)
This method advances the iterator to the mesh part specified by index, if it exists. Returns true if there is a valid part at the index and false if there is not.
- sideExists(front)
Indicates whether of not the side of the mesh part exists. The front parameter controls whether this query should be made on the front or back of the mesh part.