Blender V5.0
blender::bke::ccg Namespace Reference

Functions

IndexRange grid_range (const int grid_area, const int grid)
IndexRange grid_range (const CCGKey &key, const int grid)
IndexRange face_range (const OffsetIndices< int > faces, const int grid_area, const int face)
IndexRange face_range (const OffsetIndices< int > faces, const CCGKey &key, const int face)
int grid_xy_to_vert (const CCGKey &key, const int grid, const int x, const int y)

Function Documentation

◆ face_range() [1/2]

IndexRange blender::bke::ccg::face_range ( const OffsetIndices< int > faces,
const CCGKey & key,
const int face )
inline

Definition at line 368 of file BKE_subdiv_ccg.hh.

References face_range(), faces, and CCGKey::grid_area.

◆ face_range() [2/2]

IndexRange blender::bke::ccg::face_range ( const OffsetIndices< int > faces,
const int grid_area,
const int face )
inline

Find the range of vertices in the entire geometry that are part of a single face.

Definition at line 363 of file BKE_subdiv_ccg.hh.

References faces.

Referenced by blender::bke::pbvh::calc_face_grid_bounds(), blender::ed::sculpt_paint::face_set::create_op_exec(), and face_range().

◆ grid_range() [1/2]

IndexRange blender::bke::ccg::grid_range ( const CCGKey & key,
const int grid )
inline

Definition at line 357 of file BKE_subdiv_ccg.hh.

References CCGKey::grid_area, and grid_range().

◆ grid_range() [2/2]

IndexRange blender::bke::ccg::grid_range ( const int grid_area,
const int grid )
inline

Find the range of vertices in the entire geometry that are part of a single grid.

Definition at line 353 of file BKE_subdiv_ccg.hh.

Referenced by blender::ed::sculpt_paint::apply_translations(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_grids(), blender::ed::sculpt_paint::pose::calc_average_face_set_center(), blender::ed::sculpt_paint::auto_mask::Cache::calc_cavity_factor(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::smooth::calc_relaxed_translations_grids(), blender::ed::sculpt_paint::mask::copy_old_hidden_mask_grids(), blender::ed::sculpt_paint::cloth::do_simulation_step(), blender::ed::sculpt_paint::fake_neighbor_search_grids(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::mask::fill_mask_grids(), blender::draw::pbvh::fill_masks_grids(), blender::draw::pbvh::fill_normals_grids(), blender::draw::pbvh::fill_positions_grids(), blender::ed::sculpt_paint::gather_data_grids(), grid_range(), blender::ed::sculpt_paint::pose::grow_factors_grids(), blender::ed::sculpt_paint::mask::grow_mask_grids(), blender::ed::sculpt_paint::boundary::init_falloff_grids(), blender::ed::sculpt_paint::mask::init_mask_grids(), blender::ed::sculpt_paint::mask::invert_mask_grids(), blender::ed::sculpt_paint::nearest_vert_calc_grids(), blender::ed::sculpt_paint::smooth::neighbor_position_average_interior_grids_impl(), blender::bke::pbvh::node_raycast_grids(), blender::bke::pbvh::node_update_mask_grids(), blender::ed::sculpt_paint::hide::partialvis_gesture_update_grids(), blender::ed::sculpt_paint::hide::partialvis_masked_update_grids(), blender::bke::pbvh::pbvh_grids_node_nearest_to_ray(), blender::ed::sculpt_paint::undo::restore_mask_from_undo_step(), blender::ed::sculpt_paint::undo::restore_mask_grids(), blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), blender::ed::sculpt_paint::undo::restore_position_grids(), blender::ed::sculpt_paint::scatter_data_grids(), blender::ed::sculpt_paint::mask::shrink_mask_grids(), blender::ed::sculpt_paint::expand::update_mask_grids(), and blender::bke::pbvh::update_node_bounds_grids().

◆ grid_xy_to_vert()

int blender::bke::ccg::grid_xy_to_vert ( const CCGKey & key,
const int grid,
const int x,
const int y )
inline

Find the vertex index in the entire geometry at a specific coordinate in a specific grid.

Definition at line 374 of file BKE_subdiv_ccg.hh.

References CCG_grid_xy_to_index(), CCGKey::grid_area, CCGKey::grid_size, x, and y.

Referenced by multires_reshape_assign_final_coords_from_ccg().