| 1 |
\section{Circles} |
| 2 |
|
| 3 |
\subsection{Direct definition} |
| 4 |
|
| 5 |
The object \Lkeyword{cercle} allows us to define and draw a \Index{circle}. |
| 6 |
In the \texttt{pst-solides3d} package, a circle in 2D is defined |
| 7 |
by its centre and radius. |
| 8 |
|
| 9 |
We use the option \Lkeyword{args} to specify the centre and radius of |
| 10 |
the chosen circle. We can use coordinates or named variables. |
| 11 |
|
| 12 |
The argument \texttt{\Lkeyword{range}=$t_{\rm min}$ $t_{\rm max}$} allows %$ |
| 13 |
us to specify an arc of the chosen circle. |
| 14 |
|
| 15 |
As for all the other object, we can save the circle data using the |
| 16 |
option \Lkeyword{name}. |
| 17 |
|
| 18 |
\begin{LTXexample}[width=7.5cm] |
| 19 |
\begin{pspicture}(-3,-3)(4,3.5)% |
| 20 |
\psframe*[linecolor=blue!50](-3,-3)(4,3.5) |
| 21 |
\psset{viewpoint=50 30 15,Decran=60} |
| 22 |
\psset{solidmemory} |
| 23 |
%% definition du plan de projection |
| 24 |
\psSolid[object=plan, |
| 25 |
definition=equation, |
| 26 |
args={[1 0 0 0] 90}, |
| 27 |
planmarks, |
| 28 |
name=monplan] |
| 29 |
\psset{plan=monplan} |
| 30 |
%% definition du point A |
| 31 |
\psProjection[object=point, |
| 32 |
name=A, |
| 33 |
text=A, |
| 34 |
pos=ur](-2,1.25) |
| 35 |
\psProjection[object=cercle, |
| 36 |
args=A 1, |
| 37 |
range=0 360] |
| 38 |
\psProjection[object=cercle, |
| 39 |
args=1 1 .5,linecolor=blue, |
| 40 |
range=0 180] |
| 41 |
\composeSolid |
| 42 |
\end{pspicture} |
| 43 |
\end{LTXexample} |
| 44 |
|
| 45 |
\subsection{Some other definitions} |
| 46 |
|
| 47 |
There are additional methods to define a circle in 2D. The options |
| 48 |
\Lkeyword{definition} and \Lkeyword{args} give the following supported |
| 49 |
methods: |
| 50 |
|
| 51 |
\begin{itemize} |
| 52 |
|
| 53 |
\item \texttt{\Lkeyword{definition}=\Lkeyword{ABcercle}}; |
| 54 |
\texttt{\Lkeyword{args}=$A$ $B$ $C$}. |
| 55 |
|
| 56 |
A circle through the points $A$, $B$ |
| 57 |
and $C$. |
| 58 |
|
| 59 |
\item \texttt{\Lkeyword{definition}=\Lkeyword{diamcercle}}; |
| 60 |
\texttt{\Lkeyword{args}=$A$ $B$}. |
| 61 |
|
| 62 |
A circle with diameter $[AB]$. |
| 63 |
|
| 64 |
\end{itemize} |
| 65 |
|
| 66 |
\endinput |