On Wed, Apr 24, 2013 at 10:05 PM, Treyer  Lukas <[email protected]> wrote:
> I've think I want to store Vectors. I could pack them into a float
>
> and store them in 4 layers, as suggested (maybe as int's). Instead
>
> of max/min I would need the corners of the bounding rectangle.
>
> TL,TR,BL,BR
>
> Of course it would be much easier to write
>
> face.calc_center_bounds()
>
> which would store its bounds in face.bounds ;-)
>
> Then also the precision of my coordniates would be 2^32 instead of 2^8…
>
> Or would you suggest to store 12 layers??
>
>
>> Couldn't you add 4 faces.layers.float (vmax, vmin,hmax, hmin) ?

If you want to put many floats in a layer you could use pythons script
module and pack/unpack them into bytes (string layer)


-- 
- Campbell
_______________________________________________
Bf-python mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-python

Reply via email to