One is supposed to be able to scale vector objects by simply multiplying them by a number:
import Rhino vec=Rhino.Geometry.Vector3d(0,0,1) mult=2.0 scaled=vec*mult print scaled >>> (0,0,2)
However, with a vector3f object instead of vector3d object, there is a problem:
import Rhino vec=Rhino.Geometry.Vector3f(0,0,1) mult=2 scaled=vec*mult print scaled #this works >>> (0,0,2) mult=2.0 scaled=vec*mult #this errors out >>> Message: unsupported operand type(s) for *: 'Vector3f' and 'float'
So it is accepting integer values, but not floats…
Only reason I found this is that mesh vertex normals seem to be output as vector3f and not vector3d.