Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

void Graphic3d_AspectFillArea3d::SetPolygonOffsets ( const Standard_Integer  aMode,
const Standard_Real  aFactor = 1.0,
const Standard_Real  aUnits = 0.0 
)

Sets up OpenGL polygon offsets mechanism.
<aMode> parameter can contain various combinations of
Aspect_PolygonOffsetMode enumeration elements (Aspect_POM_None means
that polygon offsets are not changed).
If <aMode> is different from Aspect_POM_Off and Aspect_POM_None, then <aFactor> and <aUnits>
arguments are used by graphic renderer to calculate a depth offset value:

offset = <aFactor> * m + <aUnits> * r, where
m - maximum depth slope for the polygon currently being displayed,
r - minimum window coordinates depth resolution (implementation-specific)

Definition at line 235 of file Graphic3d_AspectFillArea3d.cxx.

Referenced by Graphic3d_Group::GroupPrimitivesAspect().

                                                                                  {
  MyPolygonOffsetMode   = ( aMode & Aspect_POM_Mask );
  MyPolygonOffsetFactor = aFactor;
  MyPolygonOffsetUnits  = aUnits;
}


Generated by  Doxygen 1.6.0   Back to index