KrisLibrary
1.0.0
|
2D rasterization routines. More...
#include <KrisLibrary/structs/array2d.h>
#include <KrisLibrary/math3d/Triangle2D.h>
#include <KrisLibrary/math3d/AABB2D.h>
#include <KrisLibrary/math3d/Polygon2D.h>
#include <KrisLibrary/utils/IntPair.h>
#include <vector>
Go to the source code of this file.
Classes | |
struct | Meshing::Rasterizer2D |
A base class that allows rasterizing of 2D triangles into a grid. More... | |
struct | Meshing::FillRasterizer2D< T > |
A rasterizer that flat-fills elements of a grid. More... | |
struct | Meshing::SmoothFillRasterizer2D< T > |
A smooth-fill rasterizer. More... | |
Namespaces | |
Meshing | |
The namespace for all classes/functions in the Meshing package. | |
Functions | |
void | Meshing::GetSegmentCells (const Segment2D &tri, std::vector< IntPair > &cells) |
Returns a list of cells that the segment overlaps, given an infinite unit grid. | |
void | Meshing::GetTriangleCells (const Triangle2D &tri, std::vector< IntPair > &cells) |
Returns a list of cells that the triangle overlaps, given an infinite unit grid. | |
void | Meshing::GetTriangleCells_Clipped (const Triangle2D &tri, std::vector< IntPair > &cells, int imin, int jmin, int imax, int jmax) |
Returns a list of cells that the triangle overlaps, in a unit grid from [imin,imax)x[jmin,jmax) | |
2D rasterization routines.
3D rasterization routines.