Blender V5.3
blender::bke::pbvh::TriRasterizer Struct Reference

#include <pbvh_pixels_rasterize.hh>

Public Member Functions

 TriRasterizer (const float2 uv0, const float2 uv1, const float2 uv2, const int2 image_size)
bool inside (const int x, const int y) const

Public Attributes

Bounds< int2 > bounds

Detailed Description

Rasterizes a triangle in pixel space using precomputed edge functions. Uses canonical edge ordering to make it watertight.

Definition at line 22 of file pbvh_pixels_rasterize.hh.

Constructor & Destructor Documentation

◆ TriRasterizer()

blender::bke::pbvh::TriRasterizer::TriRasterizer ( const float2 uv0,
const float2 uv1,
const float2 uv2,
const int2 image_size )
inline

Member Function Documentation

◆ inside()

bool blender::bke::pbvh::TriRasterizer::inside ( const int x,
const int y ) const
inline

Member Data Documentation

◆ bounds


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