POV-Ray : Newsgroups : povray.binaries.scene-files : How to do bent rebar : Re: How to do bent rebar Server Time
1 Sep 2024 18:14:50 EDT (-0400)
  Re: How to do bent rebar  
From: Samuel Benge
Date: 9 Sep 2004 13:41:31
Message: <414095B8.2070807@hotmail.com>
Dave wrote:

> How would you POV-Ray gurus do a bent rebar.
> 
> So for example a straight section, then a 90 degree smooth bend (with some
> bending radius), another straight section, another bend (for example a U
> with a flat bottom).
> 
> I tries with a sphere-sweep and a cubic spline, but this does not give me
> the ability to specify the bend radius and I was unable to produce a smooth
> shape. I really do not want to have to specify the bend points explicitly.
> 
> I want to be able to specify the shape descriptively. For example, 0.5
> straight, 90 degree bend (downwards) with bend radius of 0.2, 1.0 straight,
> 90 degree bend (upwards) with bend radius of 0.3.
> 
> Is there a way?
> 
> Thanks,
> 
> dave

I'm not so sure this is the right group to be asking this....

Anyway, to make such bent rebar I would contruct it out of clipped torii 
and cylinders. A simple bar with a radius-2 bend at the beginning would 
look something like this:

union{
  cylinder{0,x*3,.1}
  torus{2,.1
   clipped_by{
    box{
     <-2.5,-.2,-2.5>,<0,.2,0>
    }
   }
   rotate x*270 translate y*2
  }
  pigment{rgb .13}
}

Please note that using clipped torii and cylinders in this manner will 
render more quickly than using a sphere_sweep.

-Sam


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.