POV-Ray : Newsgroups : povray.binaries.images : Round edges_& Brick arch_& Striscia Server Time
18 Aug 2024 06:11:54 EDT (-0400)
  Round edges_& Brick arch_& Striscia (Message 1 to 1 of 1)  
From: Anoop Kumar
Subject: Round edges_& Brick arch_& Striscia
Date: 22 May 2001 13:10:48
Message: <3b0a9d98@news.povray.org>
Hi,
See povray.general: Re:round edges_Brick Arch_& Striscia.
The code for the brick arch (for anyone who may be interested) is as
follows (It's a bit crude since it's only purpose was to see whether a
brick arch with rounded edges couldn't be done without knowing complicated
maths:

#include "Striscia.inc"

#include "colors.inc"
#include "stones.inc"


camera {location <3,8,-16> look_at <1,5,0> angle 60}
background {color SkyBlue}
light_source {<100,200,-100> color rgb 1 }
light_source {<0,5,-100> color rgb .5 }
  #declare gvSky=z;
  #declare gPathDivs=16;
  #declare gShapeDivs=4;
  #declare gPathDepth=12;

//THE ARCH

  #declare Path1=splBezierSpline(array[4] { <0,4,0>, <2,6.25,0>,
<4,6.25,0>, <6,4,0>})
//  PlotXYSpline(Path1)
SetPathSpline(Path1)

  #declare Shape0 = splPolygon(4)
  #declare Shape0 = splRotateSpline(Shape0, z * 45)
  #declare Shape1 = splCircle(4)
  #declare Shape1=splScaleSpline(Shape1, <.5,.5,.5>)
  #declare Shape1=splTranslateSpline(Shape1, x*.8)
  #declare Shape= splCombineSplines(Shape0, Shape1)
SetShapeSpline(Shape)

SetWrappedTexture(texture
        {pigment{brick Gray40, Red*.7 scale 1/64}
        finish{phong .4}})

object{Striscia(UNION)


P.S. Hope this is in the right newsgroup; this is the first time I'm
posting an image here.


Post a reply to this message


Attachments:
Download 'brkArch&rndEdges.JPG' (12 KB)

Preview of image 'brkArch&rndEdges.JPG'
brkArch&rndEdges.JPG


 

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