|
![](/i/fill.gif) |
trace should do it, it's not even heard to understand, try it.
Rich wrote:
>
> This may already exist; if so a URL would be welcome! What I'd like to
> be able to do is place objects on the surface of another object. The macro
> should be able to place an object (b) anywhere on the other object (a),
> rotated according (I guess) to the normal of (a) at the point (b) will be
> placed. I'm mostly interested in spheres and torii for (a), but ones that
> have been scaled in various axis PRIOR to having (b) placed. If the macro
> could handle any of POV's primitives, that would be cool too. It would
> also be cool to have some control over where (b) is placed on (a); with a
> sphere I suppose a vector from the center could be used. No idea how a
> torus would handle it... maybe a flag to use the first or second surface
> hit?
>
> What I'm thinking of is something like this:
>
> #declare B = [definition of object to be placed on surface of A]
> #declare A = [definition of object that will have B placed on it]
> #declare loop = 0;
> #declare C = union {
> #while (loop < 11)
> Place(A, B, [vector??], [first or second??], [random])
> #declare loop = loop + 1;
> #end
> }
>
> Is this an impossible dream?? I have looked at MegaPOV's trace function,
> but it goes over my head even if I stand up while I read about it. <smile>
> If it's possible and an explanation of how to go about doing it were
> available I could take a hack at it myself.
>
> --
> Rich Allen
> (Remove SPAM from my address to reply by e-mail)
Post a reply to this message
|
![](/i/fill.gif) |