Hello, Just for the record: I found out that my code actually worked, only my visualisation code was wrong. So the code in my question was actually correct and worked. If anyone bothered to try to solve the problem: thank you and sorry for posting that question while it was my own coding bug! Greetz, Joost "Oogst" van Dongen www.oogst3d.net