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

#include <pbvh_uv_islands.hh>

Public Member Functions

UVIsland
int lookup (const UVVert &vert)
int lookup_or_create (const UVVert &vert)
int lookup (const UVEdge &edge)
int lookup_or_create (const UVEdge &edge)
void extract_borders ()
void extend_border (const MeshData &mesh_data, const UVIslandsMask &mask, short island_index)
void print_debug (const MeshData &mesh_data) const

Public Attributes

int id
Vector< UVVert > uv_verts
Vector< UVEdge > uv_edges
Vector< UVPrimitive > uv_primitives
int64_t num_original_primitives = 0
Vector< UVBorder > borders
Map< int, Vector< int > > uv_vert_lookup

Detailed Description

Definition at line 220 of file pbvh_uv_islands.hh.

Member Function Documentation

◆ extend_border()

◆ extract_borders()

◆ lookup() [1/2]

◆ lookup() [2/2]

int blender::bke::pbvh::uv_islands::UVIsland::lookup ( const UVVert & vert)

Definition at line 274 of file pbvh_uv_islands.cc.

References uv_vert_lookup, and uv_verts.

Referenced by lookup(), lookup_or_create(), and lookup_or_create().

◆ lookup_or_create() [1/2]

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

Definition at line 320 of file pbvh_uv_islands.cc.

References lookup(), blender::result, and uv_edges.

◆ 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 1073 of file pbvh_uv_islands.cc.

References uv_edges, uv_primitives, uv_verts, 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 236 of file pbvh_uv_islands.hh.

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

◆ id

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

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

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

Definition at line 226 of file pbvh_uv_islands.hh.

◆ num_original_primitives

int64_t blender::bke::pbvh::uv_islands::UVIsland::num_original_primitives = 0

Number of primitive, before border extension.

Definition at line 231 of file pbvh_uv_islands.hh.

Referenced by blender::bke::pbvh::pixels::build_border_triangles().

◆ uv_edges

◆ uv_primitives

◆ uv_vert_lookup

Map<int, Vector<int> > blender::bke::pbvh::uv_islands::UVIsland::uv_vert_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 242 of file pbvh_uv_islands.hh.

Referenced by lookup(), and lookup_or_create().

◆ uv_verts


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