Blender V5.3
blender::SGLSLEditMeshToTangent Struct Reference

Public Member Functions

uint GetNumFaces ()
uint GetNumVerticesOfFace (const uint face_num)
const BMLoop * GetLoop (const uint face_num, uint vert_index)
mikk::float3 GetPosition (const uint face_num, const uint vert_index)
mikk::float3 GetTexCoord (const uint face_num, const uint vert_index)
mikk::float3 GetNormal (const uint face_num, const uint vert_index)
void SetTangentSpace (const uint face_num, const uint vert_index, mikk::float3 T, bool orientation)
bool has_uv ()

Public Attributes

Span< float3 > face_normals
Span< float3 > corner_normals
Span< std::array< BMLoop *, 3 > > looptris
int cd_loop_uv_offset
Span< float3 > orco
float(* tangent )[4]
int numTessFaces
const int * face_as_quad_map
int num_face_as_quad_map

Detailed Description

Definition at line 34 of file editmesh_tangent.cc.

Member Function Documentation

◆ GetLoop()

const BMLoop * blender::SGLSLEditMeshToTangent::GetLoop ( const uint face_num,
uint vert_index )
inline

◆ GetNormal()

mikk::float3 blender::SGLSLEditMeshToTangent::GetNormal ( const uint face_num,
const uint vert_index )
inline

◆ GetNumFaces()

uint blender::SGLSLEditMeshToTangent::GetNumFaces ( )
inline

Definition at line 35 of file editmesh_tangent.cc.

References num_face_as_quad_map, and numTessFaces.

◆ GetNumVerticesOfFace()

uint blender::SGLSLEditMeshToTangent::GetNumVerticesOfFace ( const uint face_num)
inline

Definition at line 44 of file editmesh_tangent.cc.

References face_as_quad_map, looptris, and UNUSED_VARS.

◆ GetPosition()

mikk::float3 blender::SGLSLEditMeshToTangent::GetPosition ( const uint face_num,
const uint vert_index )
inline

Definition at line 86 of file editmesh_tangent.cc.

References blender::BMVert::co, GetLoop(), blender::l, and blender::BMLoop::v.

◆ GetTexCoord()

mikk::float3 blender::SGLSLEditMeshToTangent::GetTexCoord ( const uint face_num,
const uint vert_index )
inline

◆ has_uv()

bool blender::SGLSLEditMeshToTangent::has_uv ( )
inline

Definition at line 130 of file editmesh_tangent.cc.

References cd_loop_uv_offset.

Referenced by GetTexCoord().

◆ SetTangentSpace()

void blender::SGLSLEditMeshToTangent::SetTangentSpace ( const uint face_num,
const uint vert_index,
mikk::float3 T,
bool orientation )
inline

Member Data Documentation

◆ cd_loop_uv_offset

int blender::SGLSLEditMeshToTangent::cd_loop_uv_offset

◆ corner_normals

Span<float3> blender::SGLSLEditMeshToTangent::corner_normals

Definition at line 136 of file editmesh_tangent.cc.

Referenced by blender::BKE_editmesh_orco_tangents_calc(), and GetNormal().

◆ face_as_quad_map

const int* blender::SGLSLEditMeshToTangent::face_as_quad_map

◆ face_normals

Span<float3> blender::SGLSLEditMeshToTangent::face_normals

Definition at line 135 of file editmesh_tangent.cc.

Referenced by blender::BKE_editmesh_orco_tangents_calc(), and GetNormal().

◆ looptris

Span<std::array<BMLoop *, 3> > blender::SGLSLEditMeshToTangent::looptris

◆ num_face_as_quad_map

int blender::SGLSLEditMeshToTangent::num_face_as_quad_map

Definition at line 147 of file editmesh_tangent.cc.

Referenced by blender::BKE_editmesh_orco_tangents_calc(), and GetNumFaces().

◆ numTessFaces

int blender::SGLSLEditMeshToTangent::numTessFaces

Definition at line 141 of file editmesh_tangent.cc.

Referenced by blender::BKE_editmesh_orco_tangents_calc(), and GetNumFaces().

◆ orco

Span<float3> blender::SGLSLEditMeshToTangent::orco

Definition at line 139 of file editmesh_tangent.cc.

Referenced by blender::BKE_editmesh_orco_tangents_calc(), and GetTexCoord().

◆ tangent

float(* blender::SGLSLEditMeshToTangent::tangent)[4]

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