|
Blender V4.3
|
#include <pbvh_uv_islands.hh>
Classes | |
| struct | Tile |
Public Member Functions | |
UVIslandsMask | |
| void | add_tile (float2 udim_offset, ushort2 resolution) |
| const Tile * | find_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< Tile > | tiles |
Mask to find the index of the UVIsland for a given UV coordinate.
Definition at line 341 of file pbvh_uv_islands.hh.
| 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().
| 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().
| void blender::bke::pbvh::uv_islands::UVIslandsMask::dilate | ( | int | max_iterations | ) |
Definition at line 1633 of file pbvh_uv_islands.cc.
References blender::bke::pbvh::uv_islands::dilate_tile(), tile, and tiles.
Referenced by blender::bke::pbvh::pixels::update_pixels().
| 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.
Referenced by 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().
Definition at line 357 of file pbvh_uv_islands.hh.
Referenced by add(), add_tile(), dilate(), and find_tile().