Calculates the topological distance of each vertex to the closest artifact vertex
in the mesh. An artifact vertex is defined as a vertex which has a vertex
orientation greater than a predefined threshold.

C# | Visual Basic | Visual C++ |
public static float[] CalculateDistanceToArtifacts( BusyWindow busyWindow, Mesh mesh, float orientationThreshold, float[] vertexOrientations, out int maximumOccurringTopologyDepthOut )
Public Shared Function CalculateDistanceToArtifacts ( _ busyWindow As BusyWindow, _ mesh As Mesh, _ orientationThreshold As Single, _ vertexOrientations As Single(), _ <OutAttribute> ByRef maximumOccurringTopologyDepthOut As Integer _ ) As Single()
public: static array<float>^ CalculateDistanceToArtifacts( BusyWindow^ busyWindow, Mesh^ mesh, float orientationThreshold, array<float>^ vertexOrientations, [OutAttribute] int% maximumOccurringTopologyDepthOut )

- busyWindow (BusyWindow)
- If a BusyWindow instance is provided, the progress of the method is shown there. May be null.
- mesh (Mesh)
- The mesh to be processed.
- orientationThreshold (Single)
- The threshold for vertex orientations above which vertices are considered artifact vertices.
- vertexOrientations (array<Single>[]()[][])
- Per-vertex orientations relative to the stack orientation.
- maximumOccurringTopologyDepthOut (Int32%)
- An output parameter returning the highest topological distance counted while processing. The upper limit is MaximumTopologyDepth.

The per-vertex minimum topological distance to an artifact vertex.