THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/02/2011 at 08:36, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Howdy,
I'm just wondering if someone could clarify the use of the second parameter in the GeRayCollider::Init() function. When should you use "TRUE" and when should you use "FALSE"?
I've searched the forum for other code and find that sometimes TRUE is used and other times FALSE is used.
In the documentation it says:
Bool Init([BaseObject](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10.5%20SDK/pages/c4d_baseobject/class_BaseObject55.html)* goal, Bool force = FALSE)_<_h4_>_
Initalizes the ray collider with the object specified by goal. <_<_h5_>_h5_<_h5_>_rn
> Bool
>
>> [TRUE](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10.5%20SDK/pages/ge_math/enum_BoolConstants95.html#TRUE1) if successful, otherwise [FALSE](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10.5%20SDK/pages/ge_math/enum_BoolConstants95.html#FALSE0).
>
> _quote>
>
> ##### _ <_h5_>_eters
>
>> [BaseObject](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10.5%20SDK/pages/c4d_baseobject/class_BaseObject55.html)* goal
>>
>>> The object to check for intersections. The pointed object is copied.
>>
>> Bool force = FALSE
>>
>>> If_force_ ==FALSE
then the app checks if the passed object's [GetDirty(DIRTY_DATA)](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10.5%20SDK/pages/c4d_basebitmap/class_BaseBitmap39.html#getdirty40) is unchanged. If yes, it does nothing and returns TRUE.
> If_force_ ==TRUE
it always rebuilds the cache.
>
>
>
> ... but when do you know that you want to always force rebuilding the cache?
>
>
>
>
> Adios,
>
> Cactus Dan