Blender V4.3
blender::bke::pbvh::uv_islands::UVBorder Struct Reference

#include <pbvh_uv_islands.hh>

Public Attributes

Vector< UVBorderEdgeedges
 

UVBorder

bool is_ccw () const
 
void flip_order ()
 
float outside_angle (const UVBorderEdge &edge) const
 
void update_indexes (uint64_t border_index)
 
void remove (int64_t index)
 
static std::optional< UVBorderextract_from_edges (Vector< UVBorderEdge > &edges)
 

Detailed Description

Definition at line 257 of file pbvh_uv_islands.hh.

Member Function Documentation

◆ extract_from_edges()

◆ flip_order()

void blender::bke::pbvh::uv_islands::UVBorder::flip_order ( )

Flip the order of the verts, changing the order between CW and CCW.

Definition at line 1193 of file pbvh_uv_islands.cc.

References edges, and update_indexes().

◆ is_ccw()

bool blender::bke::pbvh::uv_islands::UVBorder::is_ccw ( ) const

Check if the border is counter clock wise from its island.

Definition at line 1179 of file pbvh_uv_islands.cc.

References copy_v2_v2(), cross_poly_v2(), and blender::bke::pbvh::uv_islands::UVVertex::uv.

◆ outside_angle()

float blender::bke::pbvh::uv_islands::UVBorder::outside_angle ( const UVBorderEdge & edge) const

Calculate the outside angle of the given vert.

Definition at line 1203 of file pbvh_uv_islands.cc.

References angle_signed_v2v2(), and M_PI.

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

◆ remove()

void blender::bke::pbvh::uv_islands::UVBorder::remove ( int64_t index)

Remove edge from the border. updates the indexes.

Definition at line 1222 of file pbvh_uv_islands.cc.

References update_indexes().

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

◆ update_indexes()

void blender::bke::pbvh::uv_islands::UVBorder::update_indexes ( uint64_t border_index)

Definition at line 1210 of file pbvh_uv_islands.cc.

References next.

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

Member Data Documentation

◆ edges

Vector<UVBorderEdge> blender::bke::pbvh::uv_islands::UVBorder::edges

Ordered list of UV Verts of the border of this island.

Definition at line 259 of file pbvh_uv_islands.hh.

Referenced by blender::bke::pbvh::uv_islands::extend_at_vert(), extract_from_edges(), flip_order(), and blender::bke::pbvh::uv_islands::sharpest_border_corner().


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