Back to index

salome-geom  6.5.0
Functions
NMTDS_PassKeyShape.cxx File Reference
#include <NMTDS_PassKeyShape.hxx>
#include <TopTools_ListOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopoDS_Shape.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 215 of file NMTDS_PassKeyShape.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: