|
|
Generally, is there a built-in feature in POV Ray to create a solid
object from sweeping an existing solid object along a path?
If not, is it at least possible to sweep it along a straight line?
If still not possible, maybe my special case is possible some other way.
I actually want to extrude a planar sphere-sweep. So supopose I have a
spline on the y plane, and I use sphere-sweep to turn this into a tube
lying on the y plane. Now I want to turn that tube into a "sheet" with
round edges by extruding it along the y axis. Is this possible?
Perhaps is there a way to construct an equivalent shape by using
something other than sphere-sweep?
Thanks
Timwi
Post a reply to this message
|
|
|
|
Wasn't it Timwi who wrote:
>
>Generally, is there a built-in feature in POV Ray to create a solid
>object from sweeping an existing solid object along a path?
>
>If not, is it at least possible to sweep it along a straight line?
>
>If still not possible, maybe my special case is possible some other
>way. I actually want to extrude a planar sphere-sweep. So supopose I
>have a spline on the y plane, and I use sphere-sweep to turn this into
>a tube lying on the y plane. Now I want to turn that tube into a
>"sheet" with round edges by extruding it along the y axis. Is this
>possible?
>
>Perhaps is there a way to construct an equivalent shape by using
>something other than sphere-sweep?
In this particular case you could make three copies of the sphere sweep.
Place one copy at y=0
Translate one copy in the y direction
Scale the third copy by a huge amount in the y direction and intersect
it with the y=0 and y=1 planes. [If it were possible to scale it by
infinity in the y direction, it would fit perfectly, but scaling by, say
1e12, will create a shape that's off by less than a millionth of a pixel
unless your original shape is huge.]
#declare D=10;
union {
object {Sweep}
object {Sweep translate y*D}
intersection {
object {Sweep scale <1,1e12,1> translate y*D/2 }
plane {-y,0}
plane {y,10}
}
pigment {rgb 1}
}
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|