%% examples/surface-platforms.tex
%%
%% Demonstrates the three platform shapes from tikzphysics.surface.
%% The short `platform' style selects the general two-wall variant.

\documentclass[tikz, border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{tikzphysics.surface}

\begin{document}

\begin{tikzpicture}
  %% platform with strip on left wall (e.g. floor meeting a left wall)
  \node[platform-left,
        platform width=5,
        platform depth=1]
    (PL) at (0,0) {};

  %% platform with strip on right wall, placed well clear of PL
  \node[platform-right,
        platform width=5,
        platform depth=1]
    (PR) at (0,-3) {};

  %% platform with strip on both walls (e.g. a chamber)
  \node[platform,
        platform width=5,
        platform depth=1]
    (PB) at (2.5,-6) {};

  %% label a few useful anchors on PL
  \fill (PL.surface-0) circle (1pt) node[above left=-1pt] {\tiny surface-0};
  \fill (PL.surface-100) circle (1pt) node[above right=-1pt] {\tiny surface-100};
  \fill (PL.wall-surface-50) circle (1pt)
    node[left] {\tiny wall-surface-50};

  %% and on PR
  \fill (PR.surface-0) circle (1pt) node[above left=-1pt] {\tiny surface-0};
  \fill (PR.wall-surface-50) circle (1pt)
    node[right] {\tiny wall-surface-50};

  %% and on PB
  \fill (PB.left-wall-surface-50) circle (1pt)
    node[left] {\tiny left-wall-surface-50};
  \fill (PB.right-wall-surface-50) circle (1pt)
    node[right] {\tiny right-wall-surface-50};
\end{tikzpicture}

\end{document}
