%% surface-bent-platform.tex %% Exercise `wall angle' on platform-left / -right / -both. %% Each row shows the same platform drawn at a range of wall angles, %% with anchors overlaid. \documentclass[border=4pt,tikz]{standalone} \usepackage{tikz} \usetikzlibrary{tikzphysics} \begin{document} \begin{tikzpicture}[every node/.style={inner sep=0pt}] %% ------------- platform-left : wall angle sweep ------------- \node[anchor=east,font=\small\ttfamily] at (-0.4,7) {platform-left}; \foreach \a [count=\i from 0] in {-90,-60,-30,30,60,90,135} {% \node[platform-left, platform width=2.2cm, platform depth=2cm, wall angle=\a, anchor=surface-0] (P-\i) at (3*\i, 7) {}; \node[font=\tiny,below=2pt] at (P-\i.bottom-50) {$\a^\circ$}; } %% ------------- platform-right : wall angle sweep ------------- \node[anchor=east,font=\small\ttfamily] at (-0.4,2.5) {platform-right}; \foreach \a [count=\i from 0] in {-90,-60,-30,0,30,60,90} {% \node[platform-right, platform width=2.2cm, platform depth=2cm, wall angle=\a, anchor=surface-100] (R-\i) at (3*\i+2.2, 2.5) {}; \node[font=\tiny,below=2pt] at (R-\i.bottom-50) {$\a^\circ$}; } %% ------------- platform-both : dual-wall asymmetric --------- \node[anchor=east,font=\small\ttfamily] at (-0.4,-2) {platform-both}; \foreach \la/\ra [count=\i from 0] in {-90/-90, -60/-60, -45/45, 180/0, 30/-30, 60/60, 45/-45} {% \node[platform-both, platform width=2.2cm, platform depth=2cm, left wall angle=\la, right wall angle=\ra, anchor=surface] (B-\i) at (3*\i+1.1, -2) {}; \node[font=\tiny,below=2pt] at (B-\i.bottom-50) {$\la^\circ,\ra^\circ$}; } %% ------------- anchor demo on one bent platform --------------- %% Show off numeric edge anchors (wall-surface-T, surface-T) %% on a single platform-left at wall angle = +45. \begin{scope}[yshift=-6cm] \node[platform-left, platform width=5cm, platform depth=2.5cm, wall angle=45, anchor=pulley-center] (P) at (0,0) {}; %% dots at the platform corner, wall corners, and floor corners \foreach \n/\lbl in {pulley-center/K, wall-surface-0/A, wall-back-0/B, wall-back-100/C, wall-surface-100/D, surface-0/FTL, surface-100/FTR, bottom-100/FBR, bottom-0/FBL} { \fill[red] (P.\n) circle (1.2pt); \node[red,font=\scriptsize,above right=0pt] at (P.\n) {\lbl}; } %% numeric anchors along wall-surface and surface \foreach \t in {0,25,50,75,100} { \fill[blue!70!black] (P.wall-surface-\t) circle (0.8pt); \fill[teal] (P.surface-\t) circle (0.8pt); } \end{scope} \end{tikzpicture} \end{document} .