From cb52e5bd8da01ab2e7976fcd8bfc34e190265ed5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Mar 2008 22:36:04 +0000 Subject: r_drawradius --- src/core/model.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/core/model.h') diff --git a/src/core/model.h b/src/core/model.h index 013edcc..00c8a48 100644 --- a/src/core/model.h +++ b/src/core/model.h @@ -88,7 +88,16 @@ public: { return model_name; } + + /// maximum values of the bounding box + inline math::Vector3f const & maxbbox() const { return model_maxbbox; } + /// minimum values of the bounding box + inline math::Vector3f const & minbbox() const { return model_minbbox; } + + /// radius + inline float radius() const { return model_radius; } + /// the Model registry static std::map registry; @@ -114,7 +123,7 @@ public: /// list of Lights std::list model_light; - + private: void make_face(math::Plane3f *face, std::vector & planes); void add_engine(Engine *engine); @@ -123,8 +132,12 @@ private: std::string model_name; + float model_radius; float model_scale; bool model_valid; + + math::Vector3f model_maxbbox; + math::Vector3f model_minbbox; }; } -- cgit v1.2.3