Panda3D
pandatool
src
dxf
dxfVertex.cxx
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file dxfVertex.cxx
10
* @author drose
11
* @date 2004-05-04
12
*/
13
14
#include "
dxfVertex.h
"
15
16
/**
17
* This defines a unique ordering for vertices so that the DXFVertexMap can
18
* group identical vertices together.
19
*/
20
int
DXFVertex::
21
operator <
(
const
DXFVertex
&other)
const
{
22
if
(fabs(_p[0] - other._p[0]) > 0.0001) {
23
return
_p[0] < other._p[0];
24
}
else
if
(fabs(_p[1] - other._p[1]) > 0.0001) {
25
return
_p[1] < other._p[1];
26
}
else
if
(fabs(_p[2] - other._p[2]) > 0.0001) {
27
return
_p[2] < other._p[2];
28
}
29
30
return
false
;
31
}
dxfVertex.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
DXFVertex
Stored within DXFFile, this is the basic Vertex data of a DXF file.
Definition:
dxfVertex.h:27
DXFVertex::operator<
int operator<(const DXFVertex &other) const
This defines a unique ordering for vertices so that the DXFVertexMap can group identical vertices tog...
Definition:
dxfVertex.cxx:21
Generated on Mon Sep 14 2020 15:07:09 for Panda3D by
1.8.20