39 #ifndef IECORE_TETRAHEDRONALGO_H
40 #define IECORE_TETRAHEDRONALGO_H
42 #include "IECore/Export.h"
43 #include "IECore/VectorTraits.h"
49 template<
typename Vec>
58 template<
typename Vec>
64 typename VectorTraits<Vec>::BaseType barycentric[4]
69 template<
typename Vec>
76 typename VectorTraits<Vec>::BaseType barycentric[4]
80 template<
typename Vec>
87 typename VectorTraits<Vec>::BaseType barycentric[4]
96 #include "IECore/TetrahedronAlgo.inl"
98 #endif // IECORE_TETRAHEDRONALGO_H
IECORE_API Imath::V3i tetrahedronFaceIndices(int face)
Vec tetrahedronPoint(const Vec &v0, const Vec &v1, const Vec &v2, const Vec &v3, typename VectorTraits< Vec >::BaseType barycentric[4])
Returns the point of the tetrahedron which has the given barycentric coordinates. ...
void tetrahedronBarycentric(const Vec &v0, const Vec &v1, const Vec &v2, const Vec &v3, const Vec &p, typename VectorTraits< Vec >::BaseType barycentric[4])
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43
VectorTraits< Vec >::BaseType tetrahedronVolume(const Vec &v0, const Vec &v1, const Vec &v2, const Vec &v3)
Returns the volume of the tetrahedron defined by the 4 specified vertices.
VectorTraits< Vec >::BaseType tetrahedronClosestBarycentric(const Vec &v0, const Vec &v1, const Vec &v2, const Vec &v3, const Vec &p, typename VectorTraits< Vec >::BaseType barycentric[4])
Returns the squared-distance to the closest point on the tetrahedron, and computes that point's baryc...