/** @file SnapTool.h @brief 包围盒绘制
* Copyright (c) 2007,第九城市游戏研发中心 * All rights reserved. * * 当前版本:2009-09-10 * 作 者:和萌 * 完成日期: * * 取代版本: * 作 者: * 完成日期:*/ #pragma once #ifndef _BOUNDGEOMETROY_H #define _BOUNDGEOMETROY_H #define INVALID_POINT NiPoint3( -1000.0f, -1000.0f, -1000.0f ) ///最大线数 #define MAX_LINE_COUNT (12) #ifndef CODE_INGAME class MAIN_ENTRY CBoundGeometroy { public: CBoundGeometroy(void); ~CBoundGeometroy(void); static CBoundGeometroy* GetInstance(); // 设置盒子的位置 [9/11/2009 hemeng] NiLinesPtr GetBox(); void SetBoundPosCenter( const NiPoint3& vBoundCenter ); void SetBoundRadius( float fBoundRaidus ); void SetBox(NiPoint3 kCenter, NiPoint3 kExtents, NiMatrix3 matRotate,const char* szEntityName); void SetBoxScale(const char* strEntityName, float fScale); float GetAABBScale(const char* strEntityName); map