WeightFunction
typealias WeightFunction = (vertexData: IVertexData, polygon: IIndexedPolygon, vertexIndex: Int) -> Double(source)
A type alias representing a weight function for vertices in a polygon.
The function calculates the weight of a vertex within a given polygon based on its vertex data, the polygon's geometry, and the specific vertex index.
Return
The computed weight as a Double.
Parameters
vertexData
The vertex data containing attributes such as positions, normals, and other properties.
polygon
The indexed polygon for which the weight is being calculated.
vertexIndex
The index of the vertex within the polygon for which the weight is being computed.