discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

creating surfaces

SP
Sanjeev Prabhakar
Tue, Oct 31, 2023 12:30 AM

Very nice
Lot to play with

Very nice Lot to play with
AM
Adrian Mariano
Tue, Oct 31, 2023 1:23 AM

Technically that surface isn't quilted, exactly.  When you make a blanket
by securing the layers at single points you do that by tying.  It's a less
secure technique than real quilting, where the layers are sewn together
along lines.

It seems like the BOSL2 texture library does collect patterns like this.

https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures

On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

Very nice
Lot to play with


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

Technically that surface isn't quilted, exactly. When you make a blanket by securing the layers at single points you do that by tying. It's a less secure technique than real quilting, where the layers are sewn together along lines. It seems like the BOSL2 texture library does collect patterns like this. https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > Very nice > Lot to play with > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
SP
Sanjeev Prabhakar
Tue, Oct 31, 2023 1:36 AM

Wonderful textures, but how did you create these?
Is it with the 2 waves method?

On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, avm4@cornell.edu wrote:

Technically that surface isn't quilted, exactly.  When you make a blanket
by securing the layers at single points you do that by tying.  It's a less
secure technique than real quilting, where the layers are sewn together
along lines.

It seems like the BOSL2 texture library does collect patterns like this.

https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures

On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Very nice
Lot to play with


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 textures, but how did you create these? Is it with the 2 waves method? On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, <avm4@cornell.edu> wrote: > Technically that surface isn't quilted, exactly. When you make a blanket > by securing the layers at single points you do that by tying. It's a less > secure technique than real quilting, where the layers are sewn together > along lines. > > It seems like the BOSL2 texture library does collect patterns like this. > > https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures > > On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar < > sprabhakar2006@gmail.com> wrote: > >> Very nice >> Lot to play with >> _______________________________________________ >> 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 >
CK
Chun Kit LAM
Tue, Oct 31, 2023 1:58 AM

Another question: I wonder if it is faster to do it with the 2 waves
method or SDF? E.g. with libfive integration in python.

On 31/10/2023 09:36, Sanjeev Prabhakar wrote:

Wonderful textures, but how did you create these?
Is it with the 2 waves method?

On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, avm4@cornell.edu wrote:

 Technically that surface isn't quilted, exactly. When you make a
 blanket by securing the layers at single points you do that by
 tying.  It's a less secure technique than real quilting, where the
 layers are sewn together along lines.

 It seems like the BOSL2 texture library does collect patterns like
 this.

 https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures

 On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar
 <sprabhakar2006@gmail.com> wrote:

     Very nice
     Lot to play with
     _______________________________________________
     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 todiscuss-leave@lists.openscad.org

Another question: I wonder if it is faster to do it with the 2 waves method or SDF? E.g. with libfive integration in python. On 31/10/2023 09:36, Sanjeev Prabhakar wrote: > Wonderful textures, but how did you create these? > Is it with the 2 waves method? > > On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, <avm4@cornell.edu> wrote: > > Technically that surface isn't quilted, exactly. When you make a > blanket by securing the layers at single points you do that by > tying.  It's a less secure technique than real quilting, where the > layers are sewn together along lines. > > It seems like the BOSL2 texture library does collect patterns like > this. > > https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures > > On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar > <sprabhakar2006@gmail.com> wrote: > > Very nice > Lot to play with > _______________________________________________ > 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 todiscuss-leave@lists.openscad.org
SP
Sanjeev Prabhakar
Tue, Oct 31, 2023 2:24 AM

Can you share some examples as to how this works?

On Tue, 31 Oct, 2023, 7:29 am Chun Kit LAM, john.lck40@gmail.com wrote:

Another question: I wonder if it is faster to do it with the 2 waves
method or SDF? E.g. with libfive integration in python.
On 31/10/2023 09:36, Sanjeev Prabhakar wrote:

Wonderful textures, but how did you create these?
Is it with the 2 waves method?

On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, avm4@cornell.edu wrote:

Technically that surface isn't quilted, exactly.  When you make a blanket
by securing the layers at single points you do that by tying.  It's a less
secure technique than real quilting, where the layers are sewn together
along lines.

It seems like the BOSL2 texture library does collect patterns like this.

https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures

On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar <
sprabhakar2006@gmail.com> wrote:

Very nice
Lot to play with


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

Can you share some examples as to how this works? On Tue, 31 Oct, 2023, 7:29 am Chun Kit LAM, <john.lck40@gmail.com> wrote: > Another question: I wonder if it is faster to do it with the 2 waves > method or SDF? E.g. with libfive integration in python. > On 31/10/2023 09:36, Sanjeev Prabhakar wrote: > > Wonderful textures, but how did you create these? > Is it with the 2 waves method? > > On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, <avm4@cornell.edu> wrote: > >> Technically that surface isn't quilted, exactly. When you make a blanket >> by securing the layers at single points you do that by tying. It's a less >> secure technique than real quilting, where the layers are sewn together >> along lines. >> >> It seems like the BOSL2 texture library does collect patterns like this. >> >> https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures >> >> On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar < >> sprabhakar2006@gmail.com> wrote: >> >>> Very nice >>> Lot to play with >>> _______________________________________________ >>> 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 >
CK
Chun Kit LAM
Tue, Oct 31, 2023 2:57 AM

Just something like abs(z - sin(x) - sin(y)) <= d/2, where d is the
desired thickness.

I don't have time to compile the python integration for now so I just
tried it with manifold sdf. The surface is not very smooth due to
marching cubes used. It is probably better to do it with the method in
BOSL2.

On 31/10/2023 10:24, Sanjeev Prabhakar wrote:

Can you share some examples as to how this works?

On Tue, 31 Oct, 2023, 7:29 am Chun Kit LAM, john.lck40@gmail.com wrote:

 Another question: I wonder if it is faster to do it with the 2
 waves method or SDF? E.g. with libfive integration in python.

 On 31/10/2023 09:36, Sanjeev Prabhakar wrote:
 Wonderful textures, but how did you create these?
 Is it with the 2 waves method?

 On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, <avm4@cornell.edu>
 wrote:

     Technically that surface isn't quilted, exactly.  When you
     make a blanket by securing the layers at single points you do
     that by tying.  It's a less secure technique than real
     quilting, where the layers are sewn together along lines.

     It seems like the BOSL2 texture library does collect patterns
     like this.

     https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures

     On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar
     <sprabhakar2006@gmail.com> wrote:

         Very nice
         Lot to play with
         _______________________________________________
         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 todiscuss-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 todiscuss-leave@lists.openscad.org

Just something like abs(z - sin(x) - sin(y)) <= d/2, where d is the desired thickness. I don't have time to compile the python integration for now so I just tried it with manifold sdf. The surface is not very smooth due to marching cubes used. It is probably better to do it with the method in BOSL2. On 31/10/2023 10:24, Sanjeev Prabhakar wrote: > Can you share some examples as to how this works? > > On Tue, 31 Oct, 2023, 7:29 am Chun Kit LAM, <john.lck40@gmail.com> wrote: > > Another question: I wonder if it is faster to do it with the 2 > waves method or SDF? E.g. with libfive integration in python. > > On 31/10/2023 09:36, Sanjeev Prabhakar wrote: >> Wonderful textures, but how did you create these? >> Is it with the 2 waves method? >> >> On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, <avm4@cornell.edu> >> wrote: >> >> Technically that surface isn't quilted, exactly.  When you >> make a blanket by securing the layers at single points you do >> that by tying.  It's a less secure technique than real >> quilting, where the layers are sewn together along lines. >> >> It seems like the BOSL2 texture library does collect patterns >> like this. >> >> https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures >> >> On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar >> <sprabhakar2006@gmail.com> wrote: >> >> Very nice >> Lot to play with >> _______________________________________________ >> 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 todiscuss-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 todiscuss-leave@lists.openscad.org
RD
Revar Desmera
Tue, Oct 31, 2023 3:08 AM

All the BOSL2 textures were created by hand, I'm afraid.  I had a need to do things like knurling on some parts, and that generalized into textures.  Since heightfields were insufficient to make some textures cleanly, I expanded the system out to allow more precise VNF based textures.  I just made a bunch of standard textures that seemed useful.  Textures can be applied to cyl()s, rotate_sweep()s, and linear_sweep()s.

You CAN use the two-wave technique to generate heightfields or VNFs that are useable as textures, but you have to beware how many vertices you introduce.
The fact that you can generate the diamonds I originally needed for knurling via the 2-wave method was actually an interesting surprise to me, though it's far more expensive in vertex counts.  The manually created heightfield texture for diamonds in BOSL2 is actually just [[0,1], [1,0]].

  • Revar

On Oct 30, 2023, at 6:36 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com wrote:

Wonderful textures, but how did you create these?
Is it with the 2 waves method?

On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, <avm4@cornell.edu mailto:avm4@cornell.edu> wrote:

Technically that surface isn't quilted, exactly.  When you make a blanket by securing the layers at single points you do that by tying.  It's a less secure technique than real quilting, where the layers are sewn together along lines.

It seems like the BOSL2 texture library does collect patterns like this.

https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures

On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar <sprabhakar2006@gmail.com mailto:sprabhakar2006@gmail.com> wrote:

Very nice
Lot to play with


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

All the BOSL2 textures were created by hand, I'm afraid. I had a need to do things like knurling on some parts, and that generalized into textures. Since heightfields were insufficient to make some textures cleanly, I expanded the system out to allow more precise VNF based textures. I just made a bunch of standard textures that seemed useful. Textures can be applied to `cyl()`s, `rotate_sweep()`s, and `linear_sweep()`s. You CAN use the two-wave technique to generate heightfields or VNFs that are useable as textures, but you have to beware how many vertices you introduce. The fact that you can generate the diamonds I originally needed for knurling via the 2-wave method was actually an interesting surprise to me, though it's far more expensive in vertex counts. The manually created heightfield texture for diamonds in BOSL2 is actually just `[[0,1], [1,0]]`. - Revar > On Oct 30, 2023, at 6:36 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > > Wonderful textures, but how did you create these? > Is it with the 2 waves method? > > On Tue, 31 Oct, 2023, 6:54 am Adrian Mariano, <avm4@cornell.edu <mailto:avm4@cornell.edu>> wrote: >> Technically that surface isn't quilted, exactly. When you make a blanket by securing the layers at single points you do that by tying. It's a less secure technique than real quilting, where the layers are sewn together along lines. >> >> It seems like the BOSL2 texture library does collect patterns like this. >> >> https://github.com/BelfrySCAD/BOSL2/wiki/skin.scad#subsection-vnf-textures >> >> On Mon, Oct 30, 2023 at 8:31 PM Sanjeev Prabhakar <sprabhakar2006@gmail.com <mailto:sprabhakar2006@gmail.com>> wrote: >>> Very nice >>> Lot to play with >>> _______________________________________________ >>> 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
SP
Sanjeev Prabhakar
Tue, Oct 31, 2023 4:23 PM

textured box

[image: Screenshot 2023-10-31 at 9.52.16 PM.png]

textured box [image: Screenshot 2023-10-31 at 9.52.16 PM.png]
SP
Sanjeev Prabhakar
Tue, Oct 31, 2023 4:30 PM
scad file link is here (4.6 mb): https://github.com/sprabhakar2006/openSCAD/blob/main/textured_box.scad