r/OpenPythonSCAD • u/puplan • Mar 04 '26
How to make a pyramid with linear_extrude?
Google tells me that this should work:
pyr = linear_extrude(square(10, center=True), height=10, scale=0)
show(pyr)
but it produces a cube? What is the solution?
BTW, I can't find the documentation of linear_extrude parameters. Is there a better documentation source than https://old.reddit.com/r/openpythonscad/wiki/index ?
3
Upvotes
3
u/puplan Mar 04 '26
I made it with cylinder(h=10, r1=5, r2=0, fn=4), but still would like to know how to do it with linear_extrude.
2
u/gadget3D Mar 04 '26
you can do it with:
but yes: there is room for improvement