Mercurial > gemma
comparison pkg/mesh/tin.go @ 5601:1222b777f51f
Made golint finally happy.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 06 Aug 2022 02:09:57 +0200 |
parents | 5f47eeea988d |
children | b8da63027b48 |
comparison
equal
deleted
inserted
replaced
5600:9967a78e43f4 | 5601:1222b777f51f |
---|---|
44 Min Vertex | 44 Min Vertex |
45 // Max is the upper right corner of the bbox. | 45 // Max is the upper right corner of the bbox. |
46 Max Vertex | 46 Max Vertex |
47 } | 47 } |
48 | 48 |
49 // Clip returns a map of ids of triangles which are not inside the | |
50 // given polygon. | |
49 func (t *Tin) Clip(polygon *Polygon) map[int32]struct{} { | 51 func (t *Tin) Clip(polygon *Polygon) map[int32]struct{} { |
50 var tree STRTree | 52 var tree STRTree |
51 tree.Build(t) | 53 tree.Build(t) |
52 return tree.Clip(polygon) | 54 return tree.Clip(polygon) |
53 } | 55 } |