From 5c949b7e6eaf0076199f803f83e37290f0c549a8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 2 Dec 2010 13:07:57 +0000 Subject: Improved patch mesh subdivision. --- src/model/mapfile.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/model/mapfile.h') 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(); -- cgit v1.2.3