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

#include <pbvh_uv_islands.hh>

Classes

struct  Tile
 

Public Member Functions

UVIslandsMask
void add_tile (float2 udim_offset, ushort2 resolution)
 
const Tilefind_tile (const float2 uv) const
 
bool is_masked (const uint16_t island_index, const float2 uv) const
 
void add (const MeshData &mesh_data, const UVIslands &islands)
 
void dilate (int max_iterations)
 

Public Attributes

Vector< Tiletiles
 

Detailed Description

Mask to find the index of the UVIsland for a given UV coordinate.

Definition at line 341 of file pbvh_uv_islands.hh.

Member Function Documentation

◆ add()

void blender::bke::pbvh::uv_islands::UVIslandsMask::add ( const MeshData & mesh_data,
const UVIslands & islands )

Add the given UVIslands to the mask. Tiles should be added beforehand using the 'add_tile' method.

Definition at line 1558 of file pbvh_uv_islands.cc.

References blender::bke::pbvh::uv_islands::add_uv_island(), blender::bke::pbvh::uv_islands::UVIslands::islands, tile, and tiles.

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

◆ add_tile()

void blender::bke::pbvh::uv_islands::UVIslandsMask::add_tile ( float2 udim_offset,
ushort2 resolution )

Definition at line 1567 of file pbvh_uv_islands.cc.

References tiles.

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

◆ dilate()

void blender::bke::pbvh::uv_islands::UVIslandsMask::dilate ( int max_iterations)

◆ find_tile()

const UVIslandsMask::Tile * blender::bke::pbvh::uv_islands::UVIslandsMask::find_tile ( const float2 uv) const

Find a tile containing the given uv coordinate.

Definition at line 1652 of file pbvh_uv_islands.cc.

References tile, and tiles.

Referenced by is_masked().

◆ is_masked()

bool blender::bke::pbvh::uv_islands::UVIslandsMask::is_masked ( const uint16_t island_index,
const float2 uv ) const

Is the given uv coordinate part of the given island_index mask.

true - part of the island mask. false - not part of the island mask.

Definition at line 1662 of file pbvh_uv_islands.cc.

References find_tile(), and tile.

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

Member Data Documentation

◆ tiles

Vector<Tile> blender::bke::pbvh::uv_islands::UVIslandsMask::tiles

Definition at line 357 of file pbvh_uv_islands.hh.

Referenced by add(), add_tile(), dilate(), and find_tile().


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