Re: [Plib-users] triangles from branches
Brought to you by:
sjbaker
From: Wolfram K. <w_...@rz...> - 2004-10-25 19:29:16
|
Hi! >I'm new to this mailing list. I'm trying to use plib together with ode=20 >(www.ode.org) dynamics engine, did anyone have some experience with it? I heard of it, but have not used it myself yet. >My main problem is that I need to access the triangle data for a given=20 >object (ie a branch entity, which contains data loaded from a model in=20 >.ac format) to create the geometric rapresentation for the ode's=20 >collision detection system. Is there a simple way to reach these=20 >informations using plib api? I couldn't figure out from the docs. One way would be to recursively go down the tree and use getTriangle and getVertex. This returns the data in a very simple format (all triangulated, all vertices unique etc), but can be used on any leaf node, so code usin it is very short. Have a look at ssgSaveTri.cxx for example code. >TIA. Bye bye, Wolfram. |