/* Draw a line with bresenham Algo from v1 to v2 with color */ void GLBox::bresenhamLine(Vec3d v1, Vec3d v2, Color color) { double d1[3]; double d2[3]; v1.getData(d1); v2.getData(d2); Point2D p1 (int(d1[0] + 0.5), int(d1[1] + 0.5)); Point2D p2 (int(d2[0] + 0.5), int(d2[1] + 0.5)); bresenhamLine(p1, p2, color); }
void GLBox::bresenhamCircle(Vec3d center, int radius, Color color) { double d[3]; center.getData(d); Point2D p1 (int(d[0] + 0.5), int(d[1] + 0.5)); bresenhamCircle(p1,radius,color); }