discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

offset_sweep()

JW
Joe Weinpert
Tue, Jan 18, 2022 8:21 PM

This is what I use for a simple chamfer:

offset_sweep(
objPoints,
height = 25.4,
top = os_chamfer( width = 12.7 )
);

And each of these clauses works fine

top = os_circle( r = 12 )
-OR-
top = os_teardrop( r = 12 )

However, if I wanted just a steep side or top (say 10 degree angle ), or a
shallow side or top angle, or simply making the top of the extrusion
smaller than the bottom  (a non-vertical side) then how would that be done?

This is what I use for a simple chamfer: offset_sweep( objPoints, height = 25.4, top = os_chamfer( width = 12.7 ) ); And each of these clauses works fine top = os_circle( r = 12 ) -OR- top = os_teardrop( r = 12 ) However, if I wanted just a steep side or top (say 10 degree angle ), or a shallow side or top angle, or simply making the top of the extrusion smaller than the bottom (a non-vertical side) then how would that be done?
AM
Adrian Mariano
Wed, Jan 19, 2022 1:12 AM

It seems like "just a steep side or top" should be possible with
os_chamfer by specifying the desired angle.  But to achieve the full
generality you simply need to use os_profile().  You can then specify
the sequence of offsets that you want and their corresponding heights,
so you can get any shape you want.

On Tue, Jan 18, 2022 at 3:22 PM Joe Weinpert joe.weinpert@gmail.com wrote:

This is what I use for a simple chamfer:

offset_sweep(
objPoints,
height = 25.4,
top = os_chamfer( width = 12.7 )
);

And each of these clauses works fine

top = os_circle( r = 12 )
-OR-
top = os_teardrop( r = 12 )

However, if I wanted just a steep side or top (say 10 degree angle ), or a shallow side or top angle, or simply making the top of the extrusion smaller than the bottom  (a non-vertical side) then how would that be done?


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

It seems like "just a steep side or top" should be possible with os_chamfer by specifying the desired angle. But to achieve the full generality you simply need to use os_profile(). You can then specify the sequence of offsets that you want and their corresponding heights, so you can get any shape you want. On Tue, Jan 18, 2022 at 3:22 PM Joe Weinpert <joe.weinpert@gmail.com> wrote: > > > This is what I use for a simple chamfer: > > offset_sweep( > objPoints, > height = 25.4, > top = os_chamfer( width = 12.7 ) > ); > > > And each of these clauses works fine > > top = os_circle( r = 12 ) > -OR- > top = os_teardrop( r = 12 ) > > However, if I wanted just a steep side or top (say 10 degree angle ), or a shallow side or top angle, or simply making the top of the extrusion smaller than the bottom (a non-vertical side) then how would that be done? > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JW
Joe Weinpert
Wed, Jan 19, 2022 3:36 PM

Been looking at the offset_sweep() docs and playing with your suggestions.
Looks great so far.  What is the purpose of "joint" and "cut"?

On Tue, Jan 18, 2022 at 8:13 PM Adrian Mariano avm4@cornell.edu wrote:

It seems like "just a steep side or top" should be possible with
os_chamfer by specifying the desired angle.  But to achieve the full
generality you simply need to use os_profile().  You can then specify
the sequence of offsets that you want and their corresponding heights,
so you can get any shape you want.

On Tue, Jan 18, 2022 at 3:22 PM Joe Weinpert joe.weinpert@gmail.com
wrote:

This is what I use for a simple chamfer:

offset_sweep(
objPoints,
height = 25.4,
top = os_chamfer( width = 12.7 )
);

And each of these clauses works fine

top = os_circle( r = 12 )
-OR-
top = os_teardrop( r = 12 )

However, if I wanted just a steep side or top (say 10 degree angle ), or

a shallow side or top angle, or simply making the top of the extrusion
smaller than the bottom  (a non-vertical side) then how would that be done?


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


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

Been looking at the offset_sweep() docs and playing with your suggestions. Looks great so far. What is the purpose of "joint" and "cut"? On Tue, Jan 18, 2022 at 8:13 PM Adrian Mariano <avm4@cornell.edu> wrote: > It seems like "just a steep side or top" should be possible with > os_chamfer by specifying the desired angle. But to achieve the full > generality you simply need to use os_profile(). You can then specify > the sequence of offsets that you want and their corresponding heights, > so you can get any shape you want. > > On Tue, Jan 18, 2022 at 3:22 PM Joe Weinpert <joe.weinpert@gmail.com> > wrote: > > > > > > This is what I use for a simple chamfer: > > > > offset_sweep( > > objPoints, > > height = 25.4, > > top = os_chamfer( width = 12.7 ) > > ); > > > > > > And each of these clauses works fine > > > > top = os_circle( r = 12 ) > > -OR- > > top = os_teardrop( r = 12 ) > > > > However, if I wanted just a steep side or top (say 10 degree angle ), or > a shallow side or top angle, or simply making the top of the extrusion > smaller than the bottom (a non-vertical side) then how would that be done? > > > > > > > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
AM
Adrian Mariano
Wed, Jan 19, 2022 10:36 PM

The parameters "joint" and "cut" are alternative ways to specify the
size of a roundover instead of using radius, which can be confusing
for sharp corners, and which doesn't exist for continuous curvature
rounding.  Check the BOSL2 docs for round_corners.  It is explained
there, with Figures 1-3.  (I am thinking maybe I will make a top
section on roundovers that I can link for the various functions that
use "joint" and "cut" to make it easier to figure this out.)

On Wed, Jan 19, 2022 at 10:37 AM Joe Weinpert joe.weinpert@gmail.com wrote:

Been looking at the offset_sweep() docs and playing with your suggestions. Looks great so far.  What is the purpose of "joint" and "cut"?

On Tue, Jan 18, 2022 at 8:13 PM Adrian Mariano avm4@cornell.edu wrote:

It seems like "just a steep side or top" should be possible with
os_chamfer by specifying the desired angle.  But to achieve the full
generality you simply need to use os_profile().  You can then specify
the sequence of offsets that you want and their corresponding heights,
so you can get any shape you want.

On Tue, Jan 18, 2022 at 3:22 PM Joe Weinpert joe.weinpert@gmail.com wrote:

This is what I use for a simple chamfer:

offset_sweep(
objPoints,
height = 25.4,
top = os_chamfer( width = 12.7 )
);

And each of these clauses works fine

top = os_circle( r = 12 )
-OR-
top = os_teardrop( r = 12 )

However, if I wanted just a steep side or top (say 10 degree angle ), or a shallow side or top angle, or simply making the top of the extrusion smaller than the bottom  (a non-vertical side) then how would that be done?


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


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


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

The parameters "joint" and "cut" are alternative ways to specify the size of a roundover instead of using radius, which can be confusing for sharp corners, and which doesn't exist for continuous curvature rounding. Check the BOSL2 docs for round_corners. It is explained there, with Figures 1-3. (I am thinking maybe I will make a top section on roundovers that I can link for the various functions that use "joint" and "cut" to make it easier to figure this out.) On Wed, Jan 19, 2022 at 10:37 AM Joe Weinpert <joe.weinpert@gmail.com> wrote: > > Been looking at the offset_sweep() docs and playing with your suggestions. Looks great so far. What is the purpose of "joint" and "cut"? > > > On Tue, Jan 18, 2022 at 8:13 PM Adrian Mariano <avm4@cornell.edu> wrote: >> >> It seems like "just a steep side or top" should be possible with >> os_chamfer by specifying the desired angle. But to achieve the full >> generality you simply need to use os_profile(). You can then specify >> the sequence of offsets that you want and their corresponding heights, >> so you can get any shape you want. >> >> On Tue, Jan 18, 2022 at 3:22 PM Joe Weinpert <joe.weinpert@gmail.com> wrote: >> > >> > >> > This is what I use for a simple chamfer: >> > >> > offset_sweep( >> > objPoints, >> > height = 25.4, >> > top = os_chamfer( width = 12.7 ) >> > ); >> > >> > >> > And each of these clauses works fine >> > >> > top = os_circle( r = 12 ) >> > -OR- >> > top = os_teardrop( r = 12 ) >> > >> > However, if I wanted just a steep side or top (say 10 degree angle ), or a shallow side or top angle, or simply making the top of the extrusion smaller than the bottom (a non-vertical side) then how would that be done? >> > >> > >> > >> > _______________________________________________ >> > OpenSCAD mailing list >> > To unsubscribe send an email to discuss-leave@lists.openscad.org >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org