Blender V5.0
blender::bke::pbvh::uv_islands::UVBorderCorner Struct Reference

#include <pbvh_uv_islands.hh>

Public Member Functions

UVBorderCorner
 UVBorderCorner (UVBorderEdge *first, UVBorderEdge *second, float angle)
float2 uv (float factor, float min_uv_distance)
bool connected_in_mesh () const
void print_debug () const

Public Attributes

UVBorderEdgefirst
UVBorderEdgesecond
float angle

Detailed Description

Definition at line 227 of file pbvh_uv_islands.hh.

Constructor & Destructor Documentation

◆ UVBorderCorner()

blender::bke::pbvh::uv_islands::UVBorderCorner::UVBorderCorner ( UVBorderEdge * first,
UVBorderEdge * second,
float angle )
explicit

Definition at line 1223 of file pbvh_uv_islands.cc.

References angle, first, and second.

Member Function Documentation

◆ connected_in_mesh()

bool blender::bke::pbvh::uv_islands::UVBorderCorner::connected_in_mesh ( ) const

Does this corner exist as 2 connected edges of the mesh.

During the extraction phase a connection can be made in uv-space that doesn't reflect to two connected edges inside the mesh.

Definition at line 1243 of file pbvh_uv_islands.cc.

References first, and second.

Referenced by blender::bke::pbvh::uv_islands::extend_at_vert(), and print_debug().

◆ print_debug()

void blender::bke::pbvh::uv_islands::UVBorderCorner::print_debug ( ) const

Definition at line 1248 of file pbvh_uv_islands.cc.

References connected_in_mesh(), first, and second.

◆ uv()

float2 blender::bke::pbvh::uv_islands::UVBorderCorner::uv ( float factor,
float min_uv_distance )

Calculate a uv coordinate between the edges of the corner.

'min_uv_distance' is the minimum distance between the corner and the resulting uv coordinate. The distance is in uv space.

Definition at line 1228 of file pbvh_uv_islands.cc.

References angle, blender::math::angle_between(), first, blender::math::from_rotation(), max_ff(), normalize, result, second, and v.

Referenced by blender::bke::pbvh::uv_islands::extend_at_vert().

Member Data Documentation

◆ angle

float blender::bke::pbvh::uv_islands::UVBorderCorner::angle

◆ first

◆ second


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