Using Plots, is there a simple way to plot a 3D cube/rectangle?

Hello!

I found this nice function online:

rectangle(w, h, x, y) = Shape(x .+ [0,w,w,0], y .+ [0,0,h,h])

Which can produce:

x = y = 1
w = h = 1

plot(rectangle(w, h, x, y))

image

Does anyone know how to produce a 3d equivivalent ? :slight_smile:

Kind regards

I know this answer here:

I was wondering if I could do it using Shapes?

Or is this the go to approach?

Kind regards