#ifndef __BHKHELPERFUNCS_H__ #define __BHKHELPERFUNCS_H__ extern void CalcAxisAlignedBox(Mesh& mesh, Box3& box); extern void CalcAxisAlignedBox(Mesh& mesh, Box3& box, Matrix3* tm); extern void CalcAxisAlignedSphere(Mesh& mesh, Point3& center, float& radius); extern void CalcCenteredSphere(Mesh& mesh, Point3& center, float& radius); extern void CalcCapsule(Mesh &mesh, Point3& pt1, Point3& pt2, float& r1, float& r2); extern bool CanCalcCapsule(); extern void BuildBox(Mesh&mesh, float l, float w, float h); extern void BuildSphere(Mesh&mesh, float radius, int segs=32, int smooth=1, float startAng = 0.0f); extern void BuildCapsule(Mesh &mesh, Point3 pt1, Point3 pt2, float r1, float r2); extern void BuildScubaMesh(Mesh &mesh, int segs, int smooth, int llsegs, float radius1, float radius2, float cylh); #endif