Blender  V3.3
Classes | Namespaces | Functions | Variables
pbvh_pixels.cc File Reference
#include "BKE_customdata.h"
#include "BKE_mesh_mapping.h"
#include "BKE_pbvh.h"
#include "BKE_pbvh_pixels.hh"
#include "DNA_image_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"
#include "BLI_task.h"
#include "BKE_image_wrappers.hh"
#include "bmesh.h"
#include "pbvh_intern.h"

Go to the source code of this file.

Classes

struct  blender::bke::pbvh::pixels::EncodePixelsUserData
 

Namespaces

 blender
 
 blender::bke
 
 blender::bke::pbvh
 
 blender::bke::pbvh::pixels
 

Functions

static float2 blender::bke::pbvh::pixels::calc_barycentric_delta (const float2 uvs[3], const float2 start_uv, const float2 end_uv)
 
static float2 blender::bke::pbvh::pixels::calc_barycentric_delta_x (const ImBuf *image_buffer, const float2 uvs[3], const int x, const int y)
 
static void blender::bke::pbvh::pixels::extract_barycentric_pixels (UDIMTilePixels &tile_data, const ImBuf *image_buffer, const int triangle_index, const float2 uvs[3], const int minx, const int miny, const int maxx, const int maxy)
 
static void blender::bke::pbvh::pixels::init_triangles (PBVH *pbvh, PBVHNode *node, NodeData *node_data, const MLoop *mloop)
 
static void blender::bke::pbvh::pixels::do_encode_pixels (void *__restrict userdata, const int n, const TaskParallelTLS *__restrict UNUSED(tls))
 
static bool blender::bke::pbvh::pixels::should_pixels_be_updated (PBVHNode *node)
 
static int64_t blender::bke::pbvh::pixels::count_nodes_to_update (PBVH *pbvh)
 
static bool blender::bke::pbvh::pixels::find_nodes_to_update (PBVH *pbvh, Vector< PBVHNode * > &r_nodes_to_update)
 
static void blender::bke::pbvh::pixels::apply_watertight_check (PBVH *pbvh, Image *image, ImageUser *image_user)
 
static void blender::bke::pbvh::pixels::update_pixels (PBVH *pbvh, Mesh *mesh, Image *image, ImageUser *image_user)
 
NodeDatablender::bke::pbvh::pixels::BKE_pbvh_pixels_node_data_get (PBVHNode &node)
 
void blender::bke::pbvh::pixels::BKE_pbvh_pixels_mark_image_dirty (PBVHNode &node, Image &image, ImageUser &image_user)
 
void BKE_pbvh_build_pixels (PBVH *pbvh, Mesh *mesh, Image *image, ImageUser *image_user)
 
void pbvh_pixels_free (PBVHNode *node)
 

Variables

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

Function Documentation

◆ BKE_pbvh_build_pixels()

void BKE_pbvh_build_pixels ( PBVH pbvh,
Mesh mesh,
Image image,
ImageUser image_user 
)

Definition at line 383 of file pbvh_pixels.cc.

References image(), mesh, and blender::bke::pbvh::pixels::update_pixels().

Referenced by sculpt_pbvh_update_pixels().

◆ pbvh_pixels_free()

void pbvh_pixels_free ( PBVHNode node)

Definition at line 388 of file pbvh_pixels.cc.

References node.

Referenced by BKE_pbvh_free().