[Bf-committers] Re: [Bf-blender-cvs] CVS
commit:blender/source/blender/python/api2_2x
Mathutils.c quat.c vector.c
joeedh
joeeagar at prodigy.net
Wed Oct 13 03:05:17 CEST 2004
Stephen Swaney wrote:
>joeedh wrote:
>
>
>
>>Oh, crap. I use Vector for storing the EditVert/Edge/Face coordinates
>>and normals since they convieniantly take pointers to arrays. Of
>>course, I needed to implement a similar type anyway, to faciliate error
>>checking, to avoid the pointer-going-away problems. . .
>>
>>
>>
>
>Sorry about that. I figured it would break something.
>At least it broke something that doesn't officially exist yet!
>
>I realise that is no consolation. I can see the implementation
>was ideal for what you are doing. However, the leakage problems
>of who deletes what and when combined with the possible bad
>pointer problems had to be dealt with.
>
>I am open to other solutions or the existance of some sort of
>VectorWrapper type. Maybe an EditVert type that can be used
>as an argument in Vector operations?
>
>
>
Well, myself I'm going to make a simple python list type, that will have
a function that can be raised if a vert/edge/face has been deleted by
the user.
Although the Vector object does have all those nice operator overloads.
. .hmmm. . ..
joeedh
More information about the Bf-committers
mailing list