<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Trouble with the curve</title>
        <description> 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&#039;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</description>
        <link>https://reprap.org/forum/read.php?313,806728,806728#msg-806728</link>
        <lastBuildDate>Wed, 15 Jul 2026 15:25:13 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?313,806728,806829#msg-806829</guid>
            <title>Re: Trouble with the curve</title>
            <link>https://reprap.org/forum/read.php?313,806728,806829#msg-806829</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>enif</strong><br />
I tried to understand what exactly you are trying to build... Is it something like this?<br />
<div id="div_a070a55aa29844e21b4f2b6b23d4bf2a"
     class="mod_embed_images_extended"
     style="width:500px">

  

    
      
    

    <div id="imagediv_a070a55aa29844e21b4f2b6b23d4bf2a" class="mod_embed_images_image"
         style="width:500px; height:400px">

    

    <a href="http://forums.reprap.org/file.php?313,file=101808,filename=cylbezel.png">
        <img src="/forum/thumbcache/5c4/acd/ad5/976/aba/dd5/491/f4c/d24/bf3/ee_800x400.png"
             width="500"
             height="400"
             id="image_a070a55aa29844e21b4f2b6b23d4bf2a"
             alt=""
             title=""/>
    </a>

    

    </div>

    <div class="mod_embed_images_info " id="info_a070a55aa29844e21b4f2b6b23d4bf2a"
      style="display:block">
      <a id="link_a070a55aa29844e21b4f2b6b23d4bf2a" href="http://forums.reprap.org/file.php?313,file=101808,filename=cylbezel.png"></a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('a070a55aa29844e21b4f2b6b23d4bf2a', '/forum/thumbcache/5c4/acd/ad5/976/aba/dd5/491/f4c/d24/bf3/ee_800x400.png', 'http://forums.reprap.org/file.php?313,file=101808,filename=cylbezel.png', 'https://reprap.org/forum/addon.php?313,module=embed_images,check_scaling=1,url=http%3A%2F%2Fforums.reprap.org%2Ffile.php%3F313%2Cfile%3D101808%2Cfilename%3Dcylbezel.png', '', 806829, 800, 400, 'Loading image ...', false);
</script>
<br />
If so, I built it as the intersection of a cube with the difference of 2 cylinders as follows:<br />
<pre class="bbcode">
module cylbezel(
   l, // length
   h, // height
   w, // thickness
   a  // arch rise (y-offset in center, &gt;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);

</pre></div></blockquote>
<br />
EXACTLY! Thank you so much, and sorry about the poor description.<br/>]]></description>
            <dc:creator>andy.wpg</dc:creator>
            <category>OpenSCAD</category>
            <pubDate>Tue, 23 Jan 2018 08:01:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?313,806728,806786#msg-806786</guid>
            <title>Re: Trouble with the curve</title>
            <link>https://reprap.org/forum/read.php?313,806728,806786#msg-806786</link>
            <description><![CDATA[ I tried to understand what exactly you are trying to build... Is it something like this?<br />
<div id="div_869c476a4c0017575ef0307ea3797c4c"
     class="mod_embed_images_extended"
     style="width:500px">

  

    
      
    

    <div id="imagediv_869c476a4c0017575ef0307ea3797c4c" class="mod_embed_images_image"
         style="width:500px; height:400px">

    

    <a href="http://forums.reprap.org/file.php?313,file=101808,filename=cylbezel.png">
        <img src="/forum/thumbcache/5c4/acd/ad5/976/aba/dd5/491/f4c/d24/bf3/ee_800x400.png"
             width="500"
             height="400"
             id="image_869c476a4c0017575ef0307ea3797c4c"
             alt=""
             title=""/>
    </a>

    

    </div>

    <div class="mod_embed_images_info " id="info_869c476a4c0017575ef0307ea3797c4c"
      style="display:block">
      <a id="link_869c476a4c0017575ef0307ea3797c4c" href="http://forums.reprap.org/file.php?313,file=101808,filename=cylbezel.png"></a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('869c476a4c0017575ef0307ea3797c4c', '/forum/thumbcache/5c4/acd/ad5/976/aba/dd5/491/f4c/d24/bf3/ee_800x400.png', 'http://forums.reprap.org/file.php?313,file=101808,filename=cylbezel.png', 'https://reprap.org/forum/addon.php?313,module=embed_images,check_scaling=1,url=http%3A%2F%2Fforums.reprap.org%2Ffile.php%3F313%2Cfile%3D101808%2Cfilename%3Dcylbezel.png', '', 806786, 800, 400, 'Loading image ...', false);
</script>
<br />
If so, I built it as the intersection of a cube with the difference of 2 cylinders as follows:<br />
<pre class="bbcode">
module cylbezel(
   l, // length
   h, // height
   w, // thickness
   a  // arch rise (y-offset in center, &gt;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);

</pre><br/>]]></description>
            <dc:creator>enif</dc:creator>
            <category>OpenSCAD</category>
            <pubDate>Tue, 23 Jan 2018 03:13:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?313,806728,806728#msg-806728</guid>
            <title>Trouble with the curve</title>
            <link>https://reprap.org/forum/read.php?313,806728,806728#msg-806728</link>
            <description><![CDATA[ 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.<br />
<br />
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.<br />
<br />
I understand how to use a difference to remove the back of a cube with a cylinder.  What I <b><i>don't</i></b> know how to do is curve the face of the block so that it is a consistent thickness the whole way.<br />
<br />
I assume it uses a function that I have not yet been able to discover yet.<br />
<br />
Can anyone give any assistance on this?<br />
<br />
Thanks<br />
<br />
Andy]]></description>
            <dc:creator>andy.wpg</dc:creator>
            <category>OpenSCAD</category>
            <pubDate>Mon, 22 Jan 2018 15:32:10 -0500</pubDate>
        </item>
    </channel>
</rss>
