GINO Graphics Suite - GINO v9.0  

gSetFacetOffsetMode

Syntax

[C/C++:]
void gSetFacetOffsetMode(int mode);
[F90:]
subroutine gSetFacetOffsetMode(mode)
integer, intent(in) :: mode

Arguments

mode
Facet offset mode

= GOFF, Switch off all facet offsets
= GBOUNDARYAWAY, Shift boundary away from view point
= GBOUNDARYNEAR, Shift boundary towards the view point
= GINTERIORAWAY, Shift interior away from view point
= GINTERIORNEAR, Shift interior towards the view point

Description

The routine gSetFacetOffsetMode() sets an offset that facet interiors or boundaries are drawn subject to the current view. When set to a value other than GOFF, the facet interior or the boundary is shifted by a nominal amount nearer to or further from the view point. This affects the objects visibility when depth buffering is used, in that the facet will have different depth values to others drawn at the same distance from the viewer.

This routine has particular relevance when drawing facet interiors and boundaries (or other surface detail) because ordinarily, whichever is drawn second is partially hidden by whichever has been drawn first by the hidden surface removal software.

See Also

gSetFacetOffsetMode Usage
gDrawFacet
gSetDepthMode