Blender V4.3
blender::bke::pbvh::pixels::UVPrimitivePaintInput Struct Reference

#include <BKE_pbvh_pixels.hh>

Public Member Functions

 UVPrimitivePaintInput (int tri_index)
 

Public Attributes

int tri_index
 
float2 delta_barycentric_coord_u
 

Detailed Description

Definition at line 20 of file BKE_pbvh_pixels.hh.

Constructor & Destructor Documentation

◆ UVPrimitivePaintInput()

blender::bke::pbvh::pixels::UVPrimitivePaintInput::UVPrimitivePaintInput ( int tri_index)
inline

Initially only the vert indices are known.

delta_barycentric_coord_u is initialized in a later stage as it requires image tile dimensions.

Definition at line 36 of file BKE_pbvh_pixels.hh.

Member Data Documentation

◆ delta_barycentric_coord_u

float2 blender::bke::pbvh::pixels::UVPrimitivePaintInput::delta_barycentric_coord_u

Delta barycentric coordinates between 2 neighboring UVs in the U direction.

Only the first two coordinates are stored. The third should be recalculated

Definition at line 28 of file BKE_pbvh_pixels.hh.

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

◆ tri_index

int blender::bke::pbvh::pixels::UVPrimitivePaintInput::tri_index

Corresponding index into triangles

Definition at line 22 of file BKE_pbvh_pixels.hh.

Referenced by blender::ed::sculpt_paint::paint::image::init_uv_primitives_brush_test().


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