Blender V4.3
blender::bke::mesh::CornerNormalSpace Struct Reference

#include <BKE_mesh.hh>

Public Attributes

float3 vec_lnor
 
float3 vec_ref
 
float3 vec_ortho
 
float ref_alpha
 
float ref_beta
 

Detailed Description

Combined with the automatically calculated face corner normal, this gives a dimensional coordinate space used to convert normals between the "custom normal" short2 representation and a regular float3 format.

Definition at line 118 of file BKE_mesh.hh.

Member Data Documentation

◆ ref_alpha

float blender::bke::mesh::CornerNormalSpace::ref_alpha

Reference angle around vec_ortho, in [0, pi] range (0.0 marks space as invalid).

Definition at line 126 of file BKE_mesh.hh.

Referenced by blender::bke::mesh::corner_space_custom_data_to_normal(), and blender::bke::mesh::corner_space_custom_normal_to_data().

◆ ref_beta

float blender::bke::mesh::CornerNormalSpace::ref_beta

Reference angle around vec_lnor, in [0, 2pi] range (0.0 marks space as invalid).

Definition at line 128 of file BKE_mesh.hh.

Referenced by blender::bke::mesh::corner_space_custom_data_to_normal(), and blender::bke::mesh::corner_space_custom_normal_to_data().

◆ vec_lnor

float3 blender::bke::mesh::CornerNormalSpace::vec_lnor

The automatically computed face corner normal, not including influence of custom normals.

Definition at line 120 of file BKE_mesh.hh.

Referenced by BKE_lnor_space_custom_data_to_normal(), BKE_lnor_space_custom_normal_to_data(), blender::bke::mesh::corner_space_custom_data_to_normal(), and blender::bke::mesh::corner_space_custom_normal_to_data().

◆ vec_ortho

float3 blender::bke::mesh::CornerNormalSpace::vec_ortho

◆ vec_ref

float3 blender::bke::mesh::CornerNormalSpace::vec_ref

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