|
Blender V5.0
|
#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 blender::Span< blender::float3 > positions) |
| bool multires_reshape_assign_final_coords_from_vertcos | ( | const MultiresReshapeContext * | reshape_context, |
| blender::Span< blender::float3 > | positions ) |
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 166 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(), MultiresReshapeAssignVertcosContext::positions, MultiresReshapeContext::reshape, MultiresReshapeAssignVertcosContext::reshape_context, blender::bke::subdiv::ToMeshSettings::resolution, MultiresReshapeContext::subdiv, blender::bke::subdiv::ForeachContext::topology_info, blender::bke::subdiv::ToMeshSettings::use_optimal_display, blender::bke::subdiv::ForeachContext::user_data, blender::bke::subdiv::ForeachContext::vertex_every_corner, blender::bke::subdiv::ForeachContext::vertex_every_edge, and blender::bke::subdiv::ForeachContext::vertex_inner.
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 26 of file multires_reshape_vertcos.cc.
References BLI_assert, ReshapeGridElement::displacement, multires_reshape_grid_element_for_grid_coord(), MultiresReshapeAssignVertcosContext::positions, MultiresReshapeAssignVertcosContext::reshape_context, and blender::bke::subdiv::ForeachContext::user_data.
Referenced by multires_reshape_vertcos_foreach_vertex().
|
static |
Definition at line 94 of file multires_reshape_vertcos.cc.
References MultiresReshapeAssignVertcosContext::positions, and blender::bke::subdiv::ForeachContext::user_data.
Referenced by multires_reshape_assign_final_coords_from_vertcos().
|
static |
Definition at line 42 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 129 of file multires_reshape_vertcos.cc.
References multires_reshape_vertcos_foreach_vertex(), PTexCoord::ptex_face_index, PTexCoord::u, and PTexCoord::v.
Referenced by multires_reshape_assign_final_coords_from_vertcos().
|
static |
Definition at line 148 of file multires_reshape_vertcos.cc.
References multires_reshape_vertcos_foreach_vertex(), PTexCoord::ptex_face_index, PTexCoord::u, and PTexCoord::v.
Referenced by multires_reshape_assign_final_coords_from_vertcos().
|
static |
Definition at line 111 of file multires_reshape_vertcos.cc.
References multires_reshape_vertcos_foreach_vertex(), PTexCoord::ptex_face_index, PTexCoord::u, and PTexCoord::v.
Referenced by multires_reshape_assign_final_coords_from_vertcos().