Back to index

salome-geom  6.5.0
Functions
NMTDS_PassKey.cxx File Reference
#include <NMTDS_PassKey.hxx>
#include <stdio.h>
#include <string.h>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>

Go to the source code of this file.

Functions

static Standard_Integer NormalizedId (const Standard_Integer aId, const Standard_Integer aDiv)

Function Documentation

Standard_Integer NormalizedId ( const Standard_Integer  aId,
const Standard_Integer  aDiv 
) [static]

Definition at line 244 of file NMTDS_PassKey.cxx.

{
  Standard_Integer aMax, aTresh, aIdRet;
  //
  aIdRet=aId;
  aMax=::IntegerLast();
  aTresh=aMax/aDiv;
  if (aId>aTresh) {
    aIdRet=aId%aTresh;
  }
  return aIdRet;
}

Here is the caller graph for this function: