Blender V5.0
mesh_tangent.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_math_geom.h"
#include "BLI_math_vector.h"
#include "BLI_task.hh"
#include "BKE_mesh_tangent.hh"
#include "BKE_report.hh"
#include "mikktspace.hh"
#include "BLI_strict_flags.h"

Go to the source code of this file.

Classes

struct  blender::bke::mesh::MeshToTangentQuadsTris
struct  blender::bke::mesh::SGLSLMeshToTangent

Namespaces

namespace  blender
namespace  blender::bke
namespace  blender::bke::mesh

Functions

void blender::bke::mesh::calc_uv_tangent_tris_quads (Span< float3 > vert_positions, OffsetIndices< int > faces, Span< int > corner_verts, Span< float3 > corner_normals, Span< float2 > uv_map, MutableSpan< float4 > results, ReportList *reports)

Mesh Tangent Calculations (All Layers)

#define USE_TRI_DETECT_QUADS
static void blender::bke::mesh::calc_face_as_quad_map (const OffsetIndices< int > faces, const Span< int3 > corner_tris, const Span< int > corner_tri_faces, int &num_face_as_quad_map, int *&face_as_quad_map)
Array< Array< float4 > > blender::bke::mesh::calc_uv_tangents (Span< float3 > vert_positions, OffsetIndices< int > faces, Span< int > corner_verts, Span< int3 > corner_tris, Span< int > corner_tri_faces, Span< bool > sharp_faces, Span< float3 > vert_normals, Span< float3 > face_normals, Span< float3 > corner_normals, Span< Span< float2 > > uv_maps)
Array< float4blender::bke::mesh::calc_orco_tangents (Span< float3 > vert_positions, OffsetIndices< int > faces, Span< int > corner_verts, Span< int3 > corner_tris, Span< int > corner_tri_faces, Span< bool > sharp_faces, Span< float3 > vert_normals, Span< float3 > face_normals, Span< float3 > corner_normals, Span< float3 > vert_orco)

Detailed Description

Functions to evaluate mesh tangents.

Definition in file mesh_tangent.cc.

Macro Definition Documentation

◆ USE_TRI_DETECT_QUADS

#define USE_TRI_DETECT_QUADS

Definition at line 114 of file mesh_tangent.cc.