Blender  V3.3
Classes | Functions
paint_vertex_proj.c File Reference
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_mesh_iterators.h"
#include "BKE_mesh_runtime.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "paint_intern.h"

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 *userData, int index, const float co[3], const float no[3])
 
static void vpaint_proj_dm_map_cosnos_init (struct Depsgraph *depsgraph, Scene *UNUSED(scene), Object *ob, struct VertProjHandle *vp_handle)
 
static void vpaint_proj_dm_map_cosnos_update__map_cb (void *userData, int index, const float co[3], const float no[3])
 
static void vpaint_proj_dm_map_cosnos_update (struct Depsgraph *depsgraph, struct VertProjHandle *vp_handle, ARegion *region, const float mval_fl[2])
 
struct VertProjHandleED_vpaint_proj_handle_create (struct Depsgraph *depsgraph, Scene *scene, Object *ob, CoNo **r_vcosnos)
 
void ED_vpaint_proj_handle_update (struct Depsgraph *depsgraph, struct VertProjHandle *vp_handle, ARegion *region, const float mval_fl[2])
 
void ED_vpaint_proj_handle_free (struct 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.c.

Function Documentation

◆ ED_vpaint_proj_handle_create()

struct VertProjHandle* ED_vpaint_proj_handle_create ( struct Depsgraph depsgraph,
Scene scene,
Object ob,
CoNo **  r_vcosnos 
)

◆ ED_vpaint_proj_handle_free()

void ED_vpaint_proj_handle_free ( struct VertProjHandle vp_handle)

◆ ED_vpaint_proj_handle_update()

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

◆ vpaint_proj_dm_map_cosnos_init()

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

◆ vpaint_proj_dm_map_cosnos_init__map_cb()

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

◆ vpaint_proj_dm_map_cosnos_update()

static void vpaint_proj_dm_map_cosnos_update ( struct Depsgraph depsgraph,
struct VertProjHandle vp_handle,
ARegion region,
const float  mval_fl[2] 
)
static

◆ vpaint_proj_dm_map_cosnos_update__map_cb()

static void vpaint_proj_dm_map_cosnos_update__map_cb ( void userData,
int  index,
const float  co[3],
const float  no[3] 
)
static