MAPaint Technical Report:
Fixed Point Constraints
|
Next: Lines of Intersection
Up: Geometry
Previous: Look up Tables for
Navigation through the volume can be difficult especially since
arbitrary sections give rise to unfamiliar views of well-known
structures. To aid the navigation the paint program give a ``cartoon''
3D feedback display showing the rough position of each view
with respect to the bounding box (see the section on 3D display).
A control within the view windows that can provide assistance for
navigation is the option of setting fixed-point constraints. The
basic idea of the transformation used is that it may often be possible
to identify one or more points within the image that the user wishes
to be definitely visible and thereby reduce the search space to setting
the viewing angles. If one point is fixed then there are two degrees
of freedom left to set the view and if there are two fixed points then
there is only one degree of freedom.
The transformation is defined so that by setting one fixed point,
,
the orientation parameters,
,
,
will rotate the view plane
about this point. If two points are fixed then
and
are
dependent and can be represented in parametric form using a third angle
parameter,
,
which corresponds to the angle around the line
joining the two fixed points.
The two fixed points
and
define vector
which must remain in the view plane. The values of
and
which define the plane in which the two fixed points were initially
defined,
and
,
define an axis perpendicular to
where R0 is the rotation matrix defined by
and
.
A third axis,
,
is perpendicular to both
and
and can be used to define
the normal to a viewing plane which contains the two fixed points:
where
,
and
is the original fixed plane.
If we demand that
is equal to one of the two fixed points and that
the viewing direction is
then both fixed points will be visible.
The corresponding viewing angles are given by:
Note if
then
is ill-defined. In the
program paint the third Euler angle
is determined by requiring
that the vector
maintains a constant angle to the vertical
on the screen. This angle is
determined by when the fixed line is first set.
In the 3D paint program the fixed point constraints are implemented so that
they remain in force whilst only the angles are being modified. Resetting
the first fixed point or changing the distance parameter will cancel
the second fixed point constraint.
Next: Lines of Intersection
Up: Geometry
Previous: Look up Tables for
Richard Baldock
1998-06-05