THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/10/2003 at 12:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.206
Platform:
Language(s) : C++ ;
---------
Hiya
Im using the RayCollider to intersect the mouse cursor position with the object to find the polygon that the mouse is over, using a tool plugin.
I have globally declared a RayCollider and called the RayCollider::Init(obj,TRUE) method on my tools Init method.
I have it all working except my tool changes the vertices of active object, and the RayCollider doesn't take into account the new changes.
I can fix this my adding a rc::Init(obj,TRUE); in the GetCursorInfo method, but the rc:Init method slows down the plugin somewhat, especially with high dense meshes.
How can I tell the RayCollider to use the new vertice changes of the object without re-initializes it everytime?
Thanks