HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SolidAngle.h File Reference
#include "UT_API.h"
#include "UT_UniquePtr.h"
#include "UT_Vector3.h"
#include <SYS/SYS_Math.h>
#include "UT_BVH.h"
+ Include dependency graph for UT_SolidAngle.h:
+ This graph shows which files directly or indirectly include this file:

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 >
UTsignedSolidAngleTri (const UT_Vector3T< T > &a, const UT_Vector3T< T > &b, const UT_Vector3T< T > &c, const UT_Vector3T< T > &query)
 
template<typename 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 >
UTsignedAngleSegment (const UT_Vector2T< T > &a, const UT_Vector2T< T > &b, const UT_Vector2T< T > &query)
 

Macro Definition Documentation

#define SOLID_ANGLE_USE_BVH   1

Definition at line 19 of file UT_SolidAngle.h.

Function Documentation

template<typename T >
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.

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 
)

Definition at line 74 of file UT_SolidAngle.h.

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 
)

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.