⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ivp_halfspacesoup.hxx

📁 hl2 source code. Do not use it illegal.
💻 HXX
字号:
// Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.

// IVP_EXPORT_PUBLIC

/********************************************************************************
 *  Filename:	    ivp_halfspacesoup.hxx
 *  Description:    This file provides you with a support class for easy handling
 *		    of halfspace planes.
 *  Classes:	    IVP_Halfspacesoup
 ********************************************************************************/

#ifndef _IVP_HALFSPACE_SOUP_INCLUDED
#define _IVP_HALFSPACE_SOUP_INCLUDED

#ifndef WIN32
#	pragma interface
#endif

#define HALFSPACESOUP_TOLERANCE 0.01f * P_MIN_EDGE_LEN


/********************************************************************************
 *  Class:	    IVP_Halfspacesoup
 *  Description:    Support class. This class will maintain any set of halfspace
 *		    planes.
 *		    A halfspace plane is an infinite (virtual) plane that divides
 *		    space into two discreet parts.
 *  Note:	    The Ipion engine uses halfspace planes to describe discreet
 *		    volumes in space. For this it will expect the normal vectors
 *		    of the supplied planes to point AT the enclosed volume (and
 *		    not away from it)!
 *  Note:	    You should add new planes by using the supplied
 *		    "add_halfspace" method!
 *******************************************************************************/

class IVP_Halfspacesoup : public IVP_U_Vector<IVP_U_Hesse> {
public:

    /******************************************************************************
     *  Method:		add_halfspace
     *  Description:    This method allows to add a new plane to the already
     *			existing set of halfspace planes.
     *	Note:		This method will search the existing set for an almost
     *			parallel plane. If one exists, it will drop the one that
     *			is further away from the enclosed volume.
     *	Input:		<plane> a new halfspace plane
     *****************************************************************************/
    void add_halfspace(const IVP_U_Hesse *plane);

    /******************************************************************************
     *  Method:		constructor
     *  Description:    This constructor will immediately convert the supplied
     *			compact ledge into a set of halfspace planes.
     *	Input:		<ledge> compact ledge you want to have converted into
     *			        halfspace planes
     *****************************************************************************/
    IVP_Halfspacesoup(const IVP_Compact_Ledge *ledge);

    IVP_Halfspacesoup();
    ~IVP_Halfspacesoup();

};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -