MIRA
Namespaces | Functions
RasterTriangle.h File Reference

Rasterizes triangles scanline by scanline. More...

#include <geometry/Bresenham.h>
#include <geometry/Polygon.h>
#include <error/Exceptions.h>
Include dependency graph for RasterTriangle.h:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Functions

template<typename Visitor >
void rasterTriangle (Point2i p0, Point2i p1, Point2i p2, Visitor &&visitor)
 Rasters a triangle scanline by scanline. More...
 
template<typename Visitor >
void rasterTriangle (const Polygon2i &polygon, Visitor &&visitor)
 Same function as above, but with a nicer interface. More...
 

Detailed Description

Rasterizes triangles scanline by scanline.

Author
Erik Einhorn
Date
2010/10/15