get arnold tangent space generation code working