Blender V4.3
draw_face_sets.cc File Reference

Go to the source code of this file.

Classes

struct  blender::ed::sculpt_paint::draw_face_sets_cc::MeshLocalData
 
struct  blender::ed::sculpt_paint::draw_face_sets_cc::GridLocalData
 
struct  blender::ed::sculpt_paint::draw_face_sets_cc::BMeshLocalData
 

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::sculpt_paint
 
namespace  blender::ed::sculpt_paint::draw_face_sets_cc
 

Functions

static void blender::ed::sculpt_paint::draw_face_sets_cc::calc_face_centers (const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< float3 > vert_positions, const Span< int > face_indices, const MutableSpan< float3 > positions)
 
static void blender::ed::sculpt_paint::draw_face_sets_cc::calc_face_normals (const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< float3 > vert_positions, const Span< int > face_indices, const MutableSpan< float3 > normals)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::draw_face_sets_cc::fill_factor_from_hide_and_mask (const Mesh &mesh, const Span< int > face_indices, const MutableSpan< float > r_factors)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::draw_face_sets_cc::apply_face_set (const int face_set_id, const Span< int > face_indices, const Span< float > factors, const MutableSpan< int > face_sets)
 
static void blender::ed::sculpt_paint::draw_face_sets_cc::calc_faces (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, const int face_set_id, Span< float3 > positions_eval, const bke::pbvh::MeshNode &node, const Span< int > face_indices, MeshLocalData &tls, const MutableSpan< int > face_sets)
 
static void blender::ed::sculpt_paint::draw_face_sets_cc::do_draw_face_sets_brush_mesh (const Depsgraph &depsgraph, Object &object, const Brush &brush, const IndexMask &node_mask)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::draw_face_sets_cc::calc_face_indices_grids (const SubdivCCG &subdiv_ccg, const Span< int > grids, const MutableSpan< int > face_indices)
 
static void blender::ed::sculpt_paint::draw_face_sets_cc::calc_grids (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, const int face_set_id, const bke::pbvh::GridsNode &node, GridLocalData &tls, const MutableSpan< int > face_sets)
 
static void blender::ed::sculpt_paint::draw_face_sets_cc::do_draw_face_sets_brush_grids (const Depsgraph &depsgraph, Object &object, const Brush &brush, const IndexMask &node_mask)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::draw_face_sets_cc::fill_factor_from_hide_and_mask (const BMesh &bm, const Set< BMFace *, 0L > &faces, const MutableSpan< float > r_factors)
 
static void blender::ed::sculpt_paint::draw_face_sets_cc::calc_face_centers (const Set< BMFace *, 0L > &faces, const MutableSpan< float3 > centers)
 
static BLI_NOINLINE void blender::ed::sculpt_paint::draw_face_sets_cc::apply_face_set (const int face_set_id, const Set< BMFace *, 0 > &faces, const MutableSpan< float > factors, const int cd_offset)
 
static void blender::ed::sculpt_paint::draw_face_sets_cc::calc_bmesh (Object &object, const Brush &brush, const float strength, const int face_set_id, bke::pbvh::BMeshNode &node, BMeshLocalData &tls, const int cd_offset)
 
static void blender::ed::sculpt_paint::draw_face_sets_cc::do_draw_face_sets_brush_bmesh (const Depsgraph &depsgraph, Object &object, const Brush &brush, const IndexMask &node_mask)
 
void blender::ed::sculpt_paint::do_draw_face_sets_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask)
 

Variables

constexpr float blender::ed::sculpt_paint::draw_face_sets_cc::FACE_SET_BRUSH_MIN_FADE = 0.05f