Blender V4.5
SGLSLMeshToTangent Struct Reference

Public Member Functions

uint GetNumFaces ()
uint GetNumVerticesOfFace (const uint face_num)
uint GetLoop (const uint face_num, const uint vert_num, int3int3 &tri, int &face_index)
mikk::float3 GetPosition (const uint face_num, const uint vert_num)
mikk::float3 GetTexCoord (const uint face_num, const uint vert_num)
mikk::float3 GetNormal (const uint face_num, const uint vert_num)
void SetTangentSpace (const uint face_num, const uint vert_num, mikk::float3 T, bool orientation)

Public Attributes

Span< float3float3face_normals
Span< float3float3corner_normals
const int3int3corner_tris
const int * tri_faces
const float2float2mloopuv
OffsetIndices< int > faces
const int * corner_verts
Span< float3float3positions
Span< float3float3vert_normals
Span< float3float3orco
float(* tangent )[4]
Span< bool > sharp_faces
int numTessFaces
const int * face_as_quad_map
int num_face_as_quad_map

Detailed Description

Definition at line 158 of file mesh_tangent.cc.

Member Function Documentation

◆ GetLoop()

uint SGLSLMeshToTangent::GetLoop ( const uint face_num,
const uint vert_num,
int3int3 & tri,
int & face_index )
inline

Definition at line 184 of file mesh_tangent.cc.

References corner_tris, face_as_quad_map, faces, size(), and tri_faces.

Referenced by GetNormal(), GetPosition(), GetTexCoord(), and SetTangentSpace().

◆ GetNormal()

mikk::float3 SGLSLMeshToTangent::GetNormal ( const uint face_num,
const uint vert_num )
inline

◆ GetNumFaces()

uint SGLSLMeshToTangent::GetNumFaces ( )
inline

Definition at line 159 of file mesh_tangent.cc.

References num_face_as_quad_map, and numTessFaces.

◆ GetNumVerticesOfFace()

uint SGLSLMeshToTangent::GetNumVerticesOfFace ( const uint face_num)
inline

Definition at line 168 of file mesh_tangent.cc.

References face_as_quad_map, faces, size(), tri_faces, and UNUSED_VARS.

◆ GetPosition()

mikk::float3 SGLSLMeshToTangent::GetPosition ( const uint face_num,
const uint vert_num )
inline

Definition at line 217 of file mesh_tangent.cc.

References corner_verts, GetLoop(), and positions.

◆ GetTexCoord()

mikk::float3 SGLSLMeshToTangent::GetTexCoord ( const uint face_num,
const uint vert_num )
inline

Definition at line 225 of file mesh_tangent.cc.

References corner_verts, GetLoop(), map_to_sphere(), mloopuv, orco, and v.

◆ SetTangentSpace()

void SGLSLMeshToTangent::SetTangentSpace ( const uint face_num,
const uint vert_num,
mikk::float3 T,
bool orientation )
inline

Definition at line 275 of file mesh_tangent.cc.

References copy_v4_fl4(), GetLoop(), T, and tangent.

Member Data Documentation

◆ corner_normals

Span<float3float3> SGLSLMeshToTangent::corner_normals

Definition at line 285 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNormal().

◆ corner_tris

const int3int3* SGLSLMeshToTangent::corner_tris

Definition at line 286 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetLoop().

◆ corner_verts

const int* SGLSLMeshToTangent::corner_verts

◆ face_as_quad_map

const int* SGLSLMeshToTangent::face_as_quad_map

Definition at line 301 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), GetLoop(), and GetNumVerticesOfFace().

◆ face_normals

Span<float3float3> SGLSLMeshToTangent::face_normals

Definition at line 284 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNormal().

◆ faces

OffsetIndices<int> SGLSLMeshToTangent::faces

◆ mloopuv

const float2float2* SGLSLMeshToTangent::mloopuv

Definition at line 288 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetTexCoord().

◆ num_face_as_quad_map

int SGLSLMeshToTangent::num_face_as_quad_map

Definition at line 302 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNumFaces().

◆ numTessFaces

int SGLSLMeshToTangent::numTessFaces

Definition at line 296 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNumFaces().

◆ orco

Span<float3float3> SGLSLMeshToTangent::orco

Definition at line 293 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetTexCoord().

◆ positions

Span<float3float3> SGLSLMeshToTangent::positions

Definition at line 291 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), GetNormal(), and GetPosition().

◆ sharp_faces

Span<bool> SGLSLMeshToTangent::sharp_faces

Definition at line 295 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNormal().

◆ tangent

float(* SGLSLMeshToTangent::tangent)[4]

Definition at line 294 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and SetTangentSpace().

◆ tri_faces

const int* SGLSLMeshToTangent::tri_faces

Definition at line 287 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), GetLoop(), and GetNumVerticesOfFace().

◆ vert_normals

Span<float3float3> SGLSLMeshToTangent::vert_normals

Definition at line 292 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNormal().


The documentation for this struct was generated from the following file: