|
Blender V4.3
|
Public Member Functions | |
| MikkMeshWrapper (const ::Mesh &b_mesh, const char *layer_name, const Mesh *mesh, float3 *tangent, float *tangent_sign) | |
| int | GetNumFaces () |
| int | GetNumVerticesOfFace (const int face_num) |
| 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) |
Public Attributes | |
| const Mesh * | mesh |
| int | num_faces |
| float3 * | vertex_normal |
| float2 * | texface |
| float2 * | uv |
| float3 * | orco |
| float3 | orco_loc |
| float3 | inv_orco_size |
| float3 * | tangent |
| float * | tangent_sign |
Definition at line 40 of file blender/mesh.cpp.
|
inline |
Definition at line 41 of file blender/mesh.cpp.
References ATTR_STD_GENERATED, ATTR_STD_VERTEX_NORMAL, Attribute::data_float2(), Attribute::data_float3(), AttributeSet::find(), inv_orco_size, mesh, mesh_texture_space(), NULL, orco, orco_loc, tangent, tangent_sign, uv, and vertex_normal.
|
inline |
Definition at line 91 of file blender/mesh.cpp.
References mesh, and Mesh::SubdFace::start_corner.
Referenced by GetTexCoord(), SetTangentSpace(), and VertexIndex().
|
inline |
Definition at line 138 of file blender/mesh.cpp.
References Mesh::Triangle::compute_normal(), mesh, Mesh::SubdFace::normal(), Mesh::SubdFace::smooth, vertex_normal, VertexIndex(), float3::x, float3::y, and float3::z.
|
inline |
Definition at line 71 of file blender/mesh.cpp.
References mesh.
|
inline |
Definition at line 81 of file blender/mesh.cpp.
References mesh.
|
inline |
Definition at line 113 of file blender/mesh.cpp.
References mesh, VertexIndex(), float3::x, float3::y, and float3::z.
|
inline |
Definition at line 119 of file blender/mesh.cpp.
References CornerIndex(), inv_orco_size, map_to_sphere(), NULL, orco, orco_loc, uv, VertexIndex(), float2::x, and float2::y.
|
inline |
Definition at line 164 of file blender/mesh.cpp.
References CornerIndex(), make_float3(), NULL, T, tangent, and tangent_sign.
|
inline |
Definition at line 102 of file blender/mesh.cpp.
References CornerIndex(), and mesh.
Referenced by GetNormal(), GetPosition(), and GetTexCoord().
| float3 MikkMeshWrapper< is_subd >::inv_orco_size |
Definition at line 180 of file blender/mesh.cpp.
Referenced by GetTexCoord(), and MikkMeshWrapper().
| const Mesh* MikkMeshWrapper< is_subd >::mesh |
Definition at line 173 of file blender/mesh.cpp.
Referenced by CornerIndex(), GetNormal(), GetNumFaces(), GetNumVerticesOfFace(), GetPosition(), MikkMeshWrapper(), and VertexIndex().
| int MikkMeshWrapper< is_subd >::num_faces |
Definition at line 174 of file blender/mesh.cpp.
| float3* MikkMeshWrapper< is_subd >::orco |
Definition at line 179 of file blender/mesh.cpp.
Referenced by GetTexCoord(), and MikkMeshWrapper().
| float3 MikkMeshWrapper< is_subd >::orco_loc |
Definition at line 180 of file blender/mesh.cpp.
Referenced by GetTexCoord(), and MikkMeshWrapper().
| float3* MikkMeshWrapper< is_subd >::tangent |
Definition at line 182 of file blender/mesh.cpp.
Referenced by MikkMeshWrapper(), and SetTangentSpace().
| float* MikkMeshWrapper< is_subd >::tangent_sign |
Definition at line 183 of file blender/mesh.cpp.
Referenced by MikkMeshWrapper(), and SetTangentSpace().
| float2* MikkMeshWrapper< is_subd >::texface |
Definition at line 177 of file blender/mesh.cpp.
| float2* MikkMeshWrapper< is_subd >::uv |
Definition at line 178 of file blender/mesh.cpp.
Referenced by GetTexCoord(), and MikkMeshWrapper().
| float3* MikkMeshWrapper< is_subd >::vertex_normal |
Definition at line 176 of file blender/mesh.cpp.
Referenced by GetNormal(), and MikkMeshWrapper().