|
Blender V5.0
|
Public Member Functions | |
| MikkMeshWrapper (const Mesh *mesh, const float3 *normal, const float2 *uv, float3 *tangent, float *tangent_sign) | |
| int | GetNumFaces () |
| int | GetNumVerticesOfFace (const int) |
| int | CornerIndex (const int face_num, const int vert_num) |
| int | VertexIndex (const int face_num, const int vert_num) |
| mikk::float3 | GetPosition (const int face_num, const int vert_num) |
| mikk::float3 | GetTexCoord (const int face_num, const int vert_num) |
| mikk::float3 | GetNormal (const int face_num, const int vert_num) |
| void | SetTangentSpace (const int face_num, const int vert_num, mikk::float3 T, bool orientation) |
| bool | has_uv () const |
Public Attributes | |
| const Mesh * | mesh |
| const float3 * | normal |
| const float2 * | uv |
| float3 * | tangent |
| float * | tangent_sign |
Definition at line 29 of file scene/mesh.cpp.
|
inline |
Definition at line 30 of file scene/mesh.cpp.
References mesh, normal, tangent, tangent_sign, and uv.
|
inline |
Definition at line 49 of file scene/mesh.cpp.
Referenced by GetTexCoord(), SetTangentSpace(), and VertexIndex().
|
inline |
Definition at line 81 of file scene/mesh.cpp.
References Mesh::Triangle::compute_normal(), mesh, normal, VertexIndex(), float3::x, float3::y, and float3::z.
|
inline |
Definition at line 39 of file scene/mesh.cpp.
References mesh.
|
inline |
Definition at line 44 of file scene/mesh.cpp.
|
inline |
Definition at line 60 of file scene/mesh.cpp.
References mesh, VertexIndex(), float3::x, float3::y, and float3::z.
|
inline |
Definition at line 66 of file scene/mesh.cpp.
References CornerIndex(), has_uv(), map_to_sphere(), mesh, uv, VertexIndex(), float2::x, and float2::y.
|
inline |
|
inline |
Definition at line 95 of file scene/mesh.cpp.
References CornerIndex(), make_float3(), T, tangent, and tangent_sign.
|
inline |
Definition at line 54 of file scene/mesh.cpp.
References CornerIndex(), and mesh.
Referenced by GetNormal(), GetPosition(), and GetTexCoord().
| const Mesh* MikkMeshWrapper::mesh |
Definition at line 109 of file scene/mesh.cpp.
Referenced by GetNormal(), GetNumFaces(), GetPosition(), GetTexCoord(), MikkMeshWrapper(), and VertexIndex().
| const float3* MikkMeshWrapper::normal |
Definition at line 111 of file scene/mesh.cpp.
Referenced by GetNormal(), and MikkMeshWrapper().
| float3* MikkMeshWrapper::tangent |
Definition at line 114 of file scene/mesh.cpp.
Referenced by MikkMeshWrapper(), and SetTangentSpace().
| float* MikkMeshWrapper::tangent_sign |
Definition at line 115 of file scene/mesh.cpp.
Referenced by MikkMeshWrapper(), and SetTangentSpace().
| const float2* MikkMeshWrapper::uv |
Definition at line 112 of file scene/mesh.cpp.
Referenced by GetTexCoord(), has_uv(), and MikkMeshWrapper().