HDK
GU_Prim.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GU_Prim.h (GU Library, C++)
7  *
8  * COMMENTS: This contains functions that are common to all primitive types.
9  */
10
11 #ifndef __GU_Prim_h__
12 #define __GU_Prim_h__
13
14 #include "GU_API.h"
15 #include <UT/UT_Vector3.h>
16
17 class GEO_Primitive;
18
19 /// Find the minimum distance between a primitive and a point
21  const GEO_Primitive &prim,
22  const UT_Vector3 &point,
23  float distmax = 1E17F, float *distance = 0,
24  float *u = 0, float *v = 0,
25  bool accurate = true);
26
27 /// Find the minimum distance between two primitives.
28 /// (u1,v1) is place on prim1, (u2,v2) is place on prim2.
29 /// NOTE: This treats polygon primitives as just their edges,
30 /// not filled polygons.
32  const GEO_Primitive &prim1,
33  const GEO_Primitive &prim2,
34  float distmax = 1E17F, float *distance = 0,
35  float *u1 = 0, float *v1 = 0,
36  float *u2 = 0, float *v2 = 0,
37  bool accurate = true);
38
39 #endif
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.
const GLdouble * v
Definition: glcorearb.h:836
GLfloat GLfloat GLfloat v2
Definition: glcorearb.h:817
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)
3D Vector class.
T distance(const UT_Vector4T< T > &v1, const UT_Vector4T< T > &v2)
Definition: UT_Vector4.h:698
#define GU_API
Definition: GU_API.h:12
GLfloat GLfloat v1
Definition: glcorearb.h:816