Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::bke::pbvh::pixels::Triangles Struct Reference

#include <BKE_pbvh_pixels.hh>

Public Member Functions

void append (const int3 vert_indices)
 
TrianglePaintInputget_paint_input (const int index)
 
const TrianglePaintInputget_paint_input (const int index) const
 
void clear ()
 
uint64_t size () const
 
uint64_t mem_size () const
 

Public Attributes

Vector< TrianglePaintInputpaint_input
 

Detailed Description

Data shared between pixels that belong to the same triangle.

Data is stored as a list of structs, grouped by usage to improve performance (improves CPU cache prefetching).

Definition at line 48 of file BKE_pbvh_pixels.hh.

Member Function Documentation

◆ append()

void blender::bke::pbvh::pixels::Triangles::append ( const int3  vert_indices)
inline

◆ clear()

void blender::bke::pbvh::pixels::Triangles::clear ( )
inline

Definition at line 68 of file BKE_pbvh_pixels.hh.

References paint_input.

Referenced by blender::bke::pbvh::pixels::NodeData::clear_data().

◆ get_paint_input() [1/2]

TrianglePaintInput& blender::bke::pbvh::pixels::Triangles::get_paint_input ( const int  index)
inline

◆ get_paint_input() [2/2]

const TrianglePaintInput& blender::bke::pbvh::pixels::Triangles::get_paint_input ( const int  index) const
inline

Definition at line 63 of file BKE_pbvh_pixels.hh.

References paint_input.

◆ mem_size()

uint64_t blender::bke::pbvh::pixels::Triangles::mem_size ( ) const
inline

Definition at line 78 of file BKE_pbvh_pixels.hh.

References paint_input.

Referenced by blender::bke::pbvh::pixels::update_pixels().

◆ size()

uint64_t blender::bke::pbvh::pixels::Triangles::size ( ) const
inline

Member Data Documentation

◆ paint_input

Vector<TrianglePaintInput> blender::bke::pbvh::pixels::Triangles::paint_input

Data accessed by the inner loop of the painting brush.

Definition at line 50 of file BKE_pbvh_pixels.hh.

Referenced by clear(), get_paint_input(), mem_size(), and size().


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