[Bf-python] BMesh API

Campbell Barton ideasman42 at gmail.com
Wed Apr 24 14:12:08 CEST 2013


On Wed, Apr 24, 2013 at 10:05 PM, Treyer  Lukas <treyer at arch.ethz.ch> 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



More information about the Bf-python mailing list