Non-Polygonal 3D cube rasterization Given a cube defined as:

struct Cube
{
    float min[3];
    float size;
};


What would be the fastest rasterization method? On the internet I only found methods that used polygons, but I think for only drawing a cube thats extremely ineffective. I don't need any depth information, I want the result to be a shadeless silhouette.
Since the cube is a convex object, you could first find the silhouette edges of the cube, by using dot product between cube face normals &amp; view vectors. Then you can sort the edges by the smallest screen y-coordinate for each edge and rasterize the cube a scanline at the time by filling the span between two active edges for each scanline. For each scanline you progress the two edges by adding the edge slopes (x1-x0)/(y1-y0) to the current x-coordinate of the edges.