Blender V5.0
blender::bke::mesh::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)
bool has_uv () const

Public Attributes

Span< float3positions
OffsetIndices< int > faces
Span< int > corner_verts
Span< int3corner_tris
Span< int > tri_faces
Span< float3vert_normals
Span< float3face_normals
Span< float3corner_normals
Span< float2uv_map
Span< float3orco
Span< bool > sharp_faces
MutableSpan< float4tangents
const int * face_as_quad_map
int num_face_as_quad_map

Detailed Description

Definition at line 116 of file mesh_tangent.cc.

Member Function Documentation

◆ GetLoop()

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

Definition at line 162 of file mesh_tangent.cc.

References face_as_quad_map, and size().

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

◆ GetNormal()

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

◆ GetNumFaces()

uint blender::bke::mesh::SGLSLMeshToTangent::GetNumFaces ( )
inline

Definition at line 137 of file mesh_tangent.cc.

References blender::Span< T >::size().

◆ GetNumVerticesOfFace()

uint blender::bke::mesh::SGLSLMeshToTangent::GetNumVerticesOfFace ( const uint face_num)
inline

Definition at line 146 of file mesh_tangent.cc.

References size(), and UNUSED_VARS.

◆ GetPosition()

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

Definition at line 195 of file mesh_tangent.cc.

References GetLoop().

◆ GetTexCoord()

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

Definition at line 203 of file mesh_tangent.cc.

References GetLoop(), has_uv(), map_to_sphere(), and v.

◆ has_uv()

bool blender::bke::mesh::SGLSLMeshToTangent::has_uv ( ) const
inline

Definition at line 261 of file mesh_tangent.cc.

References blender::Span< T >::is_empty().

Referenced by GetTexCoord().

◆ SetTangentSpace()

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

Definition at line 253 of file mesh_tangent.cc.

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

Member Data Documentation

◆ corner_normals

Span<float3> blender::bke::mesh::SGLSLMeshToTangent::corner_normals

Definition at line 124 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ corner_tris

Span<int3> blender::bke::mesh::SGLSLMeshToTangent::corner_tris

Definition at line 120 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ corner_verts

Span<int> blender::bke::mesh::SGLSLMeshToTangent::corner_verts

Definition at line 119 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ face_as_quad_map

const int* blender::bke::mesh::SGLSLMeshToTangent::face_as_quad_map

Definition at line 133 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents(), and GetLoop().

◆ face_normals

Span<float3> blender::bke::mesh::SGLSLMeshToTangent::face_normals

Definition at line 123 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ faces

OffsetIndices<int> blender::bke::mesh::SGLSLMeshToTangent::faces

Definition at line 118 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ num_face_as_quad_map

int blender::bke::mesh::SGLSLMeshToTangent::num_face_as_quad_map

Definition at line 134 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ orco

Span<float3> blender::bke::mesh::SGLSLMeshToTangent::orco

Definition at line 126 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ positions

Span<float3> blender::bke::mesh::SGLSLMeshToTangent::positions

Definition at line 117 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ sharp_faces

Span<bool> blender::bke::mesh::SGLSLMeshToTangent::sharp_faces

Definition at line 127 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ tangents

MutableSpan<float4> blender::bke::mesh::SGLSLMeshToTangent::tangents

Definition at line 128 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ tri_faces

Span<int> blender::bke::mesh::SGLSLMeshToTangent::tri_faces

Definition at line 121 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().

◆ uv_map

Span<float2> blender::bke::mesh::SGLSLMeshToTangent::uv_map

Definition at line 125 of file mesh_tangent.cc.

◆ vert_normals

Span<float3> blender::bke::mesh::SGLSLMeshToTangent::vert_normals

Definition at line 122 of file mesh_tangent.cc.

Referenced by blender::bke::mesh::calc_orco_tangents().


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