HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_Expression.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  * COMMENTS:
7  */
8 
9 #ifndef __SOP_Expression_h__
10 #define __SOP_Expression_h__
11 
12 #include "SOP_API.h"
13 
14 class GU_Detail;
15 
16 // Given a GU_Detail, a prim_idx of -1, and a position, find the closest
17 // primitive to that position and return it, the corresponding (u, v)
18 // coordinate, and the distance to that primitive. If prim_idx is not
19 // negative, returns the closest position to a particular primitive.
20 SOP_API void SOPfindNearestToPrim(const GU_Detail &gdp, int prim_idx,
21  const UT_Vector3 &position, const GEO_Primitive *&prim,
22  float &u, float &v, float &distance);
23 
24 // Thread specific value that tracks if anything invoked the spare
25 // inputs on forbidden node caches.
26 SOP_API bool SOPswapUsesExprInputs(bool newvalue);
27 
28 #endif
const GLdouble * v
Definition: glcorearb.h:836
3D Vector class.
T distance(const UT_Vector4T< T > &v1, const UT_Vector4T< T > &v2)
Definition: UT_Vector4.h:634
SOP_API bool SOPswapUsesExprInputs(bool newvalue)
#define SOP_API
Definition: SOP_API.h:10
SOP_API void SOPfindNearestToPrim(const GU_Detail &gdp, int prim_idx, const UT_Vector3 &position, const GEO_Primitive *&prim, float &u, float &v, float &distance)