# Quad() gets drawn twice

**URL:** <https://discourse.processing.org/t/quad-gets-drawn-twice/24382>\
**Category:** Coding Questions\
**Created:** [October 6, 2020, 10:59am UTC](https://discourse.processing.org/t/quad-gets-drawn-twice/24382 "2020-10-06T10:59:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 6, 2020, 11:14am UTC](https://discourse.processing.org/t/quad-gets-drawn-twice/24382/5 "2020-10-06T11:14:14Z")

</div>

There is a discussion here about this:

> [@Transformations issues](https://discourse.processing.org/t/transformations-issues/24079/6):
>
> It isn’t quite that it ignores them entirely. It is that the coordinate space for the vertex data is based on the transformation matrix when you write “beginShape().” If you want a torus as a connected mesh, some good approaches are: use the equation for a torus, and compute the mesh coordinates without using translate / rotate – use sin/cos instead. This is how the [processing.org](http://processing.org) Toroid example does it, using QUAD\_STRIP for a square mesh. [https://processing.org/examples/toroid.html](https://processing.org/examples/toroid.html) use t…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/quad-gets-drawn-twice/24382)._
