On 03/02/2013 at 05:47, xxxxxxxx wrote:
Hi
Im trying to draw a simple rectangle to screen space as a visual aid for the user. But when i do this, i cant draw the fourth corner. What am i doing wrong? Colors are just for debugging:
def main() :
bd = doc.GetActiveBaseDraw()
bd.SetMatrix_Screen()
p = ( c4d.Vector(200,200,0), c4d.Vector(200,400,0), c4d.Vector(400,400,0), c4d.Vector(400,200, 0) )
f = ( c4d.Vector(1,0,0), c4d.Vector(0,1,0), c4d.Vector(0,0,1), c4d.Vector(0,0,0) )
bd.DrawPolygon(p, f)
Cheers
Bonsak