Blender V5.0
SubdivCCGCoord Struct Reference

#include <BKE_subdiv_ccg.hh>

Public Member Functions

int to_index (const CCGKey &key) const

Static Public Member Functions

static SubdivCCGCoord from_index (const CCGKey &key, int index)

Public Attributes

int grid_index
short x
short y

Detailed Description

Definition at line 69 of file BKE_subdiv_ccg.hh.

Member Function Documentation

◆ from_index()

◆ to_index()

int SubdivCCGCoord::to_index ( const CCGKey & key) const
inline

Returns the index for the coordinate in an array sized to contain all grid vertices (including duplicates).

Definition at line 97 of file BKE_subdiv_ccg.hh.

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

Referenced by blender::ed::sculpt_paint::smooth::average_data_grids(), blender::ed::sculpt_paint::expand::boundary_from_enabled(), blender::ed::sculpt_paint::auto_mask::calc_blurred_cavity_grids(), blender::ed::sculpt_paint::pose::calc_pose_origin_and_factor_grids(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::expand::calc_topology_falloff_from_verts(), blender::ed::sculpt_paint::cloth::calc_vert_neighbor_indices_grids(), blender::ed::sculpt_paint::calc_vert_neighbors(), blender::ed::sculpt_paint::boundary::data_init_grids(), blender::ed::sculpt_paint::boundary::edit_data_init_grids(), blender::ed::sculpt_paint::flood_fill::FillDataGrids::execute(), blender::ed::sculpt_paint::auto_mask::fill_topology_automasking_factors_grids(), blender::ed::sculpt_paint::boundary::get_closest_boundary_vert_grids(), blender::ed::sculpt_paint::pose::grow_factors_grids(), blender::ed::sculpt_paint::mask::grow_mask_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_grids(), blender::ed::sculpt_paint::boundary::indices_init_grids(), blender::ed::sculpt_paint::auto_mask::init_boundary_masking_grids(), blender::ed::sculpt_paint::boundary::is_vert_in_editable_boundary_grids(), blender::ed::sculpt_paint::expand::normals_falloff_create(), blender::ed::sculpt_paint::sculpt_raycast_cb(), blender::ed::sculpt_paint::mask::shrink_mask_grids(), and blender::bke::tests::TEST().

Member Data Documentation

◆ grid_index

◆ x

◆ y


The documentation for this struct was generated from the following file: