openai / multiagent-particle-envs

Code for a multi-agent particle environment used in the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
2.4k stars 790 forks source link

Filled polygon 2 loops? #65

Open tessavdheiden opened 4 years ago

tessavdheiden commented 4 years ago

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?