• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

PolyVoxCore/source/AStarPathfinder.cpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002 Copyright (c) 2005-2009 David Williams
00003 
00004 This software is provided 'as-is', without any express or implied
00005 warranty. In no event will the authors be held liable for any damages
00006 arising from the use of this software.
00007 
00008 Permission is granted to anyone to use this software for any purpose,
00009 including commercial applications, and to alter it and redistribute it
00010 freely, subject to the following restrictions:
00011 
00012     1. The origin of this software must not be misrepresented; you must not
00013     claim that you wrote the original software. If you use this software
00014     in a product, an acknowledgment in the product documentation would be
00015     appreciated but is not required.
00016 
00017     2. Altered source versions must be plainly marked as such, and must not be
00018     misrepresented as being the original software.
00019 
00020     3. This notice may not be removed or altered from any source
00021     distribution.   
00022 *******************************************************************************/
00023 
00024 #include "PolyVoxCore/AStarPathfinder.h"
00025 
00026 using namespace PolyVox;
00027 
00028 namespace PolyVox
00029 {
00030     const Vector3DInt32 arrayPathfinderFaces[6] =
00031     {
00032         Vector3DInt32(0, 0, -1),
00033         Vector3DInt32(0, 0, +1),
00034         Vector3DInt32(0, -1, 0),
00035         Vector3DInt32(0, +1, 0),
00036         Vector3DInt32(-1, 0, 0),
00037         Vector3DInt32(+1, 0, 0)
00038     };
00039 
00040     const Vector3DInt32 arrayPathfinderEdges[12] =
00041     {
00042         Vector3DInt32(0, -1, -1),
00043         Vector3DInt32(0, -1, +1),
00044         Vector3DInt32(0, +1, -1),
00045         Vector3DInt32(0, +1, +1),
00046         Vector3DInt32(-1, 0, -1),
00047         Vector3DInt32(-1, 0, +1),
00048         Vector3DInt32(+1, 0, -1),
00049         Vector3DInt32(+1, 0, +1),
00050         Vector3DInt32(-1, -1, 0),
00051         Vector3DInt32(-1, +1, 0),
00052         Vector3DInt32(+1, -1, 0),
00053         Vector3DInt32(+1, +1, 0)
00054     };
00055 
00056     const Vector3DInt32 arrayPathfinderCorners[8] =
00057     {
00058         Vector3DInt32(-1, -1, -1),
00059         Vector3DInt32(-1, -1, +1),
00060         Vector3DInt32(-1, +1, -1),
00061         Vector3DInt32(-1, +1, +1),
00062         Vector3DInt32(+1, -1, -1),
00063         Vector3DInt32(+1, -1, +1),
00064         Vector3DInt32(+1, +1, -1),
00065         Vector3DInt32(+1, +1, +1)
00066     };
00067 }

Generated on Sat Nov 19 2011 00:27:31 for PolyVox by  doxygen 1.7.1