From: Pepijn V. E. <pep...@lu...> - 2002-04-22 07:48:49
|
I found a small bug in my tesselator patch :) Before adding a callbackentry, SetCurrentCallbackObject wasn't called. Because of this findCallbackNode could sometimes not find the matching callbacknode (in the case where a callback had already been defined for a given tesselator). A new callbacknode was then added to the callback list. When the callback was actually used, the FindCallbackEntry method would find the first node in the list, being the old callback node. What I've done is duplicated some of the callback methods so there is a version that takes the current callback object into account, and one that ignores it. That way the tesselators work fine now and the nurbs and quadrics stuff remains unchanged. Eventually, I guess the nurbs and quadrics methods should call SetCurrentCallbackObject too, which removes the necessity of the duplicated code. If I want to implement this should this also be put in the manual part or can C2J be modified to handle this? Pepijn Van Eeckhoudt |