Module fmeobjects :: Class FMEMeshPartIterator
[hide private]
[frames] | no frames]

Class FMEMeshPartIterator

object --+
         |
        FMEMeshPartIterator

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.

Instance Methods [hide private]
 
__init__()
x.__init__(...) initializes x; see help(type(x)) for signature
 
__iter__(x)
iter(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
int
getAppearanceReference(front)
This method returns the appearance reference within the Library associated with this mesh part iterator.
list of ints, or None
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.
 
getVertexIndices()
Returns the vertex indices in the current mesh part via a list of ints.@rtype: list of ints, or None
 
getVertexNormalIndices()
Returns the vertex normal indices in the current mesh part via a list of ints.@rtype: list of ints, or None
bool
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
bool
hasVertexNormals()
Returns a boolean indicating whether or not the mesh part iterator has vertex normals.
the next value, or raise StopIteration
next(x)
int
numVertices()
Get the number of vertices.
bool
seek(index)
This method advances the iterator to the mesh part specified by index, if it exists.
bool
sideExists(front)
Indicates whether of not the side of the mesh part exists.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__()
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

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.
Returns: int
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.
Returns: list of ints, or None
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.@rtype: list of ints, 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.@rtype: list of ints, 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 thhe front or back of the mesh part.
Returns: bool
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.

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

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.
Returns: bool
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.
Returns: bool
Returns True if th side exists or False otherwise.