Cortex
10.0.0-a4
|
#include "IECore/VectorTraits.h"
#include "OpenEXR/ImathVec.h"
#include "IECore/TriangleAlgo.inl"
Go to the source code of this file.
Namespaces | |
IECore | |
This namespace contains all components of the core library. | |
Functions | |
template<class Vec > | |
VectorTraits< Vec >::BaseType | IECore::triangleArea (const Vec &v0, const Vec &v1, const Vec &v2) |
template<class Vec > | |
Vec | IECore::triangleNormal (const Vec &v0, const Vec &v1, const Vec &v2) |
template<class Vec > | |
Vec | IECore::trianglePoint (const Vec &v0, const Vec &v1, const Vec &v2, const Imath::Vec3< typename VectorTraits< Vec >::BaseType > &barycentric) |
template<class Vec > | |
VectorTraits< Vec >::BaseType | IECore::triangleClosestBarycentric (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p, Imath::Vec3< typename VectorTraits< Vec >::BaseType > &barycentric) |
Returns the squared-distance to the closest point on the triangle, and places that point's barycentric coordinates in the 4th argument. | |
template<class Vec > | |
Vec | IECore::triangleClosestPoint (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p, Imath::Vec3< typename VectorTraits< Vec >::BaseType > &barycentric) |
Returns the closest point on the triangle, and places that point's barycentric coordinates in the 4th argument. | |
template<class Vec > | |
int | IECore::triangleBarycentricFeature (const Vec &barycentric, typename VectorTraits< Vec >::BaseType tolerance=1.e-6) |
template<class Vec > | |
int | IECore::triangleClosestFeature (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p) |
Returns the closest feature on the triangle to the given point. The return values are as barycentricFeature. | |
template<class Vec > | |
bool | IECore::triangleContainsPoint (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p) |
template<class Vec > | |
bool | IECore::triangleContainsPoint (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p, Imath::Vec3< typename VectorTraits< Vec >::BaseType > &barycentric) |
template<class Vec > | |
bool | IECore::triangleRayIntersection (const Vec &v0, const Vec &v1, const Vec &v2, const Vec &origin, const Vec &dir, Vec &pt, Vec &barycentric, bool &front) |
Defines for operating on triangles.