HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_OSDPatchMap.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_OSDPatchMap.h ( GU Library, C++)
7  *
8  * COMMENTS: Shared coarse-face to ptex patch mapping math for GU and GT.
9  */
10 
11 #pragma once
12 
13 #include "GU_API.h"
14 
15 #include <SYS/SYS_Types.h>
16 #include <UT/UT_Span.h>
17 #include <UT/UT_Vector2.h>
18 
19 namespace GU_OSDPatchMap
20 {
21 
23  exint coarseVertexCount,
24  UT_Span<UT_Vector2> coarseUV);
25 
26 GU_API bool faceToPatch(
27  int64 &patchId,
28  fpreal &patchU,
29  fpreal &patchV,
30  exint coarseVertexCount,
31  exint firstPatchId,
32  exint patchCount,
33  fpreal faceU,
34  fpreal faceV,
35  bool hasExplicitUV,
36  UT_Span<const UT_Vector2> coarseUV);
37 
38 } // namespace GU_OSDPatchMap
int64 exint
Definition: SYS_Types.h:125
long long int64
Definition: SYS_Types.h:116
#define GU_API
Definition: GU_API.h:14
fpreal64 fpreal
Definition: SYS_Types.h:283
GU_API bool faceToPatch(int64 &patchId, fpreal &patchU, fpreal &patchV, exint coarseVertexCount, exint firstPatchId, exint patchCount, fpreal faceU, fpreal faceV, bool hasExplicitUV, UT_Span< const UT_Vector2 > coarseUV)
GU_API bool intrinsicCoarseUV(exint coarseVertexCount, UT_Span< UT_Vector2 > coarseUV)