Thanks,
Hans
We note that if you take 3 points and consider the plane they
specify, for any direction there is an ellipse through the three
points in the plane with major axis in that direction. This enables
a cylinder of circular cross-section to pass through the three points
and have that ellipse as section.
Consider a fourth point not on that plane (because general position).
There is a family of cylinders based on ellipses at different
directions, and passing through the fourth point as well.
Now consider two points symmetrically placed with respect to that
plane (i.e one above and one below) and not on the cylinder specified
by the circumcircle of the first three points. Any cylinder through
the fourth point must be tilted, making it difficult to pass through
the fifth point.
JohnM
ellipse = Ax^2 + Bxy + Cy^2 + Dx + Ey + 1 = 0
so take five points in a plane, describe them with coords in the plane
and generate 5 linear equations using the above formula. This then is
obviously solvable.
It seems to me (haven't proved it or even tried) that the ratio
between long and short axis bears a 1-to-1 relationship with the
vector defining the cylinder's axis. Also, it seems to me that the
absolute value of the short (or long) axis bears a 1-1 relationship to
the radius of the cylinder (given the ratio long/short). That is to
say, I'm assuming that an ellipse can uniquely define a cylinder (is
this true?).
However, if you have 5 non-planar points you might have a problem:
1) 3 points define a plane, with an infinite number of ellipse passing
through them. This then means an infinite number of ellipses pass
through them.
2) As stated, 5 points define an ellipse. So we need 2 more points.
Now consider two points that lie on the cylinder. When projected along
a line parallel to the axis defined by (Rx,Ry,1) these two points
define two additional points on the mentioned ellipse, within two
unknowns Rx, Ry. We now have 5 equations with 7 unknowns. Two
additional points on the cylinder generate 2 additional equations
without adding more unknowns, resulting in 7 (non-linear) equations
with 7 unknowns.
Hence, it seems that you need 3+2+2 = 7 points to uniquely fix a
cylinder in space.....
What d'u think: do the arguments hold any water ?
cheers
Erik
So IF the 9 points lie on a cylinder, they will uniquely determine the answer.
The theory, much like below, is reflected in the equation:
A x^2 + B y^2 + C z^2 + Dxy + Eyz + Fxz + G x + Hy + Iz + J = 0
If someone gives you a point x_1, y_1, z_1 on he surface, this gives
one linear equation in the 10 variables above.
(Think of x^2, Y^2 xy etc as known numbers and see that A,B, ... J are
unknown.) In linear algebra, with 9 homogeneous equations in 10 variables, you
should expect a 1 paramter solution space. Indeed, any quadric can be
multiplied by a constant to give another equation of the same quadric.
What you did, below, was to set the last coordinate = 1 in order to take away
this one choice.
If you know the object is to be a cylinder, and you have decided which direction
the axis is to lie, this gives one point 'at infinity" which can be one of your
9 points. There are many options for which 9 points you need.
Having 3 of them collinear will also set up the axis direction, and guarantee
that the object being defined is not a sphere, ellipsoid, hyperboloid of two
sheets. It can still be something like a hyperbolic paraboloid (a saddle
surface) which contains lines. If you set up two parallel lines (3 points plus
three more) then you are close to a cylinder, but need a couple more points to
determine which conic section is the cross section. You now need three more
points to determine that cross section. In the extreme, of course, these points
might end up giving the answer of two parallel planes, and you will need to
include that as an extreme case of a cylinder!
Walter Whiteley