[Bf-python] Mesh Module

Gilbert, Joseph jgilbert at tigr.ORG
Wed Oct 5 16:44:39 CEST 2005


I hate writing documentation lol. I need a secretary.
Yes the *= is called 'in-place multiplication' in the Numeric protocol.
I haven't overridden this yet for math types so v1 *= v2 isn't defined
but you should be able to multiply the data in the vector like you have
described. E.g. v1[i] *= v2[i]

BTW I just realized that Point has no constructor as of yet (just have
to add one to Mathutils (duh)).

-----Original Message-----
From: bf-python-bounces at projects.blender.org
[mailto:bf-python-bounces at projects.blender.org] On Behalf Of Ken Hughes
Sent: Tuesday, October 04, 2005 6:03 PM
To: Blender Foundation Python list
Subject: Re: [Bf-python] Mesh Module

Gilbert, Joseph wrote:
> Yes that looks good! It might be worth looking at the Point class for
> direction-less entities. (I know point/vector is arbitrary to the
> computer ;) but it has different internal methods and math operations)

That's a good point; forgot about points (because they're not in the 
epydocs yet? :-) ).  I was hoping for an operator * which would multiply

  two vectors/points component-wise, for sclaing sizes all at once:

for i in xrange(len(v1)):
    v1[i] *= v2[i]

But I haven't found it yet.

Ken

_______________________________________________
Bf-python mailing list
Bf-python at projects.blender.org
http://projects.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list