diff options
author | Stijn Buys <ingar@osirion.org> | 2010-12-02 13:07:57 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-12-02 13:07:57 +0000 |
commit | 5c949b7e6eaf0076199f803f83e37290f0c549a8 (patch) | |
tree | 1d23e29e0912f40360b8ff5fc4d18708a9f4179a /src/model/mapfile.h | |
parent | 9eabfbf3f2642cde6615ea30c5942769071c83cf (diff) |
Improved patch mesh subdivision.
Diffstat (limited to 'src/model/mapfile.h')
-rw-r--r-- | src/model/mapfile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/model/mapfile.h b/src/model/mapfile.h index a12e295..c78b56c 100644 --- a/src/model/mapfile.h +++ b/src/model/mapfile.h @@ -128,6 +128,14 @@ private: inline const math::BoundingBox3f & box() const { return map_box; } + + inline bool collinear(const math::Vector3f & a, const math::Vector3f & b, const math::Vector3f & c) + { + if ((distance(a, b) + distance(b, c)) == distance(a, c)) + return true; + else + return false; + } /// close the file void close(); |