From 1d77ea366d7c8b94c26d859aff8773538d8f2231 Mon Sep 17 00:00:00 2001 From: Samuel Pantze <83579186+smlpt@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:32:24 +0200 Subject: [PATCH] HedgehogAnalysis: get spine vertex position from grid traversal --- .../kotlin/sc/iview/commands/demo/advanced/HedgehogAnalysis.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/sc/iview/commands/demo/advanced/HedgehogAnalysis.kt b/src/main/kotlin/sc/iview/commands/demo/advanced/HedgehogAnalysis.kt index 9f956266..10c79178 100644 --- a/src/main/kotlin/sc/iview/commands/demo/advanced/HedgehogAnalysis.kt +++ b/src/main/kotlin/sc/iview/commands/demo/advanced/HedgehogAnalysis.kt @@ -173,7 +173,7 @@ class HedgehogAnalysis(val spines: List, val localToWorld: Matrix //filter { it.first <1200}. maxIndices.map { index -> logger.debug("Generating vertex at index $index") - val position = Vector3f(spine.localEntry).add((Vector3f(spine.localDirection).mul(index.first.toFloat()))) + val position = spine.position val worldPosition = localToWorld.transform((Vector3f(position)).xyzw()).xyz() SpineGraphVertex(tp.key, position,