SP
Sanjeev Prabhakar
Mon, Aug 28, 2023 11:59 PM
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written in
pure openscad could be helpful in sheet bending applications
[image: Screenshot 2023-08-29 at 5.21.31 AM.png]
here is the attached openscad file
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written in
pure openscad could be helpful in sheet bending applications
[image: Screenshot 2023-08-29 at 5.21.31 AM.png]
here is the attached openscad file
RD
Revar Desmera
Tue, Aug 29, 2023 1:06 AM
Hmm. Is the magenta path strictly in the YZ plane?
-Revar
On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com wrote:
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written in pure openscad could be helpful in sheet bending applications
<Screenshot 2023-08-29 at 5.21.31 AM.png>
here is the attached openscad file
<bending a section on a given path.scad>
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Hmm. Is the magenta path strictly in the YZ plane?
-Revar
> On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote:
>
>
> written a function to bend any section to a given path.
> e.g. in below picture
> blue line is the section
> magenta line is path
> cyan line is the section bent as per path
>
> I found this to be quite useful in many cases and if this can be written in pure openscad could be helpful in sheet bending applications
> <Screenshot 2023-08-29 at 5.21.31 AM.png>
>
> here is the attached openscad file
>
> <bending a section on a given path.scad>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
SP
Sanjeev Prabhakar
Tue, Aug 29, 2023 1:17 AM
Hmm. Is the magenta path strictly in the YZ plane?
-Revar
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written
in pure openscad could be helpful in sheet bending applications
<Screenshot 2023-08-29 at 5.21.31 AM.png>
here is the attached openscad file
<bending a section on a given path.scad>
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Yes
On Tue, 29 Aug, 2023, 6:37 am Revar Desmera, <revarbat@gmail.com> wrote:
> Hmm. Is the magenta path strictly in the YZ plane?
>
> -Revar
>
> > On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com>
> wrote:
> >
> >
> > written a function to bend any section to a given path.
> > e.g. in below picture
> > blue line is the section
> > magenta line is path
> > cyan line is the section bent as per path
> >
> > I found this to be quite useful in many cases and if this can be written
> in pure openscad could be helpful in sheet bending applications
> > <Screenshot 2023-08-29 at 5.21.31 AM.png>
> >
> > here is the attached openscad file
> >
> > <bending a section on a given path.scad>
> > _______________________________________________
> > 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
>
RD
Revar Desmera
Tue, Aug 29, 2023 4:40 AM
I think this does what you want in pure, library-free OpenSCAD:
function lerp_vals(a,b,u) = (1-u)a + ub;
function subdivide_path_y(path, maxy=0.1) =
let(plen = len(path))
[
for (i = [0:1:plen-1])
let(
p1 = path[i],
p2 = path[(i+1)%plen],
steps = max(1,ceil(abs(p2.y-p1.y)/maxy))
)
for(j = [0:1:steps-1])
lerp_vals(p1,p2,j/steps),
];
function dist_index_table(path, i=0, dist=0, out=[]) =
let( lp = len(path) )
i >= lp? out :
i == lp-1? [ each out, [dist,i] ] :
dist_index_table(
path, i+1,
dist + norm(path[i+1]-path[i]),
[each out, [dist,i] ]
);
function fold_to_path(path, poly, maxy=0.1) =
let(
lup = dist_index_table(path),
spoly = subdivide_path_y(poly, maxy)
) [
for (p = spoly)
let(
i = lookup(p.y,lup),
ii = floor(i),
u = i - ii,
pp = lerp_vals(path[ii], path[ii+1], u)
)
pp + [p.x,0,0]
];
On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com wrote:
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written in pure openscad could be helpful in sheet bending applications
<Screenshot 2023-08-29 at 5.21.31 AM.png>
here is the attached openscad file
<bending a section on a given path.scad>_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I think this does what you want in pure, library-free OpenSCAD:
function lerp_vals(a,b,u) = (1-u)*a + u*b;
function subdivide_path_y(path, maxy=0.1) =
let(plen = len(path))
[
for (i = [0:1:plen-1])
let(
p1 = path[i],
p2 = path[(i+1)%plen],
steps = max(1,ceil(abs(p2.y-p1.y)/maxy))
)
for(j = [0:1:steps-1])
lerp_vals(p1,p2,j/steps),
];
function dist_index_table(path, i=0, dist=0, out=[]) =
let( lp = len(path) )
i >= lp? out :
i == lp-1? [ each out, [dist,i] ] :
dist_index_table(
path, i+1,
dist + norm(path[i+1]-path[i]),
[each out, [dist,i] ]
);
function fold_to_path(path, poly, maxy=0.1) =
let(
lup = dist_index_table(path),
spoly = subdivide_path_y(poly, maxy)
) [
for (p = spoly)
let(
i = lookup(p.y,lup),
ii = floor(i),
u = i - ii,
pp = lerp_vals(path[ii], path[ii+1], u)
)
pp + [p.x,0,0]
];
- Revar
> On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote:
>
> written a function to bend any section to a given path.
> e.g. in below picture
> blue line is the section
> magenta line is path
> cyan line is the section bent as per path
>
> I found this to be quite useful in many cases and if this can be written in pure openscad could be helpful in sheet bending applications
> <Screenshot 2023-08-29 at 5.21.31 AM.png>
> here is the attached openscad file
>
> <bending a section on a given path.scad>_______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
SP
Sanjeev Prabhakar
Tue, Aug 29, 2023 8:47 AM
An example would be better to understand this
regards
On Tue, 29 Aug 2023, 10:10 Revar Desmera, revarbat@gmail.com wrote:
I think this does what you want in pure, library-free OpenSCAD:
function lerp_vals(a,b,u) = (1-u)a + ub;
function subdivide_path_y(path, maxy=0.1) =
let(plen = len(path))
[
for (i = [0:1:plen-1])
let(
p1 = path[i],
p2 = path[(i+1)%plen],
steps = max(1,ceil(abs(p2.y-p1.y)/maxy))
)
for(j = [0:1:steps-1])
lerp_vals(p1,p2,j/steps),
];
function dist_index_table(path, i=0, dist=0, out=[]) =
let( lp = len(path) )
i >= lp? out :
i == lp-1? [ each out, [dist,i] ] :
dist_index_table(
path, i+1,
dist + norm(path[i+1]-path[i]),
[each out, [dist,i] ]
);
function fold_to_path(path, poly, maxy=0.1) =
let(
lup = dist_index_table(path),
spoly = subdivide_path_y(poly, maxy)
) [
for (p = spoly)
let(
i = lookup(p.y,lup),
ii = floor(i),
u = i - ii,
pp = lerp_vals(path[ii], path[ii+1], u)
)
pp + [p.x,0,0]
];
On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written
in pure openscad could be helpful in sheet bending applications
<Screenshot 2023-08-29 at 5.21.31 AM.png>
here is the attached openscad file
<bending a section on a given path.scad>
_______________________________________________
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
An example would be better to understand this
regards
On Tue, 29 Aug 2023, 10:10 Revar Desmera, <revarbat@gmail.com> wrote:
> I think this does what you want in pure, library-free OpenSCAD:
>
> function lerp_vals(a,b,u) = (1-u)*a + u*b;
>
> function subdivide_path_y(path, maxy=0.1) =
> let(plen = len(path))
> [
> for (i = [0:1:plen-1])
> let(
> p1 = path[i],
> p2 = path[(i+1)%plen],
> steps = max(1,ceil(abs(p2.y-p1.y)/maxy))
> )
> for(j = [0:1:steps-1])
> lerp_vals(p1,p2,j/steps),
> ];
>
> function dist_index_table(path, i=0, dist=0, out=[]) =
> let( lp = len(path) )
> i >= lp? out :
> i == lp-1? [ each out, [dist,i] ] :
> dist_index_table(
> path, i+1,
> dist + norm(path[i+1]-path[i]),
> [each out, [dist,i] ]
> );
>
> function fold_to_path(path, poly, maxy=0.1) =
> let(
> lup = dist_index_table(path),
> spoly = subdivide_path_y(poly, maxy)
> ) [
> for (p = spoly)
> let(
> i = lookup(p.y,lup),
> ii = floor(i),
> u = i - ii,
> pp = lerp_vals(path[ii], path[ii+1], u)
> )
> pp + [p.x,0,0]
> ];
>
> - Revar
>
>
> On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com>
> wrote:
>
> written a function to bend any section to a given path.
> e.g. in below picture
> blue line is the section
> magenta line is path
> cyan line is the section bent as per path
>
> I found this to be quite useful in many cases and if this can be written
> in pure openscad could be helpful in sheet bending applications
> <Screenshot 2023-08-29 at 5.21.31 AM.png>
> here is the attached openscad file
>
> <bending a section on a given path.scad>
> _______________________________________________
> 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
>
RD
Revar Desmera
Tue, Aug 29, 2023 8:55 AM
While the implementation itself uses no libraries, the code used to generate the paths and polygons to replicate your example, is far far easier to write using BOSL2:
include <BOSL2/std.scad>
// Put previously posted implementation code here
path2 = [
[0,0],
each arc(r=3.0, corner=[[0,0], [10,0], [5,10]]),
each arc(r=1.75, corner=[[10,0], [5,10], [10,10]]),
each arc(r=1.75, corner=[[5,10], [10,10], [10,5]]),
each arc(r=1.0, corner=[[10,10], [10,5], [25,5]]),
[25,5],
];
path = apply(rot(90)*xrot(90), path3d(path2));
poly = [
each arc(r=2, corner=[[0,30],[-10,20],[-10,0]]),
each arc(r=2, corner=[[-10,20],[-10,0],[10,0]]),
each arc(r=2, corner=[[-10,0],[10,0],[10,20]]),
each arc(r=2, corner=[[10,0],[10,20],[0,30]]),
each arc(r=3, corner=[[10,20],[0,30],[-10,20]]),
];
fpoly = fold_to_path(path, poly, 0.1);
color("magenta") stroke(path, width=0.5);
color("blue") stroke(path3d(poly),closed=true, width=0.5);
color("cyan") stroke(path3d(fpoly),closed=true, width=0.5);

I think this does what you want in pure, library-free OpenSCAD:
function lerp_vals(a,b,u) = (1-u)a + ub;
function subdivide_path_y(path, maxy=0.1) =
let(plen = len(path))
[
for (i = [0:1:plen-1])
let(
p1 = path[i],
p2 = path[(i+1)%plen],
steps = max(1,ceil(abs(p2.y-p1.y)/maxy))
)
for(j = [0:1:steps-1])
lerp_vals(p1,p2,j/steps),
];
function dist_index_table(path, i=0, dist=0, out=[]) =
let( lp = len(path) )
i >= lp? out :
i == lp-1? [ each out, [dist,i] ] :
dist_index_table(
path, i+1,
dist + norm(path[i+1]-path[i]),
[each out, [dist,i] ]
);
function fold_to_path(path, poly, maxy=0.1) =
let(
lup = dist_index_table(path),
spoly = subdivide_path_y(poly, maxy)
) [
for (p = spoly)
let(
i = lookup(p.y,lup),
ii = floor(i),
u = i - ii,
pp = lerp_vals(path[ii], path[ii+1], u)
)
pp + [p.x,0,0]
];
On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com mailto:sprabhakar2006@gmail.com> wrote:
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written in pure openscad could be helpful in sheet bending applications
<Screenshot 2023-08-29 at 5.21.31 AM.png>
here is the attached openscad file
<bending a section on a given path.scad>_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org mailto:discuss-leave@lists.openscad.org
While the implementation itself uses no libraries, the code used to generate the paths and polygons to replicate your example, is far far easier to write using BOSL2:
include <BOSL2/std.scad>
// Put previously posted implementation code here
path2 = [
[0,0],
each arc(r=3.0, corner=[[0,0], [10,0], [5,10]]),
each arc(r=1.75, corner=[[10,0], [5,10], [10,10]]),
each arc(r=1.75, corner=[[5,10], [10,10], [10,5]]),
each arc(r=1.0, corner=[[10,10], [10,5], [25,5]]),
[25,5],
];
path = apply(rot(90)*xrot(90), path3d(path2));
poly = [
each arc(r=2, corner=[[0,30],[-10,20],[-10,0]]),
each arc(r=2, corner=[[-10,20],[-10,0],[10,0]]),
each arc(r=2, corner=[[-10,0],[10,0],[10,20]]),
each arc(r=2, corner=[[10,0],[10,20],[0,30]]),
each arc(r=3, corner=[[10,20],[0,30],[-10,20]]),
];
fpoly = fold_to_path(path, poly, 0.1);
color("magenta") stroke(path, width=0.5);
color("blue") stroke(path3d(poly),closed=true, width=0.5);
color("cyan") stroke(path3d(fpoly),closed=true, width=0.5);

- Revar
> On Aug 29, 2023, at 1:47 AM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote:
>
> An example would be better to understand this
> regards
>
> On Tue, 29 Aug 2023, 10:10 Revar Desmera, <revarbat@gmail.com <mailto:revarbat@gmail.com>> wrote:
>> I think this does what you want in pure, library-free OpenSCAD:
>>
>> function lerp_vals(a,b,u) = (1-u)*a + u*b;
>>
>> function subdivide_path_y(path, maxy=0.1) =
>> let(plen = len(path))
>> [
>> for (i = [0:1:plen-1])
>> let(
>> p1 = path[i],
>> p2 = path[(i+1)%plen],
>> steps = max(1,ceil(abs(p2.y-p1.y)/maxy))
>> )
>> for(j = [0:1:steps-1])
>> lerp_vals(p1,p2,j/steps),
>> ];
>>
>> function dist_index_table(path, i=0, dist=0, out=[]) =
>> let( lp = len(path) )
>> i >= lp? out :
>> i == lp-1? [ each out, [dist,i] ] :
>> dist_index_table(
>> path, i+1,
>> dist + norm(path[i+1]-path[i]),
>> [each out, [dist,i] ]
>> );
>>
>> function fold_to_path(path, poly, maxy=0.1) =
>> let(
>> lup = dist_index_table(path),
>> spoly = subdivide_path_y(poly, maxy)
>> ) [
>> for (p = spoly)
>> let(
>> i = lookup(p.y,lup),
>> ii = floor(i),
>> u = i - ii,
>> pp = lerp_vals(path[ii], path[ii+1], u)
>> )
>> pp + [p.x,0,0]
>> ];
>>
>> - Revar
>>
>>
>>> On Aug 28, 2023, at 4:59 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com <mailto:sprabhakar2006@gmail.com>> wrote:
>>>
>>> written a function to bend any section to a given path.
>>> e.g. in below picture
>>> blue line is the section
>>> magenta line is path
>>> cyan line is the section bent as per path
>>>
>>> I found this to be quite useful in many cases and if this can be written in pure openscad could be helpful in sheet bending applications
>>> <Screenshot 2023-08-29 at 5.21.31 AM.png>
>>> here is the attached openscad file
>>>
>>> <bending a section on a given path.scad>_______________________________________________
>>> OpenSCAD mailing list
>>> To unsubscribe send an email to discuss-leave@lists.openscad.org <mailto:discuss-leave@lists.openscad.org>
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org <mailto:discuss-leave@lists.openscad.org>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
AM
Adrian Mariano
Tue, Aug 29, 2023 10:12 AM
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written
in pure openscad could be helpful in sheet bending applications
[image: Screenshot 2023-08-29 at 5.21.31 AM.png]
here is the attached openscad file
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
So what is this actually useful for?
On Mon, Aug 28, 2023 at 8:00 PM Sanjeev Prabhakar <sprabhakar2006@gmail.com>
wrote:
> written a function to bend any section to a given path.
> e.g. in below picture
> blue line is the section
> magenta line is path
> cyan line is the section bent as per path
>
> I found this to be quite useful in many cases and if this can be written
> in pure openscad could be helpful in sheet bending applications
> [image: Screenshot 2023-08-29 at 5.21.31 AM.png]
> here is the attached openscad file
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
GS
Guenther Sohler
Tue, Aug 29, 2023 10:16 AM
Simple example: create simple textures on existing faces...
Adrian Mariano avm4@cornell.edu schrieb am Di., 29. Aug. 2023, 12:13:
So what is this actually useful for?
On Mon, Aug 28, 2023 at 8:00 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written
in pure openscad could be helpful in sheet bending applications
[image: Screenshot 2023-08-29 at 5.21.31 AM.png]
here is the attached openscad file
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Simple example: create simple textures on existing faces...
Adrian Mariano <avm4@cornell.edu> schrieb am Di., 29. Aug. 2023, 12:13:
> So what is this actually useful for?
>
> On Mon, Aug 28, 2023 at 8:00 PM Sanjeev Prabhakar <
> sprabhakar2006@gmail.com> wrote:
>
>> written a function to bend any section to a given path.
>> e.g. in below picture
>> blue line is the section
>> magenta line is path
>> cyan line is the section bent as per path
>>
>> I found this to be quite useful in many cases and if this can be written
>> in pure openscad could be helpful in sheet bending applications
>> [image: Screenshot 2023-08-29 at 5.21.31 AM.png]
>> here is the attached openscad file
>>
>> _______________________________________________
>> 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
Tue, Aug 29, 2023 10:48 AM
It doesn't create a texture unless you have a way of triangulating it to
make it into a 3d surface.
On Tue, Aug 29, 2023 at 6:17 AM Guenther Sohler guenther.sohler@gmail.com
wrote:
Simple example: create simple textures on existing faces...
Adrian Mariano avm4@cornell.edu schrieb am Di., 29. Aug. 2023, 12:13:
So what is this actually useful for?
On Mon, Aug 28, 2023 at 8:00 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be written
in pure openscad could be helpful in sheet bending applications
[image: Screenshot 2023-08-29 at 5.21.31 AM.png]
here is the attached openscad file
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
It doesn't create a texture unless you have a way of triangulating it to
make it into a 3d surface.
On Tue, Aug 29, 2023 at 6:17 AM Guenther Sohler <guenther.sohler@gmail.com>
wrote:
> Simple example: create simple textures on existing faces...
>
>
> Adrian Mariano <avm4@cornell.edu> schrieb am Di., 29. Aug. 2023, 12:13:
>
>> So what is this actually useful for?
>>
>> On Mon, Aug 28, 2023 at 8:00 PM Sanjeev Prabhakar <
>> sprabhakar2006@gmail.com> wrote:
>>
>>> written a function to bend any section to a given path.
>>> e.g. in below picture
>>> blue line is the section
>>> magenta line is path
>>> cyan line is the section bent as per path
>>>
>>> I found this to be quite useful in many cases and if this can be written
>>> in pure openscad could be helpful in sheet bending applications
>>> [image: Screenshot 2023-08-29 at 5.21.31 AM.png]
>>> here is the attached openscad file
>>>
>>> _______________________________________________
>>> 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
>
SP
Sanjeev Prabhakar
Tue, Aug 29, 2023 12:00 PM
uses depends on how you apply a concept
e.g. I made the below cylinderical box with this.
There are always different ways to do the same thing though
On Tue, 29 Aug 2023, 16:19 Adrian Mariano, avm4@cornell.edu wrote:
It doesn't create a texture unless you have a way of triangulating it to
make it into a 3d surface.
On Tue, Aug 29, 2023 at 6:17 AM Guenther Sohler guenther.sohler@gmail.com
wrote:
Simple example: create simple textures on existing faces...
Adrian Mariano avm4@cornell.edu schrieb am Di., 29. Aug. 2023, 12:13:
So what is this actually useful for?
On Mon, Aug 28, 2023 at 8:00 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:
written a function to bend any section to a given path.
e.g. in below picture
blue line is the section
magenta line is path
cyan line is the section bent as per path
I found this to be quite useful in many cases and if this can be
written in pure openscad could be helpful in sheet bending applications
[image: Screenshot 2023-08-29 at 5.21.31 AM.png]
here is the attached openscad file
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
uses depends on how you apply a concept
e.g. I made the below cylinderical box with this.
There are always different ways to do the same thing though
On Tue, 29 Aug 2023, 16:19 Adrian Mariano, <avm4@cornell.edu> wrote:
> It doesn't create a texture unless you have a way of triangulating it to
> make it into a 3d surface.
>
> On Tue, Aug 29, 2023 at 6:17 AM Guenther Sohler <guenther.sohler@gmail.com>
> wrote:
>
>> Simple example: create simple textures on existing faces...
>>
>>
>> Adrian Mariano <avm4@cornell.edu> schrieb am Di., 29. Aug. 2023, 12:13:
>>
>>> So what is this actually useful for?
>>>
>>> On Mon, Aug 28, 2023 at 8:00 PM Sanjeev Prabhakar <
>>> sprabhakar2006@gmail.com> wrote:
>>>
>>>> written a function to bend any section to a given path.
>>>> e.g. in below picture
>>>> blue line is the section
>>>> magenta line is path
>>>> cyan line is the section bent as per path
>>>>
>>>> I found this to be quite useful in many cases and if this can be
>>>> written in pure openscad could be helpful in sheet bending applications
>>>> [image: Screenshot 2023-08-29 at 5.21.31 AM.png]
>>>> here is the attached openscad file
>>>>
>>>> _______________________________________________
>>>> 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
>>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>