Subversion Repositories gelsvn

Rev

Rev 338 | Rev 443 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 338 Rev 375
Line 44... Line 44...
44
		std::vector<Material> materials;
44
		std::vector<Material> materials;
45
 
45
 
46
		// -------- FUNCTIONS -----------
46
		// -------- FUNCTIONS -----------
47
 
47
 
48
		/// Get an axis aligned bounding box for the model.
48
		/// Get an axis aligned bounding box for the model.
49
		void get_bbox(CGLA::Vec3f& p0, CGLA::Vec3f& p7) const;
49
		bool get_bbox(CGLA::Vec3f& p0, CGLA::Vec3f& p7) const;
50
 
50
 
51
		/// Get a bounding sphere for the model.
51
		/// Get a bounding sphere for the model.
52
		void get_bsphere(CGLA::Vec3f& c, float& r) const;
52
		bool get_bsphere(CGLA::Vec3f& c, float& r) const;
53
 
53
 
54
		/// Returns true if at least one normal has been defined.
54
		/// Returns true if at least one normal has been defined.
55
		bool has_normals() const 
55
		bool has_normals() const 
56
		{
56
		{
57
			return normals.no_faces()>0;
57
			return normals.no_faces()>0;