|
Blender V5.3
|
#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 |
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.
|
inline |
Definition at line 40 of file pbvh_pixels_rasterize.hh.
References b, blender::Bounds< T >::Bounds(), bounds, blender::math::ceil(), blender::math::clamp(), blender::math::cross(), blender::math::floor(), blender::Bounds< T >::max, blender::math::max(), blender::Bounds< T >::min, blender::math::min(), blender::x, and y.
|
inline |
Definition at line 72 of file pbvh_pixels_rasterize.hh.
References blender::math::dot(), float, blender::x, and y.
Referenced by blender::bke::pbvh::uv_islands::add_uv_island(), and blender::bke::pbvh::pixels::extract_barycentric_pixels().
Definition at line 38 of file pbvh_pixels_rasterize.hh.
Referenced by blender::bke::pbvh::uv_islands::add_uv_island(), blender::bke::pbvh::pixels::extract_barycentric_pixels(), and TriRasterizer().