|
![](/i/fill.gif) |
honnza nous apporta ses lumieres en ce 2007/10/06 07:33:
> Is there an easy way to join two points by two circular arcs given their
> tangents?
> Input:
> A,B - endpoints
> a,b - their tangents (oriented parallel to the arcs)
> where A+at and B+bs are skew lines (it's easy to handle the planar case)
> Output:
> C,D - arc centers
> arc normals and radii can be calculated easily from these
> E - intersection point of both points
> together with the arcs' common tangent vector it will be used to cut the
> tori.
>
> I think (after some analysing) it has an infinite number of solutions,
> parametrised by a real number.
>
>
You may try the ik neck macro by Rune S. Johansen. It takes 2 arbitrary end
points, 2 arbitrary directions (your tangents), a weighting/rigidity value for
both direction and a total development distance.
It returns a spline that you can use to place several spheres or other objects,
or as control points for a sphere_sweep.
The file name is: ikn.inc. It's heavily commented, helping the comprehention of
the technique utilised.
--
Alain
-------------------------------------------------
You know you've been raytracing too long when someone shows you a photograph of
their new rough-slate kitchen floor and you say "nice normals".
-- Tom Melly
Post a reply to this message
|
![](/i/fill.gif) |