I'd like to draw an example of a tridimensional mass-spring system in LaTeX (preferably with TikZ or Asymptote). See the example below:
(this one was taken from the article by Gibson and Mirtich (1997) here)
If possible, I want the coils to be realistic, like the example here.
Minimal (partially working) example follows. I only need to connect the dots in each plane with springs to finish it:
\documentclass{standalone}
\usepackage{luatex85}
\usepackage[inline]{asymptote}
\begin{document}
\begin{asy}
settings.tex = "lualatex";
import three;
settings.prc = false;
settings.render = 0;
size(10cm);
currentprojection = orthographic(-1, 0.5, 0.5, up=Y);
draw(unitbox, pink);
for (int i = 0; i <= 3; ++i)
{
for (int j = 0; j <= 3; ++j)
{
// plane "X" in Unity
dot((0, i/3, j/3), magenta);
// plane "Y"
dot((i/3, 1, j/3), red);
// planz "Z"
dot((i/3, j/3, 1), black);
}
}
\end{asy}
\end{document}
How can I finish it?


