vnorms[vi] = ~vnorms[vi] #is this correct?
Yes. I implemented the ~ operator to mean "return a normalized (unit) vector".
Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph
Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance
Modelling, Poser Rigging, UV-mapping work for hire.