blob: 1ea57a92bbecf8d7ecd7579450345ea76d23b74c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// File: BRepMesh_ComparatorOfVertexOfDelaun.cxx
// Created: Fri Jun 18 17:04:44 1993
// Author: Didier PIFFAULT
// <dpf@zerox>
#include <BRepMesh_ComparatorOfVertexOfDelaun.ixx>
//=======================================================================
//function : BRepMesh_ComparatorOfVertexOfDelaun
//purpose :
//=======================================================================
BRepMesh_ComparatorOfVertexOfDelaun::BRepMesh_ComparatorOfVertexOfDelaun(const gp_XY& theDir,
const Standard_Real theTol)
: DirectionOfSort(theDir), Tolerance(theTol)
{}
//=======================================================================
//function : IsLower
//purpose :
//=======================================================================
Standard_Boolean BRepMesh_ComparatorOfVertexOfDelaun::IsLower(const BRepMesh_Vertex& Left,
const BRepMesh_Vertex& Right) const
{
return (Left.Coord()*DirectionOfSort) <
(Right.Coord()*DirectionOfSort);
}
//=======================================================================
//function : IsGreater
//purpose :
//=======================================================================
Standard_Boolean BRepMesh_ComparatorOfVertexOfDelaun::IsGreater(const BRepMesh_Vertex& Left,
const BRepMesh_Vertex& Right) const
{
return (Left.Coord()*DirectionOfSort) >
(Right.Coord()*DirectionOfSort);
}
//=======================================================================
//function : IsEqual
//purpose :
//=======================================================================
Standard_Boolean BRepMesh_ComparatorOfVertexOfDelaun::IsEqual(const BRepMesh_Vertex& Left,
const BRepMesh_Vertex& Right) const
{
return Left.IsEqual(Right);
}
|