discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Internal baffles

FH
Father Horton
Thu, Feb 17, 2022 7:28 PM

I used PovRay for years. Learning how not to write PV code in OpenSCAD was
one of my biggest hurdles. I searched for something that could produce STL
files from PovRay code, for the sake of people who struggle with OpenSCAD’s
functional programming, but I didn’t find anything really workable.

On Thu, Feb 17, 2022 at 1:09 PM david vanhorn kc6ete@gmail.com wrote:

Interesting idea.  I wish OpenSCAD and PovRay talked to each other better.
I've used Povray to design a bunch of optical sensors over the years. VERY
accurate.
In Pov I would put a BRIGHT light source out at an appropriate distance,
and then I could "stick my head" in the baffle area which does NOT obstruct
the light, and look at how much is falling on the sensor.
Then do an animation rotating from just inside the cutoff to just past the
cutoff, and see how that looks on a white target at the sensor area.

On Thu, Feb 17, 2022 at 10:35 AM larry lar3ry@sasktel.net wrote:

On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote:

Yup, aware of the Z fighting. It's on my list. :)
The device itself is about 6.5 x 2.6cm, and the apex of this cone
needs to block the light from all of that.
The sensor is about 3x1 cm and offset left of center about 5mm which
complicates things.

Sure, but hey, you can design around that problem by offsetting the
opening. See picture

I haven't really dug into shaving the plastic at all, since anything
I do to fight reflections has to come out of the plastic thickness.

If I add anything that projects inside the open volume, then the
sensor can't see what it needs to see.

I think that depends on the size of the open volume, no?
If the cone is wider, then you can afford to block some of the light
with baffles of some sort.

What about this, referring to the attached picture?

It's just 2D to illustrate the idea. I leave the implementation and
dimensions up to you.

The narrow end of the cone is just large enough for the sensor, not the
whole device. The whole device sits in the light blue box.

The large end of the cone would be large enough so that the baffles
would create the field of view required.

I think the baffles would need to be designed carefully, in both
length and angle, so that light entering from the side, when reflecting
off the bottom of a baffle (referring to the orientation in the
picture), reflects into the area between each baffle and the one below
it.

You might need only one baffle, or perhaps more.

Anyway.. food for thought.


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

I used PovRay for years. Learning how not to write PV code in OpenSCAD was one of my biggest hurdles. I searched for something that could produce STL files from PovRay code, for the sake of people who struggle with OpenSCAD’s functional programming, but I didn’t find anything really workable. On Thu, Feb 17, 2022 at 1:09 PM david vanhorn <kc6ete@gmail.com> wrote: > Interesting idea. I wish OpenSCAD and PovRay talked to each other better. > I've used Povray to design a bunch of optical sensors over the years. VERY > accurate. > In Pov I would put a BRIGHT light source out at an appropriate distance, > and then I could "stick my head" in the baffle area which does NOT obstruct > the light, and look at how much is falling on the sensor. > Then do an animation rotating from just inside the cutoff to just past the > cutoff, and see how that looks on a white target at the sensor area. > > > On Thu, Feb 17, 2022 at 10:35 AM larry <lar3ry@sasktel.net> wrote: > >> On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote: >> > Yup, aware of the Z fighting. It's on my list. :) >> > The device itself is about 6.5 x 2.6cm, and the apex of this cone >> > needs to block the light from all of that. >> > The sensor is about 3x1 cm and offset left of center about 5mm which >> > complicates things. >> >> Sure, but hey, you can design around that problem by offsetting the >> opening. See picture >> >> > I haven't really dug into shaving the plastic at all, since anything >> > I do to fight reflections has to come out of the plastic thickness. >> >> > If I add anything that projects inside the open volume, then the >> > sensor can't see what it needs to see. >> >> I think that depends on the size of the open volume, no? >> If the cone is wider, then you can afford to block some of the light >> with baffles of some sort. >> >> What about this, referring to the attached picture? >> >> It's just 2D to illustrate the idea. I leave the implementation and >> dimensions up to you. >> >> The narrow end of the cone is just large enough for the sensor, not the >> whole device. The whole device sits in the light blue box. >> >> The large end of the cone would be large enough so that the baffles >> would create the field of view required. >> >> I _think_ the baffles would need to be designed carefully, in both >> length and angle, so that light entering from the side, when reflecting >> off the bottom of a baffle (referring to the orientation in the >> picture), reflects into the area between each baffle and the one below >> it. >> >> You might need only one baffle, or perhaps more. >> >> Anyway.. food for thought. >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > > > -- > K1FZY (WA4TPW) SK 9/29/37-4/13/15 > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
DV
david vanhorn
Thu, Feb 17, 2022 7:36 PM

I WANT CLIPPING PLANES!!
Clipping things with boxes is very cumbersome.

I hear ya.  As an older embedded systems guy, my head is full of languages.
Snobol, Cobol, Lisp, Fortran, many flavors of Basic, Assembler for Z80, Z8,
6502, Pic, AVR, ARM..
We need a purge and defrag for the brain!

On Thu, Feb 17, 2022 at 12:29 PM Father Horton fatherhorton@gmail.com
wrote:

I used PovRay for years. Learning how not to write PV code in OpenSCAD was
one of my biggest hurdles. I searched for something that could produce STL
files from PovRay code, for the sake of people who struggle with OpenSCAD’s
functional programming, but I didn’t find anything really workable.

On Thu, Feb 17, 2022 at 1:09 PM david vanhorn kc6ete@gmail.com wrote:

Interesting idea.  I wish OpenSCAD and PovRay talked to each other
better.
I've used Povray to design a bunch of optical sensors over the years.
VERY accurate.
In Pov I would put a BRIGHT light source out at an appropriate distance,
and then I could "stick my head" in the baffle area which does NOT obstruct
the light, and look at how much is falling on the sensor.
Then do an animation rotating from just inside the cutoff to just past
the cutoff, and see how that looks on a white target at the sensor area.

On Thu, Feb 17, 2022 at 10:35 AM larry lar3ry@sasktel.net wrote:

On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote:

Yup, aware of the Z fighting. It's on my list. :)
The device itself is about 6.5 x 2.6cm, and the apex of this cone
needs to block the light from all of that.
The sensor is about 3x1 cm and offset left of center about 5mm which
complicates things.

Sure, but hey, you can design around that problem by offsetting the
opening. See picture

I haven't really dug into shaving the plastic at all, since anything
I do to fight reflections has to come out of the plastic thickness.

If I add anything that projects inside the open volume, then the
sensor can't see what it needs to see.

I think that depends on the size of the open volume, no?
If the cone is wider, then you can afford to block some of the light
with baffles of some sort.

What about this, referring to the attached picture?

It's just 2D to illustrate the idea. I leave the implementation and
dimensions up to you.

The narrow end of the cone is just large enough for the sensor, not the
whole device. The whole device sits in the light blue box.

The large end of the cone would be large enough so that the baffles
would create the field of view required.

I think the baffles would need to be designed carefully, in both
length and angle, so that light entering from the side, when reflecting
off the bottom of a baffle (referring to the orientation in the
picture), reflects into the area between each baffle and the one below
it.

You might need only one baffle, or perhaps more.

Anyway.. food for thought.


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15

I WANT CLIPPING PLANES!! Clipping things with boxes is very cumbersome. I hear ya. As an older embedded systems guy, my head is full of languages. Snobol, Cobol, Lisp, Fortran, many flavors of Basic, Assembler for Z80, Z8, 6502, Pic, AVR, ARM.. We need a purge and defrag for the brain! On Thu, Feb 17, 2022 at 12:29 PM Father Horton <fatherhorton@gmail.com> wrote: > I used PovRay for years. Learning how not to write PV code in OpenSCAD was > one of my biggest hurdles. I searched for something that could produce STL > files from PovRay code, for the sake of people who struggle with OpenSCAD’s > functional programming, but I didn’t find anything really workable. > > On Thu, Feb 17, 2022 at 1:09 PM david vanhorn <kc6ete@gmail.com> wrote: > >> Interesting idea. I wish OpenSCAD and PovRay talked to each other >> better. >> I've used Povray to design a bunch of optical sensors over the years. >> VERY accurate. >> In Pov I would put a BRIGHT light source out at an appropriate distance, >> and then I could "stick my head" in the baffle area which does NOT obstruct >> the light, and look at how much is falling on the sensor. >> Then do an animation rotating from just inside the cutoff to just past >> the cutoff, and see how that looks on a white target at the sensor area. >> >> >> On Thu, Feb 17, 2022 at 10:35 AM larry <lar3ry@sasktel.net> wrote: >> >>> On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote: >>> > Yup, aware of the Z fighting. It's on my list. :) >>> > The device itself is about 6.5 x 2.6cm, and the apex of this cone >>> > needs to block the light from all of that. >>> > The sensor is about 3x1 cm and offset left of center about 5mm which >>> > complicates things. >>> >>> Sure, but hey, you can design around that problem by offsetting the >>> opening. See picture >>> >>> > I haven't really dug into shaving the plastic at all, since anything >>> > I do to fight reflections has to come out of the plastic thickness. >>> >>> > If I add anything that projects inside the open volume, then the >>> > sensor can't see what it needs to see. >>> >>> I think that depends on the size of the open volume, no? >>> If the cone is wider, then you can afford to block some of the light >>> with baffles of some sort. >>> >>> What about this, referring to the attached picture? >>> >>> It's just 2D to illustrate the idea. I leave the implementation and >>> dimensions up to you. >>> >>> The narrow end of the cone is just large enough for the sensor, not the >>> whole device. The whole device sits in the light blue box. >>> >>> The large end of the cone would be large enough so that the baffles >>> would create the field of view required. >>> >>> I _think_ the baffles would need to be designed carefully, in both >>> length and angle, so that light entering from the side, when reflecting >>> off the bottom of a baffle (referring to the orientation in the >>> picture), reflects into the area between each baffle and the one below >>> it. >>> >>> You might need only one baffle, or perhaps more. >>> >>> Anyway.. food for thought. >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> >> >> -- >> K1FZY (WA4TPW) SK 9/29/37-4/13/15 >> _______________________________________________ >> 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 > -- K1FZY (WA4TPW) SK 9/29/37-4/13/15
FS
FF Systems
Thu, Feb 17, 2022 7:41 PM

I don't want ANY code written my usoft running on MY brain...

Don't forget Forth!  (RPN calcs UNITE!)

I got nuthin.

On Thu, Feb 17, 2022 at 1:37 PM david vanhorn kc6ete@gmail.com wrote:

I WANT CLIPPING PLANES!!
Clipping things with boxes is very cumbersome.

I hear ya.  As an older embedded systems guy, my head is full of languages.
Snobol, Cobol, Lisp, Fortran, many flavors of Basic, Assembler for Z80,
Z8, 6502, Pic, AVR, ARM..
We need a purge and defrag for the brain!

On Thu, Feb 17, 2022 at 12:29 PM Father Horton fatherhorton@gmail.com
wrote:

I used PovRay for years. Learning how not to write PV code in OpenSCAD
was one of my biggest hurdles. I searched for something that could produce
STL files from PovRay code, for the sake of people who struggle with
OpenSCAD’s functional programming, but I didn’t find anything really
workable.

On Thu, Feb 17, 2022 at 1:09 PM david vanhorn kc6ete@gmail.com wrote:

Interesting idea.  I wish OpenSCAD and PovRay talked to each other
better.
I've used Povray to design a bunch of optical sensors over the years.
VERY accurate.
In Pov I would put a BRIGHT light source out at an appropriate distance,
and then I could "stick my head" in the baffle area which does NOT obstruct
the light, and look at how much is falling on the sensor.
Then do an animation rotating from just inside the cutoff to just past
the cutoff, and see how that looks on a white target at the sensor area.

On Thu, Feb 17, 2022 at 10:35 AM larry lar3ry@sasktel.net wrote:

On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote:

Yup, aware of the Z fighting. It's on my list. :)
The device itself is about 6.5 x 2.6cm, and the apex of this cone
needs to block the light from all of that.
The sensor is about 3x1 cm and offset left of center about 5mm which
complicates things.

Sure, but hey, you can design around that problem by offsetting the
opening. See picture

I haven't really dug into shaving the plastic at all, since anything
I do to fight reflections has to come out of the plastic thickness.

If I add anything that projects inside the open volume, then the
sensor can't see what it needs to see.

I think that depends on the size of the open volume, no?
If the cone is wider, then you can afford to block some of the light
with baffles of some sort.

What about this, referring to the attached picture?

It's just 2D to illustrate the idea. I leave the implementation and
dimensions up to you.

The narrow end of the cone is just large enough for the sensor, not the
whole device. The whole device sits in the light blue box.

The large end of the cone would be large enough so that the baffles
would create the field of view required.

I think the baffles would need to be designed carefully, in both
length and angle, so that light entering from the side, when reflecting
off the bottom of a baffle (referring to the orientation in the
picture), reflects into the area between each baffle and the one below
it.

You might need only one baffle, or perhaps more.

Anyway.. food for thought.


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

I don't want ANY code written my usoft running on MY brain... Don't forget Forth! (RPN calcs UNITE!) I got nuthin. On Thu, Feb 17, 2022 at 1:37 PM david vanhorn <kc6ete@gmail.com> wrote: > I WANT CLIPPING PLANES!! > Clipping things with boxes is very cumbersome. > > I hear ya. As an older embedded systems guy, my head is full of languages. > Snobol, Cobol, Lisp, Fortran, many flavors of Basic, Assembler for Z80, > Z8, 6502, Pic, AVR, ARM.. > We need a purge and defrag for the brain! > > On Thu, Feb 17, 2022 at 12:29 PM Father Horton <fatherhorton@gmail.com> > wrote: > >> I used PovRay for years. Learning how not to write PV code in OpenSCAD >> was one of my biggest hurdles. I searched for something that could produce >> STL files from PovRay code, for the sake of people who struggle with >> OpenSCAD’s functional programming, but I didn’t find anything really >> workable. >> >> On Thu, Feb 17, 2022 at 1:09 PM david vanhorn <kc6ete@gmail.com> wrote: >> >>> Interesting idea. I wish OpenSCAD and PovRay talked to each other >>> better. >>> I've used Povray to design a bunch of optical sensors over the years. >>> VERY accurate. >>> In Pov I would put a BRIGHT light source out at an appropriate distance, >>> and then I could "stick my head" in the baffle area which does NOT obstruct >>> the light, and look at how much is falling on the sensor. >>> Then do an animation rotating from just inside the cutoff to just past >>> the cutoff, and see how that looks on a white target at the sensor area. >>> >>> >>> On Thu, Feb 17, 2022 at 10:35 AM larry <lar3ry@sasktel.net> wrote: >>> >>>> On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote: >>>> > Yup, aware of the Z fighting. It's on my list. :) >>>> > The device itself is about 6.5 x 2.6cm, and the apex of this cone >>>> > needs to block the light from all of that. >>>> > The sensor is about 3x1 cm and offset left of center about 5mm which >>>> > complicates things. >>>> >>>> Sure, but hey, you can design around that problem by offsetting the >>>> opening. See picture >>>> >>>> > I haven't really dug into shaving the plastic at all, since anything >>>> > I do to fight reflections has to come out of the plastic thickness. >>>> >>>> > If I add anything that projects inside the open volume, then the >>>> > sensor can't see what it needs to see. >>>> >>>> I think that depends on the size of the open volume, no? >>>> If the cone is wider, then you can afford to block some of the light >>>> with baffles of some sort. >>>> >>>> What about this, referring to the attached picture? >>>> >>>> It's just 2D to illustrate the idea. I leave the implementation and >>>> dimensions up to you. >>>> >>>> The narrow end of the cone is just large enough for the sensor, not the >>>> whole device. The whole device sits in the light blue box. >>>> >>>> The large end of the cone would be large enough so that the baffles >>>> would create the field of view required. >>>> >>>> I _think_ the baffles would need to be designed carefully, in both >>>> length and angle, so that light entering from the side, when reflecting >>>> off the bottom of a baffle (referring to the orientation in the >>>> picture), reflects into the area between each baffle and the one below >>>> it. >>>> >>>> You might need only one baffle, or perhaps more. >>>> >>>> Anyway.. food for thought. >>>> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>> >>> >>> -- >>> K1FZY (WA4TPW) SK 9/29/37-4/13/15 >>> _______________________________________________ >>> 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 >> > > > -- > K1FZY (WA4TPW) SK 9/29/37-4/13/15 > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
DV
david vanhorn
Thu, Feb 17, 2022 7:43 PM

and Lithp! :)

On Thu, Feb 17, 2022 at 12:41 PM FF Systems joeh@rollanet.org wrote:

I don't want ANY code written my usoft running on MY brain...

Don't forget Forth!  (RPN calcs UNITE!)

I got nuthin.

On Thu, Feb 17, 2022 at 1:37 PM david vanhorn kc6ete@gmail.com wrote:

I WANT CLIPPING PLANES!!
Clipping things with boxes is very cumbersome.

I hear ya.  As an older embedded systems guy, my head is full of
languages.
Snobol, Cobol, Lisp, Fortran, many flavors of Basic, Assembler for Z80,
Z8, 6502, Pic, AVR, ARM..
We need a purge and defrag for the brain!

On Thu, Feb 17, 2022 at 12:29 PM Father Horton fatherhorton@gmail.com
wrote:

I used PovRay for years. Learning how not to write PV code in OpenSCAD
was one of my biggest hurdles. I searched for something that could produce
STL files from PovRay code, for the sake of people who struggle with
OpenSCAD’s functional programming, but I didn’t find anything really
workable.

On Thu, Feb 17, 2022 at 1:09 PM david vanhorn kc6ete@gmail.com wrote:

Interesting idea.  I wish OpenSCAD and PovRay talked to each other
better.
I've used Povray to design a bunch of optical sensors over the years.
VERY accurate.
In Pov I would put a BRIGHT light source out at an appropriate
distance, and then I could "stick my head" in the baffle area which does
NOT obstruct the light, and look at how much is falling on the sensor.
Then do an animation rotating from just inside the cutoff to just past
the cutoff, and see how that looks on a white target at the sensor area.

On Thu, Feb 17, 2022 at 10:35 AM larry lar3ry@sasktel.net wrote:

On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote:

Yup, aware of the Z fighting. It's on my list. :)
The device itself is about 6.5 x 2.6cm, and the apex of this cone
needs to block the light from all of that.
The sensor is about 3x1 cm and offset left of center about 5mm which
complicates things.

Sure, but hey, you can design around that problem by offsetting the
opening. See picture

I haven't really dug into shaving the plastic at all, since anything
I do to fight reflections has to come out of the plastic thickness.

If I add anything that projects inside the open volume, then the
sensor can't see what it needs to see.

I think that depends on the size of the open volume, no?
If the cone is wider, then you can afford to block some of the light
with baffles of some sort.

What about this, referring to the attached picture?

It's just 2D to illustrate the idea. I leave the implementation and
dimensions up to you.

The narrow end of the cone is just large enough for the sensor, not the
whole device. The whole device sits in the light blue box.

The large end of the cone would be large enough so that the baffles
would create the field of view required.

I think the baffles would need to be designed carefully, in both
length and angle, so that light entering from the side, when reflecting
off the bottom of a baffle (referring to the orientation in the
picture), reflects into the area between each baffle and the one below
it.

You might need only one baffle, or perhaps more.

Anyway.. food for thought.


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15

and Lithp! :) On Thu, Feb 17, 2022 at 12:41 PM FF Systems <joeh@rollanet.org> wrote: > I don't want ANY code written my usoft running on MY brain... > > Don't forget Forth! (RPN calcs UNITE!) > > I got nuthin. > > On Thu, Feb 17, 2022 at 1:37 PM david vanhorn <kc6ete@gmail.com> wrote: > >> I WANT CLIPPING PLANES!! >> Clipping things with boxes is very cumbersome. >> >> I hear ya. As an older embedded systems guy, my head is full of >> languages. >> Snobol, Cobol, Lisp, Fortran, many flavors of Basic, Assembler for Z80, >> Z8, 6502, Pic, AVR, ARM.. >> We need a purge and defrag for the brain! >> >> On Thu, Feb 17, 2022 at 12:29 PM Father Horton <fatherhorton@gmail.com> >> wrote: >> >>> I used PovRay for years. Learning how not to write PV code in OpenSCAD >>> was one of my biggest hurdles. I searched for something that could produce >>> STL files from PovRay code, for the sake of people who struggle with >>> OpenSCAD’s functional programming, but I didn’t find anything really >>> workable. >>> >>> On Thu, Feb 17, 2022 at 1:09 PM david vanhorn <kc6ete@gmail.com> wrote: >>> >>>> Interesting idea. I wish OpenSCAD and PovRay talked to each other >>>> better. >>>> I've used Povray to design a bunch of optical sensors over the years. >>>> VERY accurate. >>>> In Pov I would put a BRIGHT light source out at an appropriate >>>> distance, and then I could "stick my head" in the baffle area which does >>>> NOT obstruct the light, and look at how much is falling on the sensor. >>>> Then do an animation rotating from just inside the cutoff to just past >>>> the cutoff, and see how that looks on a white target at the sensor area. >>>> >>>> >>>> On Thu, Feb 17, 2022 at 10:35 AM larry <lar3ry@sasktel.net> wrote: >>>> >>>>> On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote: >>>>> > Yup, aware of the Z fighting. It's on my list. :) >>>>> > The device itself is about 6.5 x 2.6cm, and the apex of this cone >>>>> > needs to block the light from all of that. >>>>> > The sensor is about 3x1 cm and offset left of center about 5mm which >>>>> > complicates things. >>>>> >>>>> Sure, but hey, you can design around that problem by offsetting the >>>>> opening. See picture >>>>> >>>>> > I haven't really dug into shaving the plastic at all, since anything >>>>> > I do to fight reflections has to come out of the plastic thickness. >>>>> >>>>> > If I add anything that projects inside the open volume, then the >>>>> > sensor can't see what it needs to see. >>>>> >>>>> I think that depends on the size of the open volume, no? >>>>> If the cone is wider, then you can afford to block some of the light >>>>> with baffles of some sort. >>>>> >>>>> What about this, referring to the attached picture? >>>>> >>>>> It's just 2D to illustrate the idea. I leave the implementation and >>>>> dimensions up to you. >>>>> >>>>> The narrow end of the cone is just large enough for the sensor, not the >>>>> whole device. The whole device sits in the light blue box. >>>>> >>>>> The large end of the cone would be large enough so that the baffles >>>>> would create the field of view required. >>>>> >>>>> I _think_ the baffles would need to be designed carefully, in both >>>>> length and angle, so that light entering from the side, when reflecting >>>>> off the bottom of a baffle (referring to the orientation in the >>>>> picture), reflects into the area between each baffle and the one below >>>>> it. >>>>> >>>>> You might need only one baffle, or perhaps more. >>>>> >>>>> Anyway.. food for thought. >>>>> >>>>> _______________________________________________ >>>>> OpenSCAD mailing list >>>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>>> >>>> >>>> >>>> -- >>>> K1FZY (WA4TPW) SK 9/29/37-4/13/15 >>>> _______________________________________________ >>>> 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 >>> >> >> >> -- >> K1FZY (WA4TPW) SK 9/29/37-4/13/15 >> _______________________________________________ >> 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 > -- K1FZY (WA4TPW) SK 9/29/37-4/13/15
BC
Bob Carlson
Thu, Feb 17, 2022 9:25 PM

I WANT CLIPPING PLANES!!
Clipping things with boxes is very cumbersome.

I have found this module really easy and intuitive to use. A tiny bit of work would add angle. I would do it using spherical coordinates rather than a rotate vector. I think it’s easier to picture.

-Bob
Tucson AZ

/*
crossSection(view)

Apply as a modifier operation.
Cuts the children on a plane.
Move the children around to modify the cut point.

view - View the cross section from this axis
"x" - Cut on the YZ plane - default
"y" - Cut on the XZ plane
"z" - Cut on the XY plane
*/

module crossSection(view = "x", right = 0, fwd = 0, up = 0) {
an = view == "x" ? LEFT
: view == "y" ? FRONT
: view == "z" ? BOTTOM
: view == "-x" ? RIGHT
: view == "-y" ? BACK
: view == "-z" ? TOP
: LEFT;

difference() {
    union() {
        children();
    }
    right(right)
    fwd(fwd)
    up(up)
    cube(1000, anchor = an);
}

}

On Feb 17, 2022, at 12:36, david vanhorn kc6ete@gmail.com wrote:

I WANT CLIPPING PLANES!!
Clipping things with boxes is very cumbersome.

I hear ya.  As an older embedded systems guy, my head is full of languages.
Snobol, Cobol, Lisp, Fortran, many flavors of Basic, Assembler for Z80, Z8, 6502, Pic, AVR, ARM..
We need a purge and defrag for the brain!

On Thu, Feb 17, 2022 at 12:29 PM Father Horton <fatherhorton@gmail.com mailto:fatherhorton@gmail.com> wrote:
I used PovRay for years. Learning how not to write PV code in OpenSCAD was one of my biggest hurdles. I searched for something that could produce STL files from PovRay code, for the sake of people who struggle with OpenSCAD’s functional programming, but I didn’t find anything really workable.

On Thu, Feb 17, 2022 at 1:09 PM david vanhorn <kc6ete@gmail.com mailto:kc6ete@gmail.com> wrote:
Interesting idea.  I wish OpenSCAD and PovRay talked to each other better.
I've used Povray to design a bunch of optical sensors over the years. VERY accurate.
In Pov I would put a BRIGHT light source out at an appropriate distance, and then I could "stick my head" in the baffle area which does NOT obstruct the light, and look at how much is falling on the sensor.
Then do an animation rotating from just inside the cutoff to just past the cutoff, and see how that looks on a white target at the sensor area.

On Thu, Feb 17, 2022 at 10:35 AM larry <lar3ry@sasktel.net mailto:lar3ry@sasktel.net> wrote:
On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote:

Yup, aware of the Z fighting. It's on my list. :)
The device itself is about 6.5 x 2.6cm, and the apex of this cone
needs to block the light from all of that.
The sensor is about 3x1 cm and offset left of center about 5mm which
complicates things.

Sure, but hey, you can design around that problem by offsetting the
opening. See picture

I haven't really dug into shaving the plastic at all, since anything
I do to fight reflections has to come out of the plastic thickness.

If I add anything that projects inside the open volume, then the
sensor can't see what it needs to see.

I think that depends on the size of the open volume, no?
If the cone is wider, then you can afford to block some of the light
with baffles of some sort.

What about this, referring to the attached picture?

It's just 2D to illustrate the idea. I leave the implementation and
dimensions up to you.

The narrow end of the cone is just large enough for the sensor, not the
whole device. The whole device sits in the light blue box.

The large end of the cone would be large enough so that the baffles
would create the field of view required.

I think the baffles would need to be designed carefully, in both
length and angle, so that light entering from the side, when reflecting
off the bottom of a baffle (referring to the orientation in the
picture), reflects into the area between each baffle and the one below
it.

You might need only one baffle, or perhaps more.

Anyway.. food for thought.


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

> I WANT CLIPPING PLANES!! > Clipping things with boxes is very cumbersome. I have found this module really easy and intuitive to use. A tiny bit of work would add angle. I would do it using spherical coordinates rather than a rotate vector. I think it’s easier to picture. -Bob Tucson AZ /* crossSection(view) Apply as a modifier operation. Cuts the children on a plane. Move the children around to modify the cut point. view - View the cross section from this axis "x" - Cut on the YZ plane - default "y" - Cut on the XZ plane "z" - Cut on the XY plane */ module crossSection(view = "x", right = 0, fwd = 0, up = 0) { an = view == "x" ? LEFT : view == "y" ? FRONT : view == "z" ? BOTTOM : view == "-x" ? RIGHT : view == "-y" ? BACK : view == "-z" ? TOP : LEFT; difference() { union() { children(); } right(right) fwd(fwd) up(up) cube(1000, anchor = an); } } On Feb 17, 2022, at 12:36, david vanhorn <kc6ete@gmail.com> wrote: I WANT CLIPPING PLANES!! Clipping things with boxes is very cumbersome. I hear ya. As an older embedded systems guy, my head is full of languages. Snobol, Cobol, Lisp, Fortran, many flavors of Basic, Assembler for Z80, Z8, 6502, Pic, AVR, ARM.. We need a purge and defrag for the brain! On Thu, Feb 17, 2022 at 12:29 PM Father Horton <fatherhorton@gmail.com <mailto:fatherhorton@gmail.com>> wrote: I used PovRay for years. Learning how not to write PV code in OpenSCAD was one of my biggest hurdles. I searched for something that could produce STL files from PovRay code, for the sake of people who struggle with OpenSCAD’s functional programming, but I didn’t find anything really workable. On Thu, Feb 17, 2022 at 1:09 PM david vanhorn <kc6ete@gmail.com <mailto:kc6ete@gmail.com>> wrote: Interesting idea. I wish OpenSCAD and PovRay talked to each other better. I've used Povray to design a bunch of optical sensors over the years. VERY accurate. In Pov I would put a BRIGHT light source out at an appropriate distance, and then I could "stick my head" in the baffle area which does NOT obstruct the light, and look at how much is falling on the sensor. Then do an animation rotating from just inside the cutoff to just past the cutoff, and see how that looks on a white target at the sensor area. On Thu, Feb 17, 2022 at 10:35 AM larry <lar3ry@sasktel.net <mailto:lar3ry@sasktel.net>> wrote: On Wed, 2022-02-16 at 15:24 -0700, david vanhorn wrote: > Yup, aware of the Z fighting. It's on my list. :) > The device itself is about 6.5 x 2.6cm, and the apex of this cone > needs to block the light from all of that. > The sensor is about 3x1 cm and offset left of center about 5mm which > complicates things. Sure, but hey, you can design around that problem by offsetting the opening. See picture > I haven't really dug into shaving the plastic at all, since anything > I do to fight reflections has to come out of the plastic thickness. > If I add anything that projects inside the open volume, then the > sensor can't see what it needs to see. I think that depends on the size of the open volume, no? If the cone is wider, then you can afford to block some of the light with baffles of some sort. What about this, referring to the attached picture? It's just 2D to illustrate the idea. I leave the implementation and dimensions up to you. The narrow end of the cone is just large enough for the sensor, not the whole device. The whole device sits in the light blue box. The large end of the cone would be large enough so that the baffles would create the field of view required. I _think_ the baffles would need to be designed carefully, in both length and angle, so that light entering from the side, when reflecting off the bottom of a baffle (referring to the orientation in the picture), reflects into the area between each baffle and the one below it. You might need only one baffle, or perhaps more. Anyway.. food for thought. _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org <mailto:discuss-leave@lists.openscad.org> -- K1FZY (WA4TPW) SK 9/29/37-4/13/15 _______________________________________________ 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> -- K1FZY (WA4TPW) SK 9/29/37-4/13/15 _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org
RW
Ron Wheeler
Thu, Feb 17, 2022 9:58 PM

Have you thought about what would happen if you made the baffle out of a
series of cubes with a decreasing width and length?
This would provide flat surfaces that would reflect incidental light
back out rather than funnel it in.

Would lining your existing baffle with black felt be just as effective?

I guess that you only have to reject enough light so that the sensor
only counts light that is sufficiently bright - ie a sufficiently large
number of photons make it through to the sensor.

On 2022-02-16 17:24, david vanhorn wrote:

Yup, aware of the Z fighting. It's on my list. :)
The device itself is about 6.5 x 2.6cm, and the apex of this cone
needs to block the light from all of that.
The sensor is about 3x1 cm and offset left of center about 5mm which
complicates things.
I haven't really dug into shaving the plastic at all, since anything I
do to fight reflections has to come out of the plastic thickness.
If I add anything that projects inside the open volume, then the
sensor can't see what it needs to see.

--
K1FZY (WA4TPW) SK  9/29/37-4/13/15


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

--
Ron Wheeler
Artifact Software
438-345-3369
rwheeler@artifact-software.com

Have you thought about what would happen if you made the baffle out of a series of cubes with a decreasing width and length? This would provide flat surfaces that would reflect incidental light back out rather than funnel it in. Would lining your existing baffle with black felt be just as effective? I guess that you only have to reject enough light so that the sensor only counts light that is sufficiently bright - ie a sufficiently large number of photons make it through to the sensor. On 2022-02-16 17:24, david vanhorn wrote: > Yup, aware of the Z fighting. It's on my list. :) > The device itself is about 6.5 x 2.6cm, and the apex of this cone > needs to block the light from all of that. > The sensor is about 3x1 cm and offset left of center about 5mm which > complicates things. > I haven't really dug into shaving the plastic at all, since anything I > do to fight reflections has to come out of the plastic thickness. > If I add anything that projects inside the open volume, then the > sensor can't see what it needs to see. > > > -- > K1FZY (WA4TPW) SK  9/29/37-4/13/15 > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- Ron Wheeler Artifact Software 438-345-3369 rwheeler@artifact-software.com