00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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 }