discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

progressively smaller

BR
Bob Roos
Thu, Jul 24, 2025 9:31 PM

Hello OpenSCAD,

Is there a way that this shape can get progressively smaller as the offset increases such that the X and Y dimensions are about 3mm smaller at the far end?

// MB dash pocket base
// Bob Roos
// July 24, 2025

include <BOSL2/std.scad> //or screws or threading
$fn=72;
Inch=25.4;
LHF = .28;      // Layer height for faster build
LH=.25; // Layer height after 1st layer
FL=.2; // first layer

W = 96;
H = 37.7;

Path=[[0,10],[2,18],[3,21],[6,23],[10,25],[38,37],[86,37],[90,36],[95,33],[96,27],[96,10],[95,6],[92,2],[86,0],[10,0],[5,2]];

offset_sweep(Path, height=56, bottom=os_circle(r=4), top=os_circle(r=4), steps=15);

--
Best regards,
Bob                          mailto:roosbob@wybatap.com

Hello OpenSCAD, Is there a way that this shape can get progressively smaller as the offset increases such that the X and Y dimensions are about 3mm smaller at the far end? // MB dash pocket base // Bob Roos // July 24, 2025 include <BOSL2/std.scad> //or screws or threading $fn=72; Inch=25.4; LHF = .28; // Layer height for faster build LH=.25; // Layer height after 1st layer FL=.2; // first layer W = 96; H = 37.7; Path=[[0,10],[2,18],[3,21],[6,23],[10,25],[38,37],[86,37],[90,36],[95,33],[96,27],[96,10],[95,6],[92,2],[86,0],[10,0],[5,2]]; offset_sweep(Path, height=56, bottom=os_circle(r=4), top=os_circle(r=4), steps=15); -- Best regards, Bob mailto:roosbob@wybatap.com
AM
Adrian Mariano
Thu, Jul 24, 2025 11:03 PM

If you want it to "get smaller" in an offset way then you can use a custom
offset_sweep profile and give the exact curve you want at that end.  If you
want it to get smaller by scaling then I think you need to do it all
manually:  create a bunch of offsets, scale them as desired and link
together with skin().

On Thu, Jul 24, 2025 at 5:32 PM Bob Roos via Discuss <
discuss@lists.openscad.org> wrote:

Hello OpenSCAD,

Is there a way that this shape can get progressively smaller as the
offset increases such that the X and Y dimensions are about 3mm smaller at
the far end?

// MB dash pocket base
// Bob Roos
// July 24, 2025

include <BOSL2/std.scad> //or screws or threading
$fn=72;
Inch=25.4;
LHF = .28;      // Layer height for faster build
LH=.25; // Layer height after 1st layer
FL=.2; // first layer

W = 96;
H = 37.7;

Path=[[0,10],[2,18],[3,21],[6,23],[10,25],[38,37],[86,37],[90,36],[95,33],[96,27],[96,10],[95,6],[92,2],[86,0],[10,0],[5,2]];

 offset_sweep(Path, height=56, bottom=os_circle(r=4),

top=os_circle(r=4), steps=15);

--
Best regards,
Bob                          mailto:roosbob@wybatap.com


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

If you want it to "get smaller" in an offset way then you can use a custom offset_sweep profile and give the exact curve you want at that end. If you want it to get smaller by scaling then I think you need to do it all manually: create a bunch of offsets, scale them as desired and link together with skin(). On Thu, Jul 24, 2025 at 5:32 PM Bob Roos via Discuss < discuss@lists.openscad.org> wrote: > Hello OpenSCAD, > > Is there a way that this shape can get progressively smaller as the > offset increases such that the X and Y dimensions are about 3mm smaller at > the far end? > > // MB dash pocket base > // Bob Roos > // July 24, 2025 > > include <BOSL2/std.scad> //or screws or threading > $fn=72; > Inch=25.4; > LHF = .28; // Layer height for faster build > LH=.25; // Layer height after 1st layer > FL=.2; // first layer > > W = 96; > H = 37.7; > > > Path=[[0,10],[2,18],[3,21],[6,23],[10,25],[38,37],[86,37],[90,36],[95,33],[96,27],[96,10],[95,6],[92,2],[86,0],[10,0],[5,2]]; > > offset_sweep(Path, height=56, bottom=os_circle(r=4), > top=os_circle(r=4), steps=15); > > -- > Best regards, > Bob mailto:roosbob@wybatap.com > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >