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 -


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pyode-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyode-user

Reply via email to