|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | SMikkTSpaceInterface |
| struct | SMikkTSpaceContext |
Typedefs | |
| typedef int | tbool |
| typedef struct SMikkTSpaceContext | SMikkTSpaceContext |
Functions | |
| tbool | genTangSpaceDefault (const SMikkTSpaceContext *pContext) |
| tbool | genTangSpace (const SMikkTSpaceContext *pContext, const float fAngularThreshold) |
| typedef struct SMikkTSpaceContext SMikkTSpaceContext |
Definition at line 60 of file mikktspace.h.
| typedef int tbool |
Copyright (C) 2011 by Morten S. Mikkelsen
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
Definition at line 60 of file mikktspace.h.
| tbool genTangSpace | ( | const SMikkTSpaceContext * | pContext, |
| const float | fAngularThreshold | ||
| ) |
Definition at line 274 of file mikktspace.c.
References STSpace::bOrient, Build4RuleGroups(), cosf, DegenEpilogue(), DegenPrologue(), STSpace::fMagS, STSpace::fMagT, free(), GenerateInitialVerticesIndexList(), GenerateSharedVerticesIndexList(), GenerateTSpaces(), GetPosition(), i1, STriInfo::iFlag, InitTriInfo(), SMikkTSpaceInterface::m_getNormal, SMikkTSpaceInterface::m_getNumFaces, SMikkTSpaceInterface::m_getNumVerticesOfFace, SMikkTSpaceInterface::m_getPosition, SMikkTSpaceInterface::m_getTexCoord, M_PI, SMikkTSpaceContext::m_pInterface, SMikkTSpaceInterface::m_setTSpace, SMikkTSpaceInterface::m_setTSpaceBasic, MARK_DEGENERATE, NULL, t, TFALSE, TTRUE, veq(), verts, STSpace::vOs, STSpace::vOt, SVec3::x, SVec3::y, and SVec3::z.
Referenced by genTangSpaceDefault().
| tbool genTangSpaceDefault | ( | const SMikkTSpaceContext * | pContext | ) |
Definition at line 269 of file mikktspace.c.
References genTangSpace().
Referenced by BKE_displist_tangent_calc(), BKE_mesh_calc_loop_tangent_single_ex(), DM_calc_loop_tangents_thread(), emDM_calc_loop_tangents_thread(), and mikk_compute_tangents().