|
Blender V4.3
|
#include "multires_reshape.hh"#include "BLI_math_vector.h"#include "BKE_subdiv_foreach.hh"#include "BKE_subdiv_mesh.hh"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) |
| bool multires_reshape_assign_final_coords_from_vertcos | ( | const MultiresReshapeContext * | reshape_context, |
| const float(*) | vert_coords[3], | ||
| int | num_vert_coords ) |
Set displacement grids values at a reshape level to a object coordinates of the given source.
False will be returned if the number of vertex coordinates did not match required number of vertices at a reshape level.
Definition at line 167 of file multires_reshape_vertcos.cc.
References MultiresReshapeContext::base_mesh, blender::bke::subdiv::foreach_subdiv_geometry(), MultiresReshapeContext::level, multires_reshape_vertcos_foreach_topology_info(), multires_reshape_vertcos_foreach_vertex_every_corner(), multires_reshape_vertcos_foreach_vertex_every_edge(), multires_reshape_vertcos_foreach_vertex_inner(), MultiresReshapeContext::reshape, MultiresReshapeAssignVertcosContext::reshape_context, blender::bke::subdiv::ToMeshSettings::resolution, MultiresReshapeContext::subdiv, blender::bke::subdiv::ForeachContext::topology_info, and blender::bke::subdiv::ToMeshSettings::use_optimal_display.
Referenced by multiresModifier_reshapeFromVertcos().
|
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().
|
static |
Definition at line 95 of file multires_reshape_vertcos.cc.
References MultiresReshapeAssignVertcosContext::num_vert_coords, and blender::bke::subdiv::ForeachContext::user_data.
Referenced by multires_reshape_assign_final_coords_from_vertcos().
|
static |
Definition at line 43 of file multires_reshape_vertcos.cc.
References MultiresReshapeContext::base_faces, MultiresReshapeContext::face_start_grid_index, GridCoord::grid_index, multires_reshape_grid_to_face_index(), multires_reshape_ptex_coord_to_grid(), multires_reshape_vertcos_foreach_single_vertex(), MultiresReshapeAssignVertcosContext::reshape_context, GridCoord::u, blender::bke::subdiv::ForeachContext::user_data, and GridCoord::v.
Referenced by multires_reshape_vertcos_foreach_vertex_every_corner(), multires_reshape_vertcos_foreach_vertex_every_edge(), and multires_reshape_vertcos_foreach_vertex_inner().
|
static |
Definition at line 130 of file multires_reshape_vertcos.cc.
References multires_reshape_vertcos_foreach_vertex(), and PTexCoord::ptex_face_index.
Referenced by multires_reshape_assign_final_coords_from_vertcos().
|
static |
Definition at line 149 of file multires_reshape_vertcos.cc.
References multires_reshape_vertcos_foreach_vertex(), and PTexCoord::ptex_face_index.
Referenced by multires_reshape_assign_final_coords_from_vertcos().
|
static |
Definition at line 112 of file multires_reshape_vertcos.cc.
References multires_reshape_vertcos_foreach_vertex(), and PTexCoord::ptex_face_index.
Referenced by multires_reshape_assign_final_coords_from_vertcos().