Blender V5.0
texture_margin.cc File Reference
#include "BLI_assert.h"
#include "BLI_math_geom.h"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_vector.hh"
#include "BKE_attribute.hh"
#include "BKE_customdata.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_mapping.hh"
#include "IMB_imbuf.hh"
#include "IMB_interp.hh"
#include "MEM_guardedalloc.h"
#include "zbuf.h"
#include "RE_texture_margin.h"
#include <algorithm>
#include <cmath>

Go to the source code of this file.

Classes

class  blender::render::texturemargin::TextureMarginMap

Namespaces

namespace  blender
namespace  blender::render
namespace  blender::render::texturemargin

Macros

#define PackDijkstraPixel(dist, dir)
#define DijkstraPixelGetDistance(dp)
#define DijkstraPixelGetDirection(dp)
#define IsDijkstraPixel(dp)
#define DijkstraPixelIsUnset(dp)

Functions

static void blender::render::texturemargin::generate_margin (ImBuf *ibuf, char *mask, const int margin, const Span< float3 > vert_positions, const int edges_num, const OffsetIndices< int > faces, const Span< int > corner_edges, const Span< int > corner_verts, const Span< float2 > uv_map, const float uv_offset[2])
void RE_generate_texturemargin_adjacentfaces (ImBuf *ibuf, char *mask, const int margin, const Mesh *mesh, blender::StringRef uv_layer, const float uv_offset[2])

Macro Definition Documentation

◆ DijkstraPixelGetDirection

#define DijkstraPixelGetDirection ( dp)

◆ DijkstraPixelGetDistance

#define DijkstraPixelGetDistance ( dp)

◆ DijkstraPixelIsUnset

#define DijkstraPixelIsUnset ( dp)

◆ IsDijkstraPixel

#define IsDijkstraPixel ( dp)

◆ PackDijkstraPixel

#define PackDijkstraPixel ( dist,
dir )
Value:
(0x80000000 + ((dist) << 4) + (dir))

Definition at line 146 of file texture_margin.cc.

Referenced by blender::render::texturemargin::TextureMarginMap::grow_dijkstra().

Function Documentation

◆ RE_generate_texturemargin_adjacentfaces()

void RE_generate_texturemargin_adjacentfaces ( ImBuf * ibuf,
char * mask,
const int margin,
const Mesh * mesh,
blender::StringRef uv_layer,
const float uv_offset[2] )