# Drawing, duplicating wireframe

**URL:** <https://discourse.processing.org/t/drawing-duplicating-wireframe/25099>\
**Category:** Processing.py\
**Created:** [November 1, 2020, 5:03am UTC](https://discourse.processing.org/t/drawing-duplicating-wireframe/25099 "2020-11-01T05:03:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![slashwreck](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Post date:** [November 1, 2020, 5:03am UTC](https://discourse.processing.org/t/drawing-duplicating-wireframe/25099/1 "2020-11-01T05:03:03Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/d1314b1ef4b0a3dd030b78f99f2023e9054ca393.jpeg)

I want to draw an arbitrary number of wireframe cubes over each top of each other.

I’ll do this in processing python mode. I’m wondering what the most ‘pythonic’ way to do this is.

I suspect at the very least, I make code to draw the inner cube, and instead of writing different code for the outer layers, I just `scale()` the canvas/reference frame larger, and redraw.

But I wonder if there is a clever way to draw the walls of the cube, rather than me specifying 9 distinct line segments to draw.

Any tips for clean code on this ?

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [November 1, 2020, 5:26am UTC](https://discourse.processing.org/t/drawing-duplicating-wireframe/25099/2 "2020-11-01T05:26:42Z")

</div>

Do you plan to use the 2D or 3D renderer?

---

<div class="post-metadata">

**Author:** ![slashwreck](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Post date:** [November 1, 2020, 7:00am UTC](https://discourse.processing.org/t/drawing-duplicating-wireframe/25099/3 "2020-11-01T07:00:58Z")

</div>

As a prototype, I used the 3d renderer, but ultimately I will export it as SVG for plotting on axidraw.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 1, 2020, 6:31pm UTC](https://discourse.processing.org/t/drawing-duplicating-wireframe/25099/4 "2020-11-01T18:31:05Z")

</div>

Can’t you use the box() command and use noFill() before it?

---

<div class="post-metadata">

**Author:** ![slashwreck](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Post date:** [November 5, 2020, 9:05am UTC](https://discourse.processing.org/t/drawing-duplicating-wireframe/25099/5 "2020-11-05T09:05:03Z")

</div>

yeah that’s what I ended up doing.
