API Reference > OdDb Classes > OdDbMentalRayRenderSettings Class > OdDbMentalRayRenderSettings Methods > OdDbMentalRayRenderSettings::setPhotonTraceDepth Method
OdDbMentalRayRenderSettings::setPhotonTraceDepth Method
Syntax
C++
OdResult setPhotonTraceDepth(int reflection, int refraction, int sum);
Parameters 
Description 
int reflection 
[in] Maximum number of photon reflections.  
int refraction 
[in] Maximum number of photon refractions.  
int sum 
[in] Maximum number of photon reflections and refractions. 

Returns eOk if successful, or an appropriate error code if not.

Sets the maximum photon trace depths for this MentalRayRenderSettings object. 

 

The defaults are as follows: 

 

Argument 
Default 
reflection 
refraction 
sum 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.