fmeobjects.FMEMeshPartIterator

Inheritance diagram of fmeobjects.FMEMeshPartIterator

FMEMeshPartIterator.getAppearanceReference(front)

This method returns the appearance reference within the Library associated with this mesh part iterator.

FMEMeshPartIterator.getTextureCoordinateIndices(front)

Returns the texture coordinate indices in the current mesh part via a list of ints.

FMEMeshPartIterator.getVertexIndices()

Returns the vertex indices in the current mesh part via a list of ints.

FMEMeshPartIterator.getVertexNormalIndices()

Returns the vertex normal indices in the current mesh part via a list of ints.

FMEMeshPartIterator.hasTextureCoords(front)

Returns a boolean indicating whether or not the mesh part iterator has texture coordinates.

FMEMeshPartIterator.hasVertexNormals()

Returns a boolean indicating whether or not the mesh part iterator has vertex normals.

FMEMeshPartIterator.numVertices()

Get the number of vertices.

FMEMeshPartIterator.seek(index)

This method advances the iterator to the mesh part specified by index, if it exists.

FMEMeshPartIterator.sideExists(front)

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 of FMEMesh to get an FMEMeshPartIterator 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:

int

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.

Parameters:

front (bool) – Indicates whether the indices should be fetched for the front or back of the mesh part.

Return type:

list[int] or None

Returns:

The texture coordinate indices or None if a problem occurred.

getVertexIndices()

Returns the vertex indices in the current mesh part via a list of ints.

Return type:

list[int], or None

Returns:

The vertex indices or None if a problem occurred.

getVertexNormalIndices()

Returns the vertex normal indices in the current mesh part via a list of ints.

Return type:

list[int] or None

Returns:

The vertex normal indices or None if a problem occurred.

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.

Parameters:

front (bool) – Indicates whether the query should be made on the front or back of the mesh part.

Return type:

bool

Returns:

Returns True if the mesh part iterator has texture coordinates, False otherwise.

hasVertexNormals()

Returns a boolean indicating whether or not the mesh part iterator has vertex normals.

Return type:

bool

Returns:

Returns True if the mesh part iterator has vertex normals False otherwise.

numVertices()

Get the number of vertices.

Return type:

int

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.

Parameters:

index (int) – The index to advance the iterator to.

Return type:

bool

Returns:

Indicates whether or not the mesh part at index is a valid part.

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.

Parameters:

front (bool) – Indicates whether the query should be made on thhe front or back of the mesh part.

Return type:

bool

Returns:

Returns True if th side exists or False otherwise.