Blender V5.3
blender::bke::pbvh::uv_islands::UVIslandsMask::Tile Struct Reference

#include <pbvh_uv_islands.hh>

Public Member Functions

bool is_masked (const uint16_t island_index, const int mask_x, const int mask_y) const
UVIslandsMask
 Tile (float2 udim_offset, ushort2 tile_resolution)
bool is_masked (uint16_t island_index, float2 uv) const
bool contains (float2 uv) const
float get_pixel_size_in_uv_space () const

Public Attributes

float2 udim_offset
ushort2 tile_resolution
ushort2 mask_resolution
Array< uint16_t > mask

Detailed Description

Mask for each udim tile.

Definition at line 266 of file pbvh_uv_islands.hh.

Constructor & Destructor Documentation

◆ Tile()

blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::Tile ( float2 udim_offset,
ushort2 tile_resolution )

Member Function Documentation

◆ contains()

bool blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::contains ( float2 uv) const

Definition at line 1497 of file pbvh_uv_islands.cc.

References IN_RANGE_INCL, and udim_offset.

◆ get_pixel_size_in_uv_space()

float blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::get_pixel_size_in_uv_space ( ) const

Definition at line 1503 of file pbvh_uv_islands.cc.

References blender::min_ff(), and tile_resolution.

◆ is_masked() [1/2]

bool blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::is_masked ( const uint16_t island_index,
const int mask_x,
const int mask_y ) const
inline

Lookup by resolved mask pixel coordinate.

Definition at line 277 of file pbvh_uv_islands.hh.

References mask, and mask_resolution.

◆ is_masked() [2/2]

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

Lookup by UV.

Definition at line 1647 of file pbvh_uv_islands.cc.

References blender::clamp_i(), mask, mask_resolution, and udim_offset.

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

Member Data Documentation

◆ mask

Array<uint16_t> blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::mask

Definition at line 270 of file pbvh_uv_islands.hh.

Referenced by is_masked(), is_masked(), and Tile().

◆ mask_resolution

ushort2 blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::mask_resolution

◆ tile_resolution

ushort2 blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::tile_resolution

Definition at line 268 of file pbvh_uv_islands.hh.

Referenced by get_pixel_size_in_uv_space(), and Tile().

◆ udim_offset

float2 blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::udim_offset

Definition at line 267 of file pbvh_uv_islands.hh.

Referenced by contains(), is_masked(), and Tile().


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