HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_MikkT.h
Go to the documentation of this file.
1 /** \file mikktspace/mikktspace.h
2  * \ingroup mikktspace
3  */
4 /**
5  * Copyright (C) 2011 by Morten S. Mikkelsen
6  *
7  * This software is provided 'as-is', without any express or implied
8  * warranty. In no event will the authors be held liable for any damages
9  * arising from the use of this software.
10  *
11  * Permission is granted to anyone to use this software for any purpose,
12  * including commercial applications, and to alter it and redistribute it
13  * freely, subject to the following restrictions:
14  *
15  * 1. The origin of this software must not be misrepresented; you must not
16  * claim that you wrote the original software. If you use this software
17  * in a product, an acknowledgment in the product documentation would be
18  * appreciated but is not required.
19  * 2. Altered source versions must be plainly marked as such, and must not be
20  * misrepresented as being the original software.
21  * 3. This notice may not be removed or altered from any source distribution.
22  */
23 
24 #ifndef __GU_MIKKTSPACE_H__
25 #define __GU_MIKKTSPACE_H__
26 
27 #include "GU_API.h"
28 #include <GA/GA_Handle.h>
29 #include <UT/UT_Vector3.h>
30 
31 class GU_Detail;
32 class GA_PrimitiveGroup;
33 
35 {
36 public:
37 
38  //! Compute MikkT tangents
39  /// The result of the computation will be written out to per-vertex
40  /// attributes: tangents, bitangents, and signs. Not all output handles
41  /// need to be valid (invalid handles will be ignored).
42  static bool computeTangentsBasic(const GU_Detail *gdp,
43  const GA_PrimitiveGroup *group,
44  const UT_StringHolder &uvattrname,
45  const GA_RWHandleV3 &tangents,
46  const GA_RWHandleV3 &bitangents,
47  const GA_RWHandleF &signs);
48 
49 };
50 
51 #endif
#define GU_API
Definition: GU_API.h:12