Tour of Geometrica
This version of Geometrica expands the features highlighted in
Versions 97 and 02. In this tour, we demonstrate controlling the
display of the steps of parabola construction with the
option DisplayOn, we use the newly introduced Cartesian
representation in the treatment of parabolic cylinders, and we describe
helicoidal staircases and give an example of a Bézier surface
for CAD applications.
Calling Geometrica
Each time you need Geometrica, execute the following command.
In[1]:=
To see the results of the commands contained in the Mathematica notebook version* of this document, or any
other notebook of the Geometrica documentation, execute the
input cells sequentially. If you forget to do so, you may have to deal
with undefined variables.
Geometrica versus Cabri or Sketchpad
Features of Geometrica and Mathematica
- List processing
- Symbolic facilities
- Functional programming
- Draw and Draw3D commands
- Many new geometrical functions
Euclidean and Analytical Geometries
- Primary concept in Euclidean geometry: CPoint
- Primary concept in analytical geometry: Coordinates
Solution of an Elementary Problem
The best starting point consists of choosing a simple problem and
seeing how it is solved. We shall generate a parabola as the envelope
of one edge of a square ruler whose vertex describes a line and whose
other edge passes through a fixed point.
Point, Line, and First Drawing
In[2]:=
Out[2]=
The straight line is the y-axis.
In[3]:=
Out[3]=
Bound Point and Euclidean Line
The edge passing through m is defined by a second point bound to
d.
In[5]:=
Out[5]=
Out[6]=
The next drawings are not displayed; they will serve later to show the
various steps of the construction. The option DisplayOn →
False replaces the Mathematica
function DisplayFunction → Identity.
In[7]:=
Geometrical Function
The other edge, d2, is
perpendicular in m1 to d1.
In[10]:=
Out[10]=
Derivative of a Geometrical Function
When the parameter t varies, the line d2
moves between two infinitesimally close positions. The two lines
intersect at a point of the envelope.
In[12]:=
Out[12]=
Out[14]=
Animation and Storyboard
We can now recapitulate the construction by using the
command Movie, which produces the six figures by integrating
the n+1th figure to the
nth one. Double-clicking on the
right-hand bracket that covers all the cells regroups the cells into a
single bracket. Then we can animate the film with the
command Cell`AnimateSelectedGraphics.
In[16]:=
![[Graphics:HTMLFiles/functions_23.gif]](images/functions_23.gif) |
To view the full movie, download the
Mathematica notebook version of
this tour.* |
The movie is adapted to a demo but, to keep the trace of the
construction, it is more appropriate to use StoryBoard, which
puts the figures in a table. The last graph recapitulates all the
construction.
In[17]:=
![[Graphics:HTMLFiles/functions_36.gif]](images/functions_36.gif) |
To view the full movie, download the
Mathematica notebook version of
this tour.* |
Viewing the Envelope Process
We are now curious to see the motion of the
line d2. We make a table of the graph of the line
for a whole range of t.
In[18]:=
![[Graphics:HTMLFiles/functions_45.gif]](images/functions_45.gif) |
To view the full movie, download the
Mathematica notebook version of
this tour.* |
Study of a Conic
To find the equation of the envelope, we eliminate t from
the coordinates of mp.
In[20]:=
Out[23]=
Geometrica can recognize the nature of the conic from its Cartesian equation, r x2 + 2 s x y + t y2 + 2 u x + 2 v y + w = 0.
In[24]:=
Out[24]=
and determine its focus and directrix.
In[25]:=
Out[25]=
Summary
The parabola is drawn with its directrix and focus, and the previous
graph is added in Show.
In[26]:=
Illustration in 3D
The previous problem can be visualized in 3D by replacing the parabola
with a cylinder with a parabolic directrix.
3D Conic
A 2D object can be converted into a 3D object using the command To3D.
In[28]:=
Out[28]=
The parabola is defined by its 2D representation and located in the
horizontal plane. We obtain a point belonging to the parabola
using Pointer
In[29]:=
Out[29]=
and the tangents using ELine.
In[30]:=
Out[30]=
Cylinder
A cylinder is defined by a curve, here the parabola, and a generator
parallel to a fixed direction Oa, where a has been
chosen as the point of Oz at height 6. It can be obtained
either in parametric or Cartesian form using the
option CQuadric. However, the Cartesian form has an internal
parametrization that limits the generator to a height of 1.
In[31]:=
Out[31]=
The planes tangent to the parabolic cylinder are represented by
parallelograms of vertices: the contact point m3D with the
parabola, the point of parameter 0 of the tangents tg to the
parabola, and the point of height 6 on the vertical line passing
through the contact point.
In[32]:=
Out[32]=
In[33]:=
Out[33]=
The parallelogram is then given.
In[34]:=
Out[34]=
The full figure can now be drawn.
In[35]:=
CAD Functions
Walls as Examples of Parallel Polygons
A line L' is parallel to a line L when it is generated
by the end of a segment attached and normal to L. This
definition assumes that L represents a continuous and derivable
function, which is not true for a polygon that has no normal at a
vertex. A convention is introduced in Geometrica to define a
parallel polygon. We illustrate it here for the walls of a house.
In[37]:=
The walls have been defined with openings that can be seen if the
option Ribbon is used. The inner polygons of the
"ribbon" can be painted to distinguish the solid and open
parts of the wall.
In[43]:=
Putting Dimensions on a Technical Drawing
The drawing can be completed by adding the walls' dimensions.
In[46]:=
Helicoidal Staircase
For the initial view of a helicoidal staircase, we use the default definition.
In[48]:=
Various variables and options are at hand to parametrize the
staircase. The detail of a step is shown by drawing 1/36 of the full
staircase, whose stair width is equal to 1, pitch is 1, and angular
step is . Each
stair has a thickness and a recess that have optional values. Optional
also are the direction of rotation, the inner radius, and the initial
angle. The stair is represented here from two opposite viewpoints.
In[50]:=
Optics Functions and Offset
The function Paraxial in Geometrica is inspired by
optics, but it is also common in CAD applications, where it is
called Offset. Paraxial lines are generated in the same way
as parallel lines, but the distance between the lines varies according
to a prescribed function.
In[52]:=
Out[53]=
Out[54]=
The shape of the paraxial line may be more elaborate for larger
amplitudes of the oscillation.
In[56]:=
In[58]:=
In Geometrica05, the functions Parallel
and Paraxial have been extended to any curve or surface. This
is the paraxial curve of a helix.
In[60]:=
Out[61]=
Paraxial surfaces can also be obtained by modulating one or both
parameters. This is a cylinder whose elliptic base is deformed by a
sine function.
In[63]:=
Out[63]=
Out[64]=
Out[65]=
The generators only are now modified using the second variable.
In[67]:=
Out[67]=
Out[68]=
The original cylinder is now subjected to the product of the two
previous paraxial functions.
In[70]:=
Out[70]=
Out[71]=
Bézier Surface
The preceding surface can be fitted using a Bézier fit. Drawing
the reference surface in yellow and the Bézier surface in the
default color in the same graph shows how faithful the fit is.
In[73]:=
* If you don't yet have Mathematica, you can download the free Mathematica Player to explore this notebook and other features.
|