Mercurial > gemma
comparison pkg/octree/polygon.go @ 2488:cb55d7eaaa36 octree-diff
Started with the idea to clip an octree by an bounding polygon.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 03 Mar 2019 14:45:41 +0100 |
parents | |
children | 4f292ff74d9e |
comparison
equal
deleted
inserted
replaced
2487:bd46ffbb944e | 2488:cb55d7eaaa36 |
---|---|
1 // This is Free Software under GNU Affero General Public License v >= 3.0 | |
2 // without warranty, see README.md and license for details. | |
3 // | |
4 // SPDX-License-Identifier: AGPL-3.0-or-later | |
5 // License-Filename: LICENSES/AGPL-3.0.txt | |
6 // | |
7 // Copyright (C) 2018 by via donau | |
8 // – Österreichische Wasserstraßen-Gesellschaft mbH | |
9 // Software engineering by Intevation GmbH | |
10 // | |
11 // Author(s): | |
12 // * Sascha L. Teichmann <sascha.teichmann@intevation.de> | |
13 | |
14 package octree | |
15 | |
16 type Polygon struct { | |
17 // TODO: Implement me! | |
18 } | |
19 | |
20 type IntersectionType byte | |
21 | |
22 const ( | |
23 IntersectionInside IntersectionType = iota | |
24 IntersectionOutSide | |
25 IntersectionOverlaps | |
26 ) | |
27 | |
28 func (p *Polygon) IntersectionBox2D(box Box2D) IntersectionType { | |
29 // TODO: Implement me | |
30 return IntersectionOutSide | |
31 } | |
32 | |
33 func (p *Polygon) IntersectionWithTriangle(t *Triangle) IntersectionType { | |
34 // TODO: Implement me | |
35 return IntersectionOutSide | |
36 } |