#include "vhacdRaycastMesh.h"
#include <math.h>
#include <assert.h>
namespace RAYCAST_MESH
{
#define vector(a,b,c) …
#define innerProduct(v,q) …
#define crossProduct(a,b,c) …
static inline bool rayIntersectsTriangle(const double *p,const double *d,const double *v0,const double *v1,const double *v2,double &t)
{ … }
static double getPointDistance(const double *p1, const double *p2)
{ … }
class MyRaycastMesh : public VHACD::RaycastMesh
{ … };
};
usingnamespaceRAYCAST_MESH;
namespace VHACD
{
RaycastMesh * RaycastMesh::createRaycastMesh(uint32_t vcount,
const double *vertices,
uint32_t tcount,
const uint32_t *indices)
{ … }
RaycastMesh * RaycastMesh::createRaycastMesh(uint32_t vcount,
const float *vertices,
uint32_t tcount,
const uint32_t *indices)
{ … }
}