The problem is that 's transform code only works for meshes at the origin of the actor. UnrealEverything is on the right track but it’s actually dead simple to fix:
const FVector WorldSpaceVertexLocation = StaticMeshComponent->GetComponentTransform().TransformPosition(VertexBuffer->VertexPosition(Index));