26 template <
typename Real,
typename TetrahedronMesh>
44 template <
typename Real,
typename TetrahedronMesh>
46 TetrahedronMesh
const& mesh, Real
const* F)
54 template <
typename Real,
typename TetrahedronMesh>
58 int t =
mMesh->GetContainingTetrahedron(P);
67 std::array<Real, 4> bary;
68 if (!
mMesh->GetBarycentrics(t, P, bary))
70 LogWarning(
"P is in a needle-like, flat, or degenerate tetrahedron.");
76 mMesh->GetIndices(t, indices);
77 F = bary[0] *
mF[indices[0]] + bary[1] *
mF[indices[1]] +
78 bary[2] *
mF[indices[2]] + bary[3] *
mF[indices[4]];
#define LogAssert(condition, message)
GLsizei GLenum const void * indices
#define LogWarning(message)