Skip to content

Commit

Permalink
HedgehogAnalysis: get spine vertex position from grid traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
smlpt committed Sep 13, 2024
1 parent b5e5eda commit 1d77ea3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class HedgehogAnalysis(val spines: List<SpineMetadata>, 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,
Expand Down

0 comments on commit 1d77ea3

Please sign in to comment.