POV-Ray : Newsgroups : povray.newusers : Spline Macro : Spline Macro Server Time
6 Oct 2024 07:54:02 EDT (-0400)
  Spline Macro  
From: quoderatd
Date: 15 Jul 2009 18:50:00
Message: <web.4a5e5c9e472605c67c859cee0@news.povray.org>
Hello,

I am trying to apply transformations to a spline macro object.

I used the macro file from the following link:

http://www.geocities.com/ccolefax/spline/index.html

////////////////////////////code/////////////////////////////////
#include "spline.mcr"

#declare ObjectSpline = create_spline (
   array[4] {<0, 0, 0>, <0, 2, 0>, <0, 3, -.25>, <0, 5, -.25>},
   create_hermite_spline + spline_sampling (4) +spline_rotate(180*y) +
spline_translate (.8*z)  )


#declare link_object = superellipsoid {<.3, .3>  rotate 90*y
   pigment {rgb <1, 0, 0>}
   //finish {reflection 0.4 specular 0.5 metallic}
   }

object{link_spline (ObjectSpline, spline_step_size (0.07) ) translate 1*x}

/////////////////////////////end of code //////////////////////////

This is basically a back support of a chair.

I wanted to have couple of them, so I tried translating the object, and

there seems to be conflict with the macro file...

How could I apply transformations on it?

Thanks


Post a reply to this message

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