Blender  V3.3
Public Attributes | List of all members
MathLayerInfo Struct Reference

Public Attributes

int * face_component
 
bool has_math_layers
 

Detailed Description

If the mesh has custom data Loop layers that 'have math' we use this data to help decide which face to use as representative when there is an ambiguous choice as to which face to use, which happens when there is an odd number of segments.

The face_compent field of the following will only be set if there are an odd number of segments. The it uses BMFace indices to index into it, so will only be valid as long BMFaces are not added or deleted in the BMesh. "Connected Component" here means connected in UV space: i.e., one face is directly connected to another if they share an edge and all of Loop UV custom layers are contiguous across that edge.

Definition at line 183 of file bmesh_bevel.c.

Member Data Documentation

◆ face_component

int* MathLayerInfo::face_component

A connected-component id for each BMFace in the mesh.

Definition at line 185 of file bmesh_bevel.c.

Referenced by choose_rep_face(), and math_layer_info_init().

◆ has_math_layers

bool MathLayerInfo::has_math_layers

Does the mesh have any custom loop uv layers?

Definition at line 187 of file bmesh_bevel.c.

Referenced by frep_for_center_poly(), and math_layer_info_init().


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