POV-Ray : Newsgroups : povray.general : Can a variable not hold blob components ? : Can a variable not hold blob components ? Server Time
9 Aug 2024 13:27:02 EDT (-0400)
  Can a variable not hold blob components ?  
From: Tor Olav Kristensen
Date: 9 Jul 2000 12:31:27
Message: <3968A860.5C4B8676@online.no>
I want to do this:


#declare Spike = 
cylinder {
  0, y, 0.1
  strength 0.3
}
  
#declare Ball = 
sphere {
  <0, 0, 0>, 0.5
  strength 0.5
}


#macro InsertComp(Component, Position)

  object { // a "component {" keyword would be useful here
    Component
    translate Position
  }

#end // macro InsertComp


blob {
  threshold 0.3
  InsertComp(Ball, <0, 1, 0>)
  InsertComp(Spike, <0, 1, 0>)
  pigment { color <1, 0, 0> }
}


(Well, not really but this is a 
simplification of what I am trying to do.)

But I only get this error message:
"error: No matching } in cylinder, strength found instead"

=(

Any suggestions ?


Tor Olav
--
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

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