# Transformations issues

**URL:** <https://discourse.processing.org/t/transformations-issues/24079>\
**Category:** Coding Questions\
**Created:** [September 23, 2020, 12:00pm UTC](https://discourse.processing.org/t/transformations-issues/24079 "2020-09-23T12:00:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [September 24, 2020, 5:18pm UTC](https://discourse.processing.org/t/transformations-issues/24079/6 "2020-09-24T17:18:37Z")

</div>

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:

1. 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)

2. use the Shapes 3D library – it has some really great tools for this.  
[http://www.lagers.org.uk/s3d4p/index.html](http://www.lagers.org.uk/s3d4p/index.html) – @quark also has a much older tutorial on creating a toroid class [http://lagers.org.uk/javafx/toroidclass.html](http://lagers.org.uk/javafx/toroidclass.html)

---

_[View the full topic](https://discourse.processing.org/t/transformations-issues/24079)._
