HDK
|
#include "UT_API.h"
#include "UT_UniquePtr.h"
#include "UT_Vector3.h"
#include <SYS/SYS_Math.h>
#include "UT_BVH.h"
Go to the source code of this file.
Classes | |
class | UT_SolidAngle< T, S > |
class | UT_SubtendedAngle< T, S > |
Macros | |
#define | SOLID_ANGLE_USE_BVH 1 |
Functions | |
template<typename T > | |
T | UTsignedSolidAngleTri (const UT_Vector3T< T > &a, const UT_Vector3T< T > &b, const UT_Vector3T< T > &c, const UT_Vector3T< T > &query) |
template<typename T > | |
T | UTsignedSolidAngleQuad (const UT_Vector3T< T > &a, const UT_Vector3T< T > &b, const UT_Vector3T< T > &c, const UT_Vector3T< T > &d, const UT_Vector3T< T > &query) |
template<typename T > | |
T | UTsignedAngleSegment (const UT_Vector2T< T > &a, const UT_Vector2T< T > &b, const UT_Vector2T< T > &query) |
#define SOLID_ANGLE_USE_BVH 1 |
Definition at line 19 of file UT_SolidAngle.h.
T UTsignedAngleSegment | ( | const UT_Vector2T< T > & | a, |
const UT_Vector2T< T > & | b, | ||
const UT_Vector2T< T > & | query | ||
) |
Definition at line 253 of file UT_SolidAngle.h.
T UTsignedSolidAngleQuad | ( | const UT_Vector3T< T > & | a, |
const UT_Vector3T< T > & | b, | ||
const UT_Vector3T< T > & | c, | ||
const UT_Vector3T< T > & | d, | ||
const UT_Vector3T< T > & | query | ||
) |
Definition at line 74 of file UT_SolidAngle.h.
T UTsignedSolidAngleTri | ( | const UT_Vector3T< T > & | a, |
const UT_Vector3T< T > & | b, | ||
const UT_Vector3T< T > & | c, | ||
const UT_Vector3T< T > & | query | ||
) |
Returns the signed solid angle subtended by triangle abc from query point.
WARNING: This uses the right-handed normal convention, whereas most of Houdini uses the left-handed normal convention, so either negate the output, or swap b and c if you want it to be positive inside and negative outside.
Definition at line 32 of file UT_SolidAngle.h.