|
Blender V5.3
|
#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 |
Mask for each udim tile.
Definition at line 266 of file pbvh_uv_islands.hh.
| blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::Tile | ( | float2 | udim_offset, |
| ushort2 | tile_resolution ) |
Definition at line 1488 of file pbvh_uv_islands.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::fill(), mask, mask_resolution, blender::bke::pbvh::uv_islands::mask_resolution_from_tile_resolution(), tile_resolution, udim_offset, blender::x, and y.
| 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.
| 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.
|
inline |
Lookup by resolved mask pixel coordinate.
Definition at line 277 of file pbvh_uv_islands.hh.
References mask, and mask_resolution.
| 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().
Definition at line 270 of file pbvh_uv_islands.hh.
Referenced by is_masked(), is_masked(), and Tile().
| ushort2 blender::bke::pbvh::uv_islands::UVIslandsMask::Tile::mask_resolution |
Definition at line 269 of file pbvh_uv_islands.hh.
Referenced by blender::bke::pbvh::pixels::extract_barycentric_pixels(), is_masked(), is_masked(), and Tile().
| 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().
| 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().