Blender V5.3
BKE_subdiv_ccg.hh File Reference
#include <memory>
#include "BLI_array.hh"
#include "BLI_bit_group_vector.hh"
#include "BLI_bit_span_ops.hh"
#include "BLI_index_mask_fwd.hh"
#include "BLI_offset_indices.hh"
#include "BLI_ordered_edge.hh"
#include "BLI_set.hh"
#include "BLI_span.hh"
#include "BLI_utility_mixins.hh"
#include "BLI_vector.hh"
#include "BKE_ccg.hh"

Go to the source code of this file.

Classes

struct  blender::SubdivCCGMaskEvaluator
struct  blender::SubdivToCCGSettings
struct  blender::SubdivCCGCoord
struct  blender::SubdivCCGAdjacentEdge
struct  blender::SubdivCCGAdjacentVertex
struct  blender::SubdivCCG
struct  blender::SubdivCCGNeighbors

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::subdiv
namespace  blender::bke::ccg

Functions

IndexRange blender::bke::ccg::grid_range (const int grid_area, const int grid)
IndexRange blender::bke::ccg::grid_range (const CCGKey &key, const int grid)
IndexRange blender::bke::ccg::face_range (const OffsetIndices< int > faces, const int grid_area, const int face)
IndexRange blender::bke::ccg::face_range (const OffsetIndices< int > faces, const CCGKey &key, const int face)
int blender::bke::ccg::grid_xy_to_vert (const CCGKey &key, const int grid, const int x, const int y)
Masks
bool blender::BKE_subdiv_ccg_mask_init_from_paint (SubdivCCGMaskEvaluator *mask_evaluator, const Mesh *mesh)

SubdivCCG.

enum class  blender::SubdivCCGAdjacencyType : int8_t { blender::None , blender::Vertex , blender::Edge }
using blender::SubdivCCGNeighborCoords = Vector<SubdivCCGCoord, 256>
std::unique_ptr< SubdivCCG > blender::BKE_subdiv_to_ccg (bke::subdiv::Subdiv &subdiv, const SubdivToCCGSettings &settings, const Mesh &coarse_mesh, SubdivCCGMaskEvaluator *mask_evaluator=nullptr)
Mesh * blender::BKE_subdiv_to_ccg_mesh (bke::subdiv::Subdiv &subdiv, const SubdivToCCGSettings &settings, const Mesh &coarse_mesh)
CCGKey blender::BKE_subdiv_ccg_key (const SubdivCCG &subdiv_ccg, int level)
CCGKey blender::BKE_subdiv_ccg_key_top_level (const SubdivCCG &subdiv_ccg)
void blender::BKE_subdiv_ccg_recalc_normals (SubdivCCG &subdiv_ccg)
void blender::BKE_subdiv_ccg_update_normals (SubdivCCG &subdiv_ccg, const IndexMask &face_mask)
void blender::BKE_subdiv_ccg_average_grids (SubdivCCG &subdiv_ccg)
void blender::BKE_subdiv_ccg_average_stitch_faces (SubdivCCG &subdiv_ccg, const IndexMask &face_mask)
void blender::BKE_subdiv_ccg_topology_counters (const SubdivCCG &subdiv_ccg, int &r_num_vertices, int &r_num_edges, int &r_num_faces, int &r_num_loops)
void blender::BKE_subdiv_ccg_print_coord (const char *message, const SubdivCCGCoord &coord)
bool blender::BKE_subdiv_ccg_check_coord_valid (const SubdivCCG &subdiv_ccg, const SubdivCCGCoord &coord)
void blender::BKE_subdiv_ccg_neighbor_coords_get (const SubdivCCG &subdiv_ccg, const SubdivCCGCoord &coord, bool include_duplicates, SubdivCCGNeighbors &r_neighbors)
int blender::BKE_subdiv_ccg_grid_to_face_index (const SubdivCCG &subdiv_ccg, const int grid_index)
void blender::BKE_subdiv_ccg_eval_limit_positions (const SubdivCCG &subdiv_ccg, const CCGKey &key, int grid_index, MutableSpan< float3 > r_limit_positions)
SubdivCCGAdjacencyType blender::BKE_subdiv_ccg_coarse_mesh_adjacency_info_get (const SubdivCCG &subdiv_ccg, const SubdivCCGCoord &coord, Span< int > corner_verts, OffsetIndices< int > faces, int &r_v1, int &r_v2)
bool blender::BKE_subdiv_ccg_coord_is_mesh_boundary (OffsetIndices< int > faces, Span< int > corner_verts, BitSpan boundary_verts, const Set< OrderedEdge > &boundary_edges, const SubdivCCG &subdiv_ccg, SubdivCCGCoord coord)
BitGroupVector & blender::BKE_subdiv_ccg_grid_hidden_ensure (SubdivCCG &subdiv_ccg)
void blender::BKE_subdiv_ccg_grid_hidden_free (SubdivCCG &subdiv_ccg)
template<typename Fn>
void blender::BKE_subdiv_ccg_foreach_visible_grid_vert (const CCGKey &key, const BitGroupVector<> &grid_hidden, const int grid, const Fn &fn)