Share your code.
Takes a 2D shape and generates the sides of an extruded mesh. One half of making 2D shapes into 3D models.
extrude(out, shape1, bottom, top[, shape2])
outis an array-like object to output the results to. Pass something falsey to have a new one created for you instead.
shape1is a flat array-like object listing the vertices in 2D space of the object to extrude. e.g.
[x0, y0, x1, y1, x2, y2, ...]
bottomis the bottom y-position of the 3D mesh to be generated.
topis the top y-position of the 3D mesh to be generated.
shape2is an optional second shape to use for the opposite face. Otherwise,
shape1will be used in its place.
shape, generates an index of faces for the associated mesh. You can
also draw the triangles directly using