discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

vnf_bend()

RD
Revar Desmera
Tue, May 17, 2022 5:36 AM

I've added cylindrical_heightfield() to BOSL2, so you can completely bypass the oddnesses of vnf_bend().
https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield

-Revar

On May 12, 2022, at 1:40 PM, Joe Weinpert joe.weinpert@gmail.com wrote:

Been running a lot of different pics for testing.  It is all working great.

This really opens a huge door for using openSCAD and BOSL2 to easily render intricately wrapped designs that are needed in woodworking.  Hope that you place this new feature into the BOSL2.library.  Until then, I will continue using the python script and bending function you designed and developed.  And will post any other question I run across.

<octoBent.png>

On Thu, May 12, 2022 at 11:56 AM Revar Desmera <revarbat@gmail.com mailto:revarbat@gmail.com> wrote:

On May 12, 2022, at 8:37 AM, Joe Weinpert <joe.weinpert@gmail.com mailto:joe.weinpert@gmail.com> wrote:

I did have a rendering error when the wrapping was more intense.

Rendering Polygon Mesh using CGAL...
ERROR: CGAL error in CGALUtils::applyBinaryOperator difference: CGAL ERROR: assertion violation! Expr: itl != it->second.end() File: /mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_external_structure.h Line: 1152

I had a full-cylinder shape style wrap I was testing: "r" was 402, up() was 68.9803 and bend_scale was 6.2382 Took a long time, however, for it to throw the error.

Yeah, wrapping around the cylinder fully will induce self intersections in the VNF that will cause it to fail in render. You can only wrap slightly less than fully around the cylinder.

-Revar


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

I've added `cylindrical_heightfield()` to BOSL2, so you can completely bypass the oddnesses of `vnf_bend()`. https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield -Revar > On May 12, 2022, at 1:40 PM, Joe Weinpert <joe.weinpert@gmail.com> wrote: > > Been running a lot of different pics for testing. It is all working great. > > This really opens a huge door for using openSCAD and BOSL2 to easily render intricately wrapped designs that are needed in woodworking. Hope that you place this new feature into the BOSL2.library. Until then, I will continue using the python script and bending function you designed and developed. And will post any other question I run across. > > <octoBent.png> > > > > > On Thu, May 12, 2022 at 11:56 AM Revar Desmera <revarbat@gmail.com <mailto:revarbat@gmail.com>> wrote: > >> On May 12, 2022, at 8:37 AM, Joe Weinpert <joe.weinpert@gmail.com <mailto:joe.weinpert@gmail.com>> wrote: >> >> I did have a rendering error when the wrapping was more intense. >> >> Rendering Polygon Mesh using CGAL... >> ERROR: CGAL error in CGALUtils::applyBinaryOperator difference: CGAL ERROR: assertion violation! Expr: itl != it->second.end() File: /mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_external_structure.h Line: 1152 >> >> I had a full-cylinder shape style wrap I was testing: "r" was 402, up() was 68.9803 and bend_scale was 6.2382 Took a long time, however, for it to throw the error. > > Yeah, wrapping around the cylinder fully will induce self intersections in the VNF that will cause it to fail in render. You can only wrap slightly less than fully around the cylinder. > > -Revar > > > _______________________________________________ > 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
SP
Sanjeev Prabhakar
Tue, May 17, 2022 7:33 AM

Wonderful
Another good application would be:
If only the top surface needs to be wrapped around maybe various shapes
like cylinder,  cone or any irregular surface

Regards
Sanjeev

On Tue, 17 May 2022, 11:07 Revar Desmera, revarbat@gmail.com wrote:

I've added cylindrical_heightfield() to BOSL2, so you can completely
bypass the oddnesses of vnf_bend().

https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield

-Revar

On May 12, 2022, at 1:40 PM, Joe Weinpert joe.weinpert@gmail.com wrote:

Been running a lot of different pics for testing.  It is all working great.

This really opens a huge door for using *openSCAD *and *BOSL2 *to easily
render intricately wrapped designs that are needed in woodworking.  Hope
that you place this new feature into the BOSL2.library.  Until then, I will
continue using the python script and bending function you designed and
developed.  And will post any other question I run across.

<octoBent.png>

On Thu, May 12, 2022 at 11:56 AM Revar Desmera revarbat@gmail.com wrote:

On May 12, 2022, at 8:37 AM, Joe Weinpert joe.weinpert@gmail.com wrote:

I did have a rendering error when the wrapping was more intense.

Rendering Polygon Mesh using CGAL...

ERROR: CGAL error in CGALUtils::applyBinaryOperator difference: CGAL
ERROR: assertion violation! Expr: itl != it->second.end() File:
/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1152

I had a full-cylinder shape style wrap I was testing: "r" was 402,
up() was 68.9803 and bend_scale was 6.2382 Took a long time,
however, for it to throw the error.

Yeah, wrapping around the cylinder fully will induce self intersections
in the VNF that will cause it to fail in render. You can only wrap slightly
less than fully around the cylinder.

-Revar


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

Wonderful Another good application would be: If only the top surface needs to be wrapped around maybe various shapes like cylinder, cone or any irregular surface Regards Sanjeev On Tue, 17 May 2022, 11:07 Revar Desmera, <revarbat@gmail.com> wrote: > I've added `cylindrical_heightfield()` to BOSL2, so you can completely > bypass the oddnesses of `vnf_bend()`. > > https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield > > -Revar > > > > On May 12, 2022, at 1:40 PM, Joe Weinpert <joe.weinpert@gmail.com> wrote: > > Been running a lot of different pics for testing. It is all working great. > > This really opens a huge door for using *openSCAD *and *BOSL2 *to easily > render intricately wrapped designs that are needed in woodworking. Hope > that you place this new feature into the BOSL2.library. Until then, I will > continue using the python script and bending function you designed and > developed. And will post any other question I run across. > > <octoBent.png> > > > > > On Thu, May 12, 2022 at 11:56 AM Revar Desmera <revarbat@gmail.com> wrote: > >> >> On May 12, 2022, at 8:37 AM, Joe Weinpert <joe.weinpert@gmail.com> wrote: >> >> I did have a rendering error when the wrapping was more intense. >> >> Rendering Polygon Mesh using CGAL... >> >> ERROR: CGAL error in CGALUtils::applyBinaryOperator difference: CGAL >> ERROR: assertion violation! Expr: itl != it->second.end() File: >> /mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_external_structure.h >> Line: 1152 >> >> >> I had a full-cylinder shape style wrap I was testing: *"r"* was 402, >> *up()* was 68.9803 and *bend_scale* was 6.2382 Took a long time, >> however, for it to throw the error. >> >> >> Yeah, wrapping around the cylinder fully will induce self intersections >> in the VNF that will cause it to fail in render. You can only wrap slightly >> less than fully around the cylinder. >> >> -Revar >> >> >> _______________________________________________ >> 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 >
RD
Revar Desmera
Wed, May 18, 2022 12:46 AM

Well, with a bit more work, you can use textured_linear_sweep(), textured_revolution(), or textured_cylinder() with counts=[1,1]. It'd take a but more fiddling about, but it should work.  But conical mods to cylindrical_heightfield() are a good idea.

https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_linear_sweep
https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_revolution
https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_cylinder

  • Revar

On May 17, 2022, at 12:33 AM, Sanjeev Prabhakar sprabhakar2006@gmail.com wrote:

Wonderful
Another good application would be:
If only the top surface needs to be wrapped around maybe various shapes like cylinder,  cone or any irregular surface

Regards
Sanjeev

On Tue, 17 May 2022, 11:07 Revar Desmera, <revarbat@gmail.com mailto:revarbat@gmail.com> wrote:
I've added cylindrical_heightfield() to BOSL2, so you can completely bypass the oddnesses of vnf_bend().
https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield

-Revar

Well, with a bit more work, you can use `textured_linear_sweep()`, `textured_revolution()`, or `textured_cylinder()` with `counts=[1,1]`. It'd take a but more fiddling about, but it should work. But conical mods to `cylindrical_heightfield()` are a good idea. https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_linear_sweep https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_revolution https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_cylinder - Revar > On May 17, 2022, at 12:33 AM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > > Wonderful > Another good application would be: > If only the top surface needs to be wrapped around maybe various shapes like cylinder, cone or any irregular surface > > Regards > Sanjeev > > On Tue, 17 May 2022, 11:07 Revar Desmera, <revarbat@gmail.com <mailto:revarbat@gmail.com>> wrote: > I've added `cylindrical_heightfield()` to BOSL2, so you can completely bypass the oddnesses of `vnf_bend()`. > https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield <https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield> > > -Revar >
SP
Sanjeev Prabhakar
Wed, May 18, 2022 1:24 AM

Looks great
Thanks
Sanjeev

On Wed, 18 May 2022, 06:17 Revar Desmera, revarbat@gmail.com wrote:

Well, with a bit more work, you can use textured_linear_sweep(),
textured_revolution(), or textured_cylinder() with counts=[1,1]. It'd
take a but more fiddling about, but it should work.  But conical mods to
cylindrical_heightfield() are a good idea.

https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_linear_sweep

https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_revolution

https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_cylinder

  • Revar

On May 17, 2022, at 12:33 AM, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Wonderful
Another good application would be:
If only the top surface needs to be wrapped around maybe various shapes
like cylinder,  cone or any irregular surface

Regards
Sanjeev

On Tue, 17 May 2022, 11:07 Revar Desmera, revarbat@gmail.com wrote:

I've added cylindrical_heightfield() to BOSL2, so you can completely
bypass the oddnesses of vnf_bend().

https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield

-Revar


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

Looks great Thanks Sanjeev On Wed, 18 May 2022, 06:17 Revar Desmera, <revarbat@gmail.com> wrote: > Well, with a bit more work, you can use `textured_linear_sweep()`, > `textured_revolution()`, or `textured_cylinder()` with `counts=[1,1]`. It'd > take a but more fiddling about, but it should work. But conical mods to > `cylindrical_heightfield()` are a good idea. > > > https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_linear_sweep > > https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_revolution > > https://github.com/revarbat/BOSL2/wiki/skin.scad#functionmodule-textured_cylinder > > > - Revar > > > On May 17, 2022, at 12:33 AM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> > wrote: > > Wonderful > Another good application would be: > If only the top surface needs to be wrapped around maybe various shapes > like cylinder, cone or any irregular surface > > Regards > Sanjeev > > On Tue, 17 May 2022, 11:07 Revar Desmera, <revarbat@gmail.com> wrote: > >> I've added `cylindrical_heightfield()` to BOSL2, so you can completely >> bypass the oddnesses of `vnf_bend()`. >> >> https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield >> >> -Revar >> >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JW
Joe Weinpert
Wed, May 18, 2022 2:12 PM

Very very good, indeed!  I see the link for the python script, too.

On Tue, May 17, 2022 at 1:37 AM Revar Desmera revarbat@gmail.com wrote:

I've added cylindrical_heightfield() to BOSL2, so you can completely
bypass the oddnesses of vnf_bend().

https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield

-Revar

On May 12, 2022, at 1:40 PM, Joe Weinpert joe.weinpert@gmail.com wrote:

Been running a lot of different pics for testing.  It is all working great.

This really opens a huge door for using *openSCAD *and *BOSL2 *to easily
render intricately wrapped designs that are needed in woodworking.  Hope
that you place this new feature into the BOSL2.library.  Until then, I will
continue using the python script and bending function you designed and
developed.  And will post any other question I run across.

<octoBent.png>

On Thu, May 12, 2022 at 11:56 AM Revar Desmera revarbat@gmail.com wrote:

On May 12, 2022, at 8:37 AM, Joe Weinpert joe.weinpert@gmail.com wrote:

I did have a rendering error when the wrapping was more intense.

Rendering Polygon Mesh using CGAL...

ERROR: CGAL error in CGALUtils::applyBinaryOperator difference: CGAL
ERROR: assertion violation! Expr: itl != it->second.end() File:
/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1152

I had a full-cylinder shape style wrap I was testing: "r" was 402,
up() was 68.9803 and bend_scale was 6.2382 Took a long time,
however, for it to throw the error.

Yeah, wrapping around the cylinder fully will induce self intersections
in the VNF that will cause it to fail in render. You can only wrap slightly
less than fully around the cylinder.

-Revar


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

Very very good, indeed! I see the link for the python script, too. On Tue, May 17, 2022 at 1:37 AM Revar Desmera <revarbat@gmail.com> wrote: > I've added `cylindrical_heightfield()` to BOSL2, so you can completely > bypass the oddnesses of `vnf_bend()`. > > https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#functionmodule-cylindrical_heightfield > > -Revar > > > > On May 12, 2022, at 1:40 PM, Joe Weinpert <joe.weinpert@gmail.com> wrote: > > Been running a lot of different pics for testing. It is all working great. > > This really opens a huge door for using *openSCAD *and *BOSL2 *to easily > render intricately wrapped designs that are needed in woodworking. Hope > that you place this new feature into the BOSL2.library. Until then, I will > continue using the python script and bending function you designed and > developed. And will post any other question I run across. > > <octoBent.png> > > > > > On Thu, May 12, 2022 at 11:56 AM Revar Desmera <revarbat@gmail.com> wrote: > >> >> On May 12, 2022, at 8:37 AM, Joe Weinpert <joe.weinpert@gmail.com> wrote: >> >> I did have a rendering error when the wrapping was more intense. >> >> Rendering Polygon Mesh using CGAL... >> >> ERROR: CGAL error in CGALUtils::applyBinaryOperator difference: CGAL >> ERROR: assertion violation! Expr: itl != it->second.end() File: >> /mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_external_structure.h >> Line: 1152 >> >> >> I had a full-cylinder shape style wrap I was testing: *"r"* was 402, >> *up()* was 68.9803 and *bend_scale* was 6.2382 Took a long time, >> however, for it to throw the error. >> >> >> Yeah, wrapping around the cylinder fully will induce self intersections >> in the VNF that will cause it to fail in render. You can only wrap slightly >> less than fully around the cylinder. >> >> -Revar >> >> >> _______________________________________________ >> 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 >