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

Go to the source code of this file.

Functions

GU_API bool GUminimumDistPrimPoint (const GEO_Primitive &prim, const UT_Vector3 &point, float distmax=1E17F, float *distance=0, float *u=0, float *v=0, bool accurate=true)
 Find the minimum distance between a primitive and a point. More...
 
GU_API bool GUminimumDistPrimPrim (const GEO_Primitive &prim1, const GEO_Primitive &prim2, float distmax=1E17F, float *distance=0, float *u1=0, float *v1=0, float *u2=0, float *v2=0, bool accurate=true)
 

Function Documentation

GU_API bool GUminimumDistPrimPoint ( const GEO_Primitive prim,
const UT_Vector3 point,
float  distmax = 1E17F,
float *  distance = 0,
float *  u = 0,
float *  v = 0,
bool  accurate = true 
)

Find the minimum distance between a primitive and a point.

GU_API bool GUminimumDistPrimPrim ( const GEO_Primitive prim1,
const GEO_Primitive prim2,
float  distmax = 1E17F,
float *  distance = 0,
float *  u1 = 0,
float *  v1 = 0,
float *  u2 = 0,
float *  v2 = 0,
bool  accurate = true 
)

Find the minimum distance between two primitives. (u1,v1) is place on prim1, (u2,v2) is place on prim2. NOTE: This treats polygon primitives as just their edges, not filled polygons.