Blender V5.3
pbvh_pixels.cc File Reference
#include <fmt/format.h>
#include "BKE_attribute.hh"
#include "BKE_customdata.hh"
#include "BKE_mesh.hh"
#include "BKE_paint_bvh.hh"
#include "BKE_paint_bvh_pixels.hh"
#include "DNA_image_types.h"
#include "DNA_object_types.h"
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_types.hh"
#include "BLI_math_vector_c.hh"
#include "BKE_image_wrappers.hh"
#include "BKE_paint.hh"
#include "IMB_partial_update.hh"
#include "PRF_profile.hh"
#include "pbvh_intern.hh"
#include "pbvh_pixels_copy.hh"
#include "pbvh_pixels_rasterize.hh"
#include "pbvh_uv_islands.hh"
#include <algorithm>

Go to the source code of this file.

Classes

struct  blender::bke::pbvh::pixels::BuildPixelRow
struct  blender::bke::pbvh::pixels::BorderTriangle

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::pbvh
namespace  blender::bke::pbvh::pixels

Functions

static float3x3 blender::bke::pbvh::pixels::calc_pixel_to_position_map (const uv_islands::MeshData &mesh_data, const int tri, const float2 uvs[3], const float inv_w, const float inv_h)
static void blender::bke::pbvh::pixels::extract_barycentric_pixels (Vector< BuildPixelRow > &build_rows, const ImBuf *image_buffer, const uv_islands::UVIslandsMask::Tile &mask_tile, const int uv_island_index, const int uv_primitive_index, const float2 uvs[3])
static GroupedSpan< BorderTriangle > blender::bke::pbvh::pixels::build_border_triangles (const uv_islands::MeshData &mesh_data, const int64_t geom_primitive_len, MutableSpan< uv_islands::UVIsland > uv_islands, Array< int > &r_offsets, Array< BorderTriangle > &r_data)
static void blender::bke::pbvh::pixels::build_pixel_row_runs (Vector< BuildPixelRow > &build_rows, UDIMTilePixels &tile_data)
template<typename Fn>
void blender::bke::pbvh::pixels::foreach_uv_triangle (const uv_islands::MeshData &mesh_data, const GroupedSpan< BorderTriangle > border_tris, const int tri, Fn &&fn)
static void blender::bke::pbvh::pixels::do_encode_pixels (const uv_islands::MeshData &mesh_data, const uv_islands::UVIslandsMask &uv_masks, const GroupedSpan< BorderTriangle > border_tris, Image &image, const ImageUser &image_user, MeshNode &node, PixelNode &pixel_node)
static IndexMask blender::bke::pbvh::pixels::find_nodes_to_update (Tree &pbvh, IndexMaskMemory &memory)
static void blender::bke::pbvh::pixels::apply_watertight_check (Tree &pbvh, Image &image, const ImageUser &image_user)
static bool blender::bke::pbvh::pixels::update_pixels (const Depsgraph &depsgraph, const Object &object, Tree &pbvh, Image &image, const ImageUser &image_user)
PixelData & blender::bke::pbvh::pixels::data_get (bke::pbvh::Tree &pbvh)
void blender::bke::pbvh::pixels::mark_image_dirty (bke::pbvh::Node &node, PixelNode &pixel_node, Map< image::TileNumber, ImBuf * > &buffers)
void blender::bke::pbvh::pixels::collect_dirty_tiles (PixelNode &pixel_node, Vector< image::TileNumber > &r_dirty_tiles)
void blender::bke::pbvh::build_pixels (const Depsgraph &depsgraph, Object &object, Image &image, const ImageUser &image_user)
void blender::bke::pbvh::pixels_free (bke::pbvh::Tree *pbvh)

Variables

constexpr bool blender::bke::pbvh::pixels::USE_WATERTIGHT_CHECK = false