Blender V5.0
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 124 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, between vec_lnor and the reference edge.

A 0.0 value marks that space as invalid, as it can only happen in extremely degenerate geometry cases (it would mean that the default normal is perfectly aligned with the reference edge).

Definition at line 141 of file BKE_mesh.hh.

Referenced by BKE_lnor_space_custom_data_to_normal(), BKE_lnor_space_custom_normal_to_data(), BKE_lnor_space_define(), blender::bke::mesh::corner_fan_space_define(), 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, between the reference edge and the other border edge of the fan.

A 0.0 value marks that space as invalid, as it can only happen in degenerate geometry cases (it would mean that all the edges connected to that corner of the smooth fan are perfectly aligned).

Definition at line 150 of file BKE_mesh.hh.

Referenced by BKE_lnor_space_custom_data_to_normal(), BKE_lnor_space_custom_normal_to_data(), BKE_lnor_space_define(), blender::bke::mesh::corner_fan_space_define(), 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

◆ vec_ortho

◆ vec_ref

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

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