make sure vertex type same one requested
Merge pull request #25 from kmussel/master

make sure vertex type same one requested