[OpenSCAD] feature request: resize

Giles Bathgate giles.bathgate at gmail.com
Tue Aug 9 17:55:04 CEST 2011


On 9 August 2011 16:46, Tony Buser <tbuser at gmail.com> wrote:
> That's close, but still requires that you know what the dimensions of the
> stl are ahead of time in order to make the resize scale proportionally when
> I just want to scale one axis to a specific size.

Yeah, so when you supply 0 for any of the vector values, it would
leave those axis alone accordingly (since you can't have a primitive
of 0 size)

resize([10,0,0]) cube([5,2,1]);

would do:

scale([2,1,1]) cube([5,2,1]);

..and you would get a cube of 10x2x1

(There was also the 'autosize=true' flag as suggested by don, but I
don't think its necessary.)

Regards

Giles


More information about the OpenSCAD mailing list