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

#include <pbvh_uv_islands.hh>

Public Attributes

int id
 
VectorList< UVVertexuv_vertices
 
VectorList< UVEdgeuv_edges
 
VectorList< UVPrimitiveuv_primitives
 
Vector< UVBorderborders
 
Map< int64_t, Vector< UVVertex * > > uv_vertex_lookup
 

UVIsland

UVVertexlookup (const UVVertex &vertex)
 
UVVertexlookup_or_create (const UVVertex &vertex)
 
UVEdgelookup (const UVEdge &edge)
 
UVEdgelookup_or_create (const UVEdge &edge)
 
void extract_borders ()
 
void extend_border (const MeshData &mesh_data, const UVIslandsMask &mask, const short island_index)
 
bool has_shared_edge (const UVPrimitive &primitive) const
 
bool has_shared_edge (const MeshData &mesh_data, const int primitive_i) const
 
void extend_border (const UVPrimitive &primitive)
 
void print_debug (const MeshData &mesh_data) const
 

Detailed Description

Definition at line 284 of file pbvh_uv_islands.hh.

Member Function Documentation

◆ extend_border() [1/2]

◆ extend_border() [2/2]

void blender::bke::pbvh::uv_islands::UVIsland::extend_border ( const UVPrimitive & primitive)

Definition at line 410 of file pbvh_uv_islands.cc.

References append, and uv_primitives.

◆ extract_borders()

void blender::bke::pbvh::uv_islands::UVIsland::extract_borders ( )

◆ has_shared_edge() [1/2]

bool blender::bke::pbvh::uv_islands::UVIsland::has_shared_edge ( const MeshData & mesh_data,
const int primitive_i ) const

Definition at line 398 of file pbvh_uv_islands.cc.

References uv_primitives.

◆ has_shared_edge() [2/2]

bool blender::bke::pbvh::uv_islands::UVIsland::has_shared_edge ( const UVPrimitive & primitive) const

Definition at line 386 of file pbvh_uv_islands.cc.

References uv_primitives.

◆ lookup() [1/2]

UVEdge * blender::bke::pbvh::uv_islands::UVIsland::lookup ( const UVEdge & edge)

◆ lookup() [2/2]

UVVertex * blender::bke::pbvh::uv_islands::UVIsland::lookup ( const UVVertex & vertex)

◆ lookup_or_create() [1/2]

UVEdge * blender::bke::pbvh::uv_islands::UVIsland::lookup_or_create ( const UVEdge & edge)

◆ lookup_or_create() [2/2]

◆ print_debug()

void blender::bke::pbvh::uv_islands::UVIsland::print_debug ( const MeshData & mesh_data) const

Print a python script to the console that generates a mesh representing this UVIsland.

Definition at line 1074 of file pbvh_uv_islands.cc.

References uv_primitives, and blender::bke::pbvh::uv_islands::MeshData::vert_positions.

Member Data Documentation

◆ borders

Vector<UVBorder> blender::bke::pbvh::uv_islands::UVIsland::borders

List of borders of this island. There can be multiple borders per island as a border could be completely encapsulated by another one.

Definition at line 298 of file pbvh_uv_islands.hh.

Referenced by blender::bke::pbvh::uv_islands::extend_at_vert(), extend_border(), blender::bke::pbvh::uv_islands::reset_extendability_flags(), and blender::bke::pbvh::uv_islands::sharpest_border_corner().

◆ id

int blender::bke::pbvh::uv_islands::UVIsland::id

Id (Index) of the UVIsland. Contains the index of this island in UVIslands.

Useful during debugging to set a breaking condition on a specific island/vert.

Definition at line 290 of file pbvh_uv_islands.hh.

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

◆ uv_edges

VectorList<UVEdge> blender::bke::pbvh::uv_islands::UVIsland::uv_edges

Definition at line 292 of file pbvh_uv_islands.hh.

Referenced by lookup_or_create().

◆ uv_primitives

◆ uv_vertex_lookup

Map<int64_t, Vector<UVVertex *> > blender::bke::pbvh::uv_islands::UVIsland::uv_vertex_lookup

Key is mesh vert index, Value is list of UVVertices that refer to the mesh vertex with that index. Map is used internally to quickly lookup similar UVVertices.

Definition at line 304 of file pbvh_uv_islands.hh.

Referenced by lookup(), and lookup_or_create().

◆ uv_vertices

VectorList<UVVertex> blender::bke::pbvh::uv_islands::UVIsland::uv_vertices

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