def drawOval(self, tetra):
if len(tetra) != <NUM_LIT:4>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if hasattr(tetra[<NUM_LIT:0>], "<STR_LIT>"):<EOL><INDENT>q = Rect(tetra).quad<EOL><DEDENT>else:<EOL><INDENT>q = Quad(tetra)<EOL><DEDENT>mt = q.ul + (q.ur - q.ul) * <NUM_LIT:0.5><EOL>mr = q.ur + (q.lr - q.ur) * <NUM_LIT:0.5><EOL>mb = q.ll + (q.lr - q.ll) * <NUM_LIT:0.5><EOL>ml = q.ul + (q.ll - q.ul) * <NUM_LIT:0.5><EOL>if not (self.lastPoint == ml):<EOL><INDENT>self.draw_cont += "<STR_LIT>" % JM_TUPLE(ml * self.ipctm)<EOL>self.lastPoint = ml<EOL><DEDENT>self.drawCurve(ml, q.ll, mb)<EOL>self.drawCurve(mb, q.lr, mr)<EOL>self.drawCurve(mr, q.ur, mt)<EOL>self.drawCurve(mt, q.ul, ml)<EOL>self.updateRect(q.rect)<EOL>self.lastPoint = ml<EOL>return self.lastPoint<EOL>
Draw an ellipse inside a tetrapod.