summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/src/par-extensions-en.tex
blob: d07b4ce825b05936bd459ed7c9c7493a9838a3ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
\section{Creating your own object}
It is possible to create your own object in a separate file and
import it into the list of objects recognized by
\texttt{pst-solides3d}. Create a text file with the extension of \texttt{.pro}
(myObj.pro) and enter the PostScript commands to define your
\texttt{pst-solides3d} object.

Reference your \texttt{.pro} file in the preamble with
\begin{verbatim}
    \pstheader{myObj.pro}
\end{verbatim}
Following this line, add this new object to the list of objects recognized by \texttt{pst-solides3d}
with
\begin{verbatim}
    \addtosolideslistobject{myObj}
\end{verbatim}

For some examples of this technique, see the following web pages:

\centerline{\url{http://melusine.eu.org/syracuse/mluque/solides3d2007/cristaux/}}

\centerline{\url{http://melusine.eu.org/syracuse/mluque/solides3d2007/rhombicuboctaedre/}}


\section{Creating a \texttt{.u3d} file}

You can manipulate 3D objects created with \texttt{pst-solides3d};
the following three steps are necessary:
\begin{enumerate}
\item Save your designed 3D object in the \texttt{.off} or
    \texttt{.obj} format---see the chapter ``\textit{Usage of external files}''.

\item Then use, for example, \textit{Meshlab}---an open source software---(\url{http://meshlab.sourceforge.net/}) to convert these files
    into the \texttt{.u3d} format.

\item The {\LaTeX} package \texttt{movie15} of Alexander \textsc{Grahn} embeds
    files in the \texttt{.u3d} format into a PDF document, the document can then be viewed
    using $\text{Adobe}^{\text{\tiny\circledR}}$ $\text{Reader}^{\text{\tiny\circledR}}$ 7 or later.
\end{enumerate}

You will find some examples on the following web pages:

\centerline{\url{http://melusine.eu.org/syracuse/mluque/solides3d2007/pdf3d/}}

\centerline{\url{http://melusine.eu.org/syracuse/mluque/solides3d2007/zeolithes/}}

\endinput