getInterpolatedAttribute
fun getInterpolatedAttribute(attr: AttributeLike, i1: Int, i2: Int, i3: Int, barycoord: Vector3, target: Vector3): Vector3
Computes the value barycentrically interpolated for the given attribute and indices.
Return
The interpolated attribute value.
Parameters
attr
The attribute to interpolate.
i1
Index of first vertex.
i2
Index of second vertex.
i3
Index of third vertex.
barycoord
The barycoordinate value to use to interpolate.
target
The target vector that is used to store the method's result.