Blender V4.3
SGLSLMeshToTangent Struct Reference

Public Member Functions

uint GetNumFaces ()
 
uint GetNumVerticesOfFace (const uint face_num)
 
uint GetLoop (const uint face_num, const uint vert_num, int3 &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< float3face_normals
 
Span< float3corner_normals
 
const int3corner_tris
 
const inttri_faces
 
const float2mloopuv
 
OffsetIndices< intfaces
 
const intcorner_verts
 
Span< float3positions
 
Span< float3vert_normals
 
Span< float3orco
 
float(* tangent )[4]
 
Span< bool > sharp_faces
 
int numTessFaces
 
const intface_as_quad_map
 
int num_face_as_quad_map
 

Detailed Description

Definition at line 160 of file mesh_tangent.cc.

Member Function Documentation

◆ GetLoop()

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

Definition at line 186 of file mesh_tangent.cc.

References corner_tris, face_as_quad_map, 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 161 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 170 of file mesh_tangent.cc.

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

◆ GetPosition()

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

Definition at line 219 of file mesh_tangent.cc.

References corner_verts, and GetLoop().

◆ GetTexCoord()

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

Definition at line 227 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 277 of file mesh_tangent.cc.

References copy_v4_fl4(), and GetLoop().

Member Data Documentation

◆ corner_normals

Span<float3> SGLSLMeshToTangent::corner_normals

Definition at line 287 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNormal().

◆ corner_tris

const int3* SGLSLMeshToTangent::corner_tris

Definition at line 288 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 303 of file mesh_tangent.cc.

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

◆ face_normals

Span<float3> SGLSLMeshToTangent::face_normals

Definition at line 286 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNormal().

◆ faces

OffsetIndices<int> SGLSLMeshToTangent::faces

Definition at line 291 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex().

◆ mloopuv

const float2* SGLSLMeshToTangent::mloopuv

Definition at line 290 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 304 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNumFaces().

◆ numTessFaces

int SGLSLMeshToTangent::numTessFaces

Definition at line 298 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNumFaces().

◆ orco

Span<float3> SGLSLMeshToTangent::orco

Definition at line 295 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetTexCoord().

◆ positions

Span<float3> SGLSLMeshToTangent::positions

Definition at line 293 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex().

◆ sharp_faces

Span<bool> SGLSLMeshToTangent::sharp_faces

Definition at line 297 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex(), and GetNormal().

◆ tangent

float(* SGLSLMeshToTangent::tangent)[4]

Definition at line 296 of file mesh_tangent.cc.

Referenced by BKE_mesh_calc_loop_tangent_ex().

◆ tri_faces

const int* SGLSLMeshToTangent::tri_faces

Definition at line 289 of file mesh_tangent.cc.

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

◆ vert_normals

Span<float3> SGLSLMeshToTangent::vert_normals

Definition at line 294 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: