Class WingedEdgeEnumerator
Provides a way to enumerate a WingedEdge by walking the WingedEdge.next property.
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public sealed class WingedEdgeEnumerator : IEnumerator<WingedEdge>, IEnumerator, IDisposable
Constructors
WingedEdgeEnumerator(WingedEdge)
Initializes the enumeration by specifying which WingedEdge object to start with.
Declaration
public WingedEdgeEnumerator(WingedEdge start)
Parameters
Type | Name | Description |
---|---|---|
WingedEdge | start | Specify which WingedEdge object to start walking from. |
Properties
Current
Gets the WingedEdge in the collection at the current position of the enumerator.
Declaration
public WingedEdge Current { get; }
Property Value
Type | Description |
---|---|
WingedEdge |
Methods
Dispose()
Releases all resources used by the WingedEdgeEnumerator.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next WingedEdge in the collection.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
bool | True if the MoveNext succeeded; false if not (for example, if the enumerator passed the end of the collection). |
Reset()
Sets the enumerator to its initial position: before the first element in the collection.
Declaration
public void Reset()