From 6a6855ba32132175d29f6d401e0a826f0ca557fb Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Sat, 25 Jan 2025 10:11:15 +0100 Subject: [PATCH] [orx-mesh] Update the `IndexedPolygon.point` function to use `IVertexData` instead of `VertexData`. --- orx-mesh/src/commonMain/kotlin/IndexedPolygonExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orx-mesh/src/commonMain/kotlin/IndexedPolygonExtensions.kt b/orx-mesh/src/commonMain/kotlin/IndexedPolygonExtensions.kt index b7f90c9e..16c6ff58 100644 --- a/orx-mesh/src/commonMain/kotlin/IndexedPolygonExtensions.kt +++ b/orx-mesh/src/commonMain/kotlin/IndexedPolygonExtensions.kt @@ -19,7 +19,7 @@ internal fun > bc(barycentric: Vector3, items: List): T { * @param barycentric The barycentric coordinates used to interpolate the vertex attributes. * @return A `Point` containing interpolated vertex attributes including position, texture coordinates, color, normal, tangent, and bitangent. */ -fun IIndexedPolygon.point(vertexData: VertexData, barycentric: Vector3): Point { +fun IIndexedPolygon.point(vertexData: IVertexData, barycentric: Vector3): Point { require(positions.size == 3) val positions = vertexData.positions.slice(positions)