Posted by andy.wpg

Trouble with the curve January 22, 2018 03:32PM |
Registered: 4 years ago Posts: 20 |

I am attempting to make a bezel with HDglass. I know that it will never be optic clear, but some tests with the 10W leds I will be using shows the light transmission is perfect for what I need.

The bezel is 100mm long (x axis), 50mm high (z axis) and 0.8mm thick (y axis). What I would like to do is bend the face of it. So, the x-axis would be curved a bit around the z axis.

I understand how to use a difference to remove the back of a cube with a cylinder. What I*don't* know how to do is curve the face of the block so that it is a consistent thickness the whole way.

I assume it uses a function that I have not yet been able to discover yet.

Can anyone give any assistance on this?

Thanks

Andy

"I have noticed that even those who assert that everything is predestined and that

we can change nothing about it still look both ways before they cross the street"

-Stephen Hawking

The bezel is 100mm long (x axis), 50mm high (z axis) and 0.8mm thick (y axis). What I would like to do is bend the face of it. So, the x-axis would be curved a bit around the z axis.

I understand how to use a difference to remove the back of a cube with a cylinder. What I

I assume it uses a function that I have not yet been able to discover yet.

Can anyone give any assistance on this?

Thanks

Andy

"I have noticed that even those who assert that everything is predestined and that

we can change nothing about it still look both ways before they cross the street"

-Stephen Hawking

Re: Trouble with the curve January 23, 2018 03:13AM |
Registered: 3 years ago Posts: 499 |

I tried to understand what exactly you are trying to build... Is it something like this?

If so, I built it as the intersection of a cube with the difference of 2 cylinders as follows:

If so, I built it as the intersection of a cube with the difference of 2 cylinders as follows:

module cylbezel( l, // length h, // height w, // thickness a // arch rise (y-offset in center, >0) ){ //compute radius from arch rise r=l*l/(8*a)+a/2; intersection(){ translate([-l/2,0,0])cube([l,a+w,h]); translate([0,r,-1])difference(){ cylinder(r=r,h=h+2); cylinder(r=r-w,h=h+2); } } } cylbezel(l=100,h=50,w=0.8,a=15,$fn=360);

Re: Trouble with the curve January 23, 2018 08:01AM |
Registered: 4 years ago Posts: 20 |

Quoteenif

I tried to understand what exactly you are trying to build... Is it something like this?

If so, I built it as the intersection of a cube with the difference of 2 cylinders as follows:

module cylbezel( l, // length h, // height w, // thickness a // arch rise (y-offset in center, >0) ){ //compute radius from arch rise r=l*l/(8*a)+a/2; intersection(){ translate([-l/2,0,0])cube([l,a+w,h]); translate([0,r,-1])difference(){ cylinder(r=r,h=h+2); cylinder(r=r-w,h=h+2); } } } cylbezel(l=100,h=50,w=0.8,a=15,$fn=360);

EXACTLY! Thank you so much, and sorry about the poor description.

Edited 1 time(s). Last edit at 01/23/2018 08:03AM by andy.wpg.

"I have noticed that even those who assert that everything is predestined and that

we can change nothing about it still look both ways before they cross the street"

-Stephen Hawking

Sorry, only registered users may post in this forum.