Blender V4.3
multires_reshape_vertcos.cc File Reference

Go to the source code of this file.

Classes

struct  MultiresReshapeAssignVertcosContext
 

Functions

static void multires_reshape_vertcos_foreach_single_vertex (const blender::bke::subdiv::ForeachContext *foreach_context, const GridCoord *grid_coord, const int subdiv_vertex_index)
 
static void multires_reshape_vertcos_foreach_vertex (const blender::bke::subdiv::ForeachContext *foreach_context, const PTexCoord *ptex_coord, const int subdiv_vertex_index)
 
static bool multires_reshape_vertcos_foreach_topology_info (const blender::bke::subdiv::ForeachContext *foreach_context, const int num_vertices, const int, const int, const int, const int *)
 
static void multires_reshape_vertcos_foreach_vertex_inner (const blender::bke::subdiv::ForeachContext *foreach_context, void *, const int ptex_face_index, const float ptex_face_u, const float ptex_face_v, const int, const int, const int subdiv_vertex_index)
 
static void multires_reshape_vertcos_foreach_vertex_every_corner (const blender::bke::subdiv::ForeachContext *foreach_context, void *, const int ptex_face_index, const float ptex_face_u, const float ptex_face_v, const int, const int, const int, const int subdiv_vertex_index)
 
static void multires_reshape_vertcos_foreach_vertex_every_edge (const blender::bke::subdiv::ForeachContext *foreach_context, void *, const int ptex_face_index, const float ptex_face_u, const float ptex_face_v, const int, const int, const int, const int subdiv_vertex_index)
 
bool multires_reshape_assign_final_coords_from_vertcos (const MultiresReshapeContext *reshape_context, const float(*vert_coords)[3], const int num_vert_coords)
 

Function Documentation

◆ multires_reshape_assign_final_coords_from_vertcos()

bool multires_reshape_assign_final_coords_from_vertcos ( const MultiresReshapeContext * reshape_context,
const float(*) vert_coords[3],
int num_vert_coords )

◆ multires_reshape_vertcos_foreach_single_vertex()

static void multires_reshape_vertcos_foreach_single_vertex ( const blender::bke::subdiv::ForeachContext * foreach_context,
const GridCoord * grid_coord,
const int subdiv_vertex_index )
static

Set single displacement grid value at a reshape level to a corresponding vertex coordinate. This function will be called for every side of a boundary grid points for inner coordinates.

Definition at line 27 of file multires_reshape_vertcos.cc.

References BLI_assert, copy_v3_v3(), ReshapeGridElement::displacement, multires_reshape_grid_element_for_grid_coord(), MultiresReshapeAssignVertcosContext::reshape_context, blender::bke::subdiv::ForeachContext::user_data, and MultiresReshapeAssignVertcosContext::vert_coords.

Referenced by multires_reshape_vertcos_foreach_vertex().

◆ multires_reshape_vertcos_foreach_topology_info()

static bool multires_reshape_vertcos_foreach_topology_info ( const blender::bke::subdiv::ForeachContext * foreach_context,
const int num_vertices,
const int ,
const int ,
const int ,
const int *  )
static

◆ multires_reshape_vertcos_foreach_vertex()

◆ multires_reshape_vertcos_foreach_vertex_every_corner()

static void multires_reshape_vertcos_foreach_vertex_every_corner ( const blender::bke::subdiv::ForeachContext * foreach_context,
void * ,
const int ptex_face_index,
const float ptex_face_u,
const float ptex_face_v,
const int ,
const int ,
const int ,
const int subdiv_vertex_index )
static

◆ multires_reshape_vertcos_foreach_vertex_every_edge()

static void multires_reshape_vertcos_foreach_vertex_every_edge ( const blender::bke::subdiv::ForeachContext * foreach_context,
void * ,
const int ptex_face_index,
const float ptex_face_u,
const float ptex_face_v,
const int ,
const int ,
const int ,
const int subdiv_vertex_index )
static

◆ multires_reshape_vertcos_foreach_vertex_inner()

static void multires_reshape_vertcos_foreach_vertex_inner ( const blender::bke::subdiv::ForeachContext * foreach_context,
void * ,
const int ptex_face_index,
const float ptex_face_u,
const float ptex_face_v,
const int ,
const int ,
const int subdiv_vertex_index )
static