THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/06/2003 at 04:16, xxxxxxxx wrote:
Cinema 4D Version: 8.100
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ; C++ ;
I am running into problems with the vd->lhit member. The actual C++ SDK reads (for TraceGeometry) :
"If you set want to set no previous intersection then set this parameter to 0 and the BaseVolumeData::lhit member variable to 0 also.", but the description of "lhit" in the BaseVolumeData class says "Read only".
So how do I reset the vd->lhit value ?
On 14/06/2003 at 08:19, xxxxxxxx wrote:
This is how it works according to the programmers:
LONG backup = sd->lhit;
sd->lhit = 0;
TraceGeometry / TraceColor (...0...);
In future versions you will be able to directly write:
TraceGeometry / TraceColor (...NOTOK...);
On 14/06/2003 at 09:15, xxxxxxxx wrote:
So sd->lhit is not "read only"? Great news, thanks Mikael.
On 15/06/2003 at 01:56, xxxxxxxx wrote:
No, only effectively. You always have to restore it afterwards as described.
On 15/06/2003 at 02:03, xxxxxxxx wrote:
Understood. Thanks, Mikael.