API Reference > OdDb Classes > OdDbMentalRayRenderSettings Class > OdDbMentalRayRenderSettings Methods > OdDbMentalRayRenderSettings::setSampling Method
OdDbMentalRayRenderSettings::setSampling Method
Syntax
C++
OdResult setSampling(int min, int max);
Parameters 
Description 
int min 
[in] Minimum sampling rate. [-3 .. 5]  
int max 
[in] Maximum sampling rate. [-3 .. 5] 

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

 

  • Negative values enable subsampling.
  • -3 specifies one sample per 64 pixels
  • 5 specfies one sample per 1028 pixels
  • The default value of min == -1
  • The default value of max == 0
  • Min <= Max

Controls the minimum and maximum sampling rates when rendering a pixel for this MentalRayRenderSettings object.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.