Blender V4.3
paint_vertex_proj.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
#include "BKE_mesh_iterators.hh"
#include "BKE_object.hh"
#include "BLI_math_vector.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "ED_view3d.hh"
#include "paint_intern.hh"

Go to the source code of this file.

Classes

struct  VertProjHandle
 
struct  VertProjUpdate
 

Functions

static void vpaint_proj_dm_map_cosnos_init__map_cb (void *user_data, int index, const float co[3], const float no[3])
 
static void vpaint_proj_dm_map_cosnos_init (Depsgraph &depsgraph, Scene &, Object &ob, VertProjHandle &vp_handle)
 
static void vpaint_proj_dm_map_cosnos_update__map_cb (void *user_data, int index, const float co[3], const float no[3])
 
static void vpaint_proj_dm_map_cosnos_update (Depsgraph *depsgraph, VertProjHandle *vp_handle, ARegion *region, const float mval_fl[2])
 
VertProjHandleED_vpaint_proj_handle_create (Depsgraph &depsgraph, Scene &scene, Object &ob, blender::Span< blender::float3 > &r_vert_positions, blender::Span< blender::float3 > &r_vert_normals)
 
void ED_vpaint_proj_handle_update (Depsgraph *depsgraph, VertProjHandle *vp_handle, ARegion *region, const float mval_fl[2])
 
void ED_vpaint_proj_handle_free (VertProjHandle *vp_handle)
 

Detailed Description

Utility functions for getting vertex locations while painting (since they may be instanced multiple times in an evaluated mesh)

Definition in file paint_vertex_proj.cc.

Function Documentation

◆ ED_vpaint_proj_handle_create()

◆ ED_vpaint_proj_handle_free()

void ED_vpaint_proj_handle_free ( VertProjHandle * vp_handle)

Definition at line 194 of file paint_vertex_proj.cc.

Referenced by VPaintData::~VPaintData().

◆ ED_vpaint_proj_handle_update()

void ED_vpaint_proj_handle_update ( Depsgraph * depsgraph,
VertProjHandle * vp_handle,
ARegion * region,
const float mval_fl[2] )

◆ vpaint_proj_dm_map_cosnos_init()

static void vpaint_proj_dm_map_cosnos_init ( Depsgraph & depsgraph,
Scene & ,
Object & ob,
VertProjHandle & vp_handle )
static

◆ vpaint_proj_dm_map_cosnos_init__map_cb()

static void vpaint_proj_dm_map_cosnos_init__map_cb ( void * user_data,
int index,
const float co[3],
const float no[3] )
static

◆ vpaint_proj_dm_map_cosnos_update()

◆ vpaint_proj_dm_map_cosnos_update__map_cb()