| 1 |
\section{Creating your own object} |
| 2 |
It is possible to create your own object in a separate file and |
| 3 |
import it into the list of objects recognized by |
| 4 |
\texttt{pst-solides3d}. Create a text file with the extension of \texttt{.pro} |
| 5 |
(myObj.pro) and enter the PostScript commands to define your |
| 6 |
\texttt{pst-solides3d} object. |
| 7 |
|
| 8 |
Reference your \texttt{.pro} file in the preamble with |
| 9 |
\begin{verbatim} |
| 10 |
\pstheader{myObj.pro} |
| 11 |
\end{verbatim} |
| 12 |
Following this line, add this new object to the list of objects recognized by \texttt{pst-solides3d} |
| 13 |
with |
| 14 |
\begin{verbatim} |
| 15 |
\addtosolideslistobject{myObj} |
| 16 |
\end{verbatim} |
| 17 |
|
| 18 |
For some examples of this technique, see the following web pages: |
| 19 |
|
| 20 |
\centerline{\url{http://melusine.eu.org/syracuse/mluque/solides3d2007/cristaux/}} |
| 21 |
|
| 22 |
\centerline{\url{http://melusine.eu.org/syracuse/mluque/solides3d2007/rhombicuboctaedre/}} |
| 23 |
|
| 24 |
|
| 25 |
\section{Creating a \texttt{.u3d} file} |
| 26 |
|
| 27 |
You can manipulate 3D objects created with \texttt{pst-solides3d}; |
| 28 |
the following three steps are necessary: |
| 29 |
\begin{enumerate} |
| 30 |
\item Save your designed 3D object in the \texttt{.off} or |
| 31 |
\texttt{.obj} format---see the chapter ``\textit{Usage of external files}''. |
| 32 |
|
| 33 |
\item Then use, for example, \textit{Meshlab}---an open source software---(\url{http://meshlab.sourceforge.net/}) to convert these files |
| 34 |
into the \texttt{.u3d} format. |
| 35 |
|
| 36 |
\item The {\LaTeX} package \texttt{movie15} of Alexander \textsc{Grahn} embeds |
| 37 |
files in the \texttt{.u3d} format into a PDF document, the document can then be viewed |
| 38 |
using $\text{Adobe}^{\text{\tiny\circledR}}$ $\text{Reader}^{\text{\tiny\circledR}}$ 7 or later. |
| 39 |
\end{enumerate} |
| 40 |
|
| 41 |
You will find some examples on the following web pages: |
| 42 |
|
| 43 |
\centerline{\url{http://melusine.eu.org/syracuse/mluque/solides3d2007/pdf3d/}} |
| 44 |
|
| 45 |
\centerline{\url{http://melusine.eu.org/syracuse/mluque/solides3d2007/zeolithes/}} |
| 46 |
|
| 47 |
\endinput |