[Bf-committers] Cursor to center of mass

2012-11-20 Thread Ummi Nom
Hi! I've written some center of mass calculations in python for closed meshes, but there is an issue with using tessfaces in my code; I run mesh.update with tessfaces=True but when I loop over mesh.tessfaces there are only 6 faces in default scene cube so the center of mass is offset. It seems to

Re: [Bf-committers] Cursor to center of mass

2012-11-21 Thread Ummi Nom
Hi! I finished writing some testing code (only prints out the cm though). Planar convex/concave n-gon centroids should be correct and for closed meshes there's the tetrahedron stuff which uses either "fake" tris from polys or correct tris from tessfaces. Non-planar polys won't be correct because o

Re: [Bf-committers] Cursor to center of mass

2012-11-21 Thread Ummi Nom
hat > BM > > one more .. your algorithm assumes homogeneous density .. how realistic > is that ? .. for all cases ? > Is a balloon filled with air the same as the balloon filled with water? > As the mass is on the surface versus the mass is in the volume ? > > Am 21.11.201

Re: [Bf-committers] Windows SDL Library

2012-11-24 Thread Ummi Nom
Hi! Don't know about WITH_GHOST_SDL, but afaik sdl's stable version is 1.2 and the 2.0 is still under construction. On Sat, Nov 24, 2012 at 8:26 AM, Jason Wilkins wrote: > I tried to compile with the WITH_GHOST_SDL option on MSVC 2008 and got > a #error telling me the library needs to be at leas