%% examples/surface-numeric-anchors.tex
%%
%% Demonstrates explicit <edge>-0..100 percentage anchors on surface shapes.
%% Each family has its own documented direction: 0 is its start, 50 is its
%% midpoint, and 100 is its end. See percentage-anchors-beginner.tex first.

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

\begin{document}

\begin{tikzpicture}[every node/.style={inner sep=0pt, outer sep=0pt}]

  %% ------- platform with numeric anchors on all four edges -------
  \node[platform-left,
        platform width=5,
        platform depth=1]
    (PL) at (0,0) {};

  %% dot every 25% on all four bounding-box edges
  \foreach \t in {0, 25, 50, 75, 100} {
    \fill[red]    (PL.floor-bottom-\t) circle (1.2pt)
      node[below=1pt, font=\tiny\ttfamily] {b\t};
    \fill[blue]   (PL.floor-right-\t)  circle (1.2pt)
      node[right=1pt, font=\tiny\ttfamily] {r\t};
    \fill[green!60!black] (PL.floor-top-\t) circle (1.2pt)
      node[above=1pt, font=\tiny\ttfamily] {t\t};
    \fill[orange] (PL.floor-left-\t) circle (1.2pt)
      node[left=1pt,  font=\tiny\ttfamily] {l\t};
  }

  %% ------- wedge with base/right/slope numeric anchors -------
  \node[wedge,
        wedge width=4,
        wedge height=2.5]
    (W) at (0,-5) {};

  \foreach \t in {0, 25, 50, 75, 100} {
    \fill[red]    (W.base-\t)  circle (1.2pt)
      node[below=1pt, font=\tiny\ttfamily] {b\t};
    \fill[blue]   (W.right-\t) circle (1.2pt)
      node[right=1pt, font=\tiny\ttfamily] {r\t};
    \fill[green!60!black] (W.slope-\t) circle (1.2pt)
      node[above=1pt, font=\tiny\ttfamily] {s\t};
  }

\end{tikzpicture}

\end{document}
