In the following example, why there is no blue triangle ?
\documentclass[a4paper]{article}
\usepackage[marginparsep=3pt, top=2cm, bottom=1.5cm, left=3cm, right=1.5cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{calc,intersections}
\tikzset{small dot/.style={fill=black,circle,scale=0.3},}
\begin{document}
\begin{tikzpicture}
\coordinate (A0) at (0,0) ;
\coordinate (A1) at (1,0) ;
\coordinate (A2) at (0,1) ;
\draw[fill=red] (A0)--(A1)--(A2)--cycle ;
\draw ($ (A0)!.5!(A1) $) node (E0) {};
\draw ($ (A1)!.5!(A2) $) node (E1) {};
\draw ($ (A2)!.5!(A0) $) node (E2) {};
\draw[fill=blue] (E0)--(E1)--(E2)--cycle ;
\end{tikzpicture}
\end{document}

It is just a simple sample of the problem I have.
As I need to use let...in... to calculate between ! ! coefficient, I use this definition of nodes for the Ex nodes. If there is another way or how to correct the blue triangle drawing.
One can tcheat :
\draw ($ (A0)!.5!(A1) $) node (E0) {};
\draw ($ (A1)!.5!(A2) $) node (E1) {};
\draw ($ (A2)!.5!(A0) $) node (E2) {};
\coordinate (B0) at (E0) ;
\coordinate (B1) at (E1) ;
\coordinate (B2) at (E2) ;
\draw[fill=blue] (B0)--(B1)--(B2)--cycle ;
works fine, but why i doesn't work at first time ?


coordinateinstead ofnodeto defineE0,E1andE2. – Paul Gaborit Feb 26 '14 at 12:56