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

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

Sets the maximum ray trace depths for this MentalRayRenderSettings object. 

 

The defaults are as follows: 

 

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