[Plib-users] <<code review>> Bounding sphere of a branch node
Brought to you by:
sjbaker
From: Rahul C. <rah...@ya...> - 2000-02-29 04:29:56
|
Hi Guys: The current ssg code marks a branch node's bouding sphere empty as and when an entity is added to the branch or removed from it. But the bounding sphere of the branch node really does not get updated. The places where it does get updated are in flatten() of ssgOptimiser or the constructor of ssgLeaf (which in turn calls the recalcBSphere of ssgBranch). But think about a scenario where a Branch group has a leaf ssgRahulLeaf which is derived from ssgLeaf and has a different constrcutor which does not invoke recalcBSphere in it. Also imagine that the user of the ssg API did not call flatten on the scene graph before renedering it. Will the bounding spheres of the branch nodes be updated in this case ? Is this better to update the bounding sphere of a branch node right when an entity is added to or removed from it ? Let me know your views. --Rahul __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com |