From: Matthias B. <mat...@gm...> - 2007-06-05 09:20:11
|
Ethan Glasser-Camp wrote: > I've been looking at the TriMesh API. Expected use is something like: > > d = ode.TriMeshData() > d.build(verts, faces) > g = ode.GeomTriMesh(d, space) > > It seems to me it would be more pythonic to use something like: > > d = ode.TriMeshData(verts, faces) > g = ode.GeomTriMesh(d, space) > > Why is it this way? Just to mime the ODE API better? Yes, the build() method just wraps the dGeomTriMeshDataBuildSimple() function. But I don't have any objections of providing functionality to do that in the constructor as well. - Matthias - |