00001 // Magic Software, Inc. 00002 // http://www.magic-software.com 00003 // Copyright (c) 2000, All Rights Reserved 00004 // 00005 // Source code from Magic Software is supplied under the terms of a license 00006 // agreement and may not be copied or disclosed except in accordance with the 00007 // terms of that agreement. The various license agreements may be found at 00008 // the Magic Software web site. This file is subject to the license 00009 // 00010 // FREE SOURCE CODE 00011 // http://www.magic-software.com/License.html/free.pdf 00012 00013 #ifndef MGCCONTBOX_H 00014 #define MGCCONTBOX_H 00015 00016 //#include "MgcBox2.h" 00017 #include "MgcBox3.h" 00018 00019 //void MgcContAlignedBox (int iQuantity, const MgcVector2* akPoint, 00020 // MgcVector2& rkMin, MgcVector2& rkMax); 00021 00022 void MgcContAlignedBox (int iQuantity, const MgcVector3* akPoint, 00023 MgcVector3& rkMin, MgcVector3& rkMax); 00024 00025 //MgcBox2 MgcContOrientedBox (int iQuantity, const MgcVector2* akPoint); 00026 00027 MgcBox3 MgcContOrientedBox (int iQuantity, const MgcVector3* akPoint); 00028 00029 00030 // These two functions allow for selection of vertices from a pool. The 00031 // return value is 'true' if and only if at least one vertex is valid. 00032 //bool MgcContOrientedBox (int iQuantity, const MgcVector2* akPoint, 00033 // const bool* abValid, MgcBox2& rkBox); 00034 bool MgcContOrientedBox (int iQuantity, const MgcVector3* akPoint, 00035 const bool* abValid, MgcBox3& rkBox); 00036 00037 00038 MgcBox3 MgcMergeBoxes (const MgcBox3& rkBox0, const MgcBox3& rkBox1); 00039 00040 00041 #endif