Coverage Report

Created: 2026-02-26 07:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/geos/src/operation/valid/PolygonRingSelfNode.cpp
Line
Count
Source
1
/**********************************************************************
2
 *
3
 * GEOS - Geometry Engine Open Source
4
 * http://geos.osgeo.org
5
 *
6
 * Copyright (C) 2021 Paul Ramsey <pramsey@cleverelephant.ca>
7
 * Copyright (C) 2021 Martin Davis
8
 *
9
 * This is free software; you can redistribute and/or modify it under
10
 * the terms of the GNU Lesser General Public Licence as published
11
 * by the Free Software Foundation.
12
 * See the COPYING file for more information.
13
 *
14
 **********************************************************************/
15
16
#include <geos/algorithm/PolygonNodeTopology.h>
17
#include <geos/operation/valid/PolygonRingSelfNode.h>
18
19
20
namespace geos {      // geos
21
namespace operation { // geos.operation
22
namespace valid {     // geos.operation.valid
23
24
using geos::algorithm::PolygonNodeTopology;
25
26
/* public */
27
bool
28
PolygonRingSelfNode::isExterior(bool isInteriorOnRight) const
29
0
{
30
0
    (void)e11; // unused variable
31
    /**
32
     * Note that either corner and either of the other edges could be used to test.
33
     * The situation is fully symmetrical.
34
     */
35
0
    bool bIsInteriorSeg = PolygonNodeTopology::isInteriorSegment(&nodePt, e00, e01, e10);
36
0
    bool bIsExterior = isInteriorOnRight ? ! bIsInteriorSeg : bIsInteriorSeg;
37
0
    return bIsExterior;
38
0
}
39
40
41
} // namespace geos.operation.valid
42
} // namespace geos.operation
43
} // namespace geos