Closed maelp closed 6 months ago
ah it seems that "extrude" extrudes "symetrically around the center", eg a vertical extrusion of length L will extrude L/2 in the vertical direction and L/2 in the opposite direction? Perhaps it should be documented
I have explained the extrude
method here https://github.com/raydeleu/ReplicadManual/wiki/5.-Create-solid-shapes#521-extrude. I don't think that you are correct that the extrude is always symmetrical.
You are correct that it is a bit odd that the box is not centered on the origin, but I assume that is why the programmer calls it makeBaseBox
. It is a box with the base flat on the XY-plane. So it is probably not a bug but a feature :-)
Thanks, then I'm closing the issue (although I think the makeBaseBox behavior should probably be explained in some doc)
Isn't it a bit weird that the baseBox should be centered on the origin in x / y dimensions, but will not be centered in z dimension?
https://github.com/sgenoud/replicad/blob/c80d81918617dd10d0f004f750e180396390f30d/packages/replicad/src/shortcuts.ts#L10
perhaps it should be this?