\label{poly} \section[Des polygones avec pst poly]{Des polygones avec pst poly \cite{pst-poly}} \SSCT{Des polygones avec pst poly}{Plolygons with pstpoly} \psset{PstPicture=false} Utilisation du module pst-poly (consultez le fichier pst-poly-doc.pdf ) \begin{tabular}{|l|} \hline \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon \pscircle[linestyle=dotted]{1} \end{psgraph} \\ \hline \BSS{PstPolygon} \BSI{PstPolygon}{pst-poly} \\ \BS{pscircle}[linestyle=dotted]\AC{1} \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|} \hline \rule[-1.5cm]{0pt}{1cm}texte avant \PstPolygon[PstPicture=false] texte après & texte avant \PstPolygon[PstPicture=true] texte après \\ \hline texte avant \BS{PstPolygon}[\RDD{PstPicture=false}] texte après & texte avant \BS{PstPolygon}[\RDD{PstPicture=true}] texte après \\ \hline \multicolumn{2}{|c|}{\dft : PstPicture=true} \RDI{PstPicture}{pst-poly} \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|} \hline \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[unit=2] \pscircle[linestyle=dotted]{2} \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[unit=.5] \pscircle[linestyle=dotted]{.5} \end{psgraph} \\ \hline \BS{PstPolygon}[\RDD{unit}=2] \RDI{unit}{pst-poly} & \BS{PstPolygon}[\RDD{unit}=.5] \\ \BS{pscircle}[linestyle=dotted]\AC{2} & \BS{pscircle}[linestyle=dotted]\AC{.5} \\ \hline \end{tabular} \subsection{Options} \begin{tabular}{|c|c|c|} \hline \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed,PstPicture=false] \PstPolygon[PolyRotation=18,PstPicture=false] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed,PstPicture=false] \PstPolygon[PolyRotation=36,PstPicture=false] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed,PstPicture=false] \PstPolygon[PolyRotation=45,PstPicture=false] \end{psgraph} \\ \hline \RDD{PolyRotation}=18 \RDI{PolyRotation}{pst-poly} & \RDD{PolyRotation}=36 & \RDD{PolyRotation}=45 \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|c|} \hline \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed] \PstPolygon[PolyNbSides=3] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed] \PstPolygon[PolyNbSides=7] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed] \PstPolygon[PolyNbSides=50] \end{psgraph} \\ \hline \RDD{PolyNbSides}=3 & \RDD{PolyNbSides}=7 & \RDD{PolyNbSides}=50 \RDI{PolyNbSides}{pst-poly} \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|c|} \hline \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed,] \PstPolygon[PolyOffset=2] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed,PolyNbSides=7] \PstPolygon[PolyOffset=2,PolyNbSides=7] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=-1 1,subticks=0](0,0)(-1,-1)(1,1){4cm}{4cm} \PstPolygon[linestyle=dashed,PolyNbSides=7] \PstPolygon[PolyOffset=4,PolyNbSides=7] \end{psgraph} \\ \hline \RDD{PolyOffset}=2 & \RDD{PolyOffset}=2 & \RDD{PolyOffset}=4 \RDI{PolyOffset}{pst-poly} \\ & PolyNbSides=7 & PolyNbSides=7 \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|c|} \hline \multicolumn{3}{|c|}{\BS{PstPolygon}[\RDD{PolyIntermediatePoint}=0.5] \RDI{PolyIntermediatePoint}{pst-poly} } \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[linestyle=dotted,] \PstPolygon[PolyIntermediatePoint=0.5] \pscircle[linestyle=dotted,linecolor=red]{0.5} \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[linestyle=dotted,] \PstPolygon[PolyIntermediatePoint=1.5] \pscircle[linestyle=dotted,linecolor=red]{1.5} \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[linestyle=dotted,] \PstPolygon[PolyIntermediatePoint=-0.5] \pscircle[linestyle=dotted,linecolor=red]{0.5} \end{psgraph} \\ \hline [\RDD{PolyIntermediatePoint}=0.5] & [\RDD{PolyIntermediatePoint}=1.5] & [\RDD{PolyIntermediatePoint}=-0.5] \\ \BS{pscircle}\AC{0.5} & \BS{pscircle}\AC{1.5} & \BS{pscircle}\AC{.5} \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|c|} \hline \multicolumn{3}{|c|}{\BS{PstPolygon}[PolyIntermediatePoint=0.5,\RDD{PolyCurves}=true] \RDI{PolyCurves}{pst-poly} } \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[linestyle=dotted,] \PstPolygon[PolyIntermediatePoint=0.5,PolyCurves=true] \pscircle[linestyle=dotted,linecolor=red]{0.5} \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[linestyle=dotted,] \PstPolygon[PolyIntermediatePoint=1.5,PolyCurves=true] \pscircle[linestyle=dotted,linecolor=red]{1.5} \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[linestyle=dotted,] \PstPolygon[PolyIntermediatePoint=-0.5,PolyCurves=true] \pscircle[linestyle=dotted,linecolor=red]{0.5} \end{psgraph} \\ \hline [PolyIntermediatePoint=0.5] & [PolyIntermediatePoint=1.5] & [PolyIntermediatePoint=-0.5] \\ \BS{pscircle}\AC{0.5} & \BS{pscircle}\AC{.5} & \BS{pscircle}\AC{.5} \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|c|} \hline \multicolumn{3}{|c|}{\BS{PstPolygon}[PolyOffset=2,PolyNbSides=40,\RDD{PolyEpicycloid}=true] \RDI{PolyEpicycloid}{pst-poly} } \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){4cm}{4cm} \PstPolygon[PolyNbSides=40,linestyle=dotted,] \PstPolygon[PolyOffset=2,PolyNbSides=40,PolyEpicycloid=true] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){4cm}{4cm} \PstPolygon[PolyNbSides=7,linestyle=dotted,] \PstPolygon[PolyOffset=3,PolyNbSides=40,PolyEpicycloid=true] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){4cm}{4cm} \PstPolygon[PolyNbSides=40,linestyle=dotted,] \PstPolygon[PolyOffset=4,PolyNbSides=40,PolyEpicycloid=true] \end{psgraph} \\ \hline PolyOffset=2 & PolyOffset=3 & PolyOffset=4 \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){4cm}{4cm} \PstPolygon[PolyNbSides=40,linestyle=dotted,] \PstPolygon[PolyOffset=5,PolyNbSides=40,PolyEpicycloid=true] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){4cm}{4cm} \PstPolygon[PolyNbSides=7,linestyle=dotted,] \PstPolygon[PolyOffset=40,PolyNbSides=40,PolyEpicycloid=true] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){4cm}{4cm} \PstPolygon[PolyNbSides=40,linestyle=dotted,] \PstPolygon[PolyOffset=41,PolyNbSides=40,PolyEpicycloid=true] \end{psgraph} \\ \hline PolyOffset=5 & PolyOffset=40 & PolyOffset=41 \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|} \hline \multicolumn{2}{|c|}{\BS{PstPolygon}[unit=1,\RDD{PolyName}=A,PolyNbSides=6] \RDI{PolyName}{pst-poly} } \\ \multicolumn{2}{|c|}{\BS{PstPolygon}[unit=2,\RDD{PolyName}=B,PolyNbSides=6]} \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[unit=1,PolyName=A,PolyNbSides=6] \PstPolygon[unit=2,PolyName=B,PolyNbSides=12] \psline[linecolor=red,linewidth=2pt](A1)(B1) \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstPolygon[unit=1,PolyName=A,PolyNbSides=6] \PstPolygon[unit=2,PolyName=B,PolyNbSides=12] \psline[linecolor=red,linewidth=2pt](A2)(B5) \end{psgraph} \\ \hline \BS{psline}(A1)(B1) & \BS{psline}(A2)(B5) \\ \hline \end{tabular} %------------------------------------------- %\subsection{Polygones prédéfinis} \SbSSCT{Polygones prédéfinis}{Predefined polygon} \begin{tabular}{|c|c|c|c|} \hline \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstTriangle \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstSquare \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstPentagon \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstHexagon \end{psgraph} \\ \hline \BSS{PstTriangle} \BSI{PstTriangle}{pst-poly} & \BSS{PstSquare} \BSI{PstSquare}{pst-poly} & \BSS{PstPentagon} \BSI{PstPentagon}{pst-poly} & \BSS{PstHexagon} \BSI{PstHexagon}{pst-poly} \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstHeptagon \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstOctogon \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstNonagon \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstDecagon \end{psgraph} \\ \hline \BSS{PstHeptagon} \BSI{PstHeptagon}{pst-poly} & \BSS{PstOctogon} \BSI{PstOctogon}{pst-poly} & \BSS{PstNonagon} \BSI{PstNonagon}{pst-poly} & \BSS{PstDecagon} \BSI{PstDecagon}{pst-poly} \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstDodecagon \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstStarFiveLines \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstStarFive \end{psgraph} & \\ \hline \BSS{PstDodecagon} \BSI{PstDodecagon}{pst-poly} & \BSS{PstStarFiveLines} \BSI{PstStarFiveLines}{pst-poly} & \BSS{PstStarFive} \BSI{PstStarFive}{pst-poly} & \\ \hline \end{tabular} \bigskip \begin{tabular}{|c|c|c|c|} \hline \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstTriangle* \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstSquare* \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstPentagon* \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstHexagon* \end{psgraph} \\ \hline \BSS{PstTriangle*} \BSI{PstTriangle*}{pst-poly} & \BSS{PstSquare*} \BSI{PstSquare*}{pst-poly} & \BSS{PstPentagon*} \BSI{PstPentagon*}{pst-poly} & \BSS{PstHexagon*} \BSI{PstHexagon*}{pst-poly} \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstHeptagon* \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstOctogon* \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstNonagon* \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstDecagon* \end{psgraph} \\ \hline \BSS{PstHeptagon*} \BSI{PstHeptagon*}{pst-poly} & \BSS{PstOctogon*} \BSI{PstOctogon*}{pst-poly} & \BSS{PstNonagon*} \BSI{PstNonagon*}{pst-poly} & \BSS{PstDecagon*} \BSI{PstDecagon*}{pst-poly} \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstDodecagon* \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstStarFiveLines* \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2,yticksize=-1.2 1.2,subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){2cm}{2cm} \PstStarFive* \end{psgraph} & \\ \hline \BSS{PstDodecagon*} \BSI{PstDodecagon*}{pst-poly} & \BSS{PstStarFiveLines*} \BSI{PstStarFiveLines*}{pst-poly} & \BSS{PstStarFive*} \BSI{PstStarFive*}{pst-poly} & \\ \hline \end{tabular} %\section{Non regular polygons} \begin{tabular}{|c|c|c|} \hline \multicolumn{3}{|c|}{\BS{PstStarFive}[\RDD{xunit}=1.5] \RDI{xunit}{pst-poly} } \\ \hline \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstStarFive[xunit=1.5] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstStarFive[yunit=1.5] \end{psgraph} & \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-2 2,subticks=0](0,0)(-2,-2)(2,2){4cm}{4cm} \PstStarFive[xunit=0.5,yunit=1.5] \end{psgraph} \\ \hline \RDD{xunit}=1.5 & \RDD{yunit}=1.5 \RDI{yunit}{pst-poly} & \RDD{xunit}=0.5,\RDD{yunit}=1.5 \\ \hline \end{tabular}