[pstricks] exagonal tessellation of euclidean plane

Juergen Gilg gilg at acrotex.net
Fri Aug 22 21:20:58 CEST 2008


Hi Fosk,

here some quick tries with _multido_ -- hope this helps.

\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\begin{document}
\def\hexagon{%
\pspolygon(2;0)(2;60)(2;120)(2;180)(2;240)(2;300)(2;360)
}
% notation of the vertices in POLAR COORDINATES
 
\begin{pspicture}(-5,-2)(5,2)
\rput{0}(0,0){\hexagon}
\rput{30}(3,0){\hexagon}%{30} = rotation 30 degrees Counterclock
\end{pspicture}
 
\begin{pspicture}(-1,-2)(9,6)
\multido{\r=0+3.4641}{4}{%
\rput{30}(\r,0){\hexagon}
}
\multido{\r=1.73205+3.4641}{4}{%
\rput{30}(\r,3){\hexagon}
}
\end{pspicture}
\end{document}

Regards,

Juergen

Fosk wrote:
> Hello everybody, I'm an italian math student. I would like to draw an 
> exagonal tessellation using PSTricks. How can I do? I started using 
> this TeX package just a few weeks ago, I'm not keen on writing the 
> code I need. I thihnk I can use some kind of cycle as multido to 
> obtain a single exagon and then repeat with tactically the pattern. 
> But... I don't know how to start.
>
> Thanx a lot.
> ------------------------------------------------------------------------
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>   

-- 
 Jürgen Gilg
 Austr. 59
 70376 Stuttgart
-------------------------------------
 Tel       0711.59 27 88
 e-Mail    gilg at acrotex.net
 Websites  www.acrotex.net
           www.brueckenkurs-physik.de
           www.gilligan-online.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080822/ac2b0f5d/attachment.html 


More information about the PSTricks mailing list