From Paul Martz, "Here's my proposed change regarding the osg-users post "small feature culling threshold". I've updated the comments and brought the default values into agreement, but didn't bother to add the environment variable support."

This commit is contained in:
Robert Osfield
2011-09-13 09:59:21 +00:00
parent c35fdf7333
commit 408c2a2267
3 changed files with 5 additions and 2 deletions

View File

@@ -217,7 +217,8 @@ class OSG_EXPORT CullSettings
/** Get the LOD bias.*/
float getLODScale() const { return _LODScale; }
/** Set the Small Feature Culling Pixel Size.*/
/** Threshold at which small features are culled.
\param value Boulding volume size in screen space. Default is 2.0. */
void setSmallFeatureCullingPixelSize(float value) { _smallFeatureCullingPixelSize=value; applyMaskAction(SMALL_FEATURE_CULLING_PIXEL_SIZE); }
/** Get the Small Feature Culling Pixel Size.*/

View File

@@ -161,6 +161,8 @@ class OSG_EXPORT CullingSet : public Referenced
Vec4& getPixelSizeVector() { return _pixelSizeVector; }
const Vec4& getPixelSizeVector() const { return _pixelSizeVector; }
/** Threshold at which small features are culled.
\param value Boulding volume size in screen space. Default is 2.0. */
void setSmallFeatureCullingPixelSize(float value) { _smallFeatureCullingPixelSize=value; }
float& getSmallFeatureCullingPixelSize() { return _smallFeatureCullingPixelSize; }