multiagent-particle-envs icon indicating copy to clipboard operation
multiagent-particle-envs copied to clipboard

Filled polygon 2 loops?

Open tessavdheiden opened this issue 4 years ago • 0 comments

Hi developer(s),

Please check out this: https://github.com/openai/multiagent-particle-envs/blob/69ee7f85811c77ee651722bc3c332677b2195da1/multiagent/rendering.py#L232

line 232: for p in self.v: glVertex3f(p[0], p[1],0) # draw each vertex line 237: for p in self.v: glVertex3f(p[0], p[1],0) # draw each vertex

Is not one loop redundant?

tessavdheiden avatar Mar 13 '20 09:03 tessavdheiden