|
![](/i/fill.gif) |
Stephen <mcavoys_at@aoldotcom> wrote:
> it perpendicular to the tangent.
> I tried tracing against a sphere for simplicity and even that is beyond
> me, to get the objects aligned to the normal.
>
> Some sample code would be helpful.
>
> TIA
>
> --
> Regards
> Stephen
From: \scene\language\trace2.pov
Add: #include "transforms.inc" // at the top of the scene
about line 64
//cylinder {iPt, iPt + iNorm*PinHeight, 0.01}
cylinder {0,<0,PinHeight,0>, 0.01
Reorient_Trans(<0,1,0>, iNorm)
translate iPt //<iPt.x,iPt.y,iPt.z>
}
I have replaced the original cylinder{} with one defined at the origin and
rotated to match the normal, then translated into place.
Is this what you where looking for?
Stephen S
Post a reply to this message
|
![](/i/fill.gif) |