27 template <
typename Real,
typename TriangleMesh>
45 template <
typename Real,
typename TriangleMesh>
47 TriangleMesh
const& mesh, Real
const* F)
55 template <
typename Real,
typename TriangleMesh>
59 int t =
mMesh->GetContainingTriangle(P);
68 std::array<Real, 3> bary;
69 if (!
mMesh->GetBarycentrics(t, P, bary))
71 LogWarning(
"P is in a needle-like or degenerate triangle.");
77 mMesh->GetIndices(t, indices);
78 F = bary[0] *
mF[indices[0]] + bary[1] *
mF[indices[1]] +
79 bary[2] *
mF[indices[2]];
#define LogAssert(condition, message)
GLsizei GLenum const void * indices
#define LogWarning(message)