blob: 868bc489142974fce96541e914166733f864b34b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// File: TopoDS_Shape.cxx
// Created: Wed Mar 20 11:33:26 1991
// Author: Remi Lequette
#include <TopoDS_Shape.ixx>
//=======================================================================
//function : HashCode
//purpose :
//=======================================================================
Standard_Integer TopoDS_Shape::HashCode(const Standard_Integer Upper) const
{
//PKV
const Standard_Integer aI = (Standard_Integer) ptrdiff_t(myTShape.operator->());
const Standard_Integer aHS = ::HashCode(aI,Upper);
const Standard_Integer aHL = myLocation.HashCode(Upper);
return (aHS^aHL)%Upper;
}
|