How do you draw a star like shape using Tikz, like the shape below Star like shape

  • 1
    I see two triangles and a \draw (a)--(q)--.....(p); – percusse Aug 3 '14 at 14:35
  • Is G isobarycenter of the six points or common isobarycenter of the two triangles ? – Tarass Aug 3 '14 at 16:49
  • Sorry to bother you. I know that you have up-voted answers and that is great! However, you still haven't accepted any answer (a different action from up-voting). Please consider revisiting your questions and, for each one, accepting the answer that you consider best solved your problem. In case of doubt, please see How do you accept an answer?. – Gonzalo Medina Aug 4 '14 at 18:04

One option; the barycentric coordinate system was used to position the node "G":



  (0,0) coordinate (A) --
  (4,1) coordinate (B) --
  (4.5,2) coordinate (C) -- 
  (3.8,3) coordinate (D) --
  (1.6,4) coordinate (E) --
  (-1,1.5) coordinate (F) --
  (B) -- (D) -- (F) -- cycle;
  (A) -- (C) -- (E) -- cycle;
\foreach \Coor/\Texto/\Pos in 
  \node[circle,draw,inner sep=1.5pt,fill=white,label={\Pos:$\Texto$}] 
  at (\Coor) {};
  \node[fill,circle,inner sep=1.5pt,label={right:$G$}] 
  at (barycentric cs:A=0.5,B=0.5,C=0.5,D=0.5,E=0.5,F=0.5) {};  


enter image description here

  • 1
    If all the barycentric factors are equal they allso could be 1. ;-) – Tarass Aug 3 '14 at 16:47

Just for typing exercise with PSTricks. The point G is the centroid of the outer most polygon.


    \pstGeonode(!\psGetNodeCenter{g} g.x 6 div g.y 6 div){G}
    \foreach \pt in {a,b,c,p,q,r}{\psset{fillcolor=white,fillstyle=solid}\pscircle(\pt){2pt}}

enter image description here

  • This is not an answer to the question posted, though. – cfr Aug 3 '14 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.