HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_GUHelpers.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: GT_GUHelpers.h ( GT Library, C++)
7 *
8 * COMMENTS:
9 * Code that would normally live at the GU level, but needs access to GT.
10 */
11 
12 #ifndef __GT_GUHelpers_h__
13 #define __GT_GUHelpers_h__
14 
15 #include "GT_API.h"
16 
17 #include <UT/UT_VectorTypes.h>
18 #include <UT/UT_SymMatrix3.h>
19 #include <GA/GA_Types.h>
20 
21 class GA_Range;
22 class GU_Detail;
23 
24 namespace GT_GUHelpers
25 {
27  const GU_Detail &gdp,
28  const GA_Range &prim_range,
29  UT_SymMatrix3R &covariance,
30  UT_Vector3R &centroid,
31  UT_Vector3R &average_normal,
32  UT_Vector3Array *point_positions,
33  GA_OffsetArray *prim_refs);
34 }
35 
36 #endif // __GT_GUHelpers_h__
#define GT_API
Definition: GT_API.h:11
Generic symmetric 3x3 matrix.
Definition: UT_SymMatrix3.h:27
A range of elements in an index-map.
Definition: GA_Range.h:42
GT_API bool computePrimCovariance(const GU_Detail &gdp, const GA_Range &prim_range, UT_SymMatrix3R &covariance, UT_Vector3R &centroid, UT_Vector3R &average_normal, UT_Vector3Array *point_positions, GA_OffsetArray *prim_refs)