[Bf-python] Making Vectors consistant.
Campbell J Barton
cbarton at metavr.com
Sun Nov 14 08:19:08 CET 2004
Hi all
I have been dealing with different types of mesh data and it gets
frusterating how some types are treates as normals and some arnt.
Eg- f.v.co is a mathutils Vector
and face.normal is a plane list.
Just to let you know, theres also a bug.
You can do a
for Vert in mesh.verts:
Vert.co.resize4D()
Vert.co.w = 0
At 1 point I was able to segfault Blender by resizing NMesh data that is
accsessed as vectors but only supposed to be a fixed length.
There should probably be some locking function in the Vector() class
where vectors can be set -unresizeable.
If this is tried it should raise an exception.
UV coords, Vertex colours, Faces.normal and location could all be
vectors- .... mabe not colours- but all the rest could/should be.
- Cam
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-python
mailing list